Skip to Content
author's profile photo Former Member
Former Member

parameter option

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 04, 2007 at 12:44 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 04, 2007 at 12:39 PM

    Hi,

    Give the VISIBLE LENGTH as more than the field length.

    Regards,

    Sesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 04, 2007 at 12:43 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 04, 2007 at 12:55 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.