cancel
Showing results for 
Search instead for 
Did you mean: 

message mapping issue

Former Member
0 Kudos

Hi,

I have one Idoc segment: E1WPP01 (example) this is sender in my message mapping

we have one field MATNR under that E1WPP01

sender occurence: 1 (SAP)

receiver occurence: 0 to unbounded (file type)

my receiver field which i map with DT_receiversub1

when ever E1WPP01 occurence is there DT_receiversub1 has to be generated.

one condition: when MATNR is empty DT_DT_receiversub1 field should not get generated

Thanks

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member193376
Active Contributor
0 Kudos

Hi

Use a createif and check if matnr is empty using node functions

so ur target node will be created only if matnr is not empty.

Thanks

Saiyog

former_member192295
Active Contributor
0 Kudos

Hi,

It is static structure we can't hide at run time, if source structure MATNR have value based on mapping it will pass to receiver structure else no value will found and receiver structure as blank, but we can't terminate field from structure. If receiver is file better to check with ABAP/JAVA mapping.

Former Member
0 Kudos

Hey got the solution???

if not try this

1)E1WPP01--->exists

2)Matnr-------------->
                     equalsS(text function)----not----Removecontext
Constant[]---------->
3)     1----->
                 and---->createif--->dt_reciver
        2------>

Former Member
0 Kudos

Hi raja,

while mapping use from Node function category-> exists function while u mapping to the source field.

this will react as u told.

Regards,

sasi.

Former Member
0 Kudos

HI RSK,

I tried in many ways to get that..but it is generating when MATNR is empty also in receiver that DT_Receiversub1

this is one way which i tried earlier:

MATNR -


exists---createif-DT_receiversub1

Thanks

Former Member
0 Kudos

hi raja,

create two matnr in mapping layout and put from boolean put ifwithoutelse connect one matnr to up and another matnr to another .now it will work

matnr---->

matnr-->exist-->ifwithoutelse..

Regards

sasi.

Former Member
0 Kudos

hi,

I tried ur way also.

I have 4 E1WPP01 segments

In one E1WPP01... i do not have MATNR field.

In remaining three i have MATNR fields..

now in my result

DT_reciversub1 getting generated 3 times.

First one with out MATNR one

second and third are with MATNR ones

fourth is not getting generated.

Former Member
0 Kudos

Hi,

Try if without else

MATNR --> Exists then pass constant to --> DT_reciversub1.

Former Member
0 Kudos

Hi,

I made a sample mapping as per your requirement and it is working.

Following includes screen shot of mapping.

http://farm4.static.flickr.com/3210/2829074012_dcccf28b0d_o.jpg

http://farm4.static.flickr.com/3219/2829039950_ff65ae2574_b.jpg

It would work as below:

if E1WPP01 exists and if MATNR do not exist, it will not generate target structure. [ Hope thats your requirement ]

Let me know if it works.

regards,

Venkat.