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.

Similar Messages

  • Select option in FM import parameter

    Hi,
    I want to add ranges in import parameters in FM, for the following fields
    u2022     PO Doc Type(EKKO- BSART) in Range
    u2022     PO Doc Number(EKKO- EBELN) in Range
    u2022     PO Date Range(EKKO-AEDAT) in Range
    u2022     Plant(EKPO-WERKS) in Range
    u2022     Co Code(EKKO- BUKRS) as mandatory
    u2022     Vendor (EKPO-LIFNR)
    I know there are some structures defined for some fields by SAP e.g sel_aufnr etc for multiple values but for the given fields it is not there, is there any option to add the ranges without creating explicitly their table types.

    Use Passing parameter like
    TVARV_T ( Table type )
    or TVARV ( Transparant table.)
    Using this you can directly pass Ranges ...!
    Hope this is useful
    Thanks Anup D

  • Select options to Function Module parameter

    Hello,
    I have a select options parameter in my report and then I have a function module that have to select into a database table using this SO.
    How can I pass the SO to the FM?
    The code must be something like that:
    REPORT ZXXXX.
    SELECT-OPTIONS:  so_werks FOR marc-werks.
    CALL FUNCTION 'ZFUNCTION'
    FUNCTION ZFUNCTION
    SELECT matnr FROM marc INTO TABLE it
    WHERE werks IN so_werks
    The select options must be a TABLES parameter? I have to create a structure type for that SO?

    Hi,
    In FM interface you can use
    structure EFG_RANGES ( In Tables Parameter ) . This structure is same as select options.
    Or in Importing parameters use EFG_TAB_RANGES . This is an internal table type .
    In both ways you can pass your select option to FM diretcly.
    Check the following link as well
    https://forums.sdn.sap.com/click.jspa?searchID=11071891&messageID=4908310
    Regards,
    Raj.

  • Error V0 104 while adding select option on customized screen

    Hi all,
    I have a screen added on the standard transaction IW21 (with selection screen definition and called like subscreen). On this screen I have some SELECT-OPTIONS and when I press the button of selecting multiple values, I get the following message: "Requested function & is not available here" (V0 104), where & is long number starting with %..I have added entries to the tables T185F and T185 with the transaction VFBS, but I dont know how to assign the Function codes to SELECT-OPTIONS..
    Thanks in advance for feedback!
    Anna
    Edited by: Anna L on Jul 16, 2008 11:03 AM

    Just an explanation: no matter the error message I get, the values are transferred correctly from the multiple selection screen to my screen.
    I hope somebody got similar case and can give me some hint...
    Thank you,
    Anna

  • Adding Selection Options Fields in Report(Using Query)

    Hi,
    how can we add Selection Fields Options in Query Reports Which we create using SQ01. I need a default option by which we can add all the selection option given by user.
    Anybody can help me..?
    Regards
    lijo Joseph

    Do you have anything defined in the 'Calcs' section?
    If so, any fields returned by the query that are not included in the calculation will be automatically added to the Group fields (using the same logic as required with calculations/group by in any SQL query). The fields won't be able to be removed from the Group list unless the Calc is also removed.

  • How to Pass Select-options Single values as Parameter value to Method ?

    Hi Friends,
    I need to pass select-options values(single values) for s_arbpl to the method "process_percent_planned". Now all single values are in internal table s_arbpl-low field. I need to pass this internal table(s_arbpl-low) values to the method where i will run query based on these single values.In my below code i am passing value through variable w_arbpl. I have defined this parameter in the method.But here only one value is passed to method. I want multiple single values (in s_arbpl-low) should be passed. Please let me know how to correct code.
    Tables: crhd.
    Data: ktext type auftext,
    w_arbpl type arbpl.
    select-options: s_arbpl for crhd-arbpl.
    ktext = 'Test'
    create object obj_plan.
    call method obj_plan->process_percent_planned
    exporting
    ktext = ktext
    w_arbpl = s_arbpl-low.
    Thanks

    hi ,
    when you want to pass  S_ARBPL AS PARAMETER IN SELEC OPTION
    ARBPL SUCH AS  
       WIN002
      WIN003
      WIN004
      WIN005
      WIN006
      WIN007
    IN MULTIPLE SELECTION  S_ARBPL
    THEN
    USE  
    Tables: crhd.
    Data: ktext type auftext,
    w_arbpl type arbpl.
    select-options: s_arbpl for crhd-arbpl.
    ktext = 'Test'
    LOOP AT S_ARBPL .
    create object obj_plan.
    call method obj_plan->process_percent_planned
    exporting
    ktext = ktext
    w_arbpl = s_arbpl-low.
    ENDLOOP.
    REGARDS
    dEEPAK .
       THEN SELECT THAT
    call method obj_plan->process_percent_planned
    exporting
    ktext = ktext
    w_arbpl = s_arbpl-low.

  • Adding select-option value in selection screen of FBL5N tcode.

    Hi Experts,
    I have one requirement that to add a Header Text Field(BKPF-BKTXT) in section screen of standard program RFITEMAR(tcode : FBL5N), i tried to add that field but it was not displayed where i required, i mentioned below  where i required.
    Customer account                     
    Company code   
    i required under company code select option value in same selection screen block.
    Please do the needful.
    thanks in advance.
    gsreddy.

    Hi,
    If you get the access key it is possible to edit the standard program,
    How u tried to add the field???
    regards,
    Mullai

  • Firefox won't let me select options from drop down menus, on the previous version nor on the current 4.0 version that I just downloaded.

    If I am on a site and trying to get information etc, and I have to choose from a drop down menu of any kind, Firefox won't let me choose anything. I can't answer the next question regarding This Happened because I can't select from your drop down.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • HOW TO PASS SELECT-OPTIONS AS IMPORT PARAMETER TO A CLASS

    Hi experts,how to pass select options value as a export parameters to a zclass.
    can  give me some idea.
    Thanks
    sai

    As Sachin already said, selection options are stored in an internal table. You can reconstruct the table type without the corresponding input fields using the type addition RANGE OF.
    So - assuming you have the following in your program:
    DATA: wa TYPE sflight.
            SELECT-OPTIONS so_car FOR sflight-carrid.
    you can create a publically-visible type in your class using direct type entry and the code
    TYPES: my_selectoption TYPE RANGE OF sflight-carrid.
    and use this to define the importing parameter of the method.
    The only other thing you have to remember is that select-options generates an internal table with header line. Thereore, to pass the table to the method, you would use (in the above example) so_car[], and not just the name of the select-option.
    Hope this helps.
    Regards
    Jon.

  • Parameter or select-option

    hello all,
    i have requierment in which i am confused.I have to declare a field in selection screen for user input. I have declared the field as parameter.But there is no multiple select option. And user ant to have multiple select option(.i.e interval range).
    The problem is the field i have declared in parameter is type c.Like:: Enterprise(30) type c,
                  divivsion(30)  type c.
    So this is not having any interval range.If i use select-option i can provide the range. SO plz help how can i define the parameter in select-option if its possible.
    Most important thing is is there is no filed for refrence like: s_matnr for mara-matnr. as we can define in select-option.
    Plz suggest some thing on this.
    Thanks & Regards,
    Anu Maheshwari

    Hi Anu,
    Decalare it as
    1)If you want your SELECT -OPTIONS to behave like parameters. USe the option.
    <b>SELECT-OPTIONS ..... NO INTERVALS NO-EXTENSION</b>
    REPORT abc.
    DATA : v_enterpr(30) TYPE c,
    v_divin(30) TYPE c.
    SELECT-OPTIONS : s_enterp FOR v_enterpr NO INTERVALS NO-EXTENSION ,
                     s_divin  FOR v_divin NO INTERVALS NO-EXTENSION .
    2)If you want to have it as SELECT-OPTIONS.
    Then
    REPORT abc.
    DATA : v_enterpr(30) TYPE c,
    v_divin(30) TYPE c.
    SELECT-OPTIONS : s_enterp FOR v_enterpr ,
                     s_divin  FOR v_divin .
    Refer to the program I gave in this link for more details.
    Re: Difference of "NO INTERVALS NO-EXTENSION" and  "Parameter"
    Regards,
    Arun Sambargi.

  • VT04 - Adding new select options in grouping screen for capacity criteria

    Hi,
    I am trying to add a new select option(min & max) for grouping the delivery based on the quanity/no of units just like the weight/volume. Is there an exit/enhancement available in the program. The program for VT04 is RV56TRGN and the actual program for grouping criteria is RV56TRSP. 
    I have looked into  the user exit EXIT_SAPLV56M_001.  This I guess is only for adding the grouping criteria and not for adding select options like weight/volume.... I would need to add something similar to this.
    THnks
    Chinna

    You should search for Screen Exit .
    Also you can check if any enhancement point is avaliable in screen display place.
    You need to debud and find the exact place where this change will be required and then it will be easy to find the option  for making desired changes.
    Hope this helps you.

  • Change from Parameter to Select-options.

    Hi All,
    Requirement is to change the existing program.
    One of my requirement is to change parameter(P_VKORG) to Select-options(S_VKORG).
    I mean  earlier we have only one Slaes Organization, now we have got to use multiple Sales organizations. For this requirement I have used select-options insted of Parmeters.
    But the code has:
    a)PERFORMS using Parameters( P_VKORG). This inturn is used in the select statement of the FORM-ENDFORM.
    b)READ statement also has P_VKORG in where condition.
    How should these be replaced with Select-options(S_VKORG)?
    What would be the effect if I directly replace them with S_VKORG.
    Kalyani T

    you cannot just directly replace with S_VKORG.
    select option is a structure with 4 fields, sign, option, low and high, hence it has to be dealt accordingly.
    a. performs has to be changed to 'tables S_VKORG'
    eg. perform get_data tables s_vkorg.
    b. read statement has to be modified to deal with multiple values. best option will be to select for data in s_vkorg, and save in an internal table.
    for eg, if select option was for vkorg,
    select vkorg from tvko into t_tvko where vkorg in s_vkorg.
    now t_tvko has list of possible vkorgs - regardless of we had a range or ne or gt or CP or whatever we had in select option.
    now modify the read table to do for entries in T_TVKO.
    c. in the select statement which is used in forms, wherever you see ' = P_vkorg'  , replace with IN S_VKORG.

  • How to pass value to select-option parameter using SET PARAMETER Command

    Hi,
        Am passing values to selection-screen fields in report RV13A004 ( used in VK11, VK12 and VK13). using below statement but material number is select-option in this report. am able to pass  MATERIAL FROM using SET PARAMETER ID, can i know how to pass values MATERIAL TO range in select-options fields using SET PARAMETER Command ??
    Passing values to parameter id
    set parameter id 'VKS' field kschl.
    set parameter id 'VKO' field vkorg.
    set parameter id 'VTW' field vtweg.
    set parameter id 'KDA' field erdat.
    set parameter id 'MAT' field matnr_from.
    Change condition price.
    call transaction 'VK12' and skip first screen.
    Thanks in advance.
    Regards,
    Balamurugan.

    Hi,
    instead of using set parameters and dden call transaction use this..........
    submit RV13A004  WITH SELECTION-TABLE rspar
    Effect
    If you specify this addition, parameters and selection criteria on the selection screen are supplied from an internal table rspar. You must specify an internal table with the row type RSPARAMS for rspar. The structured data type RSPARAMS is defined in the ABAP Dictionary and has the following components, all of which are data type CHAR:
    SELNAME (length 8),
    KIND (length 1),
    SIGN (length 1),
    OPTION (length 2),
    LOW (length 45),
    HIGH (length 45).
    To supply parameters and selection criteria for the selection screen with specific values, the lines in the internal table rspar must contain the following values:
    SELNAME must contain the name of a parameter or selection criterion for the selection screen in block capitals
    KIND must contain the type of selection screen component (P for parameters, S for selection criteria)
    SIGN, OPTION, LOW, and HIGH must contain the values specified for the selection table columns that have the same names as the selection criteria; in the case of parameters, the value must be specified in LOW and all other components are ignored.
    If the name of a selection criterion is repeated in rspar, this defines a selection table containing several lines and passes it on to the selection criterion. If parameter names occur several times, the last value is passed on to the parameter.
    The contents of the parameters or selection tables for the current program can be entered in the table by the function module RS_REFRESH_FROM_SELECTOPTIONS.
    Notes
    In contrast to selection tables, the data types of the components LOW and HIGH in table rspar are always of type CHAR and are converted to the type of the parameter or selection criterion during transfer, if necessary.
    When entering values, you must ensure that these are entered in the internal format of the ABAP values, and not in the output format of the screen display.
    Cheers
    Will.

  • Set parameter id for select-options to fill more than one value

    FROM MY CUSTOM PROGRAM I AM CALLING A TRANSACTION CODE. IN MY REPORT I WANT TO SELECT MORE THAN ONE RECORD AND TO CALL THE TRANSACTION BY PASSING THE SELECTED VALUES TO THE SELECT-OPTIONS OF THE TRANSACTION.
    IF IT IS A PARAMETER I CAN WRITE SET PARAMETER STATEMENT FOR ONE VALUE AND EASILY CALL THE TRANSACTION. BUT I WANT TO FILL THE SELECT-OPTIONS OF THE TCODE.
    CAN ANYBODY PLEASE PROVIDE ME THE LOGIC HOW TO FILL THE SELECT-OPTIONS FROM MY REPORT FOR CALLING THE TRANSACTION.
    REGARDS,
    VASU.

    Hi..
    Instead of calling the Transaction
    Call the Report directly using:
    (First declare the Ranges)
    ranges : R_matnr for mara-matnr.
    (Fill the values into Ranges Table and call the report )
    SUBMIT <REPORT>
      With s_matnr in R_matnr.
    <b>Reward if helpful.</b>

  • Import from Text File in Select-option

    Hi,
    Is there any way to import text file for Ranges tab in select-option(i.e., to fill both low and high values in select-option intervals)?
    If so,how the input file should be?

    Hi Jayanthi
    The following notes will explain how you can achieve this:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_aba/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d343134323837%7d">SAP Note 414287 - Upload function for multiple selection</a>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_aba/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d343331353037%7d">SAP Note 431507 - Upload from clipboard for multiple selection</a>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_aba/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d343334363235%7d">SAP Note 434625 - Upload for multiple selection, without field conversion</a>
    Regards

