on 12-16-2008 5:36 PM
Hi All,
I currently have a UDF that takes several fields as input, calls an RFC and returns several fields as output. Now I would like to enhance the UDF so that the RFC will return a (simple?) internal table with the following row structure:
FIELD_NAME | VALUE |
FIELD_NAME | VALUE |
| FIELD_NAME | VALUE |
So for example the RFC may return the following data in the internal table:
FIELD_NAME | VALUE |
-
MATNR | 000000000000000001 |
WERKS | 0100 |
The UDF should loop over the contents of the returned table and move the returned values to the corresponding UDF output parameters.
Any pointers on what the code in the UDF should look like to achieve the above?
Che.
When you want the UDF to loop over, you need to write the logic in the UDF itself. As long as you are able t capture the table returned by UDF in to string arrays.. looping should be a piece of cake..!!
VJ
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If i got you,all context will be containing the 3 field and their values. if this is the case then your UDF will contain a loop of total table length and use substring function to get the output.
thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.