Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Amount field(DMBTR) value is captured as junk data in the TOTAL table of the TMG events SAP ABAP

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor

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)

3 REPLIES 3

raymond_giuseppi
Active Contributor

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)

0 Kudos

ie. What Raymond is saying is your input structure is incorrect.

0 Kudos

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.