Selection screen descriptions

Hi all help me in the issue .
                   I am having Selection screen with the field sales order type when the user enter particular sales order type the description of the sales order type should come correspondig to the order type how to acheive the same
Thanks in advance

This should help:
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS p_vkorg TYPE vkorg.
SELECTION-SCREEN COMMENT 20(40) v_name.
SELECTION-SCREEN END OF LINE.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_vkorg.
  DATA: it_ret TYPE STANDARD TABLE OF ddshretval,
        wa_ret TYPE ddshretval,
        it_dynnr TYPE STANDARD TABLE OF dynpread,
        wa_dynnr TYPE dynpread.
  CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
      tabname           = `TVKO`
      fieldname         = `VKORG`
      dynpprog          = sy-repid
      dynpnr            = sy-dynnr
      dynprofield       = `P_VKORG`
    TABLES
      return_tab        = it_ret
    EXCEPTIONS
      field_not_found   = 1
      no_help_for_field = 2
      inconsistent_help = 3
      no_values_found   = 4
      OTHERS            = 5.
  IF sy-subrc = 0.
    READ TABLE it_ret INTO wa_ret INDEX 1.
    CHECK sy-subrc = 0.
    p_vkorg = wa_ret-fieldval.
    SELECT SINGLE vtext FROM tvkot INTO v_name
      WHERE
      spras = sy-langu AND
      vkorg = p_vkorg.
    wa_dynnr-fieldname = `V_NAME`.
    wa_dynnr-fieldvalue = v_name.
    APPEND wa_dynnr TO it_dynnr.
    CALL FUNCTION 'DYNP_VALUES_UPDATE'
      EXPORTING
        dyname               = sy-repid
        dynumb               = sy-dynnr
      TABLES
        dynpfields           = it_dynnr
      EXCEPTIONS
        invalid_abapworkarea = 1
        invalid_dynprofield  = 2
        invalid_dynproname   = 3
        invalid_dynpronummer = 4
        invalid_request      = 5
        no_fielddescription  = 6
        undefind_error       = 7
        OTHERS               = 8.
    IF sy-subrc NE 0.
*     Can't help
    ENDIF.
  ENDIF.

