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

Text in listbox

Former Member
0 Likes
1,315

hi guys i want to dispaly some text like this 'Find in Archive', 'Search in System',

in dropdown list box i ahve taken in the internal table 'it_archive' and pass this internal table in FM CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'...

but when am excuting the text is not displaying in the dropdown listbox.. plz any one help me on this its Urzent

DATA: BEGIN OF it_archive occurs 0,

arc(16) TYPE C VALUE 'Find in Archive',

sys(18) TYPE C VALUE 'Search in System',

END OF it_archive.

hi guys i want to dispaly some text like this 'Find in Archive', 'Search in System',

in dropdown list box i ahve taken in the internal table 'it_archive' and pass this internal table in FM CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'...

but when am excuting the text is not displaying in the dropdown listbox.. plz any one help me on this its Urzent

DATA: BEGIN OF it_archive occurs 0,

arc(16) TYPE C VALUE 'Find in Archive',

sys(18) TYPE C VALUE 'Search in System',

END OF it_archive.

6 REPLIES 6
Read only

Former Member
0 Likes
1,155

Hi,

Look at the Program

REPORT ZLIST.

TYPE-POOLS: VRM.

DATA: NAME  TYPE VRM_ID,
      LIST  TYPE VRM_VALUES,
      VALUE LIKE LINE OF LIST.

PARAMETERS: PS_PARM(10) AS LISTBOX VISIBLE LENGTH 10.

AT SELECTION-SCREEN OUTPUT.

NAME = 'PS_PARM'.
VALUE-KEY = '1'.

VALUE-TEXT = 'Find in Archive'.
APPEND VALUE TO LIST. VALUE-KEY = '2'.

VALUE-TEXT = 'Search in System'.
APPEND VALUE TO LIST.

CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.

START-OF-SELECTION.
WRITE: / 'PARAMETER:', PS_PARM.

Regards

Sudheer

Read only

0 Likes
1,155

I want in Module pool .... i have created a dropdown list box i want to show some text in that.... one is defualt and another one in the list how can i do......

Read only

0 Likes
1,155

Write the same code in the PBO of your screen.

PS_PARM is the name of the screen field

NAME = 'PS_PARM'.

VALUE-KEY = 'Find in Archive'.
APPEND VALUE TO LIST.

VALUE-KEY = 'Search in System'.
APPEND VALUE TO LIST.
 
CALL FUNCTION 'VRM_SET_VALUES' 
     EXPORTING ID = NAME 
     VALUES = LIST.
CLEAR LIST.

Regards

Gopi

Read only

0 Likes
1,155

Murali ,

You can use both the function modules for displaying values in a list box .and you can use them in the modulepool programs .

'F4IF_INT_TABLE_VALUE_REQUEST'

'VRM_SET_VALUES'

Do remember to code it in the PBO part of the flow logic of your screen .

Regards,

Ranjita

Read only

former_member196299
Active Contributor
0 Likes
1,155

hi Murali,

Provide the int table name in the table variable .

Use it like this :

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'give the name of field as displayed in the screen '

value_org = 'S'

display = 'F'

DYNPROFIELD = 'screen field name '

  • IMPORTING

  • USER_RESET = ''

TABLES

value_tab = it_archive

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.

IF sy-subrc <> 0.

...

ENDIF.

Revert if further help needed !

Regards,

Ranjita

Read only

former_member671224
Participant
0 Likes
1,155

Hi check this link,

Regards,

amal