Application Development 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: 

Change Bill-of-lading&package no in Outbound Delivery using BAPI or any FM

Former Member
0 Kudos

Dear ABAP Gurus,

How to change Bill of Lading(BOLNR) and Number of Packages(ANZPK) in Outbound Delivery using BAPI or some other Function MOdule.( BDC is not required for this).

Regards,

Rajesh

3 REPLIES 3

Former Member
0 Kudos

use this bapi BAPI_OUTB_DELIVERY_CHANGE

if you dont find required fileds use EXTENSION1 strcture and pass your fileds and values

0 Kudos

Hi Keshav,

Can U please suggest me how to use EXTENSION1 structure, if you have any other example how to pass Field Name and Value.

Regards,

Rajesh

0 Kudos

MOVE 'BAPE_VBAP' TO lwa_extension-structure.

lwa_bape_vbap-vbeln = lwa_final-vbeln.

lwa_bape_vbap-posnr = lv_posnr.

MOVE lwa_final-yyslotid TO lwa_bape_vbap-yy_slotid.

MOVE lwa_bape_vbap TO lwa_extension-valuepart1.

APPEND lwa_extension TO lt_extension.

CLEAR lwa_extension.