cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI to Post goods receipts from return delivery from return order

Former Member
0 Kudos

Hi All,

Please let me know which BAPI will be useful to post goods receipt from a return delivery which generated from a return sales order.

Please help.

Regards'

Kumar

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

PGR by WS_DELIVERY_UPDATE_2'

       wa_vbkok-vbeln_vl       = <lfs_zsd_doc_statush>-vbeln.        "Assign delivery

       wa_vbkok-wabuc         = c_value_x.                                   "Assign Picking

       wa_vbkok-spe_auto_gr = c_value_x.                                  "Assign Goods Receipt

       CALL FUNCTION 'WS_DELIVERY_UPDATE_2'

         EXPORTING

           vbkok_wa = wa_vbkok

           synchron = c_value_x

           commit   = c_value_x

           delivery   = <lfs_zsd_doc_statush>-vbeln

         TABLES

           prot     = it_prot.

venu_ch8
Active Contributor
0 Kudos

Dear Mukul

yes it is possible by using BAPI Also but how to find BAPI Program For this

First what t.code you are using for  return delivery creation ?

From technical information you can find package name and go to se15 here you can find BAPI Program

By the the by use this bapi programs For return delivery 

BAPI_OUTB_DELIVERY_CREATENOREF

SHIP_DELIVERY_CREATE_NOREF

May be it will helpful ..

Thanks a lot

former_member186385
Active Contributor
0 Kudos

Hi Mukul,

You can use BAPI  " BAPI_GOODSMVT_CREATE"


in the Goods Movement Code as 05 which will be used for Return sales order

This same BAPI can be used for Purchase order, production orders. so you have to control this using Goods movement code 05

revert if you need any further help

Former Member
0 Kudos

Hi Santosh,

Thanks for reply.

As I try from SE37 and put as you said the movement code 05 but system gives below error

E M7                   096 Goods movement not possible with mvmt type 651.

Please help.

Regards'

Kumar

former_member186385
Active Contributor
0 Kudos

Hi Mukul,

try to remove Goods movement code and execute

let us see, if system will automatically determines the movement type

thanks

santosh

venu_ch8
Active Contributor
0 Kudos

Dear Mukul Kumar

E M7                   096 Goods movement not possible with mvmt type 651.

I Think please check once here

in OMJJ--Give your Mvnt type here ----Left hand side --Allowed Transactions one option is there

here you check any thing missing