Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

trigger automatic packing in delivery

was_wasssu
Participant
0 Likes
1,271

How can i trigger automatic packing in delivery from ABAP code? Is it possible?

Thanks

How can i trigger automatic packing in delivery from ABAP code? Is it possible?

Thanks

5 REPLIES 5
Read only

Former Member
0 Likes
1,077

Hi,

Please explain in more detail!

you can use the FM WS_DELIVERY_UPDATE  and BAPI_HU_PACK  for delivery and packing !

Read only

0 Likes
1,077

Thanks for your answer. Do you have any examples of these?

Thanks!

Read only

0 Likes
1,077

Hi,

I  don't have code snippets. But it seems to be simple to call the FM's.

I think you can do it in two step process in the program

1. Create the delivery/update the existing delivery by using the Function Modules ( WS_DELIVERY_UPDATE ..)

2. Do the packing for deliveries by using FM ( get the details from VEKP,VEPO

call function 'SD_DELIVERY_UPDATE_PACKING'
     exporting
       delivery            =
       commit              = ' '
       synchron            = 'X'
     tables
       verko_tab           =
       verpo_tab           =
       prot                =
     exceptions
       update_not_possible = 1
       error_message       = 2
       others              = 3.

Read only

0 Likes
1,077

.

Read only

Former Member
0 Likes
1,077

Pls check user exit

PACKMODI |User exit for customer-specific functions for shipping matls.