List box values in module pool

Hi All,
Plz help me out in this regard..
I have designed a screen with 20 list boxes around and i am getting values for list boxes also.the main problem is coming when after selecting values....
that is after selecting values if i press enter on the screen the values are over written by space..
The default value for list boxes are space.
how to over come this problem...Plz help me out
Regards,
Sudha

PAI
MODULE user_command_1000 INPUT.
CASE sy-ucomm.
WHEN 'SAVER'.
         IF zrule_date_from  > zrule_date_to.
            MESSAGE e000 WITH : 'RUN_VALIDITY_TO_DATE can not be Less'(001)
                                'Than RUN_VALIDITY_FROM_DATE'(002).
            EXIT.
         ENDIF.
         IF zrule_date_to  < sy-datum.
            MESSAGE e000 WITH : 'RUN_VALIDITY_TO_DATE can not be Less'(003)
                                'Than System Date.'(004).
            EXIT.
         ENDIF.
         wa_rule-zrule_date_from  = zrule_date_from.
         wa_rule-zrule_date_to    = zrule_date_to.
         wa_rule-zrule_name       = zrule_name.
         wa_rule-zrule_id         = zrule_id.
         wa_rule-zrule_pref       = zrule_pref.
ONCATENATE 'Where'  rule_for1a  operator1a  values1a
             andor1  rule_for2a  operator2a  values2a
             andor2  rule_for3a  operator3a  values3a
             andor3  rule_for4a  operator4a  values4a
             andor4  rule_for5a  operator5a  values5a
             andor5  rule_for6a  operator6a  values6a
             andor6  rule_for7a  operator7a  values7a
             andor7  rule_for8a  operator8a  values8a
                      INTO wa_rule-zrule_clause SEPARATED BY space.
In this code andor6(7,8,etc) has (and or)
and operator8a(7a,6a etc) has (+,- <,>) and when i do enter these two get cleared. why does this happen?
MY PBO code is
MODULE status_1000 OUTPUT.
  SET PF-STATUS 'RULE'.
  SET TITLEBAR  '1000'.
ENDMODULE.                 " STATUS_1000  OUTPUT
*&      Module  fill_lists  OUTPUT
For Filling List Boxes
MODULE fill_lists OUTPUT.
**********1
    name       = 'ANDOR1'.
    value-key  = 1.
    value-text = 'AND'.
    MOVE value-text TO value-text.
    APPEND value TO list.
    value-key  = 2.
    value-text = 'OR'.
    MOVE value-text TO value-text.
    APPEND value TO list.
    PERFORM LIST_BOX.
    CLEAR LIST.
**************2
    name       = 'ANDOR2'.
    value-key  = 1.
    value-text = 'AND'.
    MOVE value-text TO value-text.
    APPEND value TO list.
    value-key  = 2.
    value-text = 'OR'.
    MOVE value-text TO value-text.
    APPEND value TO list.
    PERFORM LIST_BOX.
    CLEAR LIST.
************3
    name       = 'ANDOR3'.
    value-key  = 1.
    value-text = 'AND'.
    MOVE value-text TO value-text.
    APPEND value TO list.
    value-key  = 2.
    value-text = 'OR'.
    MOVE value-text TO value-text.
    APPEND value TO list.
    PERFORM LIST_BOX.
    CLEAR LIST.
etc.

