[英]SAP query. Retrieve values basing on input on selection screen
I am stuck with coding a SAP query..I am new to ABAP.我坚持编写 SAP 查询。我是 ABAP 的新手。
What I would like to achieve is a join between tables ESLL, EKPO, EKKO.我想实现的是表 ESLL、EKPO、EKKO 之间的连接。 Specifically these are the steps I would like to achieve:
具体来说,这些是我想要实现的步骤:
I have already written some code inside the infoset, but I do not know how to fix it.我已经在信息集中写了一些代码,但我不知道如何修复它。
In the "data" section I have written:在“数据”部分,我写道:
DATA: it_esll TYPE TABLE OF esll.
DATA: it_esll2 TYPE TABLE OF esll.
DATA: it_ekpo TYPE TABLE OF ekpo.
In the "start-of-selection" section I have written:在“开始选择”部分,我写道:
SELECT packno
FROM esll
INTO TABLE it_esll.
IF sy-subrc EQ 0.
SELECT packno FROM esll
into TABLE it_esll2
for ALL ENTRIES IN it_esll
where sub_packno EQ it_esll-packno.
IF sy-subrc EQ 0.
SELECT ebeln ebelp bukrs werks matkl menge netpr peinh
FROM ekpo
into TABLE it_ekpo
for ALL ENTRIES IN it_esll2
WHERE packno EQ it_esll2-packno.
endif.
endif.
And, in order to display all the information I want, I have put the following joins: ESLL-PACKNO --> EKPO-PACKNO --> EKPO-EBELN --> EKKO-EBELN而且,为了显示我想要的所有信息,我添加了以下连接:ESLL-PACKNO --> EKPO-PACKNO --> EKPO-EBELN --> EKKO-EBELN
At then end I would like to display these information:最后我想显示这些信息:
Could you please help me?你能帮帮我吗?
One option could be to use Alias table in your infoset, something like this:一种选择是在您的信息集中使用别名表,如下所示:
So you can avoid ABAP所以你可以避免 ABAP
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.