Question:
I need to change the value of a characteristic through a user exit (sem-bps), but apparently you cannot change the values without first moving data into an internal table. This is however quite tricky, as the table (xth_data) delivering the information seems to be defined dynamically.
Can anyone help me out there by providing a sample code for this, especially for the definition of the internal table.
Thanks,
TBR
Answer:
The structure of the xth_data actually depends on the structure of your SEM context. This structure is defined in the DDIC with a name like /1sem/_ys_data_nnnzzzzzz (where nnn is the client of your system and zzzzzz the name of your context).
Thus you can do something like :
DATA:
ls1_data TYPE /1sem/_ys_data_120ztpc01.
LOOP AT xth_data INTO ls1_data.
...
Answer:
Thanks! I will give it a try.
Answer:
hy TBR,
which user-exit are you using?
I have the same problem when I try to insert/modify a value from a manual layout...
thanks in advance