TYPES:
BEGIN OF TY_VBAP,
VBELN TYPE VBELN_VA,
POSNR TYPE POSNR_VA,
MATNR TYPE MATNR,
MATWA TYPE MATWA,
PMATN TYPE PMATN,
CHARG TYPE CHARG_D,
MATKL TYPE MATKL,
ARKTX TYPE ARKTX,
PSTYV TYPE PSTYV,
POSAR TYPE POSAR,
LFREL TYPE LFREL_AP,
END OF TY_VBAP.
DATA: IT_VBAP TYPE TABLE OF TY_VBAP.
FIELD-SYMBOLS: <FS_VBAP> TYPE TY_VBAP.
SELECT
VBELN
POSNR
MATNR
MATWA
PMATN
CHARG
MATKL
ARKTX
PSTYV
POSAR
LFREL
FROM VBAP
INTO TABLE IT_VBAP
UP TO 10 ROWS.
LOOP AT IT_VBAP ASSIGNING <FS_VBAP>.
IF SY-TABIX = 3.
<FS_VBAP>-VBELN = '1000110'.
EXIT.
ENDIF.
ENDLOOP.
Serkan AKKAVAK
Computer Engineer
ABAP Developer & SAP S/4 HANA Logistics Team Lead
Contact : serkurumsal@yandex.com
Social Plugin