Skip to Content

Control PO output triggering based on changes made

Hi Experts,

I have a requirement to control PO output type triggering when changes are made in several fields of PO. In current scenario, output is getting triggered everytime I made any changes to PO(this is fine and as per requirement).

But Now I want to restrict this output type triggering when the changes made to several field only (i.e Delivery time, date, header texts, PO quantity etc).

I have created a new requirement routine 9XX, and assigned to respective output type. Here by setting sy-subrc I can control output triggering of PO.

I thought of using FM 'ME_READ_CHANGES_EINKBELEG ' or 'CHANGEDOCUMENT_READ' in requirement routine to track the changes made to PO, but challenge here is PO changes are NOT yet stored at databases level. Changes(update) is in process and in between output type(requirement routine) is getting triggered.

So can you please help me in suggesting is there any BADI/Exit I can use where I can find scope of changed PO data, where I can write my logic and pass a flag to requirement routine to control output. ?? or is there any other way to archive this requirement.

Thanks in advance

Sagar

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    May 26, 2015 at 05:35 PM

    Hey Bro,

    You can use BADI me_process_po_cust along with the requirement routine to control PO output triggering based on the conditions you want. 😊

    Hope this helps!! (Revert back if it doesn't 🤪. Will help you out on the logic)

    Add comment
    10|10000 characters needed characters exceeded

    • Dear Aniket,

      Thanks for your reply. 🤪

      I already tried using this badi me_process_po_cust, but only issue I am facing is

      I am enable to track the header and item TEXTS changes by this badi.

      Any other way/other badi exit where I can get this 'texts' scope also ? 😊

      Thanks

      Sagar

  • avatar image
    Former Member
    May 26, 2015 at 11:10 PM

    Sagar, there is much easier way without any development.

    Use the transaction OMFS. Maintain the tables/fields for which change should trigger an o/p. SAP should do the rest.

    Hope this helps.

    Thanks,

    Vikram.M

    Add comment
    10|10000 characters needed characters exceeded