Maybe you are looking for

  • I deleted all my sync info, and I need it back I deleted it today by mistake please help me here.

    # I formatted my desktop # I install Firefox # I tried the Firefox sync option so I can restore my stuff # And it's asked me for a username & password, So I used my username and password but I stopped when it asked me for a recovery key that I don't

  • Issue at 8D report

    Hi 8D Analysis report for Customer complaints defect. when I create 8D report for Customer notification Report is Picking values from Notification - Referance, Defect description, and Defect cause but not the other fields( others are empty) Actually

  • Setting Oracle environment variable using batch (.bat) file in windows

    Hi, Oracle 9i db Windows OS I am in process to create the database (Considered that Oracle9i software is already installed) by running one batch file which consist of all the scripts for the database creation. But i also want to set the environment v

  • Resizing ALV Grid When Changing Screen Resolution

    I have an ALV Grid imbedded in a custom container.  I would like for the Grid to resize if the user switches from 1024x768 to 800x600 resolution.  I obviously could size it for the lower res screen (and it would be ok on the higher res screen), but I

  • OUI not showing up while installing patchset

    Hi All, I am trying to install Oracle patch p6810189 for linux itanium 64 bit. When runInstaller was invoked, OUI is not coming up. There is some problem with JRE is my visceral opinion. Does someone has any clue of why OUI is not coming up? DB Detai