2009 Sep 28 10:31 PM
Hi
Please I need to create a RFC to reject a Purchasing Contract workflow, I´ve found just BAPI_CONTRACT_CHANGE bapi but it just works with contracts with material itens, it doesn´t work with contracts with service itens.
helpful answers will be awarded.
DATA:
wl_header TYPE bapimeoutheader,
wl_headerx TYPE bapimeoutheaderx.
wl_header-procstat = '08'.
wl_headerx-procstat = 'X'.
CALL FUNCTION 'BAPI_CONTRACT_CHANGE'
EXPORTING
purchasingdocument = i_ebeln
header = wl_header
headerx = wl_headerx
TABLES
return = bapiret2.
READ TABLE bapiret2 TRANSPORTING NO FIELDS
WITH KEY type = 'E'.
IF sy-subrc NE 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDIF.
2012 Jul 03 7:19 AM
Hi Michel,
I also have same requirement , Can you please send me the code.
My Email ID : sivaji.kankanala@gmail.com
Appreciate your help!
Thanks,
Sivaji.