Similar Messages

  • How to put selection screen Description in japanees character

    Hi,
    We want to put description of text element is in japanees charcter in a report.We logged in SAP with  japaanees language 'JA' and when we put japanees character in text element description and activate the report  it gives an information message **Language fix this system(EN) you can only updateu2019. Beacuse of this message japaanees charcter not saved while activation of program.
    Could you please sugest what to do in this case.
    Thanks
    Mohit

    HI,
    Go to GOTO-> Translator then maintain the ori.lang as EN and enter the Japenees char for the corresponding english text.
    Thanks and Regards,
    Bharani

  • Field description in selection screen

    Hello,
    Please help me by answering a silly question: what settings have to be done so that in the selection screen for a report the field description to appear instead of the technical field name?
    Regards,
    Ileana

    If it is for a report (a custom developed one i.e. starting with Y* or Z*), the ABAP developer needs to do the setting.
    (S)he needs to make the changes in SE38. Once in the ABAP Editor, Go To --> Text Elements --> Selection Texts and maintain the texts (and Activate).
    If it is for SE16 (Table Display), then the reply by SAP Enjoy is correct.
    If it is for a LIS (or any Information System) report, then the reply by PSantosh is correct.
    Hope this helps,
    Lakshman

  • Populating description field in selection-screen

    Hi Experts,
    My WD report has a selection-screen with select-options and parameters built using IF_WD_SELECT_OPTIONS.
    One of the select-options has a search help, but the value it returns is a guid, so I want to have a new read-only description field, populated with the description of the selected value, next to the input field for the guid.
    How can I do this?
    I tried adding a new read-only parameter field and populating it in WDDOMODIFYVIEW but I got a short dump when I tried to set the value, because the new field is not in the context of the component controller.
    Many thanks,        Ben

    Hi Ben,
    You will have to define the new field in the context and then programatically bind the value of the description field to this attribute.
    But ideally, you can have a structure, which the two fiels (guid & description), and define a search help which is mapped to the structure, then you do not need to do any programming, the description field should get populated automatically.
    Hope this helps.
    Regards
    Wenonah

  • How to change the description of a selection screen

    Hi , I created a selection screen with the description as 'Test' , now the program has grown real big . I want to change the desccription to something else as it shows at the top of the selection screen. Can this be done with out copying the program to a new progarm with a new description. I mean , is there a way to change the current description .
    Thank you .

    Hi
    in SE38 Enter the program name.
    Select the Radio button<b> Attributes.</b>
    Change the <b>Title </b>of the Program.
    This title will appear in the selection screen as well as the list by default.
    We can also set this TITLE dynamically using the command.
    SET TITLE-BAR 'T1'.  "double click on T1 and create (Activate) it.
    <b>reward if Helpful.</b>

  • Display description of query variable in selection screen

    Hi @ All.
    we have a query with a variable (..UVO_0currency_001D).
    In the selection screen of the query I see the technical name of the variable instead of the description "Currency".
    What and where I have to change to see the description of my variable?
    Thanks a lot!
    Stephan

    Hi,
    change the infoobjec property for that perticular infoobject at Multi provider if your Query is on Multiprovider. goto Change mode of multiprovider - > expand respective dimension -> right click ob perticulat infoobject - > select provider - specific properties of the infoobject. select disply ad key and text.
    hope this helps
    Regards,
    Daya Sagar

  • Need to populate description  beside its selection screen

    Hi
    I need to populate description of the following field beside its selection screen.
    can someone guide and help..
    for eg:
    If i enter 1 in the selection screen. its following description shd be populated next to it
    Kamlesh

    I tried working on ur logic.
    the error which I am getting is as follows:
    Kindly help me with the error.
    the name of the comment can be up to 8 character long. can u help me wht shd i put
    code is below
    selection-screen: begin of line,
                      comment 1(7) p_shift_desc,
                      position 33.
                    position 1(8) COMMENT p_shift_desc FOR FIELD P_shtim,
                     COMMENT 13(35) p_sht_de.
    parameters :      p_shtime TYPE tc37a-kaptprog OBLIGATORY.  " Shift
    selection-screen: comment 50(40) p_sht_desc,
                      END OF LINE.
    atselection this is the code written.
    tables : tc37t.
      DATA : lv_shift TYPE tc37t-kaptprog.
            lv_shiftd type tc37t-ktext.
      SELECT kaptprog
          UP TO 1 ROWS
        INTO lv_shift
        FROM tc37a
       WHERE kaptprog EQ p_shtime.
      ENDSELECT.
      IF sy-subrc NE 0.
        MESSAGE e034 WITH text-002 p_shtime text-003.
      ENDIF.
      IF NOT p_shtime IS INITIAL.
        SELECT SINGLE * FROM tc37t  WHERE spras = sy-langu AND kaptprog =
        p_shtime.
        IF sy-subrc = 0.
          p_shift_desc = tc37t-ktext.
        ENDIF.
      ENDIF.
    ENDFORM.                    " validate_shift

  • Select Option on Selection Screen with custom description

    Hi experts,
    I have used select options and some parameters on selection screen. But is displaying the only the field names i want to display the description instead of field name. Here is the screen
    Like instead S_ANSDT is Acquisition Value and instead of P_CPI is should be CPI and instead of P_TEST it will be like PROCESS.
    The code is like
    SELECT-OPTIONS:
       s_ansdt  FOR equi-ansdt.                                                     
    PARAMETERS: p_cpi(3) TYPE p DECIMALS 2,
                 p_test AS CHECKBOX DEFAULT 'X'.
    If any body have any idea please share it with me.
    Thanks,
    Avadhut

    Hello,
    You can give a description to your parameters and select options from menu Goto / Text elements / Selection texts.
    Óscar

  • Displaying 2 parameters with descriptions in same line of Selection-Screen

    Hi All,
    I want to know how can we display 2 parameters with descriptions in same line of Selection-Screen.
    Means in selection screen first we will give comment as
    <b>Material no</b> then <b>parameter box as MARA-MATNR</b>, In the same line description as <b>Plant</b> then <b>parameter box as T001W-WERKS</b>.
    Material No - BOX - Plant - BOX.
    Can any body tell me how can we do it.
    Thanks in advance.
    Thanks & Regards,
    Rayeez.

    Hi shaik,
    1. define two TEXT-SYMBOLS :
    001     Material
    002     Plant
    and Activate
    2. use this code (just copy paste)
    REPORT abc LINE-SIZE 80.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(10) text-001 FOR FIELD p_matnr.
    PARAMETERS : p_matnr TYPE mara-matnr.
    SELECTION-SCREEN COMMENT 35(10)  text-002 FOR FIELD p_werks.
    PARAMETERS: p_werks TYPE t001w-werks.
    SELECTION-SCREEN END OF LINE.
    regards,
    amit m.

  • Description from Database into Selection Screen

    if we input a field using parameter ( eg : give an employee id) , How can appear the description (that already given in Database)
    of the employee id .
    pleas help me

    User select single command in at selection screen event .
    For ex:-
    Parameters : ecode,
                         Ename.
    At selection-screen
    Select single employee_name into ename from table where employee_code = ecode.
    Regards,
    Prajwal K.

  • Displaying Variables values with Text also in the selection screen of repor

    hai
    I have one InfoObject ZPLANT .When i try to excute the report then im getting only the Values of ZPLANT(not Text of those values) .Like below
    ZPLANT :-
    101 -
    (im getting like this)
    101 London Plant ( i want like this ,when i try to excute the report).
    Please tell me how to do .
    rizwan

    Yes kamaljeet ,
    When we press F4 , then we will gwt some values .
    I want those values with description also ..
    Pls tell me how can i get those F4 values with text in the selection screen of report .
    i ll assing the points
    rizwan

  • From ALV output list to selection screen

    Hi,
    I created one ALV report.
    After executing the program, it displays an ALV list.
    When I click on the back/exit/cancel buttons on the screen, it should take me to the selection screen.
    But that is not happening. it is taking to one screen which shows the report heading. IF i click back/cancel/exit buttons in this screen, it is taking me to the selection screen.
    I checked the program for any write statement, but therre are no write statements.
    Even i tried to remove the end-of-selection event in the program. but not working.
    Can any one help me on this how to overcome this issue.
    Thank you.
    Kumar

    hi check this example...
    REPORT zalv_sel_screen .TABLES: mara.DATA: BEGIN OF i_alv OCCURS 0,
          matnr TYPE mara-matnr,
          mtart TYPE mara-mtart,
          matkl TYPE mara-matkl,
          groes TYPE mara-groes,
          maktx TYPE makt-maktx,
          END OF i_alv.DATA: alv_container  TYPE REF TO cl_gui_docking_container.
    DATA: alv_grid       TYPE REF TO cl_gui_alv_grid.
    DATA: layout    TYPE lvc_s_layo.
    DATA: fieldcat  TYPE lvc_t_fcat.PARAMETERS: p_check.INITIALIZATION.  PERFORM get_data.AT SELECTION-SCREEN OUTPUT.  DATA: variant TYPE  disvariant.
      DATA: repid TYPE sy-repid.  repid = sy-repid.  variant-report = sy-repid.
      variant-username = sy-uname.  layout-zebra = 'X'.
      layout-edit_mode = 'X'.  CHECK alv_container IS INITIAL.  CREATE OBJECT alv_container
                  EXPORTING repid     = repid
                            dynnr     = sy-dynnr
                            side      = alv_container->dock_at_left
                            extension = 1500.  CREATE OBJECT alv_grid
             EXPORTING
                   i_parent          =  alv_container.*  ALV Specific. Data selection.
    Populate Field Catalog
      PERFORM get_fieldcatalog.  CALL METHOD alv_grid->set_table_for_first_display
        EXPORTING
          is_layout        = layout
          is_variant       = variant
          i_save           = 'U'
          i_structure_name = 'I_ALV'
        CHANGING
          it_outtab        = i_alv[]
          it_fieldcatalog  = fieldcat[].
    START-OF-SELECTION.
    FORM GET_DATA
    FORM get_data.  SELECT * INTO CORRESPONDING FIELDS OF TABLE i_alv
            FROM mara
              INNER JOIN makt
                ON maramatnr = maktmatnr
                       UP TO 100 ROWS
                   WHERE makt~spras = sy-langu.  SORT i_alv ASCENDING BY matnr.ENDFORM.                    "get_data***************************************************************
         Form  Get_Fieldcatalog - Set Up Columns/Headers
    FORM get_fieldcatalog.  DATA: ls_fcat TYPE lvc_s_fcat.
      REFRESH: fieldcat.  CLEAR: ls_fcat.
      ls_fcat-reptext    = 'Material Number'.
      ls_fcat-fieldname  = 'MATNR'.
      ls_fcat-ref_table  = 'I_ALV'.
      ls_fcat-outputlen  = '18'.
      ls_fcat-fix_column = 'X'.
      ls_fcat-key        = 'X'.
      ls_fcat-col_pos    = '1'.
      APPEND ls_fcat TO fieldcat.  CLEAR: ls_fcat.
      ls_fcat-reptext    = 'Material Type'.
      ls_fcat-fieldname  = 'MTART'.
      ls_fcat-ref_table  = 'I_ALV'.
      ls_fcat-outputlen  = '10'.
      ls_fcat-fix_column = 'X'.
      ls_fcat-key        = 'X'.
      ls_fcat-col_pos    = '2'.
      APPEND ls_fcat TO fieldcat.  CLEAR: ls_fcat.
      ls_fcat-reptext    = 'Material Group'.
      ls_fcat-fieldname  = 'MATKL'.
      ls_fcat-ref_table  = 'I_ALV'.
      ls_fcat-outputlen  = '12'.
      ls_fcat-col_pos    = '3'.
      APPEND ls_fcat TO fieldcat.  CLEAR: ls_fcat.
      ls_fcat-reptext    = 'Size'.
      ls_fcat-fieldname  = 'GROES'.
      ls_fcat-ref_table  = 'I_ALV'.
      ls_fcat-outputlen  = '30'.  ls_fcat-col_pos    = '4'.
      APPEND ls_fcat TO fieldcat.  CLEAR: ls_fcat.
      ls_fcat-reptext    = 'Material Description'.
      ls_fcat-fieldname  = 'MAKTX'.
      ls_fcat-ref_table  = 'I_ALV'.
      ls_fcat-outputlen  = '40'.  ls_fcat-col_pos    = '5'.
      APPEND ls_fcat TO fieldcat.ENDFORM.                    "get_fieldcatalog
    regards,
    venkat

  • Fetching data from a table & displaying it as checkbox in selection screen

    I have a database table which contains report name & report description as fields.based on the number of rows of data present in the table i have to display check box for each entry & the corresponding controls in the selection-screen.
    I got answers like:
    1.Declaring the checkboxes & hiding the same in runtime using user-command,which is not needed...
    2.Declaring the checkbox in screen painter using function code & calling the same,where i need a clear explanation...
    Is there any other method other than this plz let me know...
    Reply is most urgent...

    Hi Vijay...
    The selection screen should look like...
    cb1 -
    variant1 -
    icb1 -
    date1 -
    time1
    cb2 -
    variant2 -
    icb2 -
    date2 -
    time2
    where...
    cb1 - checkbox which indicates the first report(YRTEST) in the table...
    variant1 - textbox for variant which has a help,on clicking should display all the variants of YRTEST report...
    icb1 - checkbox which indicates the immediate background processing...
    date1 - date on which the job should be scheduled...
    time1 - time on which the job should be scheduled...
    If icb1 is clicked then date1 & time1 should not be allowed to enter & vice-versa...
    cb2 - checkbox which indicates the second report(YRTEST1) in the table...
    variant2 - textbox for variant which has a help,on clicking should display all the variants of YRTEST1 report...
    icb2 - checkbox which indicates the immediate background processing...
    date2 - date on which the job should be scheduled...
    time2 - time on which the job should be scheduled...
    If icb2 is clicked then date2 & time2 should not be allowed to enter & vice-versa...
    Its not like what u said...(Based on user entered data fetch the data of report(variant,date,time) and you can submit the data to background job as incase of single record by looping the data)
    Because we have only ReportName,ReportDescription as fields in the table & not variant,date,time...The variant,date,time are all entered in the selection-screen only from which the background job is scheduled...
    I hope the requirement is more clearer...

  • At selection screen output dialog

    how i can make
    i have customer i want when i click enter to get the description.
    the program is dialog , i get always err,and when i put in PBO or PAI.

    Hi Little ,
      What i understand is that you are working on a report and not a module pool.
    If it is a report then you will first have to modify the selection screen , go to SE51 , put in the program name and the screen number ( which is generally 1000) , on the screen add a new I/O box which is for Output only let it be KNA1-NAME1 .
    Now you need to write the code in the event AT SELECTION-SCREEN OUTPUT .
    Here is the sample code for the same
    tables : kna1.
    parameter : kunnr type kna1-kunnr.
    at selection-screen output.
    if not kunnr is initial.
      select single name1 into kna1-name1
        from kna1
        where kunnr =  kunnr.
    endif.
    Hope this helps.
    Regards
    Arun

  • How to pass the default value to search help selection screen

    Hi
    I need to push a certain value as a default value based on a condition to the slection screen of search help in web UI.
    Could you please let me know how can we do this?
    When we try to open the 'F4' help in web ui then it should populate a certain value as a default value to the selection screen of this 'F4' help. We will get this  default value based on condition.
    Regards
    Anil

    Hi Arun
    I'm using SE11 search help.I'm giving you my code for your reference here.
    DATA:
        ls_map    TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
        lt_inmap  TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
        lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
        lr_qs           TYPE REF TO cl_crm_bol_dquery_service,
        lr_current     TYPE REF TO if_bol_bo_property_access,
        lv_category    TYPE STRING.
      ls_map-context_attr = 'struct.zzattr_i_1'.
      ls_map-f4_attr      = 'ATTRIBUTE'.
      APPEND ls_map TO: lt_inmap,lt_outmap.
      CLEAR ls_map.
      ls_map-context_attr = 'struct.zzattr_i_1'.
      ls_map-f4_attr      = 'SERVICE_LINE'.
      APPEND ls_map TO: lt_inmap.
      CREATE OBJECT rv_valuehelp_descriptor
        TYPE
          cl_bsp_wd_valuehelp_f4descr
        EXPORTING
          iv_help_id                  = 'ZATTR1'
          iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_name
          iv_trigger_submit           = abap_true
          iv_input_mapping            = lt_inmap
          iv_output_mapping           = lt_outmap.
    Here 'ZATTR1' is my search help name in SE11 and the field which is having 'F4' help is 'ATTRIBUTE'.
    Now when I press 'F4' on 'ATTRIBUTE' then it will give a popup and this popup is having 3 fields..
    1.'ATTRIBUTE'
    2.'SERVICE_LINE'
    3.Description of 'SERVICE_LINE'  and hence by pressing 'F4' i should get a value in the field 'SERVICE_LINE' based on
       a condition.
    However, if there is a value for ATTRIBUTE on the screen and when we press 'F4' on this then in the popup the value of
    ATTRIBUTE which is there on the screen is appearing in the 'ATTRIBUTE' field  and the same value is being copied to
    'SERVICE_LINE' field in the popup.
    Please guide me how do we populate the value to 'SERVICE_LINE' field inside the search help popup of 'ATTRIBUTE'.
    Best Regards
    Anil

