cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping doubt

Former Member
0 Kudos

I have an IDoc segment SEG03 repeating multiple times. The segment has two fields, QUALF and a field ADD. I have two target fields X and Y. If QUALF is 003 then I have to sent the value to X. If QUALF is 12, then the value should be sent to Y. QUALF comes with six different values.

How do I meet this requirement?

IDoc                                     Target
  SEG03                                      Structure
    QUALF                                            X
    ADD                                              Y
  SEG03
    QUALF
    ADD
  SEG03
    QUALF
    ADD
  SEG03
    QUALF
    ADD

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Midhun,

You can try mapping as below. Implement similar mapping for Y as well.

Note-raise context of both fields to Idoc.

Regards,

Sudha

naveen_chichili
Active Contributor
0 Kudos

Hi Midhun,

You requirement will be satisfied with the logic above specified by sudha.

Regds,

Naveen

Answers (3)

Answers (3)

sendhil_kumar
Active Participant
0 Kudos

Midhun,

QUALF -> Equals ->003 -> IfWithoutElse -> Then -> Add -> X

QUALF -> Equals ->012 -> IfWithoutElse -> Then -> Add -> Y

Hope this helps.

-

Sendhil

Former Member
0 Kudos

There are six segments coming in the IDoc. One of the segmments SEG03 has value of QUALF 03. I need to send that to X.

sendhil_kumar
Active Participant
0 Kudos

Midhun,

Where should the value of ADD to be mapped if the values other than 003 and 012?

-

Sendhil

former_member182455
Active Contributor
0 Kudos

Hi ,

you can use the node function to perform this mapping. try like this.

Regards

srinivas

Former Member
0 Kudos

No, it will not work. I think you didnt get the requirement. QUALF is 003 is the requirement for one target field. QUALF is 12 is the requirement for another target field.

You can not combine that both.

Also the values of QUALF is coming in different segments

EDIT:  The segment has two fields, QUALF and a field ADD. I have two target fields X and Y. If QUALF is 003 then I have to sent the value of ADD to X. If QUALF is 12, then I have to sent the value of ADD to Y. QUALF comes with six different values

0 Kudos

Hi Midhun,

What is the occurance of the segment that contains the field X and Y?

Former Member
0 Kudos

The occcurence is one