cancel
Showing results for 
Search instead for 
Did you mean: 

MappingLogic Reuired

Former Member
0 Kudos

Hi Experts,

My scenario is File to IDoc,

My Source Structure as follows, if material number present more than once then I have to generate E1EDP01 target equal to the occurrence of Material Number.

I have mapped Material Number in E1EDP19 segment IDTNR field, the value of IDTNR value also have to be changed in every occurrence.

MT_Orders_Chemical
      Orders_Chemical  
            OrdersNumber
            MaterialNumber
            PlaceofShip
            TruckPoint

Receiver Target Structure

ORDERS05
  IDoc
     E1DC41
     E1EDK01
     E1EDK14
     E1EDK02
     E1EDP01
       E1EDP19
       E1EDPT1
         E1EDPT2

I tried with different ways, but unable to get success. any valuable inputs welcome.

Kind regards,

Jam

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

solved...

sunilchandra007
Active Contributor
0 Kudos

> My Source Structure as follows, if material number present more than once then I have to generate E1EDP01 target equal to the occurrence of Material Number.

Map material number to E1EDP01.

Regards,

Sunil Chandra

Former Member
0 Kudos

Hello sunil,

Thanks for your reply,when i map material number to E1EDP01 i am able to get two E1EDP01 segments but in second sement i am not getting any values.

any other inputs.

Shabarish_Nair
Active Contributor
0 Kudos

map material number to the node but use splitbyvalue for your field mapping so that the field values will be populated

http://help.sap.com/saphelp_nw04/helpdata/EN/21/3bb8c495125e4eb5969f0377885fe0/frameset.htm

Former Member
0 Kudos

Hello Vijay ,many thanks for your replay,

unfortunatly not working , it is secod filed not getting genarated.

E1EDP01
    E1EDP19
       QUAL--uF0E0MAPPED CONSTANT VALUES
       IDTNR--.MAPPED MATERIAL NUMBER
   E1EDPT1
      TDIDuF0E0.Mapped constant value.
      TSSPRASSuF0E0MAPPED CONSTA VALUE
          E1EDPT2
            TDLINEuF0E0SOME MAPPING LOGIC

any other inputs.

Kind Regards,

Jam

former_member181962
Active Contributor
0 Kudos

Hi Jam,

You should be using UseOneAsmany function(Along with splitByValue) for the fields under the E1EDP01 segment..

Regards,

Ravi Kanth Talagana

Former Member
0 Kudos

Try this..

MaterialNumber->RemoveContext->E1EDP01 (this is to generate E1EDP01 same number of times as material number)

MaterialNumber--->SplitByValue -


>IDTNR.

Former Member
0 Kudos

Hi

If it is still outstanding.

Do what was suggested at answer number two by sunil.

Map 'material number' to E1EDP01 but do it like this.

1) change the context of 'material number' to line item level

2) put a check use the 'exist' function

3) then use 'createif'

4) then pass that que into E1EDP01

the above will ensure you only create E1EDP01 when you have a material number in the source structure I am hoping that is your requirement?