2007 Jun 13 7:15 AM
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.
2007 Jun 13 7:22 AM
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
2007 Jun 13 7:25 AM
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......
2007 Jun 13 7:31 AM
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
2007 Jun 13 7:43 AM
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
2007 Jun 13 7:24 AM
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
2007 Jun 13 6:15 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |