‎2006 Nov 02 6:05 AM
Hi,
For Posting the Inbound Idoc a Function module is created what should be the values passed to
1) return_variable and
2) workflow_result.
I saw in many of the program like this if there is an error in posting.
I gave return_variable-wf_param = ' Error Idoc'.
and workflow_result = '99999'.
Why are these values passed, where are they used.
‎2006 Nov 02 6:26 AM
Josephine,
In your parntner profile for your customer/vendor ( depending on your idoc type and business scenario) , you would have assigned the post processing permitted agent.
In case the function module errors out, these values are carried out to the WF container and appropriate post processing notifications are sent to the agents. That is the purpose of having these variables in here.
It could be a success/failure, agents are notified in either case.
Ganesh
‎2006 Nov 02 6:26 AM
Josephine,
In your parntner profile for your customer/vendor ( depending on your idoc type and business scenario) , you would have assigned the post processing permitted agent.
In case the function module errors out, these values are carried out to the WF container and appropriate post processing notifications are sent to the agents. That is the purpose of having these variables in here.
It could be a success/failure, agents are notified in either case.
Ganesh
‎2006 Nov 02 6:38 AM
Thank Ganesh,
I have got one more doubt, there are 3 values passsed like
" Error_idocs", "Processed_Idocs", these two i can understand why do we pass "Appl_objects" to return variables.
‎2006 Nov 02 6:58 AM
Josephine,
An application object could be a Material, a PO or a Sales Order.
If you can look via SBWP, we also get a lonk along with the notification.
That will tell you the object. In our case, it is an IDOC Application object although that links to specific objects ( based on DELVRY03 ( if ti is delivery) Orders05 (if it is order) etc. Hence we need the business Object as well.
‎2006 Nov 02 7:04 AM
thanks once again for explaining.
Is it possibe for you to send the coding you have done.
Do You have any document related to this, so that i can have a better understanding.