Skip to Content

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

Jul 19, 2017 at 05:36 PM


avatar image
Former Member

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.

capture.png (43.8 kB)
capture1.png (167.4 kB)
capture3.png (40.8 kB)
capture4.png (85.9 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Raymond Giuseppi
Jul 20, 2017 at 06: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)

Show 2 Share
10 |10000 characters needed characters left characters exceeded

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

Former Member

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.