cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to solve Mapping RFC2File

Former Member
0 Kudos

Hi,

well it seems as i am unable to solve the following requirements.

I have source RFC-Structure like:

<ZTOP>
      <item>
         <VBELN>0090000589</VBELN>
         <KNUMV>0000001381</KNUMV>
         <PS_PSP_PNR>00000264</PS_PSP_PNR>
         <POSID>3410-003-1-001-2-003</POSID>
         <POST1>033WB LKCMB</POST1>
         <LFDNR>0000</LFDNR>
         <KSCHL>S140</KSCHL>
      </item>
      <item>
         <VBELN>0090000589</VBELN>
         <KNUMV>0000001381</KNUMV>
         <PS_PSP_PNR>00000264</PS_PSP_PNR>
         <POSID>3410-003-1-001-2-003</POSID>
         <POST1>033WB LKCMB</POST1>
         <LFDNR>0001</LFDNR>         
         <KSCHL>S150</KSCHL>
      </item>
</ZTOP>

target looks like


<MT_LFC>
<item>
         <LFC1>0090000589</LFC1>
         <LFC2>0000001381</LFC2>
         <LFC3>00000264</LFC3>
         <LFC4>3410-003-1-001-2-003</LFC4>
         <LFC5>033WB LKCMB</LFC5>
         <LFC6>0000</LFC6>         
         <LFC7>S140</LFC7>
         <LFC8>0001</LFC8>         
         <LFC9>S150</LFC9>
      </item>
</MT_LFC>

So at every new tag LFDNR and all tags under LFDNR should be added to the target structure. I have no clue on how to solve this!!

Does somebody has an idea?!

br

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

U can easily solve the problem by using the Java Mapping.

U have a lot of control on both the data ans structure,in java mapping.

Using graphical mapping it's little difficult unless u use some UDF's.. because LFDNR and all tags under LFDNR should be added to the target structure means that

LFDNR should be a node.. but which is not....

I hope this will solve ur problem..

Babu

Former Member
0 Kudos

Hi! No one or is this to simple?!

thx

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

just have a look at function useoneasmany

http://help.sap.com/saphelp_nw04/helpdata/en/ef/df564b6aa24fc9ab0d685460747de5/frameset.htm

please check out the forum/blogs first (there are tons of those with mapping examples)

then come back with issues with it and not with such simple cases if you didn't try anything yet

Thank you,

Regards,

Michal Krawczyk