‎2008 Feb 11 10:33 AM
Hi
We use an extion of the mara. Therfore if we save own data with BAPI_MATRIAL_SAVEDATA we have to fill the EXTENSIONIN struktur like the code example 1.
This will not longer be supported
After a structure enhancement, assignment or comparison may no longer be permitted. syntactically incorrect.
How could we fill the exteionstructure unicode cofirm ?
Best Regards
Gerhard
Code-example 1:
DATA:
wa_zmara TYPE bapi_te_mara,
wa_zmarax TYPE bapi_te_marax,
t_ext TYPE STANDARD TABLE OF bapiparex,
t_extx TYPE STANDARD TABLE OF bapiparexx,
value(960),
valuex(960).
value = wa_zmara.
wa_ext-structure = 'BAPI_TE_MARA'.
wa_ext-valuepart1 = value(240).
wa_ext-valuepart2 = value+240(240).
wa_ext-valuepart3 = value+480(240).
wa_ext-valuepart4 = value+720(240).
APPEND wa_ext TO t_ext.
valuex = wa_zmarax.
wa_extx-structure = 'BAPI_TE_MARAX'.
wa_extx-valuepart1 = valuex(240).
wa_extx-valuepart2 = valuex+240(240).
wa_extx-valuepart3 = valuex+480(240).
wa_extx-valuepart4 = valuex+720(240).
APPEND wa_extx TO t_extx.
‎2008 Feb 11 3:46 PM
Hi,
Try this way
class cl_abap_container_utilities definition load.
data: wa_ BAPIPAREX type BAPIPAREX.
call method cl_abap_container_utilities=>read_container_c
exporting
im_container = value
importing
ex_value = wa_BAPIPAREX
exceptions
illegal_parameter_type = 1
others = 2.
APPEND wa_BAPIPAREX TO t_ext.
a®
‎2008 Feb 12 11:39 AM
‎2016 Jun 07 5:10 AM
This answer is perfect. Kindly mark this thread as answered, so that it will be helpful for others.