on 01-25-2008 2:55 PM
Hi all,
I have to call an RFC every time a Purchase Order changes its status. For example when a PO is ordered or when it is approved and so on...
When the system update the status of a document?
There is a BADI or a FM in which I can put my RFC?
Thanks.
Norberto.
Hi,
You can implement BBP_DOC_CHANGE_BADI for PO (bus2201) method BBP_PO_CHANGE.
This BADI is called whenevr you change the PO.
BR,
Disha.
Pls reward points for useful answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi disha,
I have just considered this option but there is the problem that I can't control if the status is changed or not. For example if the PO is only saved, an user can change the PO. After he can only save the PO again, so the status will not change. In the method's interface ther isn't the status information, with wich I can check if the status is changed or not. So the FM will be called every time a PO is changed, not only when the status will change.
BR,
Norberto.
I have not tested this in SRM but Workflow can rise event when document is changed. Steps are like this. Change Document -> Event -> WF -> task -> call function. Please check the transaction SWED and Change Doc object CRM_ORDER. If you need to call a FM before changing the status, this solution is not valid.
Regards,
Masa
Hi Masa,
thanks for your reply.
We have already attempted this but with no success. For this situation the F.M. wasn't called in the creation of the PO, in addition we had problem when the successive documents (confirmation, goods receipt...) are created. Meanwhile the prerequisite of the implementation are changed: now for the externel system is sufficient to receive an asincronous comunications of the situation of all the PO one times/day.
Thanks all, Norberto.
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.