To add select-options to MB26

How can we add select-options to t. code mb26? I want to add purchasing group as a select-options in mb26.
How to put data extraction logic for the same?
Regards,
Sachin 11

Hi Sachin,
The only way you could do this is by copying the program PP_PICK_LIST to a Z program & then later in the include INCLUDE PPPLSEL you have to put your Select-option for Purchasing group by copying the include to a Z program.
Also you have to debug & understand the flow of the program & find out the exact place where you can add logic for your select options.
Regards
Abhii

Similar Messages

  • Module pool programming " to add selection-option on screen"

    I want to add selection option for a field ( matnr ) on the screen in module pool programmiing. ( how it comes in report programming). If you you know how to add Please help me to solve.....

    Sure, you need to define your selection screen as a subscreen, then embed this into your subscreen area on the dynpro.  Here is a sample program.
    report zrich_0006 .
    tables: mara.
    * Custom Selection Screen 1010
    selection-screen begin of screen 1010 as subscreen.
    selection-screen begin of block b1 with frame title text-001.
    parameters: p_rad1 radiobutton group grp1 default 'X',
                p_rad2 radiobutton group grp1,
                p_rad3 radiobutton group grp1.
    select-options: s_matnr for  mara-matnr,
                    s_matkl for  mara-matkl,
                    s_mtart for  mara-mtart.
    selection-screen end of block b1.
    selection-screen end of screen 1010.
    start-of-selection.
      call screen 100.
    *&      Module  STATUS_0100  OUTPUT
    module status_0100 output.
    *  SET PF-STATUS 'xxxxxxxx'.
    *  SET TITLEBAR 'xxx'.
    endmodule.
    *&      Module  USER_COMMAND_0100  INPUT
    module user_command_0100 input.
    endmodule.
    * Create Screen 100 with a subscreen area called "subscreen_1010"
    * Screen Flow Logic follows
    *process before output.
    *  module status_0100.
    *  call subscreen subscreen_1010 including sy-repid '1010'.
    *process after input.
    *  call subscreen subscreen_1010 .
    *  module user_command_0100.
    Regards,
    Rich Heilman

  • Add Select Options To ViewContainerUIElement in a TabStrip

    Hello,
    Finally, I have been able to add select options progammatically. But what I would like to do is to split them up using tabstrips.  I have searched the forum but have not seen a way to place select options into the ViewContainerUIElement.  I have seen where you can embed a view.
    I mean I sould be able to take the object and apply the same code for adding the select options.
    Can anyone provide me with some assisance?
    Regards, Dean.

    Hi Sachin,
    The only way you could do this is by copying the program PP_PICK_LIST to a Z program & then later in the include INCLUDE PPPLSEL you have to put your Select-option for Purchasing group by copying the include to a Z program.
    Also you have to debug & understand the flow of the program & find out the exact place where you can add logic for your select options.
    Regards
    Abhii

  • To add select-options to standard report program...

    Hi,
    How to add  a field as select-options to sap standard report program?
    Regards,
    sachin
    Moderator Message: Do some R&D on the topic first and ask a specific question, instead of a step-by-step process.
    Edited by: kishan P on Nov 25, 2010 5:40 PM

    Hi shiva,
    I have following doubts?
    1) exactly where should i add select-options of a field in enhancement point?
    and 2) where to keep the database extraction logic for the same select-options?

  • Need to add select-options on standard Transaction IH08

    Hi All,
    I have a requirement to add a select-options to the tcode IH08
    but when I copy the report program to the Zreport the Enhancement points does not copy.
    Any help to do that.
    Thanks,
    Jatender

    Hello,
    I think the Enhancement will not be copied to Y or Z because SAP provided the Enhancement for standard Programs or Tcode, when you copied the IH08 Tcode program to Y or Z program then wht is the use of Enhancement so you can directly write the code.
    otherwise find the enhancement place in Copied program by comparing Standard program or Y or Z program.
    After coverting to Z or Y program directly include the Select-option in the selection screen.
    Edited by: Santosh Marupally on Nov 3, 2008 5:48 AM

  • Add select-option fields in report category (PNP)

    Hi,
    I am trying to create a new report category based on the logical database PNP.
    I noted that the fields available for select-option for report category come from infotype 0 or 1. Is there anyway to include fields from other infotypes ?
    Thank you.
    Regards
    Kir Chern

    Hi Kir Chern
    Due to the structure of the logical database you can just insert selection fields that are bestowed.
    However, as Charles mentioned, you can add selection fields special to your program by coding a selection screen at your program whose fields are inserted just after the ones added by the report category.
    *--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>

  • How to add SELECT-OPTIONS to VL10

    Hi Friends,
    I am bit new to enhancements, my requirement is,
    I have to add field VBAK-SUBMI as a Selection Criteria to the Selection Screen for the VL10 - Program V50RINCL - user exit <b>V50R_SELECT_OPTION_ADD</b>.
    Could u please advise either i can inclue zprogram to user exit or i can put code directly in above user exit. If possible give step by step code in zprogram.
    Thanks in advance, points will be given.
    Regards. VK Rao.

    Hi ,
    when you go inside the user exit, there would already be an include statement written for a z program. this z program might or might not be implemented before.
    If it is not implemented, on double clicking on the program name, you will be given a warning saying that the code has not been written yet. So when you press enter, the program will be in editable mode and yo can put your piece of code there.
    and if its already implemented by someone else, then you directly go in change mode in that include program and write your logic.
    Hope this helps,
    Reward points if helpful,
    Thanks,
    Karan

  • Select options in madulupool

    Hi Friends,
    I need to add select-option in my modulepool screen.
    the select option is for material Group.
    how to add select options in madulepools?
    thanks,
    Sridhar

    hi
    good
    if you want to use select-option directly in module pool then it is not possible.
    but you can do other way.
    create two varaiables
    data : v_kun_low like kna1-kunnr,
    v_kun_high like kna1-kunnr.
    use these two variables in layout ,let user knows that he can not give options like gt,lt,eq ,it will be always BT.
    and also when you see normal report program,you can use multiple values in either low or high,but here it is not possibel.
    use can enter only low value and high value.
    when you come to program point of view
    declare one range
    ranges r_kunnr for kna1-kunnr.
    do the coding like
    r_kunnr-low = v_kun_low.
    r_kunnr-high = v_kun_high.
    r_kunnr-options = 'BT'.
    r_kunnr-sign = 'I'.
    append r_kunnr.
    now you can use r_kunnr in select query ,it will work like select-option.
    other than this there is no option.
    thanks
    mrutyun^

  • Select-options in Webdynpro abap

    Hi,
    I want to use select options in webdynpro abap ,I checked links available in net but want a simple step by step procedure .
    -Sandeep

    Hi,
    What do you mean by simple steps? You need to write little code to add select options in WDA. You can check this wiki for reference: Web Dynpro ABAP - Complex select-options component usages - Code Gallery - SCN Wiki
    And there are lot more documents available in SCN. search here
    Regards,
    Kiran

  • SELECT OPTIONS ISSUE

    Hi Experts,
    I am using a select options for one field on my screen with extension which gives me an Arrow right next to the Field , now the issue is when i click on the Arrow a search help opens up for multiple selection.
    In this search help there are "FROM" and ''TO" columns , i would like to disable or make that "TO" column invisible i know it is possible in ABAP through function modules but how can it be acheived in webdynpro.
    I have gone through the "if_wd_select_options" class but couldnt find a solution for this , please lead me to the
    right approach.
    Thanks In Advance,
    Chaitanya.

    Hello Chaitanya Raju,
    You must be resusing the Select-option component WDR_SELECT_OPTIONS
    Follow below steps to create a select-options without ranges.
    I think this is only possible with dynamic handling.
    1)Acess the method: remove_all_sel_screen_items to Removes All Elements in Selection Screen.
    2)build up new screen by calling the method: ADD_SELECTION_FIELD.
    Before calling the 2nd step --> you will have to populate all the information that is required to build a select-option.
    *add select options field
      CALL METHOD wd_comp_controller->mo_so_handler->add_selection_field
        EXPORTING
          i_id                         = is_sel_op-m_id
          i_within_block               = is_sel_op-m_within_block
          i_description                = is_sel_op-m_description
          it_result                    = is_sel_op-mt_range_table
          i_obligatory                 = is_sel_op-m_obligatory
          i_value_help_id              = is_sel_op-m_value_help_id
          i_no_extension               = is_sel_op-m_no_extension
          i_no_intervals               = is_sel_op-m_no_intervals
          i_no_complex_restrictions    = is_sel_op-m_no_complex_restrictions
          i_as_checkbox                = is_sel_op-m_as_checkbox
          i_as_dropdown                = is_sel_op-m_as_dropdown
          it_value_set                 = is_sel_op-mt_value_set
          i_read_only                  = is_sel_op-m_read_only
          i_tooltip                    = is_sel_op-m_tooltip   .
    You can refer to this link for more info.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/wdabap/multiple%252bdynamic%252bselection%252bblocks%252bin%252bwebdynpro-abap
    Thanks,
    Bharath.K

  • Select-option on subscreen for Module pool

    Hi all,
    I need to add some elements on standard screen of a standard transaction. Everything works fine, but the problem starts when I want to add select-option. It is displayed, but when I press on Multiple selection button no action occurs, no window appears...I simplified the case and created test program with test screen and also I get the same behaviour. Anyone had similiar problem?
    Thnak you in advance for help,
    Anna

    I donot know how u have created the select-option. but u can try these 2 methods to create it. And I have checked that both of them work fine.
    1) How to create a select-options in a module pool screen.
    Method 1
    a) Create a subscreen area in your screen layout where you want to create the select options.
    b) In the top include of  your module pool program declare a selection screen as a subscreen e.g.
           SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
                 select-options s_matnr for mara-matnr.
           SELECTION-SCREEN END OF SCREEN.
    c) In the PBO and PAI of the main screen where the select options needs to be created do a call subscreen of the above screen (100).
           CALL SUBCREEN sub_area INCLUDING  <program>   <screen>
      This call subscreen statement is necessary for transport of values between screen and program.
    Note: All validations of the selection screen fields e.g. the s_matnr field created above should be done in selection screen events like AT SELECTION-SCREEN etc and not in PAI. These selection screen validations etc should be done in the top include only.
    Method 2
    a) Create 2 separate fields in your screen layout - one for the low value and one for the high value. Insert an icon beside the high value which will call the multiple selections popup screen on user command. Use function module COMPLEX_SELECTIONS_DIALOG to achieve this.
    struc_tab_and_field-fieldname = con_cust.  " 'KUNNR'
    struc_tab_and_field-tablename = con_kna1.  " 'KNA1'.
    CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
              EXPORTING
              TITLE                   = ' '
                text                         = g_titl1                                " 'Customers'
                tab_and_field     = struc_tab_and_field
              TABLES
                RANGE                   = rng_kunnr
              EXCEPTIONS
                NO_RANGE_TAB          = 1
                CANCELLED                    = 2
                INTERNAL_ERROR     = 3
                INVALID_FIELDNAME = 4
                OTHERS                           = 5.
    IF NOT rng_kunnr[] IS INITIAL.
             Read the very first entry of the range table and pass it to
             dynpro screen field
               READ TABLE rng_kunnr INDEX 1.
               IF sy-subrc = 0.
                  g_cust = rng_kunnr-low.
    ENDIF.
    You can use the return table rng_kunnr to populate your own internal range table with the values entered by the user. Basically here you are just simulating the work of a select-options parameter by module pool screen elements.
    Regards,
    Joy.

  • Dialog programming - How to place a select-option field in a dialog screen

    Hi all,
    In Dialog Programming, How to place a select-option field in a dialog screen.
    Kindly give me some example code...
    Thanks,
    Jaffer Ali.S

    hi Ali,
    U can add select-options in ur module pool by using  SELECTION-SCREEN BEGIN OF SCREEN <scrn> AS SUBSCREEN  command.
    check this link for reference.....
    http://help.sap.com/saphelp_47x200/helpdata/en/e7/deb237b9a9a968e10000009b38f8cf/frameset.htm
    Example Code :
    DATA : ok_code TYPE sy-ucomm.
    SELECTION-SCREEN BEGIN OF SCREEN 1010 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: p_rad1 RADIOBUTTON GROUP grp1 DEFAULT 'X',
                p_rad2 RADIOBUTTON GROUP grp1,
                p_rad3 RADIOBUTTON GROUP grp1.
    SELECT-OPTIONS: s_matnr FOR  mara-matnr,
                    s_matkl FOR  mara-matkl,
                    s_mtart FOR  mara-mtart.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN END OF SCREEN 1010.
    START-OF-SELECTION.
      CALL SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
    MODULE status_0100 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    CALL SCREEN 1010 .
    ENDMODULE.                    "status_0100 OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE user_command_0100 INPUT.
      CASE ok_code.
        WHEN 'EXIT'.
          LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    SCREEN 100 ****************
    PROCESS BEFORE OUTPUT.
      MODULE status_0100.
      CALL SUBSCREEN sub_1010 INCLUDING sy-repid '1010'.
    <b>***** where sub_1010 is name of sub-screen area</b>
    PROCESS AFTER INPUT.
      CALL SUBSCREEN sub_1010.
      MODULE user_command_0100.
    <<< REMOVED BY MODERATOR >>>
    Harimanjesh AN
    Edited by: Marcelo Ramos on Dec 17, 2008 7:54 PM

  • How to declare and work with select-option in screen painter?

    hello there,
    can anybody plz suggest me ,how to declare and work with select-option in screen painter?
    neon

    Hi Blue,
    Please check these threads which will help you a lot..
    module pool programming " to add selection-option on screen"
    Re: Select option in Dialog program screen
    Re: SELECT-OPTIONS in Screen
    Good luck
    Narin

  • Is possible in a dialog screen attach a field functional like select-option

    hi,
       Is it possible - in a dialog screen - to attach a field that has functionality like Select-options fields?
    And if so - how?
    and information about complex_selections_dialog

    Hi,
    Look at the below links
    module pool programming " to add selection-option on screen"
    module pool programming " to add selection-option on screen"
    Regards
    Sudheer

  • Adding Select-Option as an import parameter of the Fm

    Hi Abappers,
    I have to add Select-option variable in the import parameter of the function module.
    How should i do this?
    Please reply.
    Thanks and Regards,
    Rahul

    Create a import parameter of RSSELECT.
    this will give u the fields which are present in .. an selection option.

