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: 

BAPI for GI and GR reversel

vinod_vemuru2
Active Contributor
0 Kudos

Hi Guys,

Is there any BAPIs available for Reversing the GR and for reversing GI in 4.6C version of SAP.

I have to use transaction MBST for GR reversal and VL09 for GI reversal. After reversing i have to use VL02N for GI posting and custom transaction for GR posting. Instead of going for BDC let me know if there are any BAPIs or FMs available for the above scenarios.

<REMOVED BY MODERATOR>

Thanks in advance,

Vinod.

Edited by: Alvaro Tejada Galindo on Feb 22, 2008 6:02 PM

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Please try with BAPI: BAPI_GOODSMVT_CREATE

6 REPLIES 6

Former Member
0 Kudos

Please try with BAPI: BAPI_GOODSMVT_CREATE

Former Member
0 Kudos

Hi,

Try BAPI_GOODSMVT_CANCEL.

Cheers,

Aditya

vinod_vemuru2
Active Contributor
0 Kudos

Hi Guys,

Thanks for ur replies. But i need BAPI/FM for GI reversal and Repost also. Please let me know if we have any BAPI/FM.

Thanks,

Vinod.

vinod_vemuru2
Active Contributor
0 Kudos

Thank u guys

0 Kudos

Hi Vinod

I am also looking for a BAPI/FM for GI reversal and GI posting.

Could you please let me know if you find it.

thanks.

0 Kudos

Hi Jaun,

I did not find any BAPI/FM for this. I proceeded with BDC.

Check below code.

Reverse GI (VL09)

REFRESH: i_bdcdata[], i_bdcmsgcoll[].

PERFORM: bdc_screen USING 'RVV50L09' '1000',

bdc_data USING 'BDC_OKCODE' '=ONLI',

bdc_data USING 'I_VBELN-LOW' po_vbeln. "Delivery number

CALL TRANSACTION c_vl09

USING i_bdcdata

MODE w_mode

UPDATE c_s

MESSAGES INTO i_bdcmsgcoll.

"Repost GI(VL02N)

REFRESH: i_bdcdata[], i_bdcmsgcoll[].

PERFORM: bdc_screen USING 'SAPMV50A' '4004',

bdc_data USING 'BDC_OKCODE' '/00',

bdc_data USING 'LIKP-VBELN' po_vbeln,"Delivery number

bdc_screen USING 'SAPMV50A' '1000',

bdc_data USING 'BDC_OKCODE' '=T\02',

bdc_screen USING 'SAPMV50A' '1000',

bdc_data USING 'BDC_OKCODE' '=WABU_T',

bdc_data USING 'BDC_SUBSCR'

'SAPMV50A 1104SUBSCREEN_BODY',

bdc_data USING 'LIPSD-G_LFIMG(01)' w_lfimg, "Quantity

bdc_data USING 'LIPSD-PIKMG(01)' w_lfimg."Quantity

CALL TRANSACTION c_vl02n

USING i_bdcdata

MODE w_mode

UPDATE c_s

MESSAGES INTO i_bdcmsgcoll.

Thanks,

Vinod.