cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP Mapping - Queue problem

Former Member
0 Kudos

Hello experts,

I have an idoc for a PO that has 3 line items and within each line item there is a segment that is repeated twice. I need to capture the segment that has PARVW = 'ZS' in each item while supressing the others ('ZW') in my PO output.

<PO>
<item>
  <1>
    <Partner>
       <ZS>
       <Name1>
    <Parnter>
       <ZW>
       <Name2>
  <2>
    <Partner>
       <ZS>
       <Name1>
    <Parnter>
       <ZW>
       <Name2>
  <3>
    <Partner>
       <ZS>
       <Name1>
    <Parnter>
       <ZW>
       <Name2>

The mapping I have is checking Partner-PARVW = 'ZS' (using text function EqualsS) using the context for Partner.

I've tried many other variations but I've been unable to grab only the ZS partner information.

Any ideas?

Thanks,

Matt

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

This could be easily fixed using graphical mapping by following the methods from this example:

[http://help.sap.com/saphelp_nw04/helpdata/en/e6/e6ae42e0fac911e10000000a1550b0/frameset.htm]

But, looks like you are using a ABAP mapping here. For this we will have to look at the logic you're using to collect the data from the idoc.

In my case (2 mappings I developed in ABAP), first I read all the data from the source structure and store it into an internal table. Then map the data from internal table to target structure.

Regards,

Sumant.

Answers (0)