Similar Messages

  • List Box Problem In MODULE POOL PROGRAM(EDIT MODE)

    I Have Developed A MODULE POOL PROGRAM ,
    It Basically Consists Of   CREATE  EDIT and DISPLAY Modes.
    CREATE MODE:
    When I am Creating For Example FORM NO 1,it is having Fields With drop down list box with values
    A,B and C. if I Choose A then That form will Get Created With A value and Form 1 will be created.
    EDIT MODE:
    The same form If u want to edit In EDIT Mode ,it is displaying value A and it Showing the list box in the fillowing Manner.A,B,C,and A.(This is what the problem I am Facing Know).It Is Displaying the value two times.How to Avoid this ,PLs Help me in this regard.
    Thaks & Regards,
    Anuradha.

    Where ever you are populating the List Box, write a REFRESH statement just before that.
    Means Refresh the old content and add new content

  • List box values in mosule pool

    hi
    i am currently working with screen exit where i am populating values to a list box using customl table.
    the problem is that when i am creating new entries in custom table the old entries are also getting displayed in list box even though i have deleted previous entries.
    here is the code
    PROCESS ON VALUE-REQUEST.
    Create drop down box for listbox1
      FIELD proj-zz_list1 module create_listbox1.
    MODULE create_listbox1 INPUT.
                      TYPE DECLERATION.
      TYPES:
             BEGIN OF ty_list1,
            Data type for listbox field
               list1 TYPE zgfbm_listbox1,
             END OF ty_list1.
                      VARIABLES DECLARATION                              *
      DATA:
          Internal table used to store userfield.
            li_list1 TYPE STANDARD TABLE OF ty_list1.
                      PROCESSING LOGIC                                   *
    clear: proj-zz_list1, li_list1.
          Select listbox1 from value table into internal table
      SELECT     zz_list1
        FROM     zgfbm_list1
      INTO TABLE li_list1.
    Create listbox corresponding to field in proj table
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'PROJ-ZZ_LIST1'
          value_org       = 'S'
        TABLES
          value_tab       = li_list1
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      FREE li_list1.
    ENDMODULE.                 " create_listbox1  INPUT

    Put a breakpoint at the Select statement and checkout if the valure coming from value table
    Message was edited by:
            Chandrasekhar Jagarlamudi

  • Fetching sub-screen check box value in module pool

    Hi,
    i hav a req in which i craeted a sub-screen in a standard sap screen QA11 using screen -exit.
    This sub-screen has two check box's for 2 approvals.I hav craeted as screen with this 2 check box and made that as a sub-screen to main screen.
    I hav few validations to be performed on these 2 check-boxes.
    1.Enabling and disabling of resp check-box based on some condition.This is happening as i hav written some logic in PBO of the screen.
    2.Validations hav to be performed on the check-box like if user clicks a check-box that value has to be captured and stored in a Z custom table.My main issue comes here.i hav written some code in PAI,but when i put a break-point,that code is not at all getting triggered.
    Kindly,let me know how can i get the check-box value from the sub-screen which is craeted in the standard screen of QA11 using screen-exit.
    Thanks in advance

    Hi,
    May be your code is written in PAI of some other screen.
    check SY-DYNNR and also use this where you are checking chekbox value.
    make sure your code is written in PAI of same subscreen
    Thanks
    Raghav M.

  • How to create dropwdown list box values and checkbox in screen painter.

    Hi Experts,
    I need to know the creation of dropdown list box values and the checkbox to use in screen painter.
    I have 3 values to insert as:-
    INR,USD,EUR
    if user selects INR/USD/EUR, then it will store into the table field.
    And also want to know the checkbox functioning in screen painter, i.e. what should we write in PBO/PAI.
    I have found some sites to get knowledge, but didnot found anything that relates to my questions.
    So please help me!
    Thanks,
    Deepanshu

    Hi,
    For dropdown list box in Screen create a input field and choose Drop down by index.
    To populate the values write the logic in PBO as follows
    TYPE-POOLS : VRM
    DATA : field_id TYPE VRM_ID ,
                values  TYPE VRM_VALUES,
                 value   LIKE LINE OF values.
    PROCESS BEFORE OUTPUT
    MODULE list_fill_100
    MODULE list_fill_100 OUTPUT
    SELECT f1 f2 f3  FROM tab WHERE condition.
    value-KEY = f1.
    value-TEXT = f2
    APPEND value TO VALUES
    CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                id     = 'i/o screen field'
                values = values.
    ENDMODULE.

  • Multiple-Selection List Box Values in Multiple Columns

    I am using InfoPath 2010 with SharePoint 2013. I have a form with a multiple-selection list box which has A LOT of choices. Instead of displaying all the choices in one column, is it possible to display the values of my list box in several
    columns? 

    Hi Andrea,
    I agree with Brij, one multiple-selection list box is associated with one list field, we cannot use the one multiple selection list box value for other multiple selection list boxes, we need to create multiple choices for each multiple-selection list box
    control in InfoPath form.
    Thanks
    Daniel Yang
    TechNet Community Support

  • How to catch List box value

    Hi gurus
    I have set list box value through vrm_set_value and in the screen level it's working fine
    In the custom  program I need to fetch data from table using that selected list box value , but  its always coming blank  .
    please help me how to catch that list box value in the program .
    Thanks

    This is the code
    *************SELECTION SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS    :  P_bukrs  TYPE bukrs    OBLIGATORY  ,                        " Company Code
                     p_psc    TYPE psc_name OBLIGATORY ,
                     p_monat  TYPE MONAT    AS LISTBOX VISIBLE LENGTH 5 OBLIGATORY ,  " Quarter
                     p_gjahr  TYPE gjahr    DEFAULT sy-datum+0(4) OBLIGATORY .                        " Year
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS    : P_KIND      AS CHECKBOX USER-COMMAND abc ,                          " Check Box
                    P_prcent(6) TYPE P DECIMALS c_val_three  ,                    " Take in kind percentage
                    p_prod      TYPE PSA_PRODUCT  AS LISTBOX VISIBLE LENGTH 10  .   " Take in kind product
    SELECTION-SCREEN END   OF BLOCK b2.
         A T   S E L E C T I O N    S C R E E N                          *
    AT SELECTION-SCREEN on BLOCK b1 .
    Validate Company Codes.
      PERFORM sub_validate_com_code.
    Validate PSC
    AT SELECTION-SCREEN on VALUE-REQUEST FOR p_psc .
      PERFORM sub_validate_psc.
    Validate Quarter
      PERFORM sub_validate_quarter .
    AT SELECTION-SCREEN on BLOCK b2 .
    Validate Take in kind percentage
      PERFORM sub_validate_percnt .
    Validate Take in kind Percentage
      PERFORM sub_prod_disp .
    form sub_prod_disp .
    populated internal table lt_prod_val .
    LOOP AT SCREEN.
            CALL FUNCTION 'VRM_SET_VALUES'
              EXPORTING
                id              = 'p_prod'
                values          = lt_prod_val
              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.
          ENDLOOP.
    in start of selection the p_prod is always coming initial .

  • How to capture the selected values from module pool dialog list box !

    Hi experts,
    Can anyone help me out in capturing the values from the list box.
    i am able to set the values in the list box.But i am not able to capture the selected value from the list box. Always the list box name is getting as "space"
    I also tried in using the FM "VRM_GET_VALUES" but it is retireving all the values. Is there is any flag for filttering out the selected value.
    Your inputs are appreciated.
    Thanks,
    Vijay.

    Along with the PBO and PAI event, add a POV event in the flow logic of the screen
    DEMO_DROPDOWN_LIST_BOX -is a good demo example.
    PROCESS ON VALUE-REQUEST.
    FIELD structure_name-field_name MODULE create_dropdown_box.
    In the report :
    MODULE create_dropdown_box INPUT.
      SELECT carrid carrname
                    FROM scarr
                    INTO CORRESPONDING FIELDS OF TABLE itab_carrid.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                retfield        = 'CARRID'
                value_org       = 'S'
           TABLES
                value_tab       = itab_carrid
           EXCEPTIONS
                parameter_error = 1
                no_values_found = 2
                OTHERS          = 3.
      IF sy-subrc <> 0.
      ENDIF.
    ENDMODULE.
    In the layout, assign a Function Code , for eg : 'SELECTED' to the listbox and lets say name of the field is SDYN_CONN-CARRID. So in the PAI module,
    MODULE user_command_0100 INPUT.
      CASE ok_code.
        WHEN 'SELECTED'.
          MESSAGE i888(sabapdocu) WITH sdyn_conn-carrid.
      ENDCASE.
    ENDMODULE.
    sdyb_conn-carrid will contain your selected field

  • How to validate the field values in module pool program?

    Hi Guys
         I am working with module pool programming.
         Here I want to validate the fields like below.
         with out filling all the fields if I click SAVE option it has to show a message that all fields has to be filled.  This can be done by checking all the fields individually.
         I think it can be done through <b>LOOP AT SCREEN ......ENDLOOP</b>. sequence.
         If it is possible, can anyone help me?

    You need to write the Module in between the CHAIN and ENDCHAIN statment in SE51
    If you send a warning or error message from a module <mod> that you called using a FIELD statement as follows:
    CHAIN.
    FIELD: <f1>, <f 2>,...
    MODULE <mod1>.
    FIELD: <g1>, <g 2>,...
    MODULE <mod2>.
    ENDCHAIN.
    all of the fields on the screen that belong to the processing chain (all of the fields listed in the field statements) are made ready for input again. Other fields are not ready for input. Whenever the MODULE statement appears within a processing chain, even if there is only one FIELD attached to it, all of the fields in the chain (not only the affected field) are made ready for input again, allowing the user to enter new values. If the fields in the processing chain are only checked once, the PAI processing continues directly after the FIELD statement, and the preceding modules are not called again.
    Look at the DEMO program DEMO_DYNPRO_FIELD_CHAIN.
    ashish

  • Retaining List Box Value in Form Bean

    Hi All,
    I want to retain the List Box populated using the Form bean.
    Right now when i display the List Box in a page and submit the Form and come back
    to same page again I do not get List Box populated.
    In the JPF I do not get the all values of the List Box. I only get the selected
    value of the ListBox.
    Thx
    Hitesh

    Hi sudha,
    1. We can also use the FM
       F4IF_INT_TABLE_VALUE_REQUEST
      (here u will be able to capture the value)
    2.
      DATA : BEGIN OF itab OCCURS 0,
             bukrs LIKE t001-bukrs,
             butxt LIKE t001-butxt,
             END OF itab.
      SELECT * FROM t001 INTO CORRESPONDING FIELDS OF TABLE itab.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'BUKRS'
          value_org       = 'S'
          dynprofield     = 'MYLISTTAB'
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
        TABLES
          value_tab       = itab
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
    3. In pai module,
       use the code :
    PROCESS ON VALUE-REQUEST.
      field mylistab module abc.
    where field = your field name
          abc = module name (which contains the above coding in step 2)
    regards,
    amit m.
    Message was edited by: Amit Mittal

  • How to pass the field value from module pool program to smartform using submit?

    // AT pai of module pool pgm i entered the following: here gv_orderid is my value to be available at smart form(driver pgm) & zmusic_store_smf is the driver program of my smartform.
    gv_orderid= wa-itemid./
    SUBMIT ZMUSIC_STORE_SMF VIA SELECTION-SCREEN
                                  WITH p_order = gv_orderid
                                  AND RETURN.
    //AT driver pgm(zmusic_store_smf):
    START-OF-SELECTION.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname                 = 'ZMUSIC_SMARTFORM1'
    *   VARIANT                  = ' '
    *   DIRECT_CALL              = ' '
       IMPORTING
         fm_name                  = lv_form
       EXCEPTIONS
         no_form                  = 1
         no_function_module       = 2
         OTHERS                   = 3.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    CALL FUNCTION lv_form
       EXPORTING
    *      iv_orderid = is_purchase_item-zorder_id.
    iv_orderid = gv_orderid.
    // here i'm trying to call my smartform('ZMUSIC_SMARTFORM1')  from this driver pgm but unable to access the value of gv_orderid please help me out with this.

    Declare the gv_orderid in modulepool program.
    And Declare the parameter as import parameter in smartform.
    CALL FUNCTION  lv_form
       EXPORTING
    *   ARCHIVE_INDEX              =
    *   ARCHIVE_INDEX_TAB          =
    *   ARCHIVE_PARAMETERS         =
    *   CONTROL_PARAMETERS         =
    *   MAIL_APPL_OBJ              =
    *   MAIL_RECIPIENT             =
    *   MAIL_SENDER                =
    *   OUTPUT_OPTIONS             =
    *   USER_SETTINGS              = 'X'
         i_input                    =  gv_orderid
    * IMPORTING
    *   DOCUMENT_OUTPUT_INFO       =
    *   JOB_OUTPUT_INFO            =
    *   JOB_OUTPUT_OPTIONS         =
    * EXCEPTIONS
    *   FORMATTING_ERROR           = 1
    *   INTERNAL_ERROR             = 2
    *   SEND_ERROR                 = 3
    *   USER_CANCELED              = 4
    *   OTHERS                     = 5

  • Default values in module pool

    Hi all,
    I am developing one module pool program.There are 2 screens in this object.In the first screen there are four fields.One of the field is order type.In this order type field i one to set FD as default value,so that when this screen comes up then FD will be in order type field.How I can do that?
    Waiting for your response.
    Thanks in advance.
    Raj

    Hi,
    Try it:
    parameters: p_ordertype type ordertype default 'FD'.
    Regards,
    Chris Gu

  • Displaying MIR4 attachment list TIF image in module pool screen

    Hi All,
    I have a screen with a custom container and I tried to call a TIF image from MIR4 which is in attachment list(which is stored in archived link).
    I need a function module to display this image in my Module pool screen using the container.
    I tried using below code
    * Create controls
         CREATE OBJECT container_1
           EXPORTING
             container_name = 'CONTAINER'.
    *    create object container_2
    *      exporting container_name = 'PICTURE_CONTROL_2'.
         CREATE OBJECT PICTURE_CONTROL_1
           EXPORTING
             parent = container_1.
    *    CREATE OBJECT PICTURE_CONTROL_2 exporting parent = container_2.
    CALL METHOD PICTURE_CONTROL_1->LOAD_PICTURE_FROM_URL
           EXPORTING
    *    URL    = 'SAPR3://984BE16932C81EE3B2AA1E3B0D12C6FF'
    *      URL    = 'file://E:\Personal\New_Passport4.jpg'
    *       URL    = 'SAPR3://984BE16932C81EE3B2BDF8E44B035648.TIF'
    *URL    = 'SAPR3://SAPR3CMS/get/100/Z1/984BE16932C81EE3B2BDF8E44B035648//.TIF'.
         URL    = 'SAPR3://WebRepository/0020698212/DEMOWORD97SAPLOGO?Version=00000'
         IMPORTING
              RESULT = lv_result.
    CALL METHOD PICTURE_CONTROL_1->set_display_mode
         EXPORTING
           display_mode = PICTURE_CONTROL_1->display_mode_fit_center.
    But I am able to display this URL    = 'SAPR3://WebRepository/0020698212/DEMOWORD97SAPLOGO?Version=00000' and not able to display my archive link image which is in TIF.
    note: Display image of Arc.link Doc.type ZBUSI_TIF (doc.class TIF)
    Please help me on this.
    Thanks
    Geetha Charan

    Hi sai,
    Please refer th procedure.
    For the select-options you might have defined a selection screen.
    Next you can fetch the entire data that you wanted to display in a module pool into an internal table.
    you can call the screen you defined for o/p upon the selection.
    Then, You define a screen XXXX  and a table control in the scree, and in the PAI module of the screen
    you write a chain end chain processing in which you can display the contents of your internal table.
    OR
    if you want the selection also to be in the module pool,  then for displaying the O/P you can definr a sub-screen of the initial screen and you can call that sub-screen on selcting, which can be done with a function code.
    Hope this helps

  • List Box values

    Hello,
    I’m using a WAD report with list box. When I filter the report the values are not changed in the list box. Is there a way that the user will see only the values which shown in the report?
    Please Advice,
    Amir

    Amir,
    Change the List Box property to "Posted Values"
    Arun
    Assign points if useful

  • Getting default values in module pool screen

    Hi frenz,
    I have a requirement like in module pool i am supposed to bring 4 fields from ddic,in which the first two fields should have a default value i.e when the pbo is processed itself the input values should be displayed in first two fields.....can some one help me out to solve the issue.
    thanks
    prem
    Edited by: prem kumar on Jun 19, 2008 1:30 PM

    suppose u are using field1 field2 on screen...
    then in PBO create a module
    module def_val.
    inside it write.
    field1 =  '100'.
    field2 = '101'.
    here 100 and 101 are the default values that u r going to assign....
    that will solve ur issue..
    rewrd points if the ans is helpful...