Maybe you are looking for

  • HT203172 I have quite a few questions .. i own a Macbook Pro 13 inch early 2011 ..and these are the list of problems i have

    1) My Sd card reader stopped woking unexpectedly ...( i do need help on this ) 2)repair permissions does not work properly ,i mean there are a lot of problems that occur to be repaired but once i run the verify permissions again ,the problems do occu

  • Error in SEND MAIL step with exception 1001

    Hi Experts, I am getting exception 1001, error message Document <&> could not be sent when I put my user id in SEND MAIL step. In the same workflow,I put my user id at an activity step,and I am sucessfully receiving work item generated at that activi

  • Zooming out in iTunes library?

    Hi, I just downloaded the new version of iTunes and noticed that there is no longer a zoom in/out button below the search tab in the right hand corner when I have the grid section (not cover flow) on in my iTunes library. The album photos are really

  • Multiple producer one consumer

    Greetings, I am developing an application where data are obtained at different rates and different processes, but I want to store in one file, store this data as I can if I have multiple producers and one consumer?? Solved! Go to Solution.

  • After Effects CS4 won't open?

    I installed my After Effects and did everything properly and used it maybe once or twice until it started to not open at all. Everytime I open it now the licence Agreement' comes up everytime and I have to press Accept, but when I do the After Effect