on 01-03-2005 2:08 PM
Hi all,
i'm trying to transform an infospoke with BADI and i don't know how to access the fields from the IF_EX_OPENHUB_TRANSFORM~TRANSFORM method to manipulate them.
Can anyone give me some expample coding ?
thx in advance.
JP
You can find the example at transformation tab itself. Click on the information icon...
In the following implementation, a counter OHCOUNT is added to the extracted data of InfoSpoke MYSPOKE. To do this, the field OHCOUNT was added to the target structure /BIC/CZMYSPOKE in the DataDictionary.
method if_ex_openhub_transform~transform .
data: l_count type sy-tabix,
l_s_data_in type /bic/cymyspoke,
l_s_data_out type /bic/czmyspoke.
data l_dummy.
message i899(rsbo) with 'exit started' into l_dummy.
i_r_log->add_sy_message( ).
clear e_t_data_out.
loop at i_t_data_in into l_s_data_in.
move-corresponding l_s_data_in to l_s_data_out.
l_s_data_out-ohcount = sy-tabix.
insert l_s_data_out into table e_t_data_out.
endloop.
message i899(rsbo) with 'exit finished' into l_dummy.
i_r_log->add_sy_message( ).
endmethod.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.