07-19-2017 6:36 PM
Hi All,
My requirement is like whenever we do changes in the values of the table, i need to update the change log in CDHDR and CDPOS tables for those fields, which i am doing with creating change log document using SCDO, that's all working fine but my main question is.......
Whenever we change any values in the table via TMG and click on save button, event 02 (event before save ) will e triggered there i am doing some logic, but the amount fields in the table are captured as Some junk data in the table TOTAL, which is causing an error in getting old and new data from the table.
please find the below screen shots for the same.
i did all database adjustments and all still it's coming like that only.
07-20-2017 7:35 AM
This is no "junk" data but just packed numeric fields. You have to map TOTAL records to actual structure (Read documentation: Internal Table TOTAL, Converting the Data Containers TOTAL and EXTRACT)
07-20-2017 7:35 AM
This is no "junk" data but just packed numeric fields. You have to map TOTAL records to actual structure (Read documentation: Internal Table TOTAL, Converting the Data Containers TOTAL and EXTRACT)
07-20-2017 7:44 AM
ie. What Raymond is saying is your input structure is incorrect.
07-21-2017 11:16 AM
Thanks for answers,
i got resolution by using 'ASSIGN COMPONENT' statement inside the TOTAL table loop.
ASSIGN COMPONENT sy-index OF STRUCTURE <vim_total_struc> TO FIELD-SYMBOL(<lf_opbel>).
<vim_total_struc> will be having all the values properly.
Regards,
Sunil.