How to create Geniric data source using the SAP FUNCTION MODULE

Hi,
I want to create genric data source using function module
MD_STOCK_REQUIREMENTS_LIST_API (delivered by sap)
for this function module where I can find  Extract Structer
or I have to create ?
How can i use this ?
Thanks in Advance

Hi Shilpa,
              Check here..........
Using function module as the generic extractor
Generic Delta Update using Function Module
Document regarding R/3 extractors using function module/user exits
Generic extractors using FM

Similar Messages

  • How to create Incoming Email Activity using BAPI or Function module

    To create an Incoming Email Activity using BAPI 'BAPI_ACTIVITYCRM_CREATEMULTI' or using 'CRM_ORDER_MAINTAIN' . what parameters i need to pass to a bapi.
    Suggest me with a solution.
    Regards,
    Sanjani

    For activity you must fill the following structures of 'CRM_ORDER_MAINTAIN'...
      CALL FUNCTION 'CRM_ORDER_MAINTAIN'
        EXPORTING
          it_activity_h             = t_activity_h
          iv_collect_exceptions = ''
        CHANGING
          ct_orderadm_h         = t_orderadm_h
          ct_input_fields       = t_input_fields
        EXCEPTIONS
          error_occurred        = 1
          document_locked       = 2
          no_change_allowed     = 3
          no_authority          = 4
          OTHERS                = 5.
    And at the end you must use also 'CRM_ORDER_SAVE' to performe the save.
    Regards.

  • Error  while creating Generic data source using FM

    Hi Experts,
    I try to create a generic data source using the Function Module via the  transaction RSO2. I got the following error messages.
    " Das Einheitenfeld CURR des Feldes ZPKZA1 der DataSource ZBWN_DS_POLPOSP ist ausgeblendet"
    " Das Einheitenfeld CURR des Feldes ZPKZA2 der DataSource ZBWN_DS_POLPOSP ist ausgeblendet"
    " Das Einheitenfeld CURR des Feldes ZPKZA10 der DataSource ZBWN_DS_POLPOSP ist ausgeblendet"
    "The unit field CURR of the field ZPKZA1 of the DATA SOURCE ZBWN_DS_POLPOSP is not visible/ stopped/ hide".
    for all 10  fields of type CURR.
    How shall i handle this issue..........any suggestions please........
    thanks in advance
    cheers
    sailekha

    Hi,
    Are your CURR fields refereded to a currency field of your structure?? Maybe the problem is that the field containing the currency is refered to other table/structure and it has to be one of your structure fields.
    Hope this helps,
    Regards,
    Carlos.

  • How to create Hive data source?!!

    I am trying to create hive data source connection.
    I am stack on creating connection profile and configuring "Generic JDBC Driver" .. after i added drivers i keep getting " Required property in driver definition missing value: Driver Class." error.
    I am adding a screenshot with the list of drivers.

    Kevin
    In Jdbc node create a Jdbc Connection Pool with the
    Url=jdbc:borland:dslocal:/jbuilder6/samples/Ejb/db/esite.jds
    and driver=com.borland.datastore.jdbc.DataStoreDriver. Create a Datasource
    using a Jndi & Jdbc Connection Pool.
    Deepak
    Kevin Gao wrote:
    in jbuilder6 samples instructions,there is instruction as:
    Create a WebLogic data source named ESiteSource. You will need to check
    your WebLogic documentation on how to create a data source. You will need
    the following settings
    1.The database URL should be of the following format:
    jdbc:borland:dslocal:/jbuilder6/samples/Ejb/db/esite.jds, ensuring that you
    have the correct path to esite.jds.
    2.The driver will be com.borland.datastore.jdbc.DataStoreDriver.
    3.This JDataStore is not password protected, but you must still specify a
    user; any user will do, e.g., user=Frank;password=
    but how to create a data source in weblogic?
    help me please!
    thanks in advance!
    Kevin Gao
    EMAIL:[email protected]

  • How to create JNDI data source name in Tomcat 6.0.18 server?

    Hai,
    How to create JNDI data source name in Tomcat 6.0.18 server?
    Regards,
    MariMuthu.A

    [http://google.com/search?q=jndi+site:tomcat.apache.org+6.0]

  • How to print text rertrived by using the READ_TEXT fun module in smartform

    Please tell me how to print the text which is rertrived by using the READ_TEXT function module in smartform.
    I have coded all things in the program lines and in that i am retriveing the long texts.
    I am getting the text lines in my internal table clearly, the thing is that I am not able to pass these lines to the text module.
    its urgent. Points will be rewarded for any type of clue. whether it will work or not.

    loop the table into which u have retrieved the text .
    in the form interface of the smartform ... in importing parameter give the that table name .
    and in smartform whereever u want to print there insert the data into work area and pass to fields for dispaly .
    decalre ur work area in global defintions
    thnaks .

  • Using the MSG_* Function Modules

    Hello,
    I want to use the MSG_* function modules (e.g. MSG_OPEN, MSG_ACTION ...) and the MAC_MSG_* macros in my own programs, but they are not documented. Are there any docs about it?
    Regards
    Stefan

    Hi,
    Check this link
    http://wwwcs.uni-paderborn.de/cs/heiss/lehre/pg/intern/docs/bc_xbp_45.pdf
    Also see Re: Read Application Log
    Thanks & Regards,
    Judith.

  • How to create a simple app using the MVC approach?

    Hello gurus i'm trying to learn the SAPUI5 and i'm trying to create a simple app using the MVC i created the app and trying to add a lable to the view but there is nothing appear when i run it the code for the HTML page
    <!DOCTYPE HTML>
    <html>
      <head>
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/>
      <script src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"
      id="sap-ui-bootstrap"
      data-sap-ui-libs="sap.m"
      data-sap-ui-theme="sap_bluecrystal">
      </script>
      <!-- only load the mobile lib "sap.m" and the "sap_mvi" theme -->
      <script>
      sap.ui.localResources("mytestapp");
      var view = sap.ui.view({id:"idshell1", viewName:"mytestapp.shell", type:sap.ui.core.mvc.ViewType.JS});
      view.placeAt("content");
      </script>
      </head>
      <body class="sapUiBody" role="application">
      <div id="content"></div>
      </body>
    </html>
    the code for the view
    sap.ui.jsview("mytestapp.shell", {
      /** Specifies the Controller belonging to this View.
      * In the case that it is not implemented, or that "null" is returned, this View does not have a Controller.
      * @memberOf mytestapp.shell
      getControllerName : function() {
      return "mytestapp.shell";
      /** Is initially called once after the Controller has been instantiated. It is the place where the UI is constructed.
      * Since the Controller is given to this method, its event handlers can be attached right away.
      * @memberOf mytestapp.shell
      createContent : function(oController) {
      var oLabel = new sap.ui.commons.Label("l1");
      oLabel.setText("Test label");
      oLabel.placeAt("content");
    i dont know what is wrong or if i should use a container to display my controls
    any help will be appreciated
    thanks in advance

    Hi,
    Instead of   oLabel.placeAt("content"); use return oLabel;
    so it will as below,
    createContent : function(oController) {
      var oLabel = new sap.ui.commons.Label("l1");
      oLabel.setText("Test label");
      return oLable;
    Regards,
    Chandra

  • How to create a inputstream without using the file operation

    Hi friends
    In my application, I have to create a Streamsource object using the below constructor:
    public StreamSource(InputStream inputStream)
        Construct a StreamSource from a byte stream. Normally, a stream should be used rather than a reader, so the XML parser can resolve character encoding specified by the XML declaration.
        If this constructor is used to process a stylesheet, normally setSystemId should also be called, so that relative URI references can be resolved.
    Parameters:
        inputStream - A valid InputStream reference to an XML stream.*[http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/stream/StreamSource.html#StreamSource(java.io.InputStream) |http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/stream/StreamSource.html#StreamSource(java.io.InputStream) ]*
    But for creating the inputstream, i am creating a tempory file, ie I am using fileinputstream.
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.StringReader;
    import javax.xml.transform.Source;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.transform.stream.StreamSource;
    public class SourceConvertor
        private static Source convertStaxToStream(Source request)
    // here the argument to this method is StaxSource and the return type is StreamSource
            TransformerFactory factory = TransformerFactory.newInstance();
            Transformer transformer = null;
            File fp = null;
            FileInputStream fInp = null;
            try
                transformer = factory.newTransformer();
                fp = new File("tempFile.txt");
                transformer.transform(request, new StreamResult(fp));
                fInp = new FileInputStream(fp);
            } catch (Exception e)
                e.printStackTrace();
            return new StreamSource(fInp);
        public static void main(String args[])
            try
                String message ="<author><name>Rai</name><book>GodOfSmallThings</book></author>";
                Source original = new StreamSource(new StringReader(message));
                Source converted = convertStaxToStream(original);
                TransformerFactory factory = TransformerFactory.newInstance();
                Transformer transformer = factory.newTransformer();
                transformer.transform(converted, new StreamResult(System.out));
            catch (Exception e)
                // TODO Auto-generated catch block
                e.printStackTrace();
    This is not at all a good aproach because evey time it is creating a new file.
    So can anyone suggest a better aproach or idea or a simple code snippet so that i can create the inputstream without creating a temporary file.
    Thanks in advance:
    *[http://www.javamilestone.blogspot.com/  |http://www.javamilestone.blogspot.com/  ] *

    Err, a StreamSource is a Source. Check the Javadoc. You can pass it directly to the transform.

  • How to create a collaboration room of the SAP Portal from EJB tier.

    Hi.
    I have created a EJB Stateless Session Beans, and I want to create a room using the API of KM.
    I have used the code mentioned in this URL: http://help.sap.com/saphelp_nw04s/helpdata/en/7d/c69c42d706c66ae10000000a155106/content.htm
    It works fine it is called from Web Dynpro.
    I have added in my application-j2ee-engine.xml of the J2EE Proyect.
    <application-j2ee-engine>
         <reference
              reference-type="weak">
              <reference-target
                   provider-name="sap.com"
                   target-type="library">com.sap.km.application</reference-target>
         </reference>
         <reference
              reference-type="weak">
              <reference-target
                   provider-name="sap.com"
                   target-type="library">com.sap.netweaver.coll.shared</reference-target>
         </reference>
         <reference
              reference-type="hard">
              <reference-target
                   provider-name="sap.com"
                   target-type="library">com.sap.security.api.sda</reference-target>
         </reference>
         <provider-name>sap.com</provider-name>
         <fail-over-enable
              mode="disable"/>
    </application-j2ee-engine>
    It was deployed correctly, but when I tried to call the method the server sent me this exception:
    Caused by: javax.ejb.EJBException: nested exception is: com.hocplc.speed.exception.BaseException: com.sapportals.wcm.WcmException: Exception accessing CmSystem: com/sapportals/wcm/crt/CrtClassLoaderRegistry
    at com.hocplc.speed.business.ejb.facade.ProcesarSolicitudDocumentoSSBean.crearCuartoColaboracion(ProcesarSolicitudDocumentoSSBean.java:188)
    at com.hocplc.speed.business.ejb.facade.ProcesarSolicitudDocumentoSSLocalLocalObjectImpl0_0.crearCuartoColaboracion(ProcesarSolicitudDocumentoSSLocalLocalObjectImpl0_0.java:991)
    ... 25 more
    javax.ejb.EJBException: nested exception is: com.hocplc.speed.exception.BaseException: com.sapportals.wcm.WcmException: Exception accessing CmSystem: com/sapportals/wcm/crt/CrtClassLoaderRegistry
    I hope that somebody can help me
    Regards  in advance.
    Manuel Loayza
    Living La Vida JAVA

    After playing with WebDynPro and PDK  - finally I have a simple list showing.  This simple example has provided me with a good starting point - it is a pity that SAP do not provide such simple examples to allow you to get your head around the concepts.
    I used the SAP NetWeaver Developer Studio to produce a version of my example using a WebDynPro and a JSPDynPage (PDK). Deployed to my EP6 server and then created iVews to show then in the appropriate theme.
    My thoughts on this now are that both WebDynPro and PDK have merits - both achieve same end result with various affects.  WebDynPro is clunky and PDK is not tighly integrated with the Studio (unlike the .NET one).
    To use the PDK you need to understand the TAGs and the SAPDesignGuild website helps  - but would be better if the Studio presented a graphical interface much like DreamWeaver does.
    SAP's direction seems to be with WebDynPro and no longer PDK  - wonder if this is truely the case ?.  SAP does have a lot of work to do in my opinion to get both products up to scratch from a useability point of view.

  • Breaking Links to and External Data Connection using the cubevalue() function

    I have spreadsheets that connect to an MSAS cube successfully and pull data in the cells using the CUBEVALUE function.
    Is there a way to perform the equivalent of 'breaking links' to the external database so that the spreadsheet can be distibuted to others that will not have the external database connection set up on their computer/excel environment.
    I find that if i email a spreadsheet with data retreived using cubevalue functions to someone without the external database connection they do not see the values preserved with the spreadsheet and end up with blank or zero cells, etc.
    I have unchecked the box related to 'refresh data when opening file'.
    In a perfect world i would like to remove the db connection and be left with pasted values, similar to breaking links to an external workbook but I am not sure if that is possible.
    I am desperate to find a way to distribute these spreadsheets and be confident that Excel won't be unsuccessfully trying to refresh a connection that isn't on other peoples computer.
    Thanks for any guidance

    Maybe you can upload a sample file to a file sharing site and then share the link with us.
    As you said you have already unchecked the option 'Refresh data when opening the file' within Connection Properties.
    When you send the Excel file to someone without this data connection, they should get the correctly data unless they click the button 'Refresh All'.
    Wind Zhang
    TechNet Community Support

  • Is it necessary to use the standard function modules always?

    Hi All,
       Suppose i can retrieve the BUSINEES PARTNER ID from the table BUT000 with the help of 'BP_GUID' field through a select query statement. 
    Now is it necessary to use a standard function module to retrieve the same data. what about the performance? which is the better solution. to implement our own code or to use the function module available.
    Please someone clarify me about this issue.
    Regards,
    Sharry.

    If you'd ask the question in general it's obvious that there is no good answer as it always would depend on the circumstance. However, as you've posted your question in the performance tuning forum, let's look at your question in this context first. I think it's fairly safe to say, that in almost 100% of the cases a standard function module will not be as fast as any well implemented and custom tailored code. If in doubt, just try reading the code of the function module you want to read; most likely you will find lots of unnecessary fluff in there, often they read data that you don't even need.
    And as far as buffering is concerned, that can also be an issue. E.g. let's say you do a massive read of distinct business partners and you only need the data once for each partner. Obviously buffering is silly in this case and it might even slow down your program, because the implemented buffering is not necessarily well implemented. I've come across a few cases, where the buffer tables where standard tables with no efficient read access (so no sorted table or hash table) and once tons of data were buffered, it actually took a moment to look up if the record already was buffered (just to find it wasn't there yet).
    Now most of the times this slowdown is not an issue as the lookup is still fast compared to the (usually) prevalent database accesses with their slower IO timing. But another factor to consider is memory consumption and why buffer data in memory (and waste it), if you can't use the buffer anyway? So when I do use standard function modules, I usually try to see what they retain in global memory, to better understand if I need to call some initialization/clearing/refresh function...
    Note also that often you need to process lots of data, but don't find a standard function module for "mass access", so you need to read your object one by one. Obviously that's another good candidate for implementing your own queries, where you can process the data in packages.
    So what might be the reason to use a standard function module? Well, often it's required because the logic is so complex that it would take you too much time to implement it (not to mention that we often simply don't know all the logic that's coded in there). Another advantage is that you might get independent of the data model. E.g. for IDoc interfaces SAP switched in some release the tables where the data is stored. So if you had coded your own queries to get IDoc data, they wouldn't have worked after this particular release upgrade. The standard function on the other hand, checks both the old and new tables, so by using it you would have been fine.
    The one major caveat I'd give though is to always check whether the function module is released or at least documented to some degree. I.e. if it's not released, SAP won't support it and does not guarantee that the interface or logic stays the same. In my experience lots of functions I do want to use are not released (or documented), but I will still use them because they seem to be the best alternative in certain scenarios.
    Cheers, harald

  • How to pass multi value selection parameter to SAP Function Module?

    Hi ,
    Anyone know how to pass CR multi value parameter - array to SAP Function module ?
    eg  multi selection of customer in CR
    and then pass to Function module
    in SAP FM,  the SQL select these customer only
    How should the import parameter / table of SAP Function module designed?
    and how should CR pass the data to SAP FM
    thx
    John

    Moved to Integration Kit forum

  • How to create generic data source in R/3

    hi experts !
    i m a beginner in BIW.
    i wan to create a generic data source in my R/3 system. since there exists a Z table which i want to use in designing an infocube in my BI system. please someone help me how should i begin with doing it ?
    thanx in advance
    akanksha

    Akanksha,
    Here am providing you with a scenario when we go for Generic Datasource and also the steps to create a Generioc DS:
    We can create datasource based on View, Table, SAP Query or ABAP Query, and Function Module.
    Scenario for Generic Datasource.
          One of the Manager who using reports wanted to have the  report which will him the list customers and sales document numbers created by them.
         In this case we can use of VIEW where kna1 and vbak tables were combined in the View definition or else u can say that “ABAPer had given the required view”.
    How to create the generic Datasource.
          Goto RS02, select the Transactional Data, it will takes us to the next screen, where we need to give application component name say SD (01), then give the name of the Datasource that u wanted, select view and give the view name. Below that field we need give 3 descriptions. Then save and activate the datasource.
        Go back to the RSA6 screen transport it to BW system. Replicate the DS.
    Hope it helps..
    Assign Points if it helps
    Regards,
    Gattu

  • How to create master data source for Profit center group in source system

    Profit center group information is available in SAP(T-code:kch3). But, I want to have this information in BW too.
    Can anyone tell me how to create a datasource for Profit center group? And which SAP table is able to feed master data for this information?
    Many thanks
    rajatina.

    HI ,
    It looks lilke we need to use the FM like 'G_SET_LIST_SELECT' to get the Profit
    Here ais note from the forums to get profit center group from table
    From Table SETLEAF,  Field SETCLASS  =  '0106'. Field SUBCLASS with controlling area. Profit center in Field VALFROM.
    You will get Group name in Field SETNAME.
    Regards,
    Sathya

Maybe you are looking for

  • ORA-00313: open failed for members during restore from COLD backup

    Hi all, I took a cold backup of an 11.1 database using RMAN (database in mount state). I used the following command to restore it: restored the controlfile and then RESTORE DATABASE FROM TAG 'TAGxxxxxxxxxx'; Now I'm restoring it and it's taking too m

  • Alter database switch logfile

    Hi friends, Oracle DB 9i I am making a standby database backup (hi-brid), and keep updating every hour on top of the hour sked it with the archive logs generated. I am just confused a little. If I have 3 logfiles, and if I command "alter database swi

  • KE28 Variants

    We have 31 KE28 variants and someone has to update the period values each month. We have a custom variable variant for dynamic date selection with the proper format but I do not see how to link the variable variant to the KE28 period selection parame

  • Flash Player 11 and You Tube screen size problems

    When on "You Tube" flash player gives the choice of the use of thre sizes of screens to view the vedios. With the older version of Flash player I was able to use all three od the different size to view. Now That I have Version 11 Flash player the sma

  • Trouble subscribing to calDEV calendar

    I am posting this, although I already found the problem on my own, so that others might benefit.  I was getting an error "There was an error subscribing to the calendar." followed by a line like "The data downloaded from http://192.168.1.100/ical/Hom