on 08-01-2008 7:43 AM
Hi All,
I need to create an IO every time a SC is approved. For that we have a standard BAPI BAPI_INTERNALORDER_CREATE , but my problem is i have no idea where to call this BAPI.
I mean which is the BADI , where the status is updated after approval of the SC.
Hope my query is clear...
Thanks,
Anubhav.
Hello ,
Implement BBP_DOC_SAVE_BADI badi , and in this badi implemnt a code which says that inernal order should be created whrn the transaction is the approval transaction.
e.g
if sy-tcode = "BBPSC07"
Call the function module for IO creation.
Hope this helps.
Cheers,
Sid
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anubhav,
Just a few precautions here for you:
1. In a business case where you have more than one approver, the system will generate multiple IO for a single SC. Most likely you have to create the IO only when the SC has been aproved by all.
2. I would rather suggest you to handle this in workflow i.e. after all approval trigger the IO creation.
Regards
Kathirvel
Hi Balakrishna,
I'd like to determine the exact moment when the last person of the approval WF has approved the SC and then it's about to generate the IO.
So can you please eleborate
I would rather suggest you to handle this in workflow i.e. after all approval trigger the IO creation.
Thanks,
Anubhav.
Hi Anubhav,
The workflow determines the list of approvers and passes to workitem to one by one till every one approves. Once all the approvals are completed, the workflow sets the status of the SC to "Approved" and then from that point the usual "Follow-On-Document" creation process is started.
Now you can create a sub workflow or a task which will be called after all the approvals are completed. This task can be used for creating the internal order.
Please take help from some workflow consultant and explain him this logic. This should be very simple task for them.
Hope this solves your problem.
Regards
Kathirvel
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.