Maybe you are looking for

  • Techs belittle requests for support

    having speed issues with fios on my 10/2 plan speedtest.net shows slowdowns in Mbps to 9, 8, 6, 4, 1, and sometimes it just stops. speedtest.verizon.net shows similar results, in the 9's mostly, but often 3's, 4's.  Techs say this is 'normal' and 'no

  • I cannot view images in iphoto - only black screen

    I had problems being unable to boot my iMac this week and ended up having to take it to the Apple store where they re-installed the operating system and all seemed fine. Now however, although I can view thumbnails in iPhoto, when I click on them I ju

  • Simple Flat File Upload Document

    Please help me, I have the requirement to upload the flat file data in bw cube , please send me some blog link or document that give me the steps to upload the document from flat file for BMW tax data. to a Tax Cube inBW 3.5 MY Email is [email protec

  • Downpayment facility in PO creation itself in EHP 4

    I am on EHP 4. In this EHP 4, i can give downpayment (DP) percentage in PO itself. There are three DP Category: 1. Mandatory downpayment 2. Voluntary downpayment 3. No downpayment I selected 1st option. When i did MIRO, i thought that the amount ment

  • Creating Reservations from scanner

    Hi, We have requirement is to create Reservations items automatically through scanner like, user will use the scanners and this should create reservations in SAP automatically in background Is that possible in SAP?