cancel
Showing results for 
Search instead for 
Did you mean: 

idoc to file problem

Former Member
0 Kudos

I am doing idoc to file scenario.

1.i have just mapped to 6 feilds from IDOC.....but while executing IDOC..i get 20 fields frm R3....will that cretae a problem....Because i have not mapped to thos fields of the receiver...

2.while executing the mapping program in IR,it succesfully executes...but in sxmb_moni,it throws an error saying mapping exception....

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI,

No it will not make any difference if you have not mapped the remaining fields.

If the occurance of any of the fields on target side is 1...1 and you have not passed that field ...then it will create the exception.

Can you take the payload (Right click and take the source code) ---and test it in Message Mapping test tab.

If that works fine with payload data then there should not be any problem.

Thanks

swarup

Former Member
0 Kudos

You are right Swarup...its not executing....it gives..

java.lang.NullPointerException

how to find out the problem.

Edited by: Harsha reddy on Aug 26, 2008 5:10 AM

Former Member
0 Kudos

HI,

This Null pointer exception is due to any of the target field which is not getting the value.

The occurance on receiver side is 1. so try to add mapWithDefault API

Source field -


> mapWithDefault -


> Target field.

This will work the mapping perfectly.

Or make the occurance of target fields as 0...1 in Data type.

Thanks

swarup

Former Member
0 Kudos

Here I am confused how to map the head ,tail and body headers to the IDOC.

I have got three header segments.........

head segment with there fields.

body segment with three fields.

tail segment with three fields.

I mean i have these at the receiver.......what are the segments to be mapped at the sender....

Former Member
0 Kudos

Hi,

On receiver side you have head ,tail and body segments.

You need to map these with the header nodes of IDOC corresponding to teh fields

for e.g.

If in IDOC, you have segment1 having three fields field1, field2, field3 etc.

Then if you need to map the field1 with target side field under header segment -->field1.

then the target side Header segment should be mapped to segment1 of IDOC.

if the fields from Segment1 are used to map with head as well as tail segments of target..then you can multi-map both head and trail with segment1.

Thanks

Swarup

Answers (1)

Answers (1)

Former Member
0 Kudos

Dear Harsha,

while triggering the idoc, the idoc should not be empty.It should contain the values. Give by default any values and execute it.