Skip to Content
0
Former Member
Mar 01, 2007 at 11:14 AM

Items in BDC

15 Views

Hi,

LOOP AT TB_DRUM_NO.

IF SY-TABIX GE 2.

PERFORM BDC_DYNPRO USING :

'X' '/CAB/SAPLCORU' '0100',

' ' 'BDC_OKCODE' '/00',

' ' VA_FIELD1 TB_DRUM_NO-J_2CTRNR,

' ' VA_FIELD2 TB_DRUM_NO-CHARG,

' ' '*/CAB/CSSK-MEINS' 'M'.

IDX = IDX + 1.

ENDIF.

ENDLOOP.

this is the code.and the logic here is that when the st-tabix is <b>GE</b> only then the BDC code must be executed.but here the is working only for the 2nd record.not working for the other records.

Please help

Thanks,

Supriya Manik.