11-21-2007 12:55 AM
Hi Experts,
Can anyone please tell me about the User Exit or BADI for Sub contract PO release.Also tel me how to proceed for the following 2 requirement ,
i have to send an IDOC as & when the Sub contract PO releases.
And automatically resent if changes are made in PO with the repeat output function in ME22N.
Regards,
Nik
11-21-2007 9:44 AM
Hi Nikhil,
Please check with this User Exit for your requirement....
<b>EXIT_SAPLEBND_002</b> - Changes to Communication Structure for Release of Purchasing Docume
<b>EXIT_SAPLEINN_001</b> - Customer Enhancements for IDoc-Processing for Contracts (Inbound)
<b>EXIT_SAPLEINN_002</b> - Customer Enhancements for IDoc-Processing for Contracts (Inbound)
<b>EXIT_SAPLEINN_003</b> - Customer Enhancements for IDoc-Processing for Contracts (Inbound)
<b>EXIT_SAPMM06E_021</b> - Fulfillment of Target Value: Release Orders Against a Contract
Please check all above user exits as per your requirements....You have to use from above whichever applicable for you.....
please let me know any other help with this regards,
<i>reward points</i>
Cheers,
Sagun Desai.....
11-21-2007 10:08 AM
Hi,
Use trx SE19 to implement your BADI: create an ZME_PROCESS_PO_CUST using ME_PROCESS_PO_CUST as definition.
Now in Interface Tabs you can see the METHODs you can use as "user-exit", in particular there's PROCESS_ITEM to manage items data.
You have to write your code into this method.
This method has IM_ITEM like parameter in its interface, and it's like the type IF_PURCHASE_ORDER_ITEM_MM.
This type has the method IF_LONGTEXTS_MM~SET_TEXT, you can try to use it to set your text in item.
This is code for example:
DATA: TLINE TYPE MMPUR_T_TEXTLINES.
CALL METHOD IM_ITEM->IF_LONGTEXTS_MM~SET_TEXT
EXPORTING
IM_TDID = <YOUR ID>
IM_TEXTLINES = TLINE.
So you should read the text you want to copy and pass it to TLINE.
You can use the METHOD PROCESS_HEADER to read the text you need. This METHOD has IM_HEADER as parameter and it's like the type IF_PURCHASE_ORDER_MM, this type has the method IF_LONGTEXTS_MM~GET_TEXT to read header logn text.
Anyway while you're in implementation of the BADI go to:
GoTo->Sample Code
Here you can try an example how to implement the method you need to use.
Regards