cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Problem for header

Former Member
0 Kudos

Hi experts,

I have one sender message as below :

Header

Idoc 1

idoc 2

idoc 3

receiver message is as below :

idoc

- header

- item

idoc 1 is mapped with idoc of receiver, header is mapped with header of idoc.

For idoc 1 one idoc is generated, for idoc 2 and idoc 3 different idocs are generated.

My query is for header data, it is coming only with idoc 1 when it is mapped with header, it should come with all the idoc data.

Please help,

Regards,

Study SAP

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

1) I think you want multiple occurances of Header field.

2) Then please check occurance of Header field it should be 0..unbounded and not 1..1.

3) check the occurance of header field in data type it should be 0..unbounded.

Regards,

Rohit.

Reward points if helpful

Former Member
0 Kudos

Thanks Rohit,

The occurance for header at sender is 1:unbounded and receiver is 0:9999999999.

Is it require to change these occurances ?

Regards,

Study SAP

Former Member
0 Kudos

Hi study,

if you have - at source side - just ONE Element ans you need it at target side n-time you have to use:#

Replication of Nodes Using the Graphical Mapping Tool

/people/claus.wallacher/blog/2006/04/17/replication-of-nodes-using-the-graphical-mapping-tool

Regards Mario

Answers (4)

Answers (4)

former_member556603
Active Contributor
0 Kudos

Hi,

Use

You require the function useOneAsMany() if a field that only occurs once needs to be replicated as often as another field occurs in the outbound message so that the fields can be written to the target structure in pairs as a record.

Go through this link...

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

Thanks,

Satya Kumar

Former Member
0 Kudos

Hi,

Please go through the following links.

[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2171] [original link is broken] [original link is broken] [original link is broken]; Message Mapping Simplified - Part I

[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2792] [original link is broken] [original link is broken] [original link is broken]; Message Mapping Simplified – Part II

Thanks,

Kiran.

Former Member
0 Kudos

Your have to uses the standard function useOneAsMany.

Former Member
0 Kudos

Hi,

you have to use useOneAsMany Node function to achieve your requirement.

Regards

Bhanu

Intelligroup.

Former Member
0 Kudos

Hi

As per your requirement you have one header at source side and multiple idoc at receiver side n u want the same header data should be used for all the idoc at the receiver side.

if you want the same header record at the receiver side idoc then you can map the header directly to the header of idoc.

if your header data is coming only with idoc1 then it will be only available in the first idoc only.

Thanks

Rinku