Skip to Content

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

displaying other fields on reference of a single field in selectin screen

REPORT YOOOOP .

TABLES : MARA .

DATA : ITAB LIKE MARA OCCURS 0 WITH HEADER LINE .

DATA : ITAB2 LIKE MARA OCCURS 0 WITH HEADER LINE .

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME

TITLE T1.

PARAMETERS:

P_MATNR TYPE MARA-MATNR,

P_MBRSH LIKE MARA-MBRSH,

P_MTART LIKE MARA-MTART,

P_MEINS LIKE MARA-MEINS.

SELECTION-SCREEN PUSHBUTTON /1(20) LB1

USER-COMMAND PB1.

SELECTION-SCREEN

END OF BLOCK B1.

LB1 = 'DISPLAY'.

*SELECT * FROM MARA INTO ITAB .

*APPEND ITAB.

*ENDSELECT.

CASE SY-UCOMM.

WHEN 'PB1' .

SELECT SINGLE * FROM MARA INTO ITAB2 WHERE P_MATNR = MARA-MATNR.

MOVE ITAB-MBRSH TO P_MBRSH.

MOVE ITAB-MTART TO P_MTART.

ENDCASE .

i want to display the remaining feilds in selection screen when we enter p_matnr field .please i want urgent

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