cancel
Showing results for 
Search instead for 
Did you mean: 

Idoc to SOAP mapping problem

former_member188353
Participant
0 Kudos

Hi All,

i have a scenario of IDOC to SOAP,we added on Segment for IDOC,showing yellow are the new segment and new fields for both IDOC and SOAP respectively.

Here   Z1SCHEDULE is Mapped to ScheduleLines

           Z1SCHLINE     is Mapped to ScheduleLine

and from the new segment i.e:ZORDSTAT_SCHL,ETENR is mapped to ScheduleLineNumber.

Bet here where i'm getting the problem is when i pass the values for both Z1SCHEDULE and ZORDSTAT segments every thing is fine.i.e: i'm getting the result but if i don't pass the values for Z1SCHEDULE we are not getting even ScheduleLines Node also..and if i delete the ZORDSTAT_SCHL segment the ScheduleLines are populating and ETENR is  also populating in receiver side...ho

can any one suggest me the mapping logic to overcome this.

Regards,

PR

Accepted Solutions (0)

Answers (2)

Answers (2)

pvishnuvardan_reddy
Active Contributor
0 Kudos

Hi PR,

As our colleagues are suggesting, use MapwithDefault as below.

In your case, on the left hand side, it will be Z1SCHEDULE, and on the right hand side it is ScheduleLines.

Try this out and let us know if you still facing issues.

Regards

Vishnu

markangelo_dihiansan
Active Contributor
0 Kudos

Hi PR,

Have you tried using mapWithDefault e.g Z1SCHEDULE -> mapWithDefault -> Target?

Regards,

Mark

former_member188353
Participant
0 Kudos

can you please provide me the exact solution with mapping?

Regards,

nitindeshpande
Active Contributor
0 Kudos

Hello PR,

As mark suggested, you need to use node function MapwithDefault in the below mentioned image -

For your case use source field as Z1SCHEDULE and target field as Schedule Lines.

Implement this, it will resolve your problem. Please let me know if you need more help on this.

Regards,

Nitin