Announcement:
wanna exchange links? contact me at sapchatroom@gmail.com.
Posted by
Admin at
Reply from avikg on Dec 27 at 12:01 PM Hi, When I am trying to TECO a PM order with single confirmation, it works fine. However when I need to confirm more than 1 Work Order, the BAPI is failing and not allowing to TECO the Order. Regards, Avik
| | | ---------------Original Message--------------- From: Avik Ghosh Sent: Thursday, December 19, 2013 1:41 AM Subject: BAPI For PM Order TECO I am using BAPI_ALM_ORDER_MAINTAIN to do TECO for plant maintenance order. However its ending with error. My code is below: DATA: it_methods TYPE STANDARD TABLE OF bapi_alm_order_method, w_methods TYPE bapi_alm_order_method, et_numbers TYPE STANDARD TABLE OF bapi_alm_numbers. w_methods-refnumber = 1. w_methods-objecttype = 'HEADER'. w_methods-method = 'TECHNICALCOMPLETE '. w_methods-objectkey = g_aufnr. " '000007092118'. APPEND w_methods to it_methods. *IT_METHODS-REFNUMBER = 1. w_methods-objecttype = ''. w_methods-method = 'SAVE'. APPEND w_methods to it_methods. CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN' TABLES it_methods = it_methods return = i_return et_numbers = et_numbers. CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' EXPORTING wait = 'X'. Regards, Avik | | Reply to this email to post your response. __.____._ | In the Spotlight Become a blogger at Toolbox.com and share your expertise with the community. Start today. _.____.__ |