Skip to Content
author's profile photo Former Member
Former Member

User Exit/ BADI for PO release

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 09: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.....

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.