on 09-27-2005 5:00 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.