cancel
Showing results for 
Search instead for 
Did you mean: 

message mapping problem

Former Member
0 Kudos

Hello,

I would like to do the following mapping

source-structure:

ZLIFBANK (0-1)

-BANKSCHL

-BANKNR

-BANKLAS

target-structure:

E1LFBKM (0.....999999)

-BANKL

-BANKN

-BANKS

ZLIFBANK -> E1LFBKM

BANKSCHL -> BANKN

BANKNR -> BANKN

....

I would like to map ZLIFBANK -> E1LFBKM only if the field BANKL isn't initial.

The problem at the moment is, if there are no values in the fields of the structure ZLIFBANK, the IDOC in the backend SAP has an empty structure in segment E1LFBKM.

Is there a possible to use a customer function?

Best Regards

Christoph

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Christoph,

I have also done same in my message mapping and it works fine.

Use message mapping functions.MAP E1LFBKM with ZLIFBANK using functions

Length,Greaterand Ifthen.

Findout the length of BANKL with LENGTH function.Pass that value as one of the parameter to function GREATER.Pass second parameter to function GREATER a constant (0).Pass the result to If without else function.If this is true pass ZLIFBANK to IF THEN function and Map the result to E1LFBKM.

If still you find problem send me you email .I will send you a screen shot of my mapping

Hope it helps.

Thanx.

Rekha.

Former Member
0 Kudos

Hello Rekha,

It would be very nice, if you can send me these steps by email.

christoph.hahn@axentiv.de

Thanx.

Christoph

Answers (1)

Answers (1)

Former Member
0 Kudos

check whether E1LFBKM has occurance of 1..unbounded, if yes change the occurance to (0 to unbounded) and if not what you should use is IF CONDITION on the E1LFBKM structure mapping.

ZLIFBANK -> EXISTS AND BANKSCHL NE SPACE then map ZLIFBANK to E1LFBKM.

regards

Shravan