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/FM to upload PGI

Former Member
0 Likes
807

hi guys,

any BAPI/FM that can be used to upload PGI, i need to put in the storage location for every DO

hi guys,

any BAPI/FM that can be used to upload PGI, i need to put in the storage location for every DO

5 REPLIES 5
Read only

Former Member
0 Likes
761

Hi,

try using the following:

BAPI_GOODSMVT_CANCEL

BAPI_GOODSMVT_CREATE

BAPI_GOODSMVT_GETDETAIL

BAPI_GOODSMVT_GETITEMS

reward if useful

regards,

Anji

Read only

Former Member
0 Likes
761

Hi,

Please try to use FM WS_DELIVERY_UPDATE.



  DATA:
    L_VBELN LIKE LIKP-VBELN,
    L_VBKOK LIKE VBKOK,
    L_PROTT LIKE PROTT OCCURS 0 WITH HEADER LINE.
 
* carry out goods issue
  L_VBKOK-VBELN_VL = L_VBELN.   <-- fill this field with your delivery number
  L_VBKOK-WABUC    = 'X'.
 
  CALL FUNCTION 'WS_DELIVERY_UPDATE'
       EXPORTING
            VBKOK_WA           = L_VBKOK
            SYNCHRON           = 'X'
            NO_MESSAGES_UPDATE = ' '
            UPDATE_PICKING     = 'X'
            COMMIT             = ' '
            DELIVERY           = L_VBELN
            NICHT_SPERREN      = 'X'
       TABLES
            PROT               = L_PROTT
       EXCEPTIONS
            OTHERS             = 0.
  COMMIT WORK AND WAIT.

Regards,

Ferry Lianto

Read only

0 Likes
761

Hi Ferry,

for function 'WS_DELIVERY_UPDATE', where can i put the storage location

Read only

Former Member
0 Likes
761

Hi

By using BAPI_GOODSMVT_CREATE you can create the PGI.

In this you can pass storage location in the table GOODSMVT_ITEM in the field

STGE_LOC.Header data you can pass the structure GOODSMVT_HEADER.

Then it will work.

Thanks,

shyla

Read only

0 Likes
761

hi Shyla,

BAPI_GOODSMVT_CREATE is not meant for PGI (post good issue from SD side) , it is meant for GI on MM side.

What i needed is PGI , not GI function