Internationalization when calling BAPI in webdynpro

Hi all,
We are developping a multi-lingual application connected to a R3 backend with adaptive RFC model.
When using RFC model we have to create JCO destinations.
These JCO destinations need a user and an language. So no matter what we do, the text elements and dictionary metadata are returned in the language of the destination user.
How can we managed to handle various language without having to create specific BAPIs with language parameter ?
Regards,
Sylvain

Hi Sylvani,
u can use SAP Enterprose Connector instead of JCo's.
in the sap enterprise Connector we will pass the login credentionals at the runtime.so have an options to
pass the language also.
hope this will helps to u
with regds
Naidu

Similar Messages

  • Calling BAPI in Webdynpro or EP

    Hi
    any one can u send how to store data in r/3 when we submit the form in either webdynpro or EP . i mean how to call BAPIs
    Regards
    sunil

    Hi Sunil
    Refer to
    <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/16244247-0a01-0010-3294-d81c21e7e86e">VC</a>
    2)
    <a href="https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d">Webdynpro</a>
    SDN :-https://www.sdn.sap.com/irj/sdn/howtoguides
    Check for RFC there
    Thanx
    Pankaj

  • Simsession short dump when calling BAPI

    Hello,
    I have created a macro in Demand Planning that calls BAPI_APO_AVAILABILITY_CHECK.
    When running this is SE37 or SE38, everything works fine. But when calling this from //SDP94 I got a shortdump, because the BAPI wanted to create a simsession, but there was already an existing simsession.
    Do you think, this is an error in the BAPI, or do i have to handle this in the calling FM?
    Would this be the right approach:
    FM "Z_TEST"
    CALL FUNCTION //RRP_SIMSESSION_GET         -
    Save SIMSESSION from DP
    CALL FUNCTION //RRP_SIMSESSION_LEAVE     -
    Clear Simsession
    CALL FUNCTION //BAPI_APO_AVAILABILITY_CHECK
    CALL FUNCTION //RRP_SIMSESSION_SET         -
    Set old SIMSESSION back
    I do not understand the purpose of the SIMSESSION, so I rely on your comments and help.
    Thanks for any feedback,
    BR,
    Dominik

    Hi Domink
    Simsessions are simulation sessions or work areas for transactional live cache data. You must create a simsession in order to retrieve and work with data from live cache. When finished you should close the simsession however most times the end of a LUW will delete the simsession. If data created/changed in a simsession needs to be saved an explicit LC commit may be required but in most cases that is taken care of within SAP code. In fact, the leave simsession fm will determine that data in the simsession has changed and ask if you want to save.
    I am not sure if you can get around the simsession creation problem in the ATP BAPI. If you had control over the code such as in a Zfunction module you could either not create the simsession or force a merge of simsessions. Do not code the leave simsession because that will delete (rollback) or force the save of the changed data from your planning book before you entered the macro - in addition when you return to your planning book from the macro there will not be a simsession for you to save or change data.
    Why are you running ATP from within a DP planning book? Are you looking for what stock is available to update another KF? Do you need to run through the entire ATP process to retrieve an available qty or can you use a simpler function module to retrieve the stock? Another option is to read the planning book in a stand alone program, do the ATP check and whatever logic is necessary before writing back to the planning book.
    Hope this helps
    Andy

  • SOFM: Dsiplay method is not working when called from ABAP Webdynpro

    Hi All,
    I want to open an attachment from ABAP Webdynpro.
    I have approached in this fashion:
    1) Get the attachments as SOFM object key
    2) On Click of a link on Webdynpro, I am calling a function module within which I am creating an instance of the SOFM object
    3) Then I am calling the DISPLAY method
    It is not opening.
    But, if it opens when I driectly execute the function module. It open when I directly test the business object.
    Any Idea ?
    Thanks & Regards,
    Deb

    Display Method uses the Dialogue Module, You should not access such methods in web dynpro which are SAPGUI specific.
    Web Dynpro Applications are run in Browser environment which cannot understand Dialog, it can understand only HTML.
    Read the attachments and get the content and use FileDownload UI element to show it to user.
    Abhi

  • Issues with a Z field in an append structure of VBAP when calling BAPI

    We have added a Z field on table VBAP with an append structure. It is a flag field. We want to change its value with the BAPI BAPI_SALESORDER_CHANGE. We have also created the append structure in API structures
    THe return message of the bapi gives us a success message for the modification. But when we go to the se16 we still see the field as blank, not with the X suposed to be there.
    We are succesfully calling the BAPI_TRANSACTION_COMMIT.
    What can cause us this problem? What can we do to solve it??
    Thank you!
    Artur.

    Hi Artur,
    this blog could help you:
    [Updating custom fields on VBAP and VBAK using BAPI_SALESORDER_CREATEFROMDAT2|/people/kevin.wilson2/blog/2009/09/30/updating-custom-fields-on-vbap-and-vbak-using-bapisalesordercreatefromdat2]
    Regards,
    Andrea

  • JCO error when calling BAPI

    Hello guys,
    I have an scenario R3 -> XI -> R3.
    From the first R/3 we call a function in a program to execute a BAPI in the second R/3, so the BAPI doesn't exist in the R/3 that starts the interface.
    We have configured the TCP/IP connection and with the same program ID in the Sender RFC adapter. All the connectios are running successfully but when we execute the program we have the error:
    JCO.Server could not find server function 'Z_TEST'
    Do you know if the BAPI has to be created in both systems, or it's only necessary in the R/3 destination to run.
    All connections are running so the question is what we remarked before, the BAPI must be created in both R/3 systems?
    Regards,
    Xavier.

    Hi Xavier,
    strange, i answered to a very similar question a hour before, there was no reaction by Gerardo Mondragon .
    How can the sender adapter get the metadata? If the FM is just in the receiver system? Maintain the meta data connection at Communication Channel to the receiver system...
    Regards,
    Udo

  • No node created when calling BAPI !!!

    Dear All,
    I am making a demo Web Dynpro in which I m trying to use BAPI
    BAPI_EQUI_GETDETAIL 
    For doing this I have done the following steps (as per stated in Tutorial 2):-
    1. Left-Click on the Web Dynpro Name
    2. Create -> Service Call
    3. A wizard Starts
    4. Selecting Use Existing Controller and in controller given (COMPONENTCONTROLLER) and continue
    5. Then Selecting Function Module and continue.
    6. Now Giving name of the BAPI (BAPI_EQUI_GETDETAIL ) and leaving Destination blank and continue.
    7. Continue the next screen (ADAPT CONTEXT STEP) without making and changes.
    8. Giving Method name as EXCUTE_BAPI_EQUI_GETDETAIL
    and continue to the next step.
    9. Complete.
    Now the problem is as shown in the tutorial 2 no impoting and exporting nodes are coming in the CONTEXT.
    I have checked the Attributes tab there everything is reflected but not in the context.
    The only thing which I m getting is :-
    CONTEXT
         |----
    BAPI_EQUI_GETDETAIL
    Please help me and guide me what to do to resolve this.
    Thanks and Regards,
    Rachit Khanna

    Hi Rachit
    In the step 7(adapt context) select Object type as Context(node/Attribute).
    You will get all the parameters in context.
    Regards
    Naresh

  • Urgent : calling BAPI in webdynpro

    i have an application in which i got the table . Inside this table , i got the details from one Bapi.
    In the next view, I have one more table to get the details from other BAPI.
    How should i write the code..so that the output of the first BAPI is the import parameter to the second BAPI and get the item level details.
    I am able to see the data from first BAPI..but i m not getting the details in the second BAPI.

    Hi ,
    In controller u have execute method inthat u write like this.
    execute()
    BAPI2 output = new BAPI2();
    output.nodeBAPI2().bind(output);
    output.setempno(wdContext.nodeof firstBAPIoutputnode().currentURBAPIoutnodeelement.getEmpno());
    wdcontext.currentBAPI2element().modelObjet().execute();
    this execute method call in the first view table Onleadselection like as Action method .
    I mean to say create method onclick() in that implementation call like this
    pluin for first view to second view and
    call the execute method.
    wdthis.FirePlug();
    Wdthis.wdGetCustomcontroller().execute() method.
    This should works
    If any query let me know.
    Thaks
    Mandapati
    Message was edited by: Mandapati Nageswara Rao

  • Error when calling BAPI from web dynpro

    Hi,
    I have a program that calls a BAPI to retrieve data. The problem is that i have the following error message:
    com.sap.dictionary.runtime.DdException: 'WD_RFC_LOADBL_META' not properly defined! Unable to create Metadata connection for Dictionary Provider. Either the logical System Name 'WD_RFC_LOADBL_META' has not been properly defined in the System Landscape Directory, or you are not using a MsgServerDestination (AppServerDestinations are not permitted for Metadata connections)
    I have created a JCOP connector and tested it, everything works fine, but the application is not working.
    Any helpfull ideas ??
    Thanks a lot.
    Thibault Schalck

    I have checked again the parameters, have updated the logon group to PUBLIC and now I have this error message:
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=sapdevnova GROUP=PUBLIC R3NAME=NO1 MSSERV=sapmsNO1 PCS=1 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR service 'sapmsNO1' unknown TIME Fri Feb 06 16:23:15 2009 RELEASE 700 COMPONENT NI (network interface) VERSION 38 RC -3 MODULE ninti.c LINE 530 DETAIL NiPGetServByName2: service 'sapmsNO1' not found SYSTEM CALL getservbyname_r COUNTER 1
    I have no idea what this means...

  • Error When Call WebService from WebDynpro

    Hi,
    I´m with this error when i execute* the web service that i created on my WebAS:
    Request_CalculatorWSViDocument_add req = new Request_CalculatorWSViDocument_add();
    wdContext.nodeRequest_CalculatorWSViDocument_add().bind(req);
    wdContext.currentRequest_CalculatorWSViDocument_addElement().modelObject().setX(x);
    wdContext.currentRequest_CalculatorWSViDocument_addElement().modelObject().setY(y);
    wdContext.currentRequest_CalculatorWSViDocument_addElement().modelObject().execute();
    java.lang.NoSuchMethodError: com.sap.engine.services.webservices.jaxrpc.wsdl2java.BaseGeneratedStub._initParameter(Lcom/sap/engine/services/webservices/jaxrpc/wsdl2java/ServiceParam;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class;)V
         at br.com.softtek.model.proxies.Config1BindingStub.add(Config1BindingStub.java:58)
         at br.com.softtek.model.proxies.Config1BindingStub.add(Config1BindingStub.java:101)
         at br.com.softtek.model.Request_CalculatorWSViDocument_add.execute(Request_CalculatorWSViDocument_add.java:91)
         at br.com.softtek.comp.CalculatorComp.executeOperation(CalculatorComp.java:217)
         at br.com.softtek.comp.wdp.InternalCalculatorComp.executeOperation(InternalCalculatorComp.java:214)
         at br.com.softtek.comp.CalculatorCompView.onActionAdd(CalculatorCompView.java:143)
         at br.com.softtek.comp.wdp.InternalCalculatorCompView.wdInvokeEventHandler(InternalCalculatorCompView.java:173)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
         at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:711)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:665)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:232)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Any idea?
    Regards,
    Bruno

    Hi tulasi,
    My WebService uses "Simple SOAP".
    Naga Raju Meesala,
    The WebService type is "WebService Mode"l.
    Any idea?
    Regards,
    Bruno

  • BAPI returns less number of records when called from WebDynpro

    Hi,
    We have a BAPI which updates some tables and then bring back output in the form of a table.
    When we execute BAPI from R/3 we get all records. When we execute the BAPI using webdynpro, for the same input values, we are always getting 22 records. This count remains same always. 
    When we had put a breakpoint in the BAPI and tested it using webdynpro, we get few more records. Wondering what is the prob?
    Any help?
    regards,
    Shabeer

    Hi,
    Are you using the same user when running the BAPI form R/3 and from the portal?
    We had a similar problem when the user from the portal didn't have the necessary authorizations.
    Adi.

  • SLD in R/3 4.6C and WebDynPro calling BAPI from EP7.0 to 4.6C

    Hi,
    First let's describe the landscape :
    - EP7.0
    - R/3 4.6C
    Second, the goal : I want to do WebDynpro that will communicate with the R/3 4.6C.
    To achieve that, a EP7.0 (based on NW2004s SR2 that was "upgraded" to SPS10) was recently installed.
    No problem with this one. The SLD server (local server) is installed on this portal.
    As there is no gateway on the portal, I took the gateway of the R/3 4.6C for the SLD server.
    The ABAP system was created manually in the SLD server.
    I then created the two JCo and it seemed to work fine (as least the tests were OK)
    When I created a WebDynPro that I published on the portal I was able to retreive the BAPI of the R/3 server, I was able to send him my requests but I received nothing from the R/3.
    I also noticed when I tried to configure SLD in the R/3 that the tcode SLDCHECK, SLDAPICUST were not present. Do you need a defined SP level to be able to run them ? Are they important for my use ?
    The question is : is my configuration wrong (SLD...) or is my Java code in the WebDynpro wrong ?
    TIA,
    Denis.

    Raghav,
    The most common reason for this error is exactly what it says, you have somehow overlooked including a material/plant in a PR IM.
    Go into the failed queue, find all material/plants that exist in the failed LUW.  Enter these one by one into CFM5 in R/3.  You should have one and only one active model for each of these materials.  Inactivate all but one IM if there are multiple PR models active.
    If this PR is for a STO, then you must have open active IMs for both the source and destination plant materials.
    Now, you say that in SCM you cannot select the models, this means that they are not active and valid.  If you can find the model in R/3, but Delta3 can't find it, it implies that there is some type of error with connectivity, perhaps in your system destination definitions.  Wrong RFC connection name, wrong server id, wrong client, etc in SM59.   Or, wrong logical system name.  Check these on both sides.
    More unlikely, but also possible, check is for inconsistencies in the IMs.  In R/3, run RAPOKZFX.  Regenerate your IM runtimes with RCIFIMAX.
    Finally, it is possible that you have userexits that are impacting the CIF.  Talk to your developers to see if any have been activated.
    Best Regards,
    DB49

  • I am trying to generate purchase order and i create a BAPI also which is active. But when i call the BAPI from SYbase Mobile Object RFC then after calling it gives an Error "Conflict when calling a Function Module (Field Length)".

    i am trying to generate purchase order and i create a BAPI also which is active.
    But when i call the BAPI from SYbase Mobile Object RFC then after calling it gives an Error "Conflict when calling a Function Module (Field Length)".

    Hi,
    Yeah i tried my Z_BAPI in R3 and then giving some ERROR.
    This is my CODE-
    FUNCTION ZBAPIPOTV2.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(POHD) TYPE  ZPOHD OPTIONAL
    *"     VALUE(POITEM) TYPE  ZPOITEM OPTIONAL
    *"  TABLES
    *"      RETURN STRUCTURE  BAPIRET1 OPTIONAL
    data: ls_pohd type bapimepoheader,
             ls_pohdx TYPE bapimepoheaderx,
             lt_poit TYPE TABLE OF bapimepoitem,
             lt_poitx TYPE TABLE OF bapimepoitemx,
             ls_poit TYPE bapimepoitem,
             ls_poitx TYPE bapimepoitemx.
       MOVE-CORRESPONDING pohd to ls_pohd.
       MOVE-CORRESPONDING poitem to ls_poit.
       ls_pohdx-comp_code = 'x'.
       ls_pohdx-doc_type = 'x'.
       ls_pohdx-vendor = 'x'.
       ls_pohdx-purch_org = 'x'.
       ls_pohdx-pur_group = 'x'.
       ls_poit-po_item = '00010'.
       APPEND ls_poit to lt_poit.
       ls_poitx-po_item = '00010'.
       ls_poitx-po_itemx = 'x'.
       ls_poitx-material = 'x'.
       ls_poitx-plant = 'x'.
       ls_poitx-quantity = 'x'.
       APPEND ls_poitx to lt_poitx.
    CALL FUNCTION 'BAPI_PO_CREATE1'
       EXPORTING
         POHEADER                     = ls_pohd
        POHEADERX                    =  ls_pohdx
    *   POADDRVENDOR                 =
    *   TESTRUN                      =
    *   MEMORY_UNCOMPLETE            =
    *   MEMORY_COMPLETE              =
    *   POEXPIMPHEADER               =
    *   POEXPIMPHEADERX              =
    *   VERSIONS                     =
    *   NO_MESSAGING                 =
    *   NO_MESSAGE_REQ               =
    *   NO_AUTHORITY                 =
    *   NO_PRICE_FROM_PO             =
    *   PARK_COMPLETE                =
    *   PARK_UNCOMPLETE              =
    * IMPORTING
    *   EXPPURCHASEORDER             =
    *   EXPHEADER                    =
    *   EXPPOEXPIMPHEADER            =
      TABLES
        RETURN                       = return
        POITEM                       = lt_poit
        POITEMX                      = lt_poitx
    *   POADDRDELIVERY               =
    *   POSCHEDULE                   =
    *   POSCHEDULEX                  =
    *   POACCOUNT                    =
    *   POACCOUNTPROFITSEGMENT       =
    *   POACCOUNTX                   =
    *   POCONDHEADER                 =
    *   POCONDHEADERX                =
    *   POCOND                       =
    *   POCONDX                      =
    *   POLIMITS                     =
    *   POCONTRACTLIMITS             =
    *   POSERVICES                   =
    *   POSRVACCESSVALUES            =
    *   POSERVICESTEXT               =
    *   EXTENSIONIN                  =
    *   EXTENSIONOUT                 =
    *   POEXPIMPITEM                 =
    *   POEXPIMPITEMX                =
    *   POTEXTHEADER                 =
    *   POTEXTITEM                   =
    *   ALLVERSIONS                  =
    *   POPARTNER                    =
    *   POCOMPONENTS                 =
    *   POCOMPONENTSX                =
    *   POSHIPPING                   =
    *   POSHIPPINGX                  =
    *   POSHIPPINGEXP                =
    *   SERIALNUMBER                 =
    *   SERIALNUMBERX                =
    *   INVPLANHEADER                =
    *   INVPLANHEADERX               =
    *   INVPLANITEM                  =
    *   INVPLANITEMX                 =
    ENDFUNCTION.
    i am trying to generate purchase order and i create a BAPI also which is active. But when i call the BAPI from SYbase Mobile Object RFC then after calling it gives an Error "Conflict when calling a Function Module (Field Length)". 

  • Creating webservice using webdynpro java calling bapi from r/3

    hi all,
    as i am new to this area can anyone provide me a guide to create a simple webservice using webdynpro java to call bapi's from r/3?
    i want to consume the created webservice on a .net client.
    Thanks in advance,
    Raghunandan

    You can use the SAP .NET Connector to do it.
    Download from [http://service.sap.com/connectors|http://service.sap.com/connectors].

  • Problem regarding BAPI call from a webdynpro applications

    Hi,
      We are trying to call a BAPI in R/3 system from a webdynpro application through the standard method. But we are getting some problems in JCO settings. We already wasted so much time in solving those problems. Is there anyway where i can access BAPI from Webdynpro application.
    Rgrds,
    Anna

    Hello Anna,
      You can do it by using SAP Java Connector API's in the implementation of the Webdynpro application. You can refer to the sample programs for JCO at http://service.sap.com/connectors and download the latest version of SAP JCo in that install those files as per the installation document in the downloaded zip. The downloaded zip contains information about JCo APIs and sample programs.
    Hope this will solve your problem.
    Best Regards,
    Srinivas.

Maybe you are looking for

  • Possible to recover data from dead HD?

    in July of this year, my HD stopped working for whatever reason. i got the folder icon when i started my Mac mini that day and did lots of troubleshooting with no luck. i ended up putting a new one in and all is fine now. EXCEPT all my pics and whatn

  • Final Cut express upgrade for intel macbook pro

    I need help i used to have a G5 desktop and got DVD Studio Pro 3 and then i got Final Cut pro 4 with Upgrade, i try to install this software to the intel Macbook Pro wich i have 2 gig of memory, but if I install DVD Studio Pro 3 and Final Cut pro 4 i

  • How to Copy and Paste object in InDesignServer CS3.

    Hi All: Is there a method to copy and paste object in InDesignServer CS3? Thanks in advanced.

  • Word 2013 Saving You Tube Videos

    Hello Community I have a question.  I have saved some youtube files onto my word doc. using 2013 office.  Does the actual youtube file get saved or just a web address to open up a file.  So...you are typing on your word doc.  you go to insert then on

  • Skype error: DISK FULL on macbook pro when signing in.

    Hey guys,  I've tried googling it but i'm only finding solutions for windows and none for macbook. When i try signing in to skype for mac, it displays the error 'Disk full'. My hard drive has plenty of space and it allows me to sign in with other acc