on 09-01-2015 9:06 AM
Hello Gurus.
I'm posting an idoc in WE19 (in EM).
In idoc Segment E1EVMLID I update LOCCOD ABC1 and LOCID1 0001.
Spro Location Codes: External Location Code Set = ABC1 Ext. Location ID1 = 0001.
Spro Location Codes: Internal Location Code Set = ABC1 Int. Location ID1 = 0001. Update Street, City, Country etc.
Spro update Sender independent Mapping
The message posts and updates the EH but does not pick up the Street, City, Country etc. (Can't see it in se16 /saptrx/evm_hdr).
In Debug
/SAPTRX/CODE_MAPPING line 56 add_loc_data =' '.
IF add_loc_data = 'X'.
PERFORM get_add_data CHANGING int_codes.
Is there something required in spro or the idoc that makes add_loc_data = 'X'.
Please can you help.
Cheers.
Zenon.
Hi Zenon,
is it available in table /SAPTRX/EVM_LID?
Best regards,
Steffen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Steffen.
I was unable to get the location mapping to pick up the city, street etc. Is this config working as expected in anyone elses scenarios?
I think I'll create a z version of the idoc processing function (IDOC_INPUT_EVMSTA) and update the street and city information there.
Regards.
Zenon.
Hi Zenon,
It didn't work for me either. Try creating OSS request for object /SAPTRX/LEH_BAPISF12 and it will help other EM consultants/projects too:)
While we have solution:
If there are not too many events, try using pre-processing functions instead of creating custom IDOC_INPUT_EVMSTA.
Other option is /saptrx/badi_message. As you already know, this BADI has been replaced by pre-processing technique but still works till we have a solution and you can de-active it later.
Thanks,
Vishnu
Hi Zenon,
The functional module /SAPTRX/CODE_MAPPING which you refer you have to configure "Sender-Dependent Location Mapping (Table /SAPTRX/MAPLOCI2)" to execute line number 56 IF add_loc_data = 'X'.
You have to configure Sender-Dependent Location Mapping to execute the line then it goes to line number 56.
Check and let me know.
Regards
GGOPII
Hi Gopi,
No matter what you pass, add_loc_data = 'X' will not happen. In location mapping for events in object /SAPTRX/LEH_BAPISF12, we are not passing add_loc_data = 'X' at all.
Even if there was add_loc_data = 'X' in the /SAPTRX/LEH_BAPISF12 for '/SAPTRX/CODE_MAPPING', I don't see City, State is being populated into location structures. Basically the location info is copied into location structures from Header structure which was built in /SAPTRX/LEH_BAPISF25.
Best if SAP team can take a look.
FYI: I am looking at the code in EM9.2
Thanks,
Vishnu
Hi Vishnu,
I debugged now and see that PERFORM get_add_data CHANGING int_codes is executing with same data with ADD_LOC_DATA = 'X'
The line number 91 executes and then line number 94 checks IF add_loc_data = 'X' and perform get_add_data.
It is fetching address now.
You can check and let me know.
Regards
GGOPII
Hi Vishnu,
1. First you need to configure Sender-Dependent Location Mapping.
2. Go to functional module /SAPTRX/CODE_MAPPING
3. Manually enter below config data and ADD_LOC_DATA = 'X'.
4. Execute then you can see the code goes to line number 91 and then it fetches address which I was given in previous.
Regards
GGOPII
User | Count |
---|---|
13 | |
4 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.