03-09-2021 9:46 AM
Iam having multiple po in my internal table
i want my po to be displayed only once in the output.
i need to display the po once only but all the material details to that po should be displayed
po-4500004822, matnr-100-01 ,desc- printer, qty- 10
100-02 fly wheel 50
as you can see po number is not coming in second line item
need to get this using control break statement is their a possibility..
03-09-2021 9:50 AM
Hello akash_01
SORT lt_table BY po_number.
LOOP AT lt_table REFERENCE INTO DATA(ld_table).
AT NEW po_number.
WRITE ld_table->po_number.
ENDAT.
WRITE ld_table->material.
ENDLOOP.
Kind regards,03-09-2021 9:50 AM
Hello akash_01
SORT lt_table BY po_number.
LOOP AT lt_table REFERENCE INTO DATA(ld_table).
AT NEW po_number.
WRITE ld_table->po_number.
ENDAT.
WRITE ld_table->material.
ENDLOOP.
Kind regards,03-09-2021 12:39 PM
But this code works all the time ONLY if PO_NUMBER is the first component of LT_TABLE.