‎2024 Apr 09 5:42 PM - edited ‎2024 Apr 09 6:05 PM
Hi,
I am trying to check supplier purchasing history from table EKKO.
Unfortunately data is too huge to output in Excel or flat file.
I am trying to write query in SQ02 to sort data in table EKKO according to its creation date and then select one row per supplier with latest PO date.
I am not quite familiar with ABAP so struggling to write the code.
Can someone please help or guide on this ?
SELECT LIFNR FROM EKKO
WHERE LIFNR EQ 'XXXX'.
In above statement its saying INTO is missing but I don't want to insert data I just want to modify selection criteria and output table.
Br,
Murtuza
Request clarification before answering.
Hi Sandra,
Thanks for replying.
I am writing code inside infoset-- code section -- Free code.
I am just trying to filter selection programmatically as data is too huge to output. I am trying to write select statement in infoset to select only desired data. Goal is to sort table EKKO depending on creation date and then output lastest po date per supplier. So let's say one supplier has 1000 POs so only row with latest PO date is needed for that supplier.
I just felt writing query might help and I am not sure whether this type of requirement can be accommodated here.
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.