on 2006 Mar 31 5:06 PM
I am trying to map BAPI RETURN to output structure.. I have no problems when BAPI returns an error message..
If successfully processed, RETURN table is empty.. but I still need to update my output structure...
How do I handle this?
Hi SSG,
You can create a wrapper function (where u call ur BAPI)over this which can return a value as you will need at least something to be returned for the Interface to work.
Regards
Vijaya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check exists in node functions and I think that will solve your problem.
Thanks,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Could you tell us how you solved this?
Did you use a wraper?
Regards,
Smitha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My RETURN structure was always sent as 'Output'. The problem was 'item' was not getting sent, when the BAPI was successful. I noticed that BAPI always returns only one error..
so I mapped my 'RETURN' node to my output structure (instead of item node) thereby limiting my output table to one row (positive/negative)..
Smitha, Is there a node function that checks for existence of node? If there is, we can probably implement your solution.. otherwise I think wrapper may be the only way.. I will keep the thread open for now..
Hi SSG,
this is possible using the node function IF EXISTS
http://help.sap.com/saphelp_nw04/helpdata/en/1a/318c4024d26e1de10000000a1550b0/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/1a/318c4024d26e1de10000000a1550b0/content.htm
Regards,
bHAVESH
Hi guys,
Instead of a wrapper can't we solve this with a simple graphical mapping?
Check if the header corresponding to the return table is present, and if so, there was an error.
If there is no header, then we consider it to be successful, and the tags in the output structure can be mapped to constants. Right?
Regards,
Smitha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Create RFC wrapper function to your BAPI, before returning the value check the table and if it is empty fill up the success value.
In most of the cases BAPI returns the success value, which BAPI you are using. Just for info -:)
Thanks,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Make sure that you are exporting some values to BAPI so that it will come to XI and update your output strcture.
Regards,
Moorthy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
67 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.