‎2006 May 08 1:11 PM
Hi all,
could you please help how can i get the popup screen in the program when the user wants to choose the wanted fields.
for ex: in the table after clicking the contents display the selection fields will be displayed. there in setting -> list format->choose, we can check the fields wanted to be displayed. The same functionality i needed with my own structure. can any one help me in this, it is urgent.
Thankyou.
‎2006 May 08 1:20 PM
Hai Ashok
Check the following Code
S_FIELDS-TABNAME = 'VBAP'.
S_FIELDS-FIELDNAME = 'ARKTX'.
S_FIELDS-VALUE = WC_VALUE.
APPEND S_FIELDS.
CALL FUNCTION 'POPUP_GET_VALUES'
EXPORTING
NO_VALUE_CHECK = ' '
POPUP_TITLE = 'Locate Material'
START_COLUMN = '5'
START_ROW = '5'
IMPORTING
RETURNCODE =
TABLES
FIELDS = S_FIELDS
EXCEPTIONS
ERROR_IN_FIELDS = 1
OTHERS = 2
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
READ TABLE S_FIELDS INDEX 1.
WC_VALUE = S_FIELDS-VALUE.
ENDIF.
Thanks & regards
Srenivasulu P
‎2006 May 08 1:15 PM
‎2006 May 08 1:20 PM
Hai Ashok
Check the following Code
S_FIELDS-TABNAME = 'VBAP'.
S_FIELDS-FIELDNAME = 'ARKTX'.
S_FIELDS-VALUE = WC_VALUE.
APPEND S_FIELDS.
CALL FUNCTION 'POPUP_GET_VALUES'
EXPORTING
NO_VALUE_CHECK = ' '
POPUP_TITLE = 'Locate Material'
START_COLUMN = '5'
START_ROW = '5'
IMPORTING
RETURNCODE =
TABLES
FIELDS = S_FIELDS
EXCEPTIONS
ERROR_IN_FIELDS = 1
OTHERS = 2
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
READ TABLE S_FIELDS INDEX 1.
WC_VALUE = S_FIELDS-VALUE.
ENDIF.
Thanks & regards
Srenivasulu P
‎2006 May 08 1:25 PM
‎2006 May 08 1:48 PM
‎2006 May 08 1:22 PM
Hi Ashok,
try with searching an FM having keywords "popuptablediaplay"