cancel
Showing results for 
Search instead for 
Did you mean: 

Sort PO line items by delivery address

BorutKalin
Discoverer
0 Kudos

Hello!

We have PO with many line items. Some items have one delivery addres and other item have different delivery address. This items are not sorted on the PO.

We would like to print this PO it that way, that line items with equal delivery address will be printed together. After the last item with common addres - there should be printed address.

Any ideas how to correct this with sapscript?

Borut

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Borut,

It is possible to sort in Driver Program only.

in loop statement of of your Internal Table

at end of <ADRNR>.

*print your line item address here

endat.

Regards,

Raghava Channooru

BorutKalin
Discoverer
0 Kudos

Is this possible to do in standard program for printing PO's: SAPFM06P? is there any user exit or Badi,..? I dont have my own program....

Borut

Former Member
0 Kudos

Hi,

Get the dellivery plant's ADRNR and sort it and then issue the print.

Thanks

Seema

BorutKalin
Discoverer
0 Kudos

Hello M.Seema ,

How can i sort adrnr in sapscript? Where is the right place to sort - layout or calling program?

Borut