Select-option length specification (in report program, not module pool)

Dear forumers,
Is there a way to properly customize the length of a select-option in a report program?
Currently, the select-option S_ADMAIL is shown in the selection screen at a length of 18 characters. No matter what I've coded, this length does not change. The requirement states for the length to be shown at 40 characters long:-
Admin Email (type STRING showing up to 40 char on screen)
How may I fix the select-option's visible length to 40 characters?
DATA: v_admail TYPE string.   " Tried with TYPE CHAR40 too
SELECT-OPTIONS: s_admail FOR (v_admail) NO INTERVALS VISIBLE LENGTH 40.
AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF screen-name CS 'S_ADMAIL'.
      screen-length = 40.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
Perhaps there is an FM that can accomplish this (but I'm not sure what it is)? Please do help. Thanks a lot.

Dear Tan,
Tables : makt.
select-options maknr for makt-maktx.
now go to the screen painter of your program in change mode and move the Help buttons first to the Right each. now *increasethe length of the Matnr Field length so that they are equal to 40 Char. in your program you have handle the length now if you want to restrict to 18 otherwise it will be ok*
if they don't fit you need incease the Size of the Screen Visible area both in the Screen Painter as well as in the
Screen Attributes
You also get an Information Message just ignore that.
Just open your program in SE80 if you can't go to the screen painter in SE38. the other way just keep this program in Display mode and execute then take F1 help , take Technical Information and double click on the Screen number now go to the Screen Layout and go to Change mode here.
Hope this is Very Clear to you.
I just did it
Cheers
Ram
Edited by: Ramchander Krishnamraju on Oct 27, 2009 10:39 AM
Edited by: Ramchander Krishnamraju on Oct 27, 2009 10:46 AM

Similar Messages

  • HOw to find Report program associated module pool program?

    HOw to find Report program associated module pool program?
    I.e
    Me21n is the tcode.I want to find screens related to this tcode.
    Associated report program is RM_MEPO_GUI.(It has no screens hence it is a report program).
    (if module program is attached to tcode,i can easily find entries in d020s)
    Here  report program is calling a module pool program SAPLMEGUI(Has screens).
    If i give the Tcode Me21n,i want to list out all the screens of it..
    Can u give any suggestion....

    Hi Sampath.
    Manually i can see it (by seeing in system-status)..
    programmatically i want to know..
    for ex:if u take  Tcode:Va01
    we can get program (dialog)  and tcode in Tstc table .
    If we know the program name(dialog), we can find program and screens in d020s table.
    Va01 is atatched to a module pool program..No problem to find screens..
    In case of me21n,
    It is atatched to report program(calling module pool program)..
    Here i could not be able to get the screens ..
    I think u undrstood my problem..

  • Need func/tech specification with report program

    hi experts
    i am a fresher.please help me.i am waiting for ur reply
    <b>can anyone send sample funftional and technical specification with report program for SD and MM modules.
    in any format</b>
    please send now to this my mail id
    my mail id is:   [email protected]    (or)   
                     [email protected]
    thanks in advance.

    please send any one now
    i need very urgent
    dont avoid pls
    i am waiting

  • Find which report invoke my module pool program

    hi everyone,
        I have a problem of finding which report calling my module pool program.
        I have one module pool program and 5 reports. In all 5 reports i use
    call transaction to fill up the screen values of that module pool program.
       Now i have to change screen output depending upon the each report.
    So i have to find out which report call my module pool program
       Is there any possiblity to find out??? my client will not allow to use
    SAP memory or ABAP memory.
    Thanks in advance,
    Florian

    Hi,
    Check this system field. This is for procedures
    sy-cprog - In procedures called externally, the name of the calling program, Otherwise the name of the current program. If a procedure called externally calls another external procedure, sy-cprog contains the name of the framework program, and is not set to the name of the framework program of the subsequent calling program.
    may be this works.

  • Dialog programming and module-pool programming

    Can someone tell em the difference between <b>dialog programming and module-pool programming</b> ?

    Hi Vinod ,
    Actually Dialog Programming is Module pool Programming.
    Please go thru this , see if your dbout gets clear.
    Basic components of dialog program?
    -          Screens (Dynpros)
    -          Each dialog in an SAP system is controlled by dynpros.A dynpros consists of a screen
    And its flow logic and controls exactly one dialog step.
    -          ABAP/4 module Pool.
         Each dynpro refers to exactly one ABAP/4 dialog program .Such a dialog program is also  called a module pool ,since it consists of interactive modules.
    Regards,
    AShwini

  • Select Options use in ALV Report in ABAP Webdynpro

    Hello Experts,
    I Already Done ALV Report In webdynpro with use of view Container UI element.But i do not know ALV  report with help of select option.so
    Kindly Give Me simple Example of Use in select Option In ALV.
    Reply ASAP.
    Regards,
    Ameya Karadkhedkar

    First you need to add the component WDR_SELECT_OPTIONS to the tab "Used components" of your Web Dynpro component and then also in the properties tab of your view. In the layout you need to create another view container and embed the view WND_SELECTION_SCREEN of the new used component to it.
    Then in the WDDOINIT method of your view you can write this code (where SEL_OPT is the given name for the used component) in order to set the select option (This example is a select option for a date):
    DATA: lo_cmp_usage           TYPE REF TO if_wd_component_usage,
          lo_interfacecontroller TYPE REF TO iwci_wdr_select_options,
          lo_r_helper_class      TYPE REF TO if_wd_select_options,
          rt_range_date          TYPE REF TO data.
    * Instantiate used component WDR_SELECT_OPTIONS (SEL_OPT)
    lo_cmp_usage = wd_this->wd_cpuse_sel_opt( ).
    IF lo_cmp_usage->has_active_component( ) IS INITIAL.
      lo_cmp_usage->create_component( ).
    ENDIF.
    * Call method in used controller
    lo_interfacecontroller = wd_this->wd_cpifc_sel_opt( ).
    lo_r_helper_class = lo_interfacecontroller->init_selection_screen( ).
    * Create select option for the date
    CALL METHOD lo_r_helper_class->create_range_table
      EXPORTING
        i_typename    = 'DATS'
      RECEIVING
        rt_range_table = rt_range_date.
    CALL METHOD lo_r_helper_class->add_selection_field
      EXPORTING
        i_id          = 'DATS'
        it_result     = rt_range_date
        i_read_only   = ABAP_FALSE.
    * Hide unnecessary buttons
    CALL METHOD lo_r_helper_class->set_global_options
      EXPORTING
        i_display_btn_cancel  = abap_false
        i_display_btn_check   = abap_false
        i_display_btn_reset   = abap_false
        i_display_btn_execute = abap_false.
    Finally you need to write the following code in the action of the button in order to fetch the range table selected by the user.
    DATA: lo_cmp_usage            TYPE REF TO if_wd_component_usage,
          lo_interfacecontroller  TYPE REF TO iwci_wdr_select_options,
          lo_r_helper_class       TYPE REF TO if_wd_select_options,
          rt_date                 TYPE REF TO data.
    FIELD-SYMBOLS: <fs_date> TYPE table.
    * Instantiate used component WDR_SELECT_OPTIONS (SEL_OPT)
    lo_cmp_usage = wd_this->wd_cpuse_sel_opt( ).
    IF lo_cmp_usage->has_active_component( ) IS INITIAL.
      lo_cmp_usage->create_component( ).
    ENDIF.
    * Call method in used controller
    lo_interfacecontroller = wd_this->wd_cpifc_sel_opt( ).
    lo_r_helper_class = lo_interfacecontroller->init_selection_screen( ).
    * get selected range of inspections date
    CALL METHOD lo_r_helper_class->get_range_table_of_sel_field
      EXPORTING
        i_id          = 'DATS'
      RECEIVING
        rt_range_table = rt_date.
    ASSIGN rt_date->* TO <fs_date>.
    Then you can use the value that is assigned to the field symbol <fs_date> to continue with your ALV.

  • Auto selection of a value on selection screen field of a report program

    Dear Gurus,
    I have encountered a case in a report program, if i select a vendor code in selection screen, simultaneously the region code of that vendor should come automatically to the next parameter(ie region code). Is it possible..if then how?
    Thanks in Advance
    Saif

    Hi Saifur,
      write the code in the at selection-screen output.
    Try this logic.
    TABLES :
      SCARR ,
      SPFLI ,
      SFLIGHT ,
      SBOOK .
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME .
    PARAMETERS :
      P_FLIGHT RADIOBUTTON GROUP R1 ,
      P_BOOK RADIOBUTTON GROUP R1 .
    SELECTION-SCREEN END OF BLOCK B1 .
    SELECT-OPTIONS S_FLDATE FOR SFLIGHT-FLDATE DEFAULT '20090101' TO
    '20090131'.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME .
    PARAMETERS :
      P_TEMP1 RADIOBUTTON GROUP R2 MODIF ID SC1 ,
      P_TEMP2 RADIOBUTTON GROUP R2 MODIF ID SC1 .
    SELECT-OPTIONS S_CARRID FOR SCARR-CARRID MODIF ID SC1 .
    SELECTION-SCREEN END OF BLOCK B2 .
    SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME.
    PARAMETERS :
      P_TEMP01 RADIOBUTTON GROUP R3 MODIF ID SC2 ,
      P_TEMP02 RADIOBUTTON GROUP R3 MODIF ID SC2 .
    SELECT-OPTIONS S_BOOKID FOR SBOOK-BOOKID MODIF ID SC2 .
    SELECTION-SCREEN END OF BLOCK B3 .
    AT SELECTION-SCREEN OUTPUT .
    IF P_FLIGHT = 'X' .
    FL_FLAG = 1 .
    LOOP AT SCREEN .
    IF SCREEN-GROUP1 = 'SC2' .
    SCREEN-ACTIVE = 0 .
    MODIFY SCREEN .
    ENDIF.
    ENDLOOP.
    ELSEIF P_BOOK = 'X' .
    FL_FLAG = 2 .
    LOOP AT SCREEN .
    IF SCREEN-GROUP1 = 'SC1'.
    SCREEN-ACTIVE = 0 .
    MODIFY SCREEN .
    ENDIF.
    ENDLOOP.
    ENDIF .
    On pressing Enter use sy-ucomm value onli to do that and then write the above logic for another select-option.
    Much Regards,
    Amuktha.
    Edited by: Amuktha Naraparaju on Mar 12, 2009 1:24 PM

  • Selection Screen Variant of a Report program

    Hi All,
    I am having a F4 help to select a path of few folders and files from local drive in my report program.
    After I select this path, I am saving it as a variant. But this variant will not work for the next time I login to SAP.
    Please let me know what can be done.
    Thanks,
    Poornima.

    Hi,
    Please check below thread for setting the varaint as a default.
    How to set variant as default for report.
    Or it the path is always fixed you can give it as a default valuw while declaring the parameter.
    Regards,
    Pawan

  • Select-option length

    Hi,
    I am working on a BDC program. In that, I have declared a Select-options for the Upload file name as below.
    <i><b>SELECT-OPTIONS: S_PATH      FOR      PARMS-PATH
                                   NO INTERVALS
                                   LOWER CASE.</b></i>
    <i><b>PARMS-PATH</b></i> is defined for 128 CHARs.
    Later in the program I am using S_PATH-LOW value in the upload logic and etc.
    Even though S_Path is defined for 128 CHARs, <b>it is taking only 45 characters(max)</b> when I give the file path in the selection screen.
    <b>Eg:</b> If the Path is <b>'C:\ZTEST012uom.txt'</b>, it works and we are getting the output as below(as the file path length is less than 45 char).
    And if the path is <b>'C:\folder1\folder2\folder3\folder4\folder5\ZTEST012uom.txt'</b>, it doesn't work(as the file path length is more than 45 char).
    My question is, is there any fixed length defined for the select-options. Why am I facing this problem.
    Can anyone help me how I can rectify this issue...?? Thanks in advance.
    Regards,
    Pradeep.

    i dont know why it is happening to you for me this code is working properly. Just try that...
    parameters : p_path like rlgrap-filename.
    data : val type string.
    data : begin of itab occurs 0,
           f1(10),
           f2(10),
           f3(10),
           f4(10),
           end of itab.
    data : len type i.
    at selection-screen on value-request for p_path.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
       PROGRAM_NAME        = SYST-CPROG
       DYNPRO_NUMBER       = SYST-DYNNR
    *   FIELD_NAME          = ' '
    IMPORTING
       FILE_NAME           = p_path
    val = p_path.
    compute len = strlen( p_path ).
    start-of-selection.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = val
       FILETYPE                      = 'ASC'
       HAS_FIELD_SEPARATOR           = '#'
    *   HEADER_LENGTH                 = 0
    *   READ_BY_LINE                  = 'X'
    *   DAT_MODE                      = ' '
    *   CODEPAGE                      = ' '
    *   IGNORE_CERR                   = ABAP_TRUE
    *   REPLACEMENT                   = '#'
    *   CHECK_BOM                     = ' '
    *   NO_AUTH_CHECK                 = ' '
    * IMPORTING
    *   FILELENGTH                    =
    *   HEADER                        =
      TABLES
        DATA_TAB                      = itab
    * EXCEPTIONS
    *   FILE_OPEN_ERROR               = 1
    *   FILE_READ_ERROR               = 2
    *   NO_BATCH                      = 3
    *   GUI_REFUSE_FILETRANSFER       = 4
    *   INVALID_TYPE                  = 5
    *   NO_AUTHORITY                  = 6
    *   UNKNOWN_ERROR                 = 7
    *   BAD_DATA_FORMAT               = 8
    *   HEADER_NOT_ALLOWED            = 9
    *   SEPARATOR_NOT_ALLOWED         = 10
    *   HEADER_TOO_LONG               = 11
    *   UNKNOWN_DP_ERROR              = 12
    *   ACCESS_DENIED                 = 13
    *   DP_OUT_OF_MEMORY              = 14
    *   DISK_FULL                     = 15
    *   DP_TIMEOUT                    = 16
    *   OTHERS                        = 17
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    loop at itab.
    endloop.
    here my file path is C:\libra\testfolder1\testfolder2\testfolder3\testfolder4\testfolder5\testfolder6\testfolder7\TEST1.txt total length 102.
    regards
    shiba dutta

  • Date as a select option in sales order report.....

    hello guys i want to add sales doc date from as a lower field and date to as a higher field on a selection screen.....so please help me out......i also want to add error message for it.....

    Simply add the date field as select-options error msg on choosing wrong date format will be automatically triggred.
    For example for order creation date.
      select-options:   audat for vbak-audat.
    anya

  • Data type selection Problem in ztable to use in the Module Pool Program

    Dear Experts,
    I have created a z-table which is used in Module Pool Program in which i have to save the information saved by the endusers in z-table. But the problem comming is that the amount of information saved by the endusers is so havey & our table is just limited for the 50 characters which is not sufficiet. So I urge you to please tell me what & which type of data type should I have to use to store maximum amount of information in our zt-able which is available in SAP ECC6.0.
    Thanks & Regards,
    Akg

    Dear Akg,
    u can resolve ur problem in following ways,
    1. You can declare the field in a table without an Data element.
          i.e. In the length field . using F4 help in length field how many characters u want u enter.
    2. In the same u can search for an standard data element and use the same.
    3. Creating an custom data element .
    Reward if helps to u!!!
    Regards,
    MNR

  • Prob in Report output through Module Pool

    Hi,
    I have developed Module Pool and in tht screen 100 , in PAI under fcode 'APPEND' i am appending record into the itab.
    while user press 'VIEW' it will execute f-code VIEW and display records of itab as a report output.
    now on the report output, for each records i have CHECKBOX ,while they press DELETE button on application toolbar, marked checkbox details should get deleted from report output.
    But my problem is while i am press DELETE button in report output it is not calling screen 100 PAI or PBO .then how will i delete records , can anybody suggest me ?
    Thanks.

    Are you able to see the Delete Button, If so then it Definitely comes to AT USER-COMMAND.
    WHEN 'VCART'.
    LEAVE TO LIST-PROCESSING.
    SET PF-STATUS 'LIST'.   "This is for List status here you set the Delete button backbutton
    loop at i_cart.
    WRITE:/01(01) '|', I_CART-CHECK AS CHECKBOX,05(01) '|',
    06(40) I_CART-CMAKTX,46(01) '|',
    47(30) I_CART-LENGTH,77(01) '|',
    78(07) I_CART-CHNG_QTY,85(01) '|',
    86(03) WS_UOM,89(01) '|',
    90(10) I_CART-LENGTH_LIN,100(01) '|',
    101(07) WS_P1,108(01) '|'.
    WRITE:/01(108) SY-ULINE.
    endloop.
    AT USER-COMMAND.
    case sy-ucomm.
    WHEN 'DELETE'.
    " Here you need to delete the record.
    "if you want to go back
    LEAVE LIST PROCESSING.
    "then you will go to main screen,
    endcase.
    try this approach..

  • Submission of BDC Program in Module Pool fails

    HI,
    I have written the BDC Program to change the position text using 'PP01' .  When it is executed, its changing the value correctly.
    In my module Pool Program, i am calling the BDC Program using SUBMIT as background job . But it throws an RUN TIME ERROR.
    Could you please let me know, whether is this possible or not?
    Thanks in advance.
    Thanks,
    K.Tharani

    Hi Tharani.
    Please check whether u has been used OOPS  ALV (using Costom container)in module pool programming. If that was the case, system throws an rum time error.
    Regards,
    surya.

  • How to freeze the selection column in the table control of the module pool.

    hi ,
    in my module pool there is a row selection field  <b>w/selcolumn</b> of the table control called as mark.
    how to freeze the selection column where there is no record in the table control row.
    or in other words where wa is initial.
    thanks
    ekta

    Hi all,
    in the PBO of the screen the following code is written.
    say the selection column is MARK and is declared in the data as well.
    thanks
    ekta
    *************************C O D E **************************************************
    MODULE disp_tabctrl1 OUTPUT.
      IF flag_c = 1.
        READ TABLE it_create_data INTO wa_material_data
             INDEX tab_ctrl1-current_line.
      ELSE.
        READ TABLE it_material_data INTO wa_material_data
             INDEX tab_ctrl1-current_line.
        IF sy-subrc = 0.
          IF ok_code_0101 = '&SEL1'.
            mark = 'X'.
          ELSEIF ok_code_0101 = '&DSEL'.
            mark = ' '.
          ENDIF.
        ELSE.
          LOOP AT SCREEN.
            IF screen-name = 'MARK'.
              screen-input = 0.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        ENDIF.
      ENDIF.
      index_t = tab_ctrl1-top_line.
      index_d = tab_ctrl1-top_line + n.
    ENDMODULE.                 " DISP_TABCTRL1  OUTPUT

  • Difference between dialog programming and module pool programming

    Hi all ,
             Is there any differnce between module pool programming and dialog programming .
      thanks in advance ,
        magesh anandan

    Mahesh,
        Both are same.
    MODULE POOL  : Through modules only we have access ABAP EDITOR
                                   from  FLOW LOGIC EDITOR .
    DIALOG PROGRAMING : We use to have dialogs(Screen process) to interact
                                           with user .    
    Pls. reward if useful

Maybe you are looking for

  • Oracle 8.1.5 and jdk 1.2.2

    We work on Unix Solaris 2.7, Oracle 8.1.5 and a JDK 1.1.8. We'd like to upgrade to JDK 1.2.2 . Is it enough to change the only drivers , using the 8.1.6.0.1 release (jdbc816jdk12-sol_01.zip+ nls_charset12_01.zip ) ?? Or should I apply other upgrades

  • Need help setting up LDAP server for Address Book

    I've set up Panther servers before for AFP which is pretty simple but now the office I work at wants me to setup an LDAP server so they can share the same contact information, probably about 2,000+ entries. I'm guessing that this will have to be ente

  • Dynamic parameter with 'type-ahead' capability

    Hi, How do I create a dynamic parameter that will return a drop down list of over 11,000 records in alphabetic order that I can then select the value I want by starting to type in the value.  For example, in a list of cities of the world I want to se

  • Samsung LN32A450 died?

    My Samsung LN32A450 might have died. The red light is ON but when I try to turn on the TV using the remote or with the button on the TV, the red LED light just blinks once and then the red LED light stays ON, NO PICTURE NO SOUND. Just its dead. Also,

  • GUI Freezes once socket server is started

    Here's my problem and I am stumped. I have an application which starts a socket server and waits for clients to connect. Once connected, the server queries XML to the client for display. My problem is when I start the server my GUI freezes. I have a