Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Variables passed to Function module for posting the Idoc

Former Member
0 Likes
689

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
658

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

4 REPLIES 4
Read only

Former Member
0 Likes
659

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

Read only

0 Likes
658

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.

Read only

0 Likes
658

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.

Read only

0 Likes
658

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.