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

internal table

Former Member
0 Likes
598

Hi,

This is not modifying the internal table. Required field is changed in work area.

GT_EKBE_E[] = GT_EKBE[].

LOOP AT GT_EKBE_E.

IF GT_EKBE_E-BEWTP = 'E' OR GT_EKBE_E-BEWTP = 'D'.

READ TABLE GT_EKBE WITH KEY LFBNR = GT_EKBE_E-BELNR BEWTP = 'Q'.

IF SY-SUBRC EQ 0.

IF GT_EKBE_E-BEWTP = 'D'.

READ TABLE GT_EKBE WITH KEY LFBNR = GT_EKBE_E-BELNR

BEWTP = 'E'.

IF SY-SUBRC = 0.

MOVE GT_EKBE-BELNR TO LV_BELNR.

READ TABLE GT_EKBE WITH KEY LFBNR = GT_EKBE_E-BELNR BEWTP = 'Q'.

IF SY-SUBRC = 0.

GT_EKBE-LFBNR = LV_BELNR.

MODIFY TABLE GT_EKBE.

ENDIF.

ENDIF.

ENDIF.

DELETE GT_EKBE WHERE LFBNR = GT_EKBE_E-BELNR AND BEWTP = 'E'.

ENDIF.

ENDIF.

ENDLOOP.

Regards

Ram

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
566

hi

use modify table GT_EKBE transporting GT_EKBE-LFBNR .

regards

aswin.

5 REPLIES 5
Read only

Former Member
0 Likes
567

hi

use modify table GT_EKBE transporting GT_EKBE-LFBNR .

regards

aswin.

Read only

0 Likes
566

Aswin - It is not working.

Read only

0 Likes
566

Your code looks OK. What exactly is the problem?

Rob

Read only

0 Likes
566

Try......



GT_EKBE-LFBNR = LV_BELNR.
MODIFY GT_EKBE index sy-tabix.

Regards,

Rich Heilman

Read only

0 Likes
566

That looks like it. Guess I've been off too long

Rob