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

BAPI_GOODSMVT_CREATE

Former Member
0 Likes
601

Hi experts,

is it possible to create PGI with reference to sales delivery using BAPI_GOODSMVT_CREATE.

Hi experts,

is it possible to create PGI with reference to sales delivery using BAPI_GOODSMVT_CREATE.

4 REPLIES 4
Read only

Former Member
0 Likes
556

yes, it can done.

have a look

[Link|http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm]

Regards

Shashi

Read only

Former Member
0 Likes
556

yes, it can done.

have a look

[Link|http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm]

Regards

Shashi

Read only

Former Member
0 Likes
556

Hi,

use this


      PERFORM OPEN_GROUP.
      PERFORM BDC_DYNPRO USING 'SAPMV50A' '4004'.
      PERFORM BDC_FIELD  USING 'BDC_CURSOR' 'LIKP-VBELN'.
      PERFORM BDC_FIELD  USING 'BDC_OKCODE' '=WABU_T'.
      PERFORM BDC_FIELD  USING 'LIKP-VBELN'  EF_DELIVERY.
      PERFORM BDC_TRANSACTION USING 'VL02N'.
      PERFORM CLOSE_GROUP.

Hope this helps.

Regards,

Amit Teja

Read only

0 Likes
556

MOVE:

c_x TO wa_vbkok_wa-wabuc.

APPEND LINES OF i_vbpok_tab2[] TO i_vbpok_tab[].

IF i_vbpok_tab[] IS INITIAL.

APPEND LINES OF li_temp TO i_vbpok_tab[].

ENDIF.

SORT i_vbpok_tab BY posnr_vl.

CALL FUNCTION 'WS_DELIVERY_UPDATE_2'

EXPORTING

vbkok_wa = wa_vbkok_wa

commit = c_x

delivery = v_delivery

update_picking = ' '

TABLES

vbpok_tab = i_vbpok_tab

prot = i_prot

EXCEPTIONS

error_message = 1

OTHERS = 2.