Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Add line problem

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.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question