DATA: v_pos
TYPEi.
DATA: wa_fieldcat
TYPE lvc_s_fcat ,
i_fieldcat
TYPE lvc_t_fcat ,
i_layout
TYPE lvc_s_layo .
DATA:GT_FIELDCAT
TYPE LVC_T_FCAT
WITHHEADERLINE.
TYPES:
BEGINOF TY_ITAB,
DATANUM
TYPE ZRFC_STATUS_BACK-DATANUM,
EBELN
TYPE ZRFC_STATUS_BACK-EBELN,
EBELP
TYPE ZRFC_STATUS_BACK-EBELP,
MATNR
TYPE ZRFC_STATUS_BACK-MATNR,
TXZ01
TYPE ZRFC_STATUS_BACK-TXZ01,
LIFNR
TYPE ZRFC_STATUS_BACK-LIFNR,
PRDORDER
TYPE ZRFC_STATUS_BACK-PRDORDER,
MENGE
TYPE ZRFC_STATUS_BACK-MENGE,
SHNGE
TYPE ZRFC_STATUS_BACK-MENGE,
MEINS
TYPE ZRFC_STATUS_BACK-MEINS,
BEDAT1
TYPE ZRFC_STATUS_BACK-BEDAT1,
BEDAT2
TYPE ZRFC_STATUS_BACK-BEDAT2,
TYPETYPE ZRFC_STATUS_BACK-
TYPE,
TYPEM
TYPE ZRFC_STATUS_BACK-TYPEM,
BEDAT3
TYPE ZRFC_STATUS_BACK-BEDAT3,
RDATUM
TYPE ZRFC_STATUS_BACK-RDATUM,
RCTIME
TYPE ZRFC_STATUS_BACK-RCTIME,
ENDOF TY_ITAB.
DATA:ITAB
TYPETABLEOF TY_ITAB
WITHHEADERLINE.
""选择屏幕 SELECTION-
SCREENBEGINOFBLOCK MAIN
WITHFRAMETITLETEXT-
001.
SELECT-OPTIONS:S_LIFNR
FOR ZRFC_STATUS_BACK-LIFNR OBLIGATORY .
*& Form F_SELECT_DATA *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* FORM F_SELECT_DATA.
"SELECT * " INTO CORRESPONDING FIELDS OF TABLE ITAB "FROM ZRFC_STATUS_BACK INNER JOIN EKPO " ON ZRFC_STATUS_BACK-EBELN = EKPO-EBELN.
SELECT *
INTO CORRESPONDING
FIELDSOFTABLE ITAB
FROM ZRFC_STATUS_BACK
WHERE LIFNR
IN S_LIFNR.
LOOPAT ITAB.
SELECTSINGLE MATNR
MENGE
MEINS
INTO (ITAB-MATNR,ITAB-MENGE,ITAB-MEINS)
FROM EKPO
WHERE EBELN = ITAB-EBELN
AND EBELP = ITAB-EBELP.
MODIFY ITAB.
CLEAR ITAB..
ENDLOOP.
DELETE ITAB
WHERE LIFNR
NOTIN S_LIFNR.
ENDFORM.
"F_SELECT_DATA
*&---------------------------------------------------------------------* *& Form F_DISPLAY *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* FORM F_DISPLAY.