cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping logic

raviteja_satuluri
Contributor
0 Kudos

Hi Experts, 

I am not good at Mapping levels

I got one requirement Please can any one help me in Mapping.

Component is a Segment

if A or B or C is not present do not send that component to SAP proxy and at least one of those three must be present to send to SAP proxy

Mapping table:


Component (Segment )

                P

P - only send if either A or B or C are not blank

               Q

Q - only send if either A or B or C are not blank

               R

R - only send if either A or B or C are not blank

               S

S - only send if either A or B or C are not blank

               T

T - only send if either A or B or C are not blank

              U

U - only send if either A or B or C are not blank

               V

V - only send if either A or B or C are not blank



Please help me with Screenshots for achieving this Mapping logic.


Thanks in Advance,


Regards,

Kamal S.

Accepted Solutions (1)

Accepted Solutions (1)

vinaymittal
Contributor
0 Kudos

Hi,

what are A, B, or C are they some value or some field can you share the source target structure

raviteja_satuluri
Contributor
0 Kudos

A, B, or C are they are Source field


A small change in Mapping table


Mapping table:

Component (Segment )

                P

P - only send if either A or B or C are not blank

               Q

Q - only send if either A or B or C are not blank

               R

R - only send if either A or B or C are not blank

               A

S - only send if either A or B or C are not blank

               B

T - only send if either A or B or C are not blank

              C

U - only send if either A or B or C are not blank

               V

V - only send if either A or B or C are not blank



raviteja_satuluri
Contributor
0 Kudos

Thanks for your reply Vinay,

Please share the Screenshots of Mapping logic for the Above.

Thanks and Regards,

Kamal S.

pvishnuvardan_reddy
Active Contributor
0 Kudos

Hi Kamal,

Can you try with the below logic.

Former Member
0 Kudos

Hi! I would have done it the same and I got a little trick to do it shorter:

Use "fixedValues"-Conversion instead of "equalsS/constant/not" and convert "" to false and anything else to true.

A-->mapWithDefault-->fixedValues-->or--\

B-->mapWithDefault-->fixedValues-->or----\

C-->mapWithDefault-->fixedValues---------->or---->if without else-->target

                                              P--/


By the way, MapWithDefault is only nessesary if the fields might not exist.

raviteja_satuluri
Contributor
0 Kudos

Thanks for your Reply,

But i hope if A or B or C is Present in Component Segment that Segment is need to Pass to SAP Proxy.

Can you please provide Mapping logic for this ?

Regards,

Kamal S.

Answers (0)