Skip to Content
avatar image
Former Member

How to Repeat PO IDOC during GI

Hello Gurus,

We have an Output type configured, which will trigger IDOC if a PO is created or is changed(only for STOs). Now, The requirement is to repeat same output during GI posting.

Following approach i tried and failed:

  • submitting application,PO number and output type to RSNAST00 in update task in exit EXIT_SAPLMBMB_001(also tried EXIT_SAPLIE01_007) . Reason of failure: Submit statement can not be used in update task.
  • making zFM coping RSNAST00 and calling it from same exits. Reason of failure: RSNAT00 calls a routine of RSNASTED which calls screen and it is not allowed in update mode.
  • Changing any dummy field in PO from same exit using BAPI_PI_CHANGE, But again this Bapi Requires external COMMIT statement, which we cant.
  • ReDistributing last generated IDOC of same PO. But this will not contain current and latest PO data.

Please guide me with some approach which i can take here.

Thanks in Advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 09, 2017 at 06:55 AM

    Hi All,

    I accomplished requirement by using MASTER_IDOC _DISTRIBUTE FM only in exit EXIT_SAPLMBMB_001 which is called after posting GI.

    I took last generated IDOC for particular Order and as there is change only in Schedule line segments, populated them again with latest data and then distributed them agian.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 02, 2017 at 05:55 PM

    How would a goods issue at all be connected to a purchase order? A receipt could be understood. A goods issue only in case of a stock transfer between two plants, but you said third party so it is not a stock transfer.

    How do you connect a goods issue from neutral warehouse stock to the purchase order?

    Add comment
    10|10000 characters needed characters exceeded

    • Wouldn't this be a shipping notification from the outbound delivery. And why it is needed at all, the buyer can see immediately what goes one when he looks into the PO history tab.