Application Development and Automation 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: 
Read only

Problem with Table Maintenance Generator Events

PS_1978
Active Participant
0 Likes
412

Hi,

When i am trying to implement event 1 in Table Maintenance Generator, there are some junk values disaplyed in TOTAL table instead of actual values. Can some one help me to understand why the junk values are displayed instead of the actual ones and help me in getting rid of this problem?

Thanks,

Phani

3 REPLIES 3
Read only

Former Member
0 Likes
366

Hi,

Check with this link.

Regards,

Shamma

Read only

Former Member
Read only

0 Likes
366

Hi

I have Written a code you should take a look at it might help you

DATA wa_makt TYPE makt .

DATA: f_index LIKE sy-tabix. "Index to note the lines found

LOOP AT total.

IF <action> = 'N'.

READ TABLE extract WITH KEY <vim_xtotal_key>.

IF sy-subrc EQ 0.

f_index = sy-tabix.

ELSE.

CLEAR f_index.

ENDIF.

SELECT SINGLE * INTO wa_makt FROM makt WHERE matnr = total+3(18).

total+21(40) = wa_makt-maktx.

IF sy-subrc = 0.

MODIFY total.

CHECK f_index GT 0.

extract = total.

MODIFY extract INDEX f_index.

ENDIF.

ENDIF.

ENDLOOP.

Thanks