BAPi, Select-options,?????

Hi Experts,
I hv declared( to get the functionality like select-options),
<i> s_cust LIKE RSPARAMS</i>
as IMPORT parameter in my_bapi.
So, now, I wanna to add like(like single values in select-options),
<u>SIGN::::::::::::::::OPTION:::::::::::::::LOW::::::::::::::::HIGH</u>
I..............................EQ....................10
I..............................EQ....................20
similarly, I wanna to add like(like  Ranges in select-options),
<u>SIGN::::::::::::::::OPTION:::::::::::::::LOW::::::::::::::::HIGH</u>
I..............................BT....................10.........................20
But, in se37, after pressing F8, in s_cust, I am unble to enter the values, as I said above?
Pls, clarify.
ThanQ.

ThanQ.
Yes, I did it. Fine. I mean, I defines s_cust as TABLE in Bapi:
So, pls. let me know, How to pass these s_cust to report prog. with SUBMIT statemnt? Actually, I am opened another thread(title is <b>How to pass the Tables from BAPi to Report Prog. with SUBMIT?</b>) for this issue.
thanq.
Message was edited by:
        Srikhar

Similar Messages

  • Passing select options internal table to BAPI attributes...

    Hello Web Dynpro Gurus,
    When I get the values from select options into interna table, how can I pass the same to the attribtues of the importing/exporting nodes of the BAPI by reading the context.
    Please help .
    Regards,
    Jainam.

    Hello,
    The code in bold below sets attributes  of my node one by one for the select option node atttributes i.e. SIGN, OPTION, LOW and HIGH.
    Instead of that how can I set all attributes of node which is of type select-options in one shot.
    method ONACTIONSEARCH .
    DATA: S_WAERS TYPE REF TO DATA.
    FIELD-SYMBOLS:  <FS_WAERS> TYPE TABLE.
    Retrieve the data from the select option
      S_WAERS = WD_THIS->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD( I_ID = 'WAERS' ).
      Assign it to a field symbol
       ASSIGN S_WAERS->* TO <FS_WAERS>.
       data:
        Node_Rep_Curr                       type ref to If_Wd_Context_Node,
        Elem_Rep_Curr                       type ref to If_Wd_Context_Element,
        Stru_Rep_Curr                       type If_Select_View=>Element_Rep_Curr .
    navigate from <CONTEXT> to <REP_CURR> via lead selection
      Node_Rep_Curr = wd_Context->get_Child_Node( Name = IF_SELECT_VIEW=>wdctx_Rep_Curr ).
    get element via lead selection
      Elem_Rep_Curr = Node_Rep_Curr->get_Element(  ).
    get all declared attributes
      Elem_Rep_Curr->get_Static_Attributes(
        importing
          Static_Attributes = Stru_Rep_Curr ).
        Node_Rep_Curr->set_attribute(
        Exporting
          name = 'SIGN'
          value = 'I' ).{code}
    endmethod.
    Edited by: Jainam Shah on Feb 5, 2010 2:55 PM

  • BAPI at INPUT give range like SELECT-OPTIONS

    hi all
         i don't know weather it right forum for BAPI , but writing under this .
         my requirement is like , as we give range in SELECT-OPTIONS,
    like wise i want to give range in BAPI at INPUT level .
    i.e.  say i want to get details of Vendors , i will write a BAPI and i will give VENDOR code range to get information of all vendor with in that range.
    please guide me in this .

    Hi!
    You could use this bapi fm: BAPI_VENDOR_GETDETAIL
    I could imagine it like this:
    1. You have to create an FM, with the RA_LIFNR range.
    2.
    SELECT * FROM lfa1 INTO TABLE gt_lfa1
    WHERE lifnr IN ra_lifnr.
    LOOP AT gt_lfa1 INTO gs_lfa1.
    CALL FUNCTION 'BAPI_VENDOR_GETDETAIL'
    with the parameters
    collect data into an output table
    ENDLOOP.
    3. Give back the output table to the caller program
    Regards
    Tamá

  • How to use select-options in the function module of import parameter ?

    Hi ...
       I have created a BAPI and tested in SWO1 tcode , by giving the single value for an company code ( BUKRS ) , it executed properly .
    Same thing is working after implementing in a program .
    so now it is working for fetching a single company code details .
    My requirement is : I want to use select-options in program as well as in function module IN IMPORT PARAMETER.
    Program :
    REPORT  ZTEST.
    TABLES : T001 , ZBAPI_STR .
    TYPES : BEGIN OF TY_ITEM  .
              INCLUDE STRUCTURE ZBAPI_STR .
    TYPES : END OF TY_ITEM .
    DATA :WA_ITEM TYPE TY_ITEM ,
          ITEM LIKE STANDARD TABLE OF WA_ITEM INITIAL SIZE 0 .
    PARAMETER : BUKRS TYPE ZBAPI_STR-BUKRS.
    call function 'ZBAPI_FMT001'
      exporting
        bukrs         =  BUKRS
    IMPORTING
      RETURN        =
      tables
        itemtab       = ITEM
    IF ITEM IS NOT INITIAL .
      LOOP AT ITEM INTO WA_ITEM .
        WRITE : / WA_ITEM-BUKRS , WA_ITEM-BUTXT , WA_ITEM-ORT01 , WA_ITEM-LAND1 .
      ENDLOOP.
    ENDIF.
    FUNCTION MODULE :
    FUNCTION ZBAPI_FMT001.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(BUKRS) TYPE  EFG_TAB_RANGES
    *"  EXPORTING
    *"     VALUE(RETURN) TYPE  BAPIRET2
    *"  TABLES
    *"      ITEMTAB STRUCTURE  ZBAPI_STR
    SELECT BUKRS BUTXT ORT01 LAND1 FROM T001 INTO TABLE ITEMTAB WHERE BUKRS = BUKRS .
    ENDFUNCTION.
    Regards
    Deepa.

    I have given a similiar example which i did
    Declare a
    Table type:Z_TT_PONUM             
    Short text  :  Select options  PO Number
    in SE11 tcode with row type eg: Z_ST_PONUM
    create a structure (this will be the row type)
    Structure          Z_ST_PONUM            
    Short text         Select Options Field PO number
    Compenent  Compent type
    SIGN       BAPISIGN      Inclusion/exclusion criterion SIGN for range tables
    OPTION       BAPIOPTION      Selection operator OPTION for range tables
    LOW       EBELN                      Purchasing Document Number
    HIGH       EBELN                      Purchasing Document Number
    In the function module import
    give as
    I_PO_NUM     TYPE     Z_TT_PONUM     opt  pass value Select options  PO Number
    Hope this is exactly what you want to know.
    So you create a structure simliar to mine but the low an high whould be your component
    then a table type  and then include that in the BAPI.
    Then pass your select-option value to this BAPI when you call this BAPI in the program

  • Select-Option in Visual Composer

    Hi Experts,
    How to use Select-option in Visual composer?
    My requirement is:
    In a input form, I have to specify Field Name,Sign,Options, Low value and High value for a field.
    And after specifying all these values i will pass the input into BAPI and get the result.
    Thanks in Advance,
    Roshini

    hi
    For dynamic entry list Check the following link
    Refer page 145
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/63f2052e-0c01-0010-b9a2-e1f7457a7fbe">VC Modeler Guide</a>
    Thanks
    Harsimran

  • "Select Options" in WD view

    Hi to all,
    I have a WD View with some fields that I use as parameters in a BAPI and it works fine. Now I prefer to use thouse fields like "ABAP select options" and so "more than", "less than", "not equal to" and so on. How is it possible in a WD application?
    Thank you very much,
    Antonio

    Hi Antonio,
    please have a look at this Select Options. The example given is from flight list tutorial but should work in similar kind for your scenario.
    Hope that helps.
    Regards
    Stefan

  • How to use "Select options" in Webdynpro Java ?

    HI experts ,
    I want know if can be implemented "select options" like the ones used in R3 - ABAP in a webdynpro Java.
    And in case of being possible, how to implemented using Adaptive RFC or BAPI with a R3 backend system?
    Our Portal is EP6.0 SP18 ,J2EE 6.40 .
    Thanks & Regards,
    Jianguo Chen

    Hi Jianguo,
    check these links:
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/5f/e5de3f68d48f15e10000000a155106/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/5f/e5de3f68d48f15e10000000a155106/frameset.htm</a>
    You may use 2 EVS to simulate your select option.
    Regards,
    Gianluca Barile

  • SELECT-OPTION to internal table

    Hi,
    I need to convert the select-option values into an internal table.
    For example, if there is a select-option S_WERKS... i need all the values entered for S_WERKS into the internal table. The internal table structure contains only WERKS.
    My actual requirement is, for the given plant values as select-option, i need to fetch all details of the plants. And I should not use any SELECT statements at any stage. Only through function module/ BAPI/BADI/Class methods.
    I found one function module T001W_READ, but i need to pass the plant for that.
    Please suggest.
    Thanks in advance.
    kishore

    Hi Kishore
    Why can't you use any SELECTs? If it is so required why not writing your own FM to select them? You can pass your select-option via a generic parameter and assign it to a range at the beginning of your FM. Or you can assign it to a select-option-like table (you can find structure names of similar type from DDIC)
    <i><b>e.g.</b></i>
    TABLES t001w .
    RANGES s_werks for t001w-werks .
    DATA: BEGIN OF lt_werks ,
            werks LIKE t001w-werks ,
          END OF lt_werks .
    s_werks[] = it_werks_so[] .
    SELECT werks FROM t001w
           INTO lt_werks
           WHERE werks IN s_werks .
    As another thing, let me introduce you the SDN Forums pointing system: You can assign points to posts which you find helpful while solving your problem. You can reward points by pressing the yellow star icon at header of each post. You can assign;
    - one 10 points (solved)
    - two 6 points (very helpful answer)
    - many 2 points (helpful answer)
    *--Serdar

  • Select-Option to be passed in FM

    Hi all,
      I have one requirement where I want to pass select-options variable ( which contains one or more plants 'WERKS' ) to  the function module <b> 'YBAPI_MATERIAL_AVAILABILITY' [b/] . How do I achieve this.
    Please help.
      Thank You.

    Hello Premal
    Select-options are nothing else but internal tables with header line. Since you are apparently developing a customer BAPI have a look how this is solved in the standard BAPI <b>BAPI_MATERIAL_GETLIST</b>. This BAPI uses a TABLES parameter <b>MATNRSELECTION</b> having BAPIMATRAM as line type.
    Assuming that you have defined your select-option like this:
    SELECT-OPTIONS:
      o_matnr      FOR matnr.
    Add a TABLES parameter MATNRSELECTION to your y-BAPI and call it like this:
      CALL FUNCTION  'YBAPI_MATERIAL_AVAILABILITY'
        EXPORTING
        IMPORTING
        TABLES
          MATNRSELECTION = o_matnr
          RETURN                 = gt_return.
    Regards
      Uwe

  • Report help for multiple Date Select options

    Hi Friends,
    For a particular year wise report, the client wants 12 date select-options which are changeable and informal every year .The report will also be displayed as per the given date selection period wise. Please help me how to fetch the datas from the table as per the given selection period. Currently the report have one date select-option where the user gives selection range as 1.04 to 31.03. It's related to EB power consumption report and hence the new requirement on date selection which are informal and not a fixed date of every year.
    Ex:Selection-Screen
    Period 1 : 08.04.2008 to 12.05.2008
    Period 2: 12.05.2008 to 20.06.2008
    Period 3: 21.06.2008 to 28.07.2008
    Period 4: 29.07.2008 to 15.08.2008
    Period 5: 15.08.2008 to 21.09.2008
    Period 6 : 21.09.2008 to 14.10.2008
    The data will derive as per the above selection ranges.......
    Please advise with example.
    thanks & regards
    Sankar.

    >
    sankar babu wrote:
    > Ex:Selection-Screen
    > Period 1 : 08.04.2008 to 12.05.2008
    > Period 2: 12.05.2008 to 20.06.2008
    > Period 3: 21.06.2008 to 28.07.2008
    > Period 4: 29.07.2008 to 15.08.2008
    > Period 5: 15.08.2008 to 21.09.2008
    > Period 6 : 21.09.2008 to 14.10.2008
    Hi,
    In this case just derive all records matching dates between 08.04.2008 (low in first select-options) and 14.10.2008(high in last select-options.
    Also my advice is to use a single select-options and prompt the user to give the dates as ranges in the multiple entries dialog which can be opened by clicking the button on the right side of the select-options.
    Regards
    Karthik D

  • How To... Change the Data Type for a SELECT-OPTIONS at run time.

    Hello,
    I am trying to restrict the values available for entry into a SELECT-OPTIONS at run time depending on user input.
    The logic is as follows. The user has two input fields. A PARAMETER field which has the type RSDIOBJNM and allows them to choose an InfoObject. And the user has a SELECT-OPTIONS field to allow them to select the Characteristic values for that InfoObject.
    I would like the following example to be possible:
    The user enters 0MATERIAL into the PARAMETER. When the user clicks on the SELECT-OPTIONS control code will derive a list of possible options the user can enter in the SELECT-OPTIONS. In this case only values found in the master data or at least no values greater than 18 characters.
    I have looked at the following function module SELECT_OPTIONS_RESTRICT and this do not appear to be helpful as they only restrict on the signs allowed for the values (unless I misunderstand, it is a complex function module!).
    The code I have so far is (thus the user enters a InfoObject into p_char1 and the select options so_char1 should only accept active values of that InfoObject):
    declaration of variables for user interface
      DATA c_char(32) TYPE c.
    declaration of count variable
      DATA i_count TYPE i.
    declaration of user interface
      SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-001.
        PARAMETERS: p_ipack TYPE RSLOGDPID.
      SELECTION-SCREEN END OF BLOCK a1.
      SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-002.
        PARAMETERS: p_char1 TYPE RSDIOBJNM.
        SELECT-OPTIONS: so_char1  for c_char NO INTERVALS.
        PARAMETERS: p_char2 TYPE RSDIOBJNM.
        SELECT-OPTIONS: so_char2  for c_char NO INTERVALS.
        PARAMETERS: p_char3 TYPE RSDIOBJNM.
        SELECT-OPTIONS: so_char3  for c_char NO INTERVALS.
      SELECTION-SCREEN END OF BLOCK b1.
    Is what I am trying to do possible???
    Thanks for any help. Ross.

    You really want to restrict possible values of a select-option based on another field, not change the length of type of the select-option field, right?
    Here is what you do:  Code a custom F4 value help for the select-option at event AT SELECTION-SCREEN ON VALUE REQUEST FOR..  The first thing you do here is read the value of the parameter field (p_ipack in your example).  You can use function module DYNP_VALUES_READ.  Based on this value, you can propose values for the select-option fields.  Note that the use can still enter whatever s(he) wishes in to the select-option field without pressing F4. In this case, you will have to code some input validations taking into account the value in the p_ipack field.

  • Select-options in SELECT query - syntax error

    Hi all,
      I get the error below when I try to use the select options in a SELECT query . Please help me.
    "The IN operator with "SO_AWART" is followed neither by an internal
    table nor by a value list."
    The code i have used(Logical database  PNP is used):
    TABLES: pernr,
            catsdb.
    INCLUDE ztime_cwtr_top.    " global Data
    INCLUDE ztime_cwtr_f01.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
    SELECT-OPTIONS SO_AWART FOR CATSDB-AWART.
    PARAMETERS P_THRES TYPE I.
    SELECTION-SCREEN END OF BLOCK B1.
    Get data from CATSDB table. Workdates within the date interval are considered.
      SELECT pernr workdate awart catsquantity beguz enduz status
      FROM catsdb
      INTO TABLE it_catsdb
      WHERE pernr  = pernr-pernr    AND
           workdate GE pn-begda     AND
           workdate LE pn-endda     AND
           status   IN ('20', '30') AND
           awart    IN  so_awart .
          awart    IN ('1100', '1137', '1138', '1139', '1140',
                      '1147', '1148', '1149', '1157', '2003' ).
    when I give the values directly i do not get any syntax error, but when I use select options in the where condition I get the syntax error.
    I have tried different options like using only the select-options in the where condition.
    Thanks in advance.....
    Madhu

    Solved.
    Code with syntax error:
    include z...top .
    include z...fo1.
    select-options: xxxxxxx
    Code  with no syntax error:
    select-options: xxxxxxx
    include z...top .
    include z...fo1.
    Thanks for all your help,
    Madhu

  • How to hide some select-option of Logical Database in report?

    How to hide select-option of  Logical Database in report?eg . In Logical Database 'PNP' , my code is 'GET  PERNR' , excute the report , select-screen is displayed . I want to hide some select-options , such as PNPPERNR-LOW .
    Edited by: rongrong wang  on Mar 26, 2008 9:31 AM

    U need to write code in initialization as
    initialization.
    loop at screen.
    if screen-name = 'PNPPERNR-LOW'.
    screen-active = '0'.
    modify screen.
    endif.
    if screen-name = 'PNPPERNR-HIGH'.
    screen-active = '0'.
    modify screen.
    endif.
    endloop.

  • Re : select-options in abap-objects program

    Dear friends,
                      I want to give select-options in abap-objects program. How to give that.
                                 Thanking You
    with regards,
    Mani

    In the transaction SE24, enter your class name, click modify.
    in the tab named "Types" you have to declare two types. By example, if you want to receive one select-options that in your program that uses this class is declared like:
    " P_SAKNR FOR SKAT-SAKNR".
    you've got to declare two types in the class:
    a- TYPES:  begin of E_S_SAKNR,
                          sign(1),
                          option(2),
                          low(10),
                          high(10),
                      end of E_S_SAKNR.
    b - TYPES E_T_SAKNR type standard table of E_S_SAKNR.
    so, in the class method that you want to receive P_SAKNR as importing parameter. You got to do this:
    method TEST importing ET_SAKNR type E_T_SAKNR.
    now, in the implementation of this method you should be able to use ET_SAKNR as the same way as you usually use a parameter or a select-option. You could use it in a select with the operator IN by example..

  • Re : select-options in abap objects

    Dear friends,
    I want to give select-options in abap-objects program. How to give that.
    Thanking You
    with regards,
    Mani

    HI Mani,
    It's common mix ABAP Procedural with ABAP Objects in the same program.
    You should use the same way used in ABAP procedural program as Marco Cerdelli sad.
    But inside ABAP OBJECTS classes you can't use is these statement type.
    Don't forget to close this thread and all yours previous when your question be answered ! In case of doubt read the [rules of engagement|https://forums.sdn.sap.com/].
    Best Regards.
    Marcelo Ramos

Maybe you are looking for