Query related to Function Module

Hi all,
Is there any function module is available in which if I pass the date It returns the month in text like JAN or FEB as on..
or returns both month like 01 , 02 & JAN FEB
Thanks
Rajeev

Also - use a meaningful subject in future.
thread locked
matt

Similar Messages

  • Querying a BAPI Function Module

    Is it possible to write a query on the BAPI Function Module. For example I have a views in oracle database and i can query the views based on some condition and get the required data from the views. In the same way is it possible to query the BAPI function module to get the data based on given condition

    Hi Nikki,
       You can use FM RFC_READ_TABLE to read data from any SAP table.
      Also check following post by Raja -
         RFC_READ_TABLE for SAP Web AS - Code Sample
    Cheers,
    Sanjeev

  • How to pass BI Query parameters from Function Module

    Hi,
    We are executing the BI queries using the Function Module "RS_VC_GET_QUERY_VIEW_DATA_FLAT" by passing the query name and the provider information.
    Is there a way, to pass the filter parameter values also to the query by using this function module? I am not sure how the VC  tool is using this Function Module to call the BI queries and passing the filter values.
    Your help is appreciated.
    Thanks
    Suri

    Suryanarayana,
    Are you trying to execute a query in batch?. If you want to execute try to look at WRITEQUERY - which is a standard SAP program. You can execute this program directly or you can customize it completely and produce the output in .CSV file.
    Hope this helps. Award points if useful.
    Goodluck,
    Alex (Arthur Samson)

  • Will Infoset Query work for Function Module

    HI Can someone let me know will a Infoset wuery works for Function module or not. I have 3 tables which i need to extract on, i am building a Infoset Query on 2 tables and using this in my Function Module to join on 3rd table. I have some conditions on 3rd tbale which i need to pull only those records.
    When ever i check the syntax it always gives me a message
    The type "ZUSERLOGINQRY" is unknown. ( This is my Infoset query name).
    Can any one help me on this.
    Thanks,
    Kris.

    HI Pat thanks for responding i havent done this earlier so i am not sure how to declare une code under Infoset Query ---> Extras. I am getting some duplicates in Infoset Query, can you let me know how to clear all those duplicates...
    Appreciate you help.
    Kris.

  • QUERY ON SRM Function Module.............Urgent plz help

    Hi
    I have a requirment for getting wbs element in SRM system (SRM 3.0 ) from R/3 4.6c based on status of wbs element like TECO, ISBD, CLSD.
    Please can anybody suggest any standard FM / Metabapi exist in SRM for resolving this issue.
    Regards
    MJT

    Hi
    Have you tried the following Function modules ?
    - META_WBS_GETLIST (BAPI Function module)
    - B31I_WBS_GETLIST    (BAPI Function module) 
    - NOR3_WBS_GETLIST  (BAPI Function module)   
    - BBP_BW_GET_WBS_ELEM_E (Non-BAPI)
    Do let me know. Hope this will definitely help.
    Regards
    - Atul

  • Info Related to function module-RSSEM_CONSOLIDATION_INFOPROV3

    Hi All,
    My Client is experiencing performance issues on our BCS reports. We are using a virtual cube with function module RSSEM_CONSOLIDATION_INFOPROV. they would like to use function module RSSEM_CONSOLIDATION_INFOPROV3 instead, the performance on BCS reports should be enhanced.
    In The help file I have read the following things regarding the function module
    RSSEM_CONSOLIDATION_INFOPROV3   
    I request anybody to pls clear me on this as it is very urgent.
    1. Performance improvement --> there's no need to process the selection conditions anymore
    <b>what does it mean no need to process the selections conditions anymore?</b>
    2. Unused table should be cleared.
    <b>how we maintain  this?</b>
    3. Some data returned from use a hash table instead to avoid this
    Is the function module part of the next support pack upgrade if not what we do to upgrade?
    Pls help me.Very Urgent.
    Thanks in Advance
    S VR

    Hii
    any update plsss
    S VR

  • Custom idoc [ related to function module]

    HI ALL,
    sorry for repeating the question
    i had an requirement to create a custom idoc for catsdb table with 4 fields
    1. pernr
    2. workdate
    3. lstar ......
    and to transfer it from one application server to another.i had created it n transfered it to another application server. now my problem is in receiver side the data in idoc is not posted into database of catsdb [ at receiver side].
    can any one give the code for Custom function module at receiver side so that when idoc is received [from sender] it must be updated to databse tables via this FM.
    its very urgent . help me ........................
    any suggestions are highly appreciated.
    with regards,
    Suresh Aluri.

    Hi Suresh,
    In the receiver system you have to :
    1. Create a process code and link with message type using WE42
    2. Create an inbound function module using SE37.
        For example: BAPI_IDOC_INPUT1
    3. Link function module with basic type and message type using WE57
    Regards,
    Hendy

  • Problem in Functional Module on BW Query

    Hi,
    We are working on below requirement in BW.
    We have to fetch the data of BW Query via a functional module to web services. We have created a query and a functional module based on that query. To create the function module on query, we have followed the standard method suggested in SAP blog. (ie. Input parameters for Functional Module is Filters use in Query and output parameters will be Keyfigures and Char. Of the Query).
    We have 0PLANT in the raw section in query. We want to fetch plant text in the Function module output. But, our problem is we are getting Plant KEY value only in the output of functional module.
    0PLANT properties in query designer is set to TEXT only.
    So, in short, we want to have 0PLANT Text in the function module output.
    Please suggest.
    Regards,
    Macwan James.

    Hi,
    In your Function module, I hope the code is perfect. Please check your Infoobject maintenance whether text was maintained.
    Regards,
    Suman

  • Execute BEX Query via Function Module

    Hi Mates,
    I want to execute BEX query via a Function Module.
    Also i want to explore whether the input parameters of the query can be retrieved from a Database Table.
    Please let me know how this can be achieved.
    Thanks in advance.
    Regards,
    Hrishikesh

    Hi Hrishikesh,
    Assuming you have the necessary ABAP knowledge, you will have to code the exit in the include ZXRSRU01 under I_STEP = 1 (this is because you want to prepopulate your parameters from the values in your DB table).
    Your DB table has Key1, Key2 and Your field as the three fields and you want to read the value of 'Your Field' based on your keys Key1 and Key2.
    So, the code will be something like -
    when 'Your variable'.
    if i_step = 1.
    select single 'Your field' from 'Your DB table' into lv_your_field where Key 1 = 'X' and
                                                                                                                   key 2 = 'Y'.
    clear l_s_range.
    l_s_range - low = lv_your_field.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    append l_s_range to e_t_range.
    endif.

  • Function Module to fetch Release Code for PReqs

    Hi,
    Is there any function module to get the current release code applicale by passing the requisition number?
    Example : If we have 4 levels of approval, say A1,A2,A3 and A4, and I want to know with what release code shall I release the requisition.
    If release has benn effected for the requisition with codes A1 and A2 and if I query with the function module what is the current release code applicable, then it should give A3 or atleast a result that A2 has been the last release code effected.
    Also where is the release related info stored ? I mean which tables...
    Not the release strategy related info but the release effected info.
    Dont worry about points...

    Hi
    Pur requisition Release Codes are stored in <b>T161E</b> table
    Release code is linked with Release strategy in <b>T161F</b> table
    Link the code with Release strategy field in <b>EBAN</b> table
    Also check the fun modules
    MM_CHECK_RELEASE_CODE_EQUAL_KI
    MM_CHECK_RELEASE_CODE_NOT_KI
    ME_RELEASE_REQUISITION
    BAPI_REQUISITION_RELEASE
    Reward points if useful
    Regards
    Anji
    Message was edited by:
            Anji Reddy Vangala

  • HOw to find the BAPI function module

    Hi all,
    I have a field called IEVER in table EIKP.
    How to find the related BAPI function module and BAPI structure for this filed.
    Thanks in advance
    KP

    Hi KP,
       can you tell us the name of the transaction in which you saw this field?
    If it is in PO Creation or Change you can probably look at the bapis
    BAPI_PO_CREATE or BAPI_PO_CHANGE
    Regards,
    Ravi

  • Function module (FM) to read budget  to be used in n-step approval badi

    We have SRM 5.0 with ECC 6.0 (extended classic). For capital expenses we are going to have budget check in SRM based of account assignment internal orders in R/3. In shopping cart line item approval workflow, it is required to read the budget available for that internal order and compare with shopping cart value...what is the function module to read budget assigned to that internal order, that will used in n-step approval badi at every step??
    Thanks,
    Kim r.

    Hi
    <b>Please try the related SRM function modules, which will definitely help -></b>
    B470_BUDGET_READ   
    BBP_PD_USER_BUDGET_AMOUNTSPENT  
    BBP_PD_USER_BUDGET_CHECK        
    BBP_PD_USER_BUDGET_DEFINED_GET  
    BBP_PD_USER_BUDGET_SAVE         
    BBP_PD_USER_BUDGET_SCVALUE_GET  
    BBP_REQREQ_CHECK_BUDGET 
    META_BUDGET_READ   
    META_BUDGET_READ Function module in turn calls RFC-enabled 'BBP_BUDGET_READ' Function module in the R/3 or the ECC System.
    Hope this will definitely help.
    Do let me know.
    Regards
    - Atul

  • At-New using ALV  Function Modules

    Hi,
    Could anyone post how to handle control break command 'AT NEW' in ALV Reports using Function Modules.

    Hi Amit,
    you've posted the question asked by me in another thread, Also one is related to oops and the other is related to Function modules. For my issue I have know about both of them.
    Waiting for ur reply in form of solution.
    Thanks,
    G Sandeep Kumar.

  • BW/ABAP- Function module is called infinitely by Datasource Extractor.

    Hi All,
    A quick ABAP question related to Function Modules and BW data source extractors.
    I’ve written a function module to select data from a database and simply output the data as a table. I then created a text Datasource using transaction rso2 and set it to Extraction by Function Module.
    When I test this using transaction rsa6, I can manipulate the number of calls to my function module using the Display Extra Calls field.
    However, when I test this using transaction rsa1, my function module seems to be called infinite times. So, the number of records being retrieved is increasing exponentially and finally ends with a dump.
    My question: Do I need to include something in my code such that the Function Module by itself will only be called once?
    Or is there some configuration for the Datasource that will limit my function module call to once only.
    Tried so far
    • Introducing a static variable in the function module that exits as soon as the value is greater than 1.
    o Is there another way out?
    Regards,
    Preethi.

    You need to raise the EXEPTION NO_MORE_DATA afte the last record is populated in the output table. Otherwise the program goes into an infinite loop.
    * From now on records get fetched from the database or gets read from the internal table
        FETCH NEXT CURSOR v_cursor
                   APPENDING CORRESPONDING FIELDS
                   OF TABLE <internal table>
                   PACKAGE SIZE i_s_if-maxsize.
        IF sy-subrc <> 0.
          CLOSE CURSOR v_cursor.
          RAISE no_more_data.
        ENDIF.
    * Populate the Output Data Structure into table E_T_DATA and you need to raise the EXEPTION NO_MORE_DATA and close the cursor to avoid any memory leaks

  • How to use the Function Module WWW_GET_SELSCREEN

    Dear Friends,
    We got a requirement wherein we need to publish the bw reports on Web. For this we need to pass the query into a Function Module. We found the FM "WWW_GET_SELSCREEN". Is this the correct FM to execute the query and publish on web? If so , how to use this FM i.e. what all parameters do we need to pass to this FM. We are using BW 3.5 Version. Please revert back ASAP.
    Regards,
    Chandra.

    Hi,
    check out this weblog.
    Pass Parameter to ITS URL Upadated 21st June 2008
    http://sap182.xxxxxxxxxxxxx.com:8056/sap/bc/bsp/sap/rfc/default.htm?sap-client=018&function=WWW_GET_EMPLOYEE_INFORMATION&_param1=56785
    Thanks,
    Ajay.

Maybe you are looking for

  • Question regarding palcing cache related classes into a package

    Hi all, I have a question regarding placing classes into packages. Actually I am writing cache feature which caches the results which were evaluated previously. Since it is a cache, I don't want to expose it outside because it is only for internal pu

  • How to use field symbols in program

    how to use field symbols can any one explain with example please.. Regards, venki...

  • Can't reinstall Twitter application

    I can't reinstall Twitter application on my Mac. I've downloaded it by my iCloud account but today, when I wanted to download I saw  "[email protected]" in ID section and wanted a password. Is there any solution for this ? Here's  the screen shot :

  • Pop-up images...possible?

    I've been scouring this message board for a while now and still haven't figured out how to create pop-up images.  It appears that it may be possible, but I couldn't figure out how. Is it possible to create a button that will pop-up an image when pres

  • How to work on FGA auditing and provide me some steps to work on?

    How to work on FGA auditing and provide me some steps to work on?