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: 

Add line problem

Former Member
0 Kudos

Hi,

The below code using to Insert line of table control .

CODE:

IF temp_okcode NE 'DISP'. "indicates display mode

READ TABLE itab2 INDEX 1.

IF sy-subrc = 0.

  • Clear:itab2.

CLEAR: itab2-nubag , itab2-wtbag .

APPEND itab2. "To itab_WA2. "-vbeln,

READ TABLE itab_wa2 INDEX 1.

IF sy-subrc = 0.

  • CLEAR: itab_wa2-nubag , itab_wa2-wtbag .

APPEND ITAB_wa2.

IF itab2[] is initial.

  • MOVE: itab_wa2-vbeln TO itab2-vbeln.

ENDIF.

ENDIF.

ENDIF.

ENDIF.

, line is inserded.

But my problem , enter two field fill the value in two line .

last line data up the line data is change.

Eg:

vbeln posnr nubag wtbag

1000 10 1 25

1000 10 2 30

the above value fill and enter key press.

the below details display

vbeln posnr nubag wtbag

1000 10 2 30

1000 10 2 30

the table value one is occur other is 0 value.

how is slove this problem Advise me.

By,

Jeevan.

1 REPLY 1

Former Member
0 Kudos

ANS