...
data: m_p(16) type p.
data: mo_type type ref to cl_abap_elemdescr.
data: m_format type cabn-atfor.
data: m_currency type rctmv-waers.
data: m_atinn type api_vali-atinn.
data: m_objectkey type bapi1003_key-object. ...
...
data: m_p(16) type p.
data: mo_type type ref to cl_abap_elemdescr.
data: m_format type cabn-atfor.
data: m_currency type rctmv-waers.
if c_data is initial.
raise no_data_to_change. ...
...
type any,
type api_vali.
data: m_p(16) type p.
data: mo_type type ref to cl_abap_elemdescr.
data: m_format type cabn-atfor.
data: m_currency type rctmv-waers. ...
... change the structure of your configuration table. Dynamic way when done once then doesn't have to be redesign as I will use cl_abap_elemdescr and cl_abap_structdescr to get key fields. Ok, firstly ...
...
data: mo_type type ref to cl_abap_elemdescr.
data: m_p(16) type p.
data: m_date type sy-datum.
data: m_time type sy-uzeit.
"check if object table was supplied
if i_objecttable is initial. ...
... then I will use FM BAPI_CHARACT_GETDETAIL to read the characteristics and in each step I'll be using classes cl_abap_elemdescr, cl_abap_structdescr and cl_abap_tabledescr to create the structure I ...