Maybe you are looking for

  • Problem with iWeb 09, after the publication in a local file.

    *Subject: problem with iWeb 09, after the publication in a local file, i can't see my blog, nor my photos, but before that all was working fine.* After the publication in the local file, I see all my pages, but there is a mistake on the page "Blog" w

  • "mapping null reg" compiler error LV2009

    Opens fine in LV 8.6, but gives "Compiler error. mapping null reg" error in LV 2009. If you get rid of the 2D transpose, the code compiles fine. Attachments: Bitmap to Graphic Block v1.0.vi ‏17 KB

  • Material Ledger Report

    Hello All, Is there any report available in Standard SAP Material ledger which shows the openening quantity, purchase, consumption and closing stock by material wise. This is required for audit purposes. I just wanted to know how other companies solv

  • Convert ZFS root file system to UFS with data.

    Hi, I would need to covert my ZFS root file systems to UFS and boot from the other disk as a slice (/dev/dsk/c1t0d0s0) I am ok to split the hard disk from root pool mirror. any ideas on how this can be acheived? Please sugget. Thanks,

  • Application profiler

    Hi, My webdynpro application is integrated into portal via iview. I want to run "Application Profiler" (nwa -> Analysis -> performance) to analyse the amount of time needed to invoke methods in the web dynpro. Unfortunately, after i start profiling (