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

parameter option

Former Member
0 Likes
859

hi,

I have created a parameter field (preferred/notpreferred) and i have created a list box for that .i have given values in the list box as preferred,not preferred and blank.in the output i can see the field name as preferred/not preferred .but the values are displayed as either 'P' or 'N'.How can i see the values displayed in full text?

Regards,

Hema.

7 REPLIES 7
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
816

Hi,

Give the VISIBLE LENGTH as more than the field length.

Regards,

Sesh

Read only

0 Likes
816

Hi,

I gave the visible length more than the field length.But it is displaying only the first letter ie 'P' in the output.

Regards,

Hema

Read only

0 Likes
816

Hi,

Hoe are you supplying the values to the DROPDOWN

If yo uare using VRM thing then make sure you have given the KEY's and VALUES in a proper way. What I mean is make sure you are passing Preferred etc in VALUE not in KEY.

Regards,

Sesh

Read only

Former Member
0 Likes
816

Hi

See the sample program and do accordingly

TYPE-POOLS : vrm. "Value Request Manager

PARAMETERS: p_test AS LISTBOX VISIBLE LENGTH 20 OBLIGATORY.

INITIALIZATION.

PERFORM f4_value_request.

START-OF-SELECTION.

WRITE P_TEST.

&----


*& Form f4_value_request

&----


  • text

----


FORM f4_value_request.

DATA: l_name TYPE vrm_id,

li_list TYPE vrm_values,

l_value LIKE LINE OF li_list.

l_value-key = '1'.

l_value-text = 'Value 1'.

APPEND l_value TO li_list.

CLEAR l_value.

l_value-key = '2'.

l_value-text = 'Value 2'.

APPEND l_value TO li_list.

CLEAR l_value.

l_value-key = '3'.

l_value-text = 'Value 3'.

APPEND l_value TO li_list.

CLEAR l_value.

l_value-key = '4'.

l_value-text = 'Value 4'.

APPEND l_value TO li_list.

CLEAR l_value.

l_name = 'P_TEST'.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

id = l_name

values = li_list

EXCEPTIONS

id_illegal_name = 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.

ENDIF.

ENDFORM. " f4_value_request

Reward points for useful Answers

Regards

Anji

Read only

Former Member
0 Likes
816

Dynamic formatting of the input field of the parameter p_dyn. On the selection screen, a three-digit input field with the input help for the column carrid in the database table spfli is displayed. If the parameter does not have a selection text, the text "Airline Carrier" is displayed in the output field.

Example code :


DATA comp TYPE c LENGTH 60. 

PARAMETERS p_dyn LIKE (comp).

reward points if it is usefull ..

Girish

Read only

Former Member
0 Likes
816

use this sample -code type--->

TYPE-POOLS : VRM.

DATA: param TYPE vrm_id,

values TYPE vrm_values,

value LIKE LINE OF values.

PARAMETERS: p_name(10) AS LISTBOX VISIBLE LENGTH 10,

ZOLDCUST like ZBHATAB-OLDCUSTOMER.

AT SELECTION-SCREEN OUTPUT.

param = 'P_NAME'.

value-key = '1'.

value-text = 'BHANU'.

APPEND value TO values.

value-key = '2'.

value-text = 'ABINESH'.

APPEND value TO values.

value-key = '3'.

value-text = 'SUDEEP'.

APPEND value TO values.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING id = param

values = values.

hope this can be helful

thankx

bhanu

Read only

0 Likes
816

Hi,

Still i have the same problem.Can anyone help me solve this problem?

Regards,

Hema