Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Popup check box screen for fields selection using user structure

Former Member
0 Likes
892

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
748

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

5 REPLIES 5
Read only

LucianoBentiveg
Active Contributor
0 Likes
748

Try FM REUSE_ALV_POPUP_TO_SELECT.

Regards.

Read only

Former Member
0 Likes
749

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

Read only

0 Likes
748

is this code useful for selecting ( checking) multiple fields

Read only

0 Likes
748

use FM

RS_DATABROWSE_FIELDSELECT

Regards

Raja

Read only

Former Member
0 Likes
748

Hi Ashok,

try with searching an FM having keywords "popuptablediaplay"