02-20-2008 7:58 AM
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
02-20-2008 8:04 AM
02-20-2008 8:04 AM
02-20-2008 8:05 AM
02-22-2008 6:36 AM
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.
03-10-2008 2:39 PM
06-04-2008 4:22 PM
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.
06-09-2008 8:11 AM
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.