Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

IDOC_DATA_MAPPER

Former Member
0 Likes
4,177

Hi at all,

who can help me to manipulate idocs with the BADI: IDOC_DATA_MAPPER or who knows an useful doc.

I´ve tried the following code to mod the company code. But nothing happens.

DATA: _data TYPE edid4,

wa_maptab TYPE IDOC_CHANG.

CHECK sy-mandt EQ '508'.

LOOP AT data INTO _data.

CASE _data-segnam.

WHEN 'E1BPACHE06' OR 'E1BPACGL06'.

CLEAR wa_maptab.

wa_maptab-segnum = _data-segnum.

wa_maptab-feldname = 'COMP_CODE'.

wa_maptab-value = '0001'.

wa_maptab-SAVE_TYPE = 'X'.

APPEND wa_maptab TO mapping_tab.

CLEAR wa_maptab.

wa_maptab-segnum = _data-segnum.

wa_maptab-feldname = 'TAX_COMP_CODE'.

wa_maptab-value = '0001'.

wa_maptab-SAVE_TYPE = 'X'.

APPEND wa_maptab TO mapping_tab.

MOVE 'X' TO have_to_change.

ENDCASE.

ENDLOOP.

best regards

Thorsten

2 REPLIES 2
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,839

Hi ,

is it getting triggered ?

Just have a look at code in include LEDI1F09 routine call_badi , you will get some idea

Edited by: Keshav.T on Apr 6, 2010 9:03 PM

Read only

0 Likes
1,839

Hi,

thx for your info. It was very helpful.

br,

Thorsrten