yesterday
Hi Peers,
I have a requirement to trigger an outbound Idoc whenever a PR (Purchase Requisition) is created.
Idoc types : Create : PREQCR104, Change : PREQCHANGE04.
I have found out that this can be achieved through a FM ALE_PR_CREATE. But, I am not sure how to achieve this. Any pseudo code or other possible ways is greatly appreciated.
Thanks and Regards
You can call this FM and generate an IDOC thru a BAdI such as ME_PROCESS_REQ_CUST or (better) ME_REQ_POSTED but not thru NACE (AFAIK only PO not PR - A Purchase Requistion is an internal document that is not meant to be sent externally)
You could also consider using FM MASTER_IDOC_DISTRIBUTE and not ALE_PR_CREATE or CHANGE (more threads available)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks for the suggestion, The Idoc has to triggered in two cases here
1. Create : trigger an Idoc when PR is Created
2. Change : Create an Idoc when PR is Changes
The Idea is to use FM : MASTER_IDOC_DISTRIBUTE in IF_EX_ME_REQ_POSTED~POSTED of BADI ME_REQ_POSTED.
I will try to trigger an Idoc as per your suggestion and let you know the results
Regards,
User | Count |
---|---|
93 | |
9 | |
8 | |
7 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.