Bapi erorr in portal

hi,
i wont run bapi in portal and i get erorr :
No storage space available for extending an internal table., error key: RFC_ERROR_SYSTEM_FAILURE
the bapi is working o.k. in R.3
what can be the problem?
Regards

Hi Ricardo,
                  U can find it in ur server .
D:\usr\sap\<SID>\JC00\j2ee\cluster\server0\log. at this place u can check for defaultTrace.trc file. check this file & get the stack trace from there.
regards
Sumit

Similar Messages

  • How to access BAPI in enterprise portal perspective?

    hi,I am venkat new to the portal.can anyone plz tel me how to access BAPI in enterprise portal perspective?is done through JCo or any other database connection?I hav not seen in System Landscape about BAPI access.plz give guidance about BAPI interface in enterprise portal.Hope u  will understand the question and answer the query.
    thanx in advance.
    Regards:
    Venkataramana.

    Guys,
    Herez how you call a BAPI:
         public void buildConnection(){
              try {
                        System.out.println("**** DI2 *****");
                     //      Add a connection pool to the specified system
                     //    The pool will be saved in the pool list to be used
                     //    from other threads by JCO.getClient(SID).
                     //    The pool must be explicitely removed by JCO.removeClientPool(SID)
                       com.sap.mw.jco.JCO.addClientPool( SID,         // Alias for this pool
                                             10,          // Max. number of connections
                                             "040",       // SAP client
                                             "USERNAME",   // userid
                                             "PASSWORD",  // password
                                             "EN",        // language
                                             "IPADDRESS",// host name
                                             "40" );
                     //      Create a new repository
                     //    The repository caches the function and structure definitions
                     //    to be used for all calls to the system SID. The creation of
                     //    redundant instances cause performance and memory waste.
                       repository = com.sap.mw.jco.JCO.createRepository("MYRepository", SID);
                        JCO.Client client = null;
                        client = JCO.getClient(SID);
    //                 Get a function template from the repository
                        //IFunctionTemplate ftemplate = repository.getFunctionTemplate("BAPI_CUSTOMER_GETDETAIL2");
                        IFunctionTemplate ftemplate = repository.getFunctionTemplate("YGGLB_BAPI_YGGLB9PRK_PRKDOCU");
    //                 Create a function from the template
                        JCO.Function function = ftemplate.getFunction();
    //                 Get import (of Function Module) "Parameter list"
                        JCO.ParameterList input = function.getImportParameterList();
    //                 Set inputs for import parameters
                        //input.setValue("0000009000", "CUSTOMERNO");
                        //input.setValue("0248","COMPANYCODE");
    //                 Get import (of Function Module) "Structure list".
                       //JCO.Structure importStructure = function.getImportParameterList().getStructure("CUSTOMERADDRESS");
                        JCO.Structure importStructure = function.getImportParameterList().getStructure("IM_DOCUMENTHEADER");
    //                 Set values for import parameters (of Function Module) "Structure list"                     
                        importStructure.setValue( "SA", "DOC_TYPE" );
                        importStructure.setValue( "20080910", "PSTNG_DATE" );
                        importStructure.setValue( "20080910", "DOC_DATE");
                        importStructure.setValue( "BHARDWS", "USERNAME" );
                        importStructure.setValue( "2008", "FISC_YEAR" );
                        importStructure.setValue( "FRE1", "COMP_CODE" );
    //                 Get import (of Function Module) "Table list - 1".
                        JCO.Table orderPartners = function.getTableParameterList().getTable("TBL_ACCOUNTGL");
    //                 Set values for import parameters (of Function Module) "Table list - 1"
                        //Append Row -1
                        orderPartners.appendRow();
                       orderPartners.setValue("0000000001", "ITEMNO_ACC" );
                         orderPartners.setValue("0000400100", "GL_ACCOUNT" );
                        orderPartners.setValue("H", "DE_CRE_IND" );
                        orderPartners.setValue( "ANYTHING", "ITEM_TEXT" );
                        //orderPartners.setValue( "AG", "PROFIT_CTR" );
                        orderPartners.setValue( "AIG0000007", "COSTCENTER" );
                        //Append Row -2
                        orderPartners.appendRow();
                       orderPartners.setValue("0000000002", "ITEMNO_ACC" );
                        orderPartners.setValue("0000400100", "GL_ACCOUNT" );
                        orderPartners.setValue("S", "DE_CRE_IND" );
                        orderPartners.setValue( "NOTHING", "ITEM_TEXT" );
                        //orderPartners.setValue( "AG", "PROFIT_CTR" );
                        orderPartners.setValue( "AIG0000007", "COSTCENTER" );
    //                 Get import (of Function Module) "Table list - 2".
                        JCO.Table orderItems = function.getTableParameterList().getTable("TBL_CURRENCYAMOUNT");
    //                 Set values for import parameters (of Function Module) "Table list - 2"
                        //Append Row -1
                        orderItems.appendRow();
                       orderItems.setValue("0000000001", "ITEMNO_ACC" );
                        orderItems.setValue("USD", "CURRENCY" );
                        orderItems.setValue( "2000", "AMT_DOCCUR" );
                        //Append Row -2
                        orderItems.appendRow();
                       orderItems.setValue("0000000002", "ITEMNO_ACC" );
                        orderItems.setValue("USD", "CURRENCY" );
                        orderItems.setValue( "2000", "AMT_DOCCUR" );
    //                 Execute client
                        client.execute(function);
    //******************Start to work on fetching values now********************************
    //                 Get export (of Function Module) "Structure list".
                        /*JCO.Structure returnStructure = function.getExportParameterList().getStructure("CUSTOMERADDRESS");
                        JCO.Structure returnStructure2 = function.getExportParameterList().getStructure("CUSTOMERGENERALDETAIL");
                        returnStructure.getString("NAME");
                        returnStructure2.getString("ENTERED_BY");*/
    //                 Get export (of Function Module) "Table list"./// Create a new template if fetching table data from a different function module than above
                        //IFunctionTemplate ftemplateTable = repository.getFunctionTemplate("BAPI_CURRENCY_GETLIST");
                        //JCO.Function functionTable = ftemplateTable.getFunction();
                        //client.execute(functionTable);
                        JCO.Table table_return = function.getTableParameterList().getTable("RETURN");
                        Vector tbl = new Vector();
                        Vector row = new Vector();
                        Vector colNames = new Vector();
                        //Loop over all rows
                        do {
                        //Loop over all columns in the current row and add all those colums values to the current row
                        for (JCO.FieldIterator e = table_return.fields();
                             e.hasMoreElements();
                             JCO.Field field = e.nextField();
                             row.add(field.getString());
                             System.out.println(field.getName() + ":\t" + field.getString());
                             } // end for
                             //Add this newly built row to the table     
                             tbl.add(row);
                             } while (table_return.nextRow());
                             table_return = null;
                             table_return = function.getTableParameterList().getTable("RETURN");
                             table_return.nextRow();
                             for (JCO.FieldIterator e = table_return.fields();
                             e.hasMoreElements();
                             JCO.Field field = e.nextField();
                             colNames.add(field.getName().toString());
                        //DefaultTableViewModel dtvModel = new DefaultTableViewModel(tbl, colNames);
                        //beanObj.setModel(dtvModel);
                             System.err.println("getting value for you from session in Get Data 1:-");
                             JCO.releaseClient(client);
                        //     return dtvModel;
                   catch (JCO.Exception ex) {
                     System.out.println("Caught an exception: \n" + ex.getMessage());
                   }catch (Exception e){
                        System.out.println("Final Message" + e.getMessage());

  • How to call BAPI in Enterprise Portal java

    Hi,
    In SAP R3 i created a BAPI .Now i want to call that BAPI from Enterprise Portal.
    How to do that?
    With regards,
    Suman Sahu

    Hi, Suman
      There are multiple ways to do this.
      1. via Web Dynpro Java
      2. via other tools like visual composer
      3. via Web Services
      Well, option 1 would be direct and flexible.
      And please refer to here - Web Dynpro samples.
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/f0b0e990-0201-0010-cc96-d7ecd2e51715
      Best Regards.
      Sejoon

  • Urgent Please help me... How to access BAPIs from abstract portal component

    I am developing an application in Abstract Portal Component (in
    PDK).
    In that application I can able to acess BAPIs from my Componets
    using the code like
    inputPopSearchBapi = new Zad_Bapi_Pop_Search_Form_Input();
    outputPopSearchBapi = new Zad_Bapi_Pop_Search_Form_Output();
    popSearchBapi = new DropBox_PortType();
    colorList = new Tjj12Type_List();
    inputPopSearchBapi.setIm_Agencyid("0010000001");
    try {
    jcoClient.connect();
    outputPopSearchBapi =
    popSearchBapi.zad_Bapi_Pop_Search_Form(inputPopSearchBapi);
    colorList = outputPopSearchBapi.get_as_listIt_Color();
    request.getComponentContext().putValue("color",colorList.iterat
    or());
    jcoClient.disconnect();
    But I am not able to Access the data that is comming from the
    BAPI in my JSP Page. Pleeeeeeease help me. If you want any
    clarification about my problem then ask for further
    clarifications

    Hi,
      You can refer this link, to connecting the BAPI from Abstract Portal Component <a href="http://www.huihoo.org/openweb/jco_api/com/sap/mw/jco/JCO.html">JCo Tutorial1</a>
    <a href="http://www.apentia-forum.de/viewtopic.php?t=1962&sid=9ac1506bdb153c14edaf891300bfde25">JCo Tutorial2</a>
    With Regards,
    Venkatesh. K
    /* Points are Welcome */

  • Scheduled BAPI execution from Portal

    Hi,
    I have scenario where i need to update my application database table from SAP R/3 on a periodic basis. I need to know
    1) Is there a scheduler in default portal (EP7,SP11)
    2) Can BAPIs be called through scheduler? Can we have a webdynpro component which has BAPI model and can be executed at a regular intervals?
    regards,
    Sujesh

    Hi
    1. Yes, there is scheduler service. Go to
         System Administration -> System configuration -> Content Management
    Configuration ->Global Services -> Scheduler Service
    More :
    http://help.sap.com/saphelp_nw2004s/helpdata/en/3a/bc37b5789dee4eaa8005bff84f14cf/frameset.htm
    2. You can write 'portal service' which will execute BAPI function through Connector Framework
    SAP NetWeaver Scheduler for Java
    http://help.sap.com/saphelp_nw04/helpdata/en/89/8a185c148e4f6582560a8d809210b4/content.htm
    Regards
    Jakub Krecicki

  • Can we execute an SAP Standard ABAP Programme from a Custom BAPI?

    Hi,
    We have a requirement in our project where in we have to execute an SAP Standard ABAP report. We need to execute it from a Portal by click of a button.
    What we are thinking is that if we have a custom BAPI which triggers the execution of ABAP report, we can execute the BAPI from the Portal using Adaptive RFC Function call by developing a custom Web Dynpro Java application.
    So, my question is it possible to execute an ABAP report making sending required input parameters to the ABAP report from the BAPI. If so, how can we achieve this?
    Regards
    Ram

    Hi Brad,
    Thanks for your quick response. Actually, it is not exactly a report. We are trying to call an SAP Program related to SAP Business Workflow.
    When the user clicks on Approve or Reject buttons on the SAP GUI, this program will be called and exectured which inturn updates many Project System Tables.
    What we are trying to  do is that we had developed a custom Web Dynpro Java Application for achieving the SAP Workflow. Instead of reinventing the wheel, we just want to use already existing SAP Program which updates the Project Systems tables.
    So, from the Portal Workflow Inbox when the user clicks on the Approve or Reject buttons, we would like to call a custom BAPI which will execute this program.
    Could you please explain in detail how to achieve this? Thanks in advance.
    Regards
    Venkat

  • RFC FOR PORTAL TIME

    HI
    i start to buield rfc to portal and i wont to now what is the limit of time that the function have to run ,i now that the function for the portal have to run very fast.
    i heard that if the function run to much time maybe u have to use a job to in night that select some data and help to bapi and i wont to now when i have to use it in numbers.
    4,110,168 Microseconds FOR rfc its o.k. ?
    thankes

    hi gurus
    plz i need to now if there IS recommended time to run bapi for the portal?
    <b>i reward</b>
    Regards

  • Help me how to start studying Enter Price portal

    Hi to all,
    I am new to Portal Can any one suggest me how to start the studying in this...
    and also can anyone send me the tutorials to start the career in this
    thanks&regards
    Viswa Murthy.D

    Hi,
      You can refer this link, to connecting the BAPI from Abstract Portal Component <a href="http://www.huihoo.org/openweb/jco_api/com/sap/mw/jco/JCO.html">JCo Tutorial1</a>
    <a href="http://www.apentia-forum.de/viewtopic.php?t=1962&sid=9ac1506bdb153c14edaf891300bfde25">JCo Tutorial2</a>
    With Regards,
    Venkatesh. K
    /* Points are Welcome */

  • How to write back in a CRM Backend

    Hi everyone,
    I need to write some information back in the CRM system. therefore my basis team will create a API.  just to test how this works I tried to work with the BAPI "BAPI_BUPA_ADRESS_CHANGE" but I don´t get it.
    Is there someone who can explain me how I can write some data back in the CRM? Maybe with an example BAPI ?
    Thanks in Advance
    Marcus

    Hi Marcus,
    I'm not sure what part of your call to that BAPI didn't work. Please provide more information. The below link contains a step-by-step description on calling BAPIs from the portal using JCA.
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/89/8a185c148e4f6582560a8d809210b4/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/89/8a185c148e4f6582560a8d809210b4/content.htm</a>
    regards,
    Dion

  • Navigation Panel Links

    Hi,
    I have installed NetWeaver 04s SP7. Installation went very well and I did not had any problem with anything. However, in EP when I log in as an Administrator. I can only see the top level navigation and unable to see Navigation Panel Links
    For ex: Content Admin -> Portal Content-> I cannot see any links after this It comes up as loading in the browse window and after some time it just stops.
    Its the same with most of the Links, I have tried different means to solve this problem and also did a search in the Forums but did not had any luck. Has anyone else had this problem and if so how  did you solve it?
    I checked the roles and the admins has super_admin_role and I have also given him conent_admin role but no luck.
    Thanks for the help.
    K

    I found the answer I was looking for
    Javascript Erorr for Portal Content Box
    Thanks guys

  • Erorr in run bapi in portal

    hi,
    i wont run bapi in portal and i get erorr :
    No storage space available for extending an internal table., error key: RFC_ERROR_SYSTEM_FAILURE
    the bapi is working o.k. in R.3
    what can be the problem?
    Regards

    hi ricardo.............
           check for the number entries that the bapi returns when run in r3.
            make sure that it is rfc enabled.
            tell the portal consulant to check whether the bapi is being called number of times so that the internal table is getting filled again and again... tell hi to debug the coding.
    ---regards,
       alex b justin

  • Error in run bapi in portal

    hi,
    i wont run bapi in portal and i get erorr :
    No storage space available for extending an internal table., error key: RFC_ERROR_SYSTEM_FAILURE
    the bapi is working o.k. in R.3
    what can be the problem?
    <REMOVED BY MODERATOR>
    Regards
    Edited by: Alvaro Tejada Galindo on Mar 5, 2008 3:51 PM

    hi,
    thanks!
    the fm running o.k. in r.3 but when i try to run it from the portal
    with same value i have error!
    from  your experience it's portal problem or bapi problem?
    i wasted on this problem 2 days...
    Regards

  • Erorr in run bapi

    hi,
    i wont run bapi in portal and i get erorr :
    No storage space available for extending an internal table., error key: RFC_ERROR_SYSTEM_FAILURE
    the bapi is working o.k. in R.3
    what can be the problem?
    Regards

    does the query too large, consuming large memory?
    This is most likely to happen when the system is being used extensively and the memory is not sufficient, or the query is very large or complex.
    - any relevant dump in ST22?
    - can simplify the bapi query definition ?
    - try execute $SYNC to clear the internal
    - can it be run in background somehow ?
    - what is the value of following parameters ?
    ztta/roll_extension =
    abap/heap_area_total
    abap/heap_area_dia =
    abap/heap_area_nondia
    em/initial_size_MB =
    - are you in 64bits or 32 bits ?
    - SAP note #649327     Analysis of memory consumption
    cheers,
    Vincent

  • Error while calling BAPIs for DMS from Portal

    Hi everybody,
    We are developing a portal with Web Dynpro and trying to call from our java code BAPIs that deals with DMS:
    BAPI_DOCUMENT_CREATE2 - to create a new DMS document and checkin an original.
    CVAPI_DOC_CHECKIN - to checkin an original to an existing DMS document.
    CVAPI_DOC_CHECKOUT - to checkout an original from the DMS.
    While using other bapi's that deals with DMS but do not deals with originals (like creating a new document, retrieving metadata about documents and originals) we don't have any problem.
    Only when trying to checkin or checkout originals we get the following message (from the DMS?): RFC_START_PROGRAM
    the full message is: com.sap.aii.proxi.framework.core.BaseProxiException:RFC_START_PROGRAM error key:RFC_ERROR_PROGRAM.
    does anybody knows the meaning of this message?
    by the way - those BAPIs works well while called from the R/3. only when we call them from the portal we have this problem.
    thanks for any information, Adi.

    Hi Adi,
    Right now I have a similar problem. Did you find the cause/solution?

  • Error while calling BAPIs of DMS from Portal

    Hi everybody,
    We are developing a portal with Web Dynpro and trying to call from our java code BAPIs that deals with DMS:
    BAPI_DOCUMENT_CREATE2 - to create a new DMS document and checkin an original.
    CVAPI_DOC_CHECKIN - to checkin an original to an existing DMS document.
    CVAPI_DOC_CHECKOUT - to checkout an original from the DMS.
    While using other bapi's that deals with DMS but do not deals with originals (like creating a new document, retrieving metadata about documents and originals) we don't have any problem.
    Only when trying to checkin or checkout originals we get the following message (from the DMS?): RFC_START_PROGRAM
    the full message is: com.sap.aii.proxi.framework.core.BaseProxiException:RFC_START_PROGRAM error key:RFC_ERROR_PROGRAM.
    does anybody knows the meaning of this message?
    by the way - those BAPIs works well while called from the R/3. only when we call them from the portal we have this problem.
    thanks for any information, Adi.

    Hi Adi,
    Right now I have a similar problem. Did you find the cause/solution?

Maybe you are looking for