Skip to Content
author's profile photo Former Member
Former Member

Duplicating records

Hi,

In my mapping i am doing a R/3 look up, which returns with variable number of values. now for each of these returned value i have to build a seperate record,

For example if the Look up has returned 2 values say 13 & 16.I have to build 2 records like

aaa,123,bbb,13

aaa,123,bbb,16

and say if MDM returns n values we have to build 'n' records, i think we need to use Global container here, however I am not well aware of this is there any code you guys can suggest any UDF to do this.. any other idea will be appreciated.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jan 12, 2007 at 08:34 AM

    Hi,

    Many ways to handle this.

    1. SImilar to Global Containers, you have a seperate section called JAVA section in your Message Mapping. You can declare your Global Variables in these sections and then reused them in any UDF in your mapping.

    Make the call to the RFC in the initlaization section of your JAVA section and so you will have the multiple response inn a global Variable array and then access them when needed using UDF's in your Mapping!

    More on global variables in this blog,

    /people/sap.user72/blog/2005/10/01/xi-new-features-in-sp14

    2 Using Advanced User Defined Functions is another option,

    Regards

    Bhavesj

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 12, 2007 at 09:39 AM

    Hi,

    Yes, you need to use Global containers to handle this situation. The only thing is you need to know the number of records to be generated for the other elements.

    Another possible solution is Java Mapping. you can construct your Output as you require.

    Regards,

    P.Venkat

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.