Error in BAPI call using  webdynpro

hi ,
am new to this webdynpro abap..so i was trying out sample tutorials from sdn..when i trigger a button click event in order to call bapi function..the error has be raisen..so give me a solution for this..kindly chk out this link..i was trying for this application..i did exactly as mentioned in this tutorial..
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/00545e6d-0679-2910-acab-8073ce9a1659?rid=/webcontent/uuid/fed073e5-0901-0010-4eb4-c9882aac7b11 [original link is broken]
in this second tutorial..bapi usage
error :
The following error text was processed in the system NSP : RFC Exception COMMUNICATION_FAILURE with Message RFC destination bapi Fm does not exist. Occurred
The error occurred on the application server w2gzmbks01_NSP_00 and in the work process 0 .
The termination type was: RABAX_STATE

Hi Anuj,
I ve a similar kind of issue at my end. I am trying to call  BAPI_DOCUMENT_CREATE2 from a Webdynpro application(A2C/000) and using commit work. A new doc_number is very much created, even commit work returns no error.
But surprisingly i dont see this new record in the same destination (A2C/000).
this BAPI is already remote enabled (SE37)

Similar Messages

  • Bapi Call using JCO

    Hi all,
    Please share your views on the below scenario:
    A WD Java app, deployed on WAS and an iView created in portal, is calling a BAPI and works fine when assigned to the role.
    Now the same application when viewed directly using
    http://<host>:<port>/webdynpro/dispatcher/local/<appname> does not execute the bapi and gives
    com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Error connecting using JCO.Client: null
    The JCO are using a service user to connect to the backend, so SSO still exist.
    Let me know what we could be doing wrong here.
    Meanwhile I can check the connection pool to see the property value.
    Thanks for your time
    Avinash

    Hi Prashant
    Thanks for your quick response.
    The application when accessed directly does not ask for user id/password.
    If I set the application property 'authentication' as true, would this authentication be done against UME?
    Also since there is no "SSO using logon tickets" why is there a need for issuing a logon ticket?
    I will try what you suggested in the earlier post.
    Thanks
    Avinash

  • Updation terminated Error in BAPI Call

    Hi All,
    This is related to Warranty module where I need to first change status of a claim (which results into creation of new version for the same claim) and then need to update some fields in the newly created claim version.
    I am doing the above steps in following sequence:
    1) call of BAPI_WARRANTYCLAIM_SET_ACTION (to change the status of claim)
    2) call of BAPI_TRANSACTION_COMMIT
    3) call of BAPI_WARRANTYCLAIM_CHANGE (to change the fields)
    4) call of BAPI_TRANSACTION_COMMIT
    My problem that I am facing is:
    - When I execute the whole code, it results into "Updation termination error" followed by an email to my SAP inbox. However, if I execute the BAPIs - SET_ACTION and CHANGE seperately, it works perfectly fine. What I could figure out is that the error is because of LUW not getting completed ie lock still persists when BAPI_WARRANTYCLAIM_CHANGE is called.
    By using COMMIT WORK AND WAIT, its still not working.
    Can anyone provide some help or pointers for the same.
    Waiting for an early reply.
    Thanks,
    Debarya.

    hi all,
    thanks for prompt reply.
    <b>RAVI -</b> I have tried removing the BAPI COMMITS and explicitly used COMMIT AND WAIT. But it is not working.
    <b>VJ -</b> well, i have checked SM13 transaction, but could not figure out head or tail out of it. i am providing you the list below. As you can see, for 9th point, it is showing ERROR. however, i could not figure out, how to proceed from there.
      1  WTY19_CHANGE_DOC_CREATE        V1                   Initial
      2  PVSDBWTY_PARTNER_UPDATETASK    V1                   Initial
      3  BAL_DB_INTERNAL_IN_UPDATE_TASK V1                   Initial
      4  PVSDBWTY_WTYV_IMRG_SAVE        V1                   Initial
      5  PVSDBWTY_WTYV_IMRG_SAVE        V1                   Initial
      6  WTY15_PRICING_COND_POST_UPD    V1                   Initial
      7  HANDLE_TEXT_ARRAY_AFTER_COMMIT V1                   Initial
      8  PVSDBWTY_WTYV_IMRG_SAVE        V1                   Initial
      9  PVSDBWTY_PARTNER_UPDATETASK    V1                   Error (no retry)
    10  HANDLE_TEXT_ARRAY_AFTER_COMMIT V1                   Initial
    11  PVSDBWTY_SAVE_UPDATETASK       V1                   Initial
    Regards,
    Debs

  • ABAP function call using webdynpro abap

    Hi
    I have a function module in R/3 which returns data in PDF format(Binary). I wish to create a webdynpro application which can call this function module and open the data in acrobat.
    Has someone done this or can someone guide me to an eg. where this is done.
    thanx

    Hi,
    for PDF forms there's the  UI element <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/0f/128841e8231709e10000000a155106/frameset.htm">InteractiveForm</a>. See also the e-learning series of Thomas Jung (in the weblogs) with examples on integrating forms.
    Regards, Heidi

  • 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].

  • How to call the RFC from R/3 to SRM, when we use webdynpro abap? (Urgent)

    Hello
    We use SRM Server 5.5 with classic scenario.
    We want to call RFC in R/3 from webdynpro ABAP.
    How can we do that?
    We are developing the web report using webdynpro abap.
    So we need some of R/3 data such like PR(EBAN)and PO(EKKO,EKPO).
    When user choose the search parameter, report diplay the Shopping cart, PR and PO data on webdynpro.  So we call the R/3 RFC to display the PR, PO data.
    But I tired to call the RFC in R/3, We could not call it.
    How to call the RFC from R/3 to SRM, when we use webdynpro abap?
    Thank you,
    Best Regards,
    SH.

    Hi
    <b>Please look at the following threads as well -></b>
    WebDynpro in SRM
    BAPI's /RFC's in SRM
    BAPI to Change Shopping Cart by RFC
    SRM60 and webdynpro
    Webdynpro Services Exception
    WebDynpro using BAPI has an error
    SRM60 and webdynpro...
    <b>SAP uses META Function modules in SRM to get data from R/3 back-end.</b>
    <u>For getting Purchase requistion data, use the function modules -></u>
    META_REQUISITION_CHANGE        Change purchase requisition              
    META_REQUISITION_CREATE        Create Requisition                       
    META_REQUISITION_DELETE        Delete/close purchase requisition        
    META_REQUISITION_GETDETAIL     Display requisition details              
    META_REQUISITION_GETITEMS      Display requisition items                
    META_REQUISITION_GETRELINFO    Get Releasease Info for requisitions
    <u>For getting Purchase order data, use the function modules -></u>
    META_PO_CREATE                 Create purchase order                    
    META_PO_DELETE                 Delete reservation                       
    META_PO_GETDETAIL              Display purchase order details           
    META_PO_GETITEMS               Display purchase order items             
    META_PO_GETRELINFO             Display purchase order release information
    Hope this will definitely help. Do let me know.
    Regards
    - Atul

  • Error while creating GR using BAPI

    *I am creating material document using BAPI_GOODSMVT_CREATE .
    When I create the Material document using this BAPI I am able to create is successfully when there is no Account assignment category used means it blank at scheduling agreement level.
    But if the Account assignment category is given at the scheduling agreement level then BAPI fails and shows the error message u201CNo goods receipt possible for purchase order.
    I am using SAP version 4.6C
        SPLIT w_file-dln AT '.' INTO w_dd w_mm w_yyyy.
        CONCATENATE w_yyyy w_mm w_dd INTO w_dt.
        w_gm_hdr-pstng_date = w_dt.    " Posting Date
        w_gm_hdr-doc_date   = sy-datum." Doc Date
        w_gm_hdr-pr_uname   = sy-uname." User Name
        w_gm_cd-gm_code     = '01'.    "01 Goods Receipts for Purchase Order
        w_gm_itm-move_type  = '101'.
        w_gm_itm-mvt_ind    = 'B'.
      BAPI Call.
    Edited by: Nandkumar Ghodke on May 21, 2010 4:15 PM
    Edited by: Nandkumar Ghodke on May 21, 2010 4:16 PM

    As per i know..
    that the account assignment information applies to the item level and not to the schedule line level. This means that the quantities, values, and percentage rates indicate how the account assignment information of an item is assigned. This also applies to service items and purchase orders with invoicing plan
    Thanks
    Naresh

  • Error message in BAPI call

    I have imported RFC Interfaces from SAP system. Each interfaces doesn't  have fault message.
    How to get error message in BAPI call when error occurs?
    I can catch an exception in BPM but I need to get error message and send it to another system.

    Hi Denis,
    >>>I have imported RFC Interfaces from SAP system. Each interfaces doesn't have fault message.
    if you want to use fault messages
    consider using ABAP Proxies
    >>>>How to get error message in BAPI call when error occurs?
    most bapis have return table in which they
    return error messages (you can do it either
    in a sync way or in an async way if the call is too long - with corrlelation of course)
    Regards,
    michal

  • Accessing BAPI's using JAVA with out using webdynpro URGENT

    hi Experts,
    What is the procedure for calling RFC/BAPI's using JAVA with out using the webdynpro. Please let me know what are the possibilities with step by step implementation.
    Regards
    Vijay

    Hi Boris Rubarth,
    Thaks for relavant information.
    I have kind of the requirement. The clinet is asking for connecting the SAP RFC using java application. The build Jar or .war or .Ear for which are going to develop should be compatible for running on any of the Applications server like they have Tom cat, weblogic, websphere server.
    so the .jar for or .ear file which we are going to develop should be able to run accessing the RFC/ BAPIs from any of these servers other than SAP WAS that is what their target.
    Please give me your suggestion, which is better approach. currently their SAP system is 4.6c . So presently it is not possible the webservice approach. But they have plans to go for upgrade to ECC6.0
    In that case only JCO option is possible. If use this option . Is it possible to access application which is deployed irrespective of the WAS by doing the required configuration.
    Basically i am aware of the ABAP webservice work bech steps and also the JAVA coding also.
    Please suggest me what is the better way to achieve this.
    Regards

  • Two bapi calls in the same session using PI

    Hi,
    I have a file to RFC scenario wherein I need to call a BAPI (L_TO_CANCEL) and then again, I need to call another bapi called
    "BAPI_TRANSACTION_COMMIT" in the same session. My question is, if I use RFC adapter, do I have to call the commit bapi again?
    If yes, is there anyway I can do that ?
    I believe that will be the case only if I use a proxy. Is that correct ?
    The requirement is to call these two BAPIs and finally include a success or error message in the response.
    Thanks.

    Inside the BPM you do not have a specific exception message. You can do an exception handling based on the exception, but the excpetion itself is not a real message.
    If you want a real message, you could create an ABAP proxy, which has a message like this:
    root
      - part1
           - rfc response
       - part2
            - error text
    then you can split this inside BPM and send a the response or the error.
    Of course there are other possible solutions.

  • Webdynpro error - what happened calling the webdynpropage was terminated ..

    Hello,
    in WD-Application rendering by portal browsing with Firefox clicking a button it appears a popup.
    The same WD-Application rendering by portal  browsing with IE 6.0 clicking a button it appears not popup but a browser error-message
    "webdynpro error - what happened calling the webdynpropage was terminated due to an error.
    Error type: sapPopupMainIdX1"
    Where is the probem.
    We use Portal Netweaver 2004s, SP11 and as backendystsem for WD for Abap Netweaver 2004s, SP 09.
    Best regards
    Oliver Prodinger

    The issue was actually caused by a kernel problem, as described in the topic
    SAP NetWeaver 2004s ABAP Trial Version SP8 Troubleshooting Guide
    I applied the recommended bug fixes and now it works perfectly!
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6055f523-df6e-2910-f0bf-acccbb0a7d37">SAP NetWeaver 2004s ABAP Trial Version SP8 Troubleshooting Guide</a>
    Hope It will solve your problem
    Cheers
    Parag

  • BAPI_ALM_ORDER_MAINTAIN error "BAPI call must have a SAVE or DIALOG method"

    I have this test code below that I have written to update the work duration on a work order to 5 hours using the BAPI BAPI_ALM_ORDER_MAINTAIN.  I however keep getting the error "BAPI call must have a SAVE or DIALOG method".  Can someone tell me what I am doing wrong
    data: begin of it_methods occurs 0.
            include structure bapi_alm_order_method.
    data: end of it_methods.
    data: begin of it_operation occurs 0.
            include structure bapi_alm_order_operation.
    data: end of it_operation.
    data: begin of it_operation_up occurs 0.
            include structure bapi_alm_order_operation_up.
    data: end of it_operation_up.
    data: begin of it_return occurs 0.
            include structure bapiret2.
    data: end of it_return.
    data: begin of it_et_numbers occurs 0.
            include structure bapi_alm_numbers.
    data: end of it_et_numbers.
    it_methods-refnumber = '0000040000020010'.
    it_methods-objecttype = 'OPERATION'.
    it_methods-method = 'CHANGE'.
    it_methods-objectkey = '0000040000020010'.
    append it_methods.
    it_operation-duration_normal =       '5'.
    append it_operation.
    it_operation_up-duration_normal =       'X'.
    append it_operation_up.
    call function 'BAPI_ALM_ORDER_MAINTAIN'
      tables
        it_methods              = it_methods
        it_operation            = it_operation
        it_operation_up         = it_operation_up
        return                  = it_return
        et_numbers              = it_et_numbers.
    call function 'BAPI_TRANSACTION_COMMIT'
         IMPORTING
           RETURN        = it_return.
    Edited by: Martin Kay on Mar 5, 2009 2:17 PM

    hello martin
    u have to use the save method for saving the contents
    in mehtod tabel u have to add method as save
    if ur  method internal table is it_method then
    it_method-method =  'save'.
    append it_method .
    and also in ur bapi code u have assigned wrong reference number
    reference number always should start from 1
    it_methods-refnumber  =  '0000001'
    not '0000000400123' which u have used for order number
    and after call of bapi u have to call
    bapi_transaction_commitn which u have used
    hope it solves ur problem

  • Went to update my ipod,now I am not able to use itunes because of an error... I have downloaded itunes again, saying it is uploaded then click itunes get error 7! Called for support, they are a joke !! Need advice please ...

    Went to update my itunes upon request from apple, updated now I have an error 7.
    I went to apple site to download itunes get message saying it is uploaded successfully.
    Go to itunes unable to because of error message. Called apple... they are a joke you have
    3 months to use the "phone service" after 3 months you have to pay $19.99 to talk to someone.
    Apple says update.. ha ha dont do it.. you wont be able to use your itunes.
    Any one have any suggestions in how to fix this issue??

    Hello cindib77,
    We've an article that provides further information and steps that can help resolve this error.
    iTunes for Windows: "Error 7" message when opening iTunes
    http://support.apple.com/kb/TS3074
    Cheers,
    Allen

  • Calling a Webdynpro Application in using WDURLGenerator.getApplicationURL

    Hi,
    I have to call a webdynpro application in an external window using the application name. Please note that no iViews are created out of the application which i am going to call.
    I have DC1 and DC2 and from the Comp Controlller of DC1 , i need to invoke the application in DC2.
    String depObjectName =wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
    WDDeployableObjectPart depObjectpart=WDDeployableObject.getDeployableObjectPart(depObjectName,"TestApp",WDDeployableObjectPartType.APPLICATION);
    String url = WDURLGenerator.getApplicationURL(depObjectpart) ;
    window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(url,"Test View");
    window.show();
    Is this the correct API to get getDeployableObjectName which is in the different DC.
    Please let me know the correct API which i can use to get the getDeployableObjectName and the subsequently the Application which is availbale in the different DC.
    Thanks and Regards,
    Sekar

    Hi Chintan Virani,
    Thanks for your reply.
    Is it possible to get to know through the APis that the Webdynpro Application Deployed in the server is started.
    I hope some API's will be available.I need to open this application only when it is started.
    I tried this,
    IWDDeployableObject deplObj = WDDeployableObject.getDeployableObject("TestApp");
    if (  deplObj.getState() == WDDeployableObjectState.STARTED ) {
        // do something
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create deployable object TestApp' since it is not a Web Dynpro object.    null
    Thanks and Regards,
    Sekar

  • 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.

Maybe you are looking for

  • What happens when a OUT parameter of a web-service returns an empty string

    Hi, Any idea on how to deal with the situation when a web-service returns an empty string I get the following System Exception:- Caused by: java.lang.AssertionError: Attempt to set empty javaType to ticketResponse(out,0) :: fuego.type.FuegoClass$Lazy

  • Not reading CD/DVD's, I need to format my computer!

    I have a Satellite P-100 PSPA3C-SD30E bought in CANADA in 2006 Its Pentium dual core T2400 / 1gb ram / has an ATI Radeon 512 mb / DVD-RAM Super-Multi / 100 gb disk/ running on windows XP SP 3 I´m trying to format the hard disk. So I need the use the

  • Macbook Pro vs imac vs MacPro

    Hey Everyone, I've looked around the forums but I haven't been able to find an answer that quite fits my question/situation so I thought I'd try my own. Here it goes. I'm currently running a MacBook Pro 2.0ghz core duo with 1GB of RAM. (1GB on one sl

  • Changing Host Name in OCS 10.1.2

    I have Installed OCS 10.1.2 on RedHat Linux AS 4.5 (x86) on HP-Proliant DL 180 G5 Server. I want to configure Apache Server in OCS to launch a web site. Can anybody guide me with the Apache Configuration, I have tried but as my site name and Host Nam

  • Completing a form in stages with different people.

    Hi, A bit of a LiveCycle newbie here - but really excited for the possibilities! I'm currently investigating whether LiveCycle will be a good fit for my workplace but I have a few questions that I'm still working out... I'd love any help you can offe