Error calling BAPI_ADDRESSEMP_CREATE via SOAP

Hi,
I'm calling the remote-enabled function module (from Adobe Flex) via SOAP and its erroring and not returning anything. If I debug it, it gets as far as the statement below (in the function module HR_MAINTAIN_MASTERDATA) then just stops.
CALL DIALOG 'HR_MAINTAIN_MASTER_DATA' USING BDCDATA MODE 'N'
I know mode N is no-display, so why should this error? I know its coming into SAP via the ICM (over http) so there's no gui, but do we need a gui? I've seen remote-enabled function modules in the past that contained call transactions, and they worked fine!.
Points awarded for help
Graham

I've been doing some more digging.
Basically, the BAPI is simulating the infotype 0006 screen to put data in, but any error message or unexpected screens that comes up will cause the BAPI to fail. The BAPI doesn't do much validation before passing the data to the screens, it just checks that you've locked the employee record (and maybe does some other checks as well like authorisations).
This means that you have to check your data in the call.
Here are some things that I found to check
1: Make sure that the start date, end date and subtype are supplied and are in the correct format (you can do this by placing an external breakpoint in the BAPI and checking it from here).
2: Make sure all mandatory fields are specified.
3: Make sure that there aren't any dynamic actions set up on infotype 0006 that could display other screens. Dynamic actions are normally ignore in batch input mode, but since the BAPI is doing a CALL DIALOG and not a CALL TRANSACTION, the field sy-binpt is not set to 'X'. One way round this is to create a z-function module which sets sy-binpt to X and then calls the BAPI.
Any other suggestions welcome

Similar Messages

  • Error calling appl. via OLE OA175 after inst. Patch4 or 5 of SAPGUI 7.20

    I have maintained a OLE application with the "oaa4 ArchiveLink:Application Maintenance" to do special work on documents with special type.
    It worked very well until I installed the Patch4 or Patch5 of the SAPGUI 7.20.
    Now I get the message: "Error calling Application via OLE ...".
    It looks like a bug in the patches but may be there is something wrong with me (or my application). Has someone any experience with this patch or with this error message.
    In the meantime I got an answer:
    You have to grant your OLE application in the security options in the SAP-GUI-Configuration.
    Edited by: Terkosh on Feb 13, 2012 3:48 PM

    how do I grant the OLE application ?

  • OLE with c# for SAP AL - Error calling application via OLE GUIScanDoc

    Hi,
    I am creating a small scanning application which should be accessible from SAP. I read the documents  from SAP side which says, we need to create an OLE 2.0 Enabled application. I created an OCX application in vb6 and configured with SAP. the call is going to my ocx application but dont know how to implement "GUIScanDoc @AID,N" in my application. I tried to create a function named GUIScanDoc () in ocx but getting the same error stating *"Error calling application via OLE GUIScanDoc".
    If anyone has solution then plz plz help me out.
    Thanks in advance.
    P. Ramesh
    Edited by: rapr04 on May 22, 2011 2:37 PM

    I think you posted this in the wrong section of the forums, this area is just for SDK's relating to the BusinessObjects products.

  • OAWD - Error calling app. via OLE

    OAWD is a new transaction for my users.  We are in testing and are receiving an error message "Error calling application via OLE ...".
    ST01 trace is clean, but a workflow item does not always route to the mailbox.  Functional consultant says it is a security issue.  S_OLE_CALL is assigned to the users with required values (does not appear in trace).  I have already checked the standard role SAP_BC_SRV_ARL_USER and the Archive link documentation with no success.
    Any suggestions?  Have you seen this error before?

    I have teh same problem, when i am trying to attach a zip document in transaction ME53N.
    I am getting the following error:
    " Error Calling Application via OLE ALVIEWER.APP"
    Could anyone help me with this issue?.
    Thanks a lot
    David

  • Error calling application via OLE GUIScanDoc

    Hi,
    I am creating a small scanning application which should be accessible from SAP. I read the documents from SAP side which says, we need to create an OLE 2.0 Enabled application. I created an OCX application in vb6 and configured with SAP. the call is going to my ocx application but dont know how to implement "GUIScanDoc @AID,N" in my application. I tried to create a function named GUIScanDoc () in ocx but getting the same error stating *"Error calling application via OLE GUIScanDoc".
    If anyone has solution then plz plz help me out.
    Thanks in advance.
    P. Ramesh
    Edited by: rapr04 on May 22, 2011 2:37 PM

    I think you posted this in the wrong section of the forums, this area is just for SDK's relating to the BusinessObjects products.

  • How to call webservice via SOAP on WebAS 620

    Hi,
    I am working on WebAS 620 and want to call from ABAP side a Webservice via SOAP.
    The webservice belongs to a third party tool and is placed on a different server.
    This webservice is pretty easy (2 import parameters and 1 export).
    Unfortunately it seems to me that the SOAP framework does not support such calls. It just supports calls of RFC enabled function modules. This is not what I want.
    Do you know if this is possible and how I can do it?
    Best regards,
    Jan Heffter

    check this weblog
    /people/durairaj.athavanraja/blog/2004/09/20/consuming-web-service-from-abap
    Regards
    Raja

  • XI calling WS via SOAP Adapter

    Hello,
    does anyone have a working scenario where XI 2.0 calls a WS via the SOAP Adapter?
    Could you please post the config file and please let me know what you use on the inbound XI side
    Thanks
    Stefan

    Hi
    We do not require any acknowledgements. But for the cases where the soap call is delivered, but returns a http response of 500 together with a complete soap envelope containing a soap fault, the Soap Axis Receiver Adapter is issuing an u201CApplicationErroru201D Acknowledgement Message (referring to the original request message) (even though it is not requested). This Acknowledgement Message is failing on the Integration Server with a configException u201CFailed to determine a receiver agreement for the given messageu201D. We have tried to create a receiver agreement and reciever channel with the given keys from the error message, but still getting the same result.
    Issue A: How to get this (non-requested) Acknowledge message to process without error.
    Issue B: How to get a proper u201Cerror-messageu201D telling that the original request message was not really delivered though (as the soap call gets a http response of 500).
    Rgds
    Eivind

  • Error while invoking the ABAP Proxy via SOAP Adapter

    Hi,
    My scenario involves SOAP Client invoking a webservice hosted in PI which in turn invokes the ABAP Proxy asyncronously.
    SOAP Client -> PI -> ECC (ABAP Proxy) . This works fine.
    Next , I have exposed the ECC Service Interface as webservice using SOA Manager transaction. Now, once the service is created using SOAManager, i replaced the XI Adapter with SOAP Adapter and provided the target URL as the URL provided by the SOAManager.
    SOAP Client -> PI -> ECC (ABAP Proxy via SOAP Adapter)
    With this approach, i am encountering the below error message
    2009-05-29 12:17:55 Error Adapter Framework caught exception: null
    2009-05-29 12:17:55 Error Delivering the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException.
    Any ideas on the above errror message? Any pointers or inputs will be appreciated.
    Thanks,
    Vinayak Kamath

    > 2009-05-29 12:17:55 Error Adapter Framework caught exception: null
    > 2009-05-29 12:17:55 Error Delivering the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException.
    This is a generic error message which does not have any information about the error which has occurred.
    Do you see any error messages in the SOAP client?
    Regards
    Stefan

  • Call MS com object via SOAP from WLS 6.1

    I generated a WSDL file for a Microsoft com object and can easily write a WL
    web service that calls it using Workshop 7.0. But I need to deploy it on a
    WLS 6.1 server. (I was hoping that Workshop would simply generate the source
    code required for accessing the com object via soap, which I could then cut
    and paste into my own source, but it doesn't do that.)
    Does anyone have an example of how to do this?

    Hi Mel,
    You said that you want to "deploy it on WLS 6.1", but I think what you really
    meant is that you want a J2EE component (i.e. JSP, Servlet, EJB, etc.) running
    in WLS 6.1 to consume the WSDL you created from the COM object, right?
    If so, the web services package in WLS 6.1 can be used to do this :-) If you tell
    me what type of J2EE component (i.e. JSP, Servlet, EJB, etc.) you want to be the
    client, I'll provide you with some sample code. Also, be sure you attach the WSDL
    that was generated, because WLS 6.1's WSDL processor isn't as complete as the
    one in WLS 7.0 and Workshop :-)
    Regards,
    Mike Wooten
    "Mel Werbow" <[email protected]> wrote:
    I generated a WSDL file for a Microsoft com object and can easily write
    a WL
    web service that calls it using Workshop 7.0. But I need to deploy it
    on a
    WLS 6.1 server. (I was hoping that Workshop would simply generate the
    source
    code required for accessing the com object via soap, which I could then
    cut
    and paste into my own source, but it doesn't do that.)
    Does anyone have an example of how to do this?

  • Connection from DP to SAP PI 7.11 via SOAP/https failed

    Hello Guys,
    we have a problem with connection from DP to SAP PI via SOAP/https.
    DP send a request and get a timeout. timeout is 2 or 3 minutes.
    DP and SAP PI authentificated with certificates.
    Our Problems:
    DP get now failure code
    in commnication channel monitoring in RWB from SAP PI I see no entry, no error
    in java default trace I see no error.
    What could be the Problem? What must we configure for https communication via SOAP Adapter?
    Which Log get me some information?
    Thanks and regards
    Martin

    Hi Neetesh,
    I have check all, but it resolved not my problem.
    I will describe my scenario again:
    scenario:
    syncronous request from system A over DataPower ->SAP PI to SAP system.
    communication DataPower to PI: SOAP over https
    DataPower located in other network zone.
    port is activated in firewall.
    called URL from DataPower:
    https://<host>:5<instance number>01/XISOAPAdapter/MessageServlet?
    channel=:<business system>:<interface>
    Problem:
    authentication looks like ok. No error in ICM Trace, in default java
    trace login from DataPower IP-adress ok.
    but no message is to see in the communication channel.
    no message in the adapter engine, no message in the integration engine
    DataPower get a timeout. (Timeout 2  minutes)
    we find no error, but also no message
    What could be the error? And where find I some information in SAP PI.
    Thanks and regards
    Martin

  • Overflow in VBScript invoked via SOAP

    We are using web services to invoke a Visual Basic Script in our server (V7).
    If we invoke the Script from Windows (by double clicking it) with the server running the script runs fine.
    However if we invoke it via web services we get the following error:
    Windows Scripting Erorr!
    Error Number: 6
    Error String: Overflow
    The error comes from a line that does some simple mathematic arithmetic. There is no division by 0 and as i mentioned this executes fine if invoked by Windows rather than IDS.
    Is there a memory limit when executing VBScript via SOAP or some other restriction that we are not aware of.

    If anyone is willing to look at this problem this is a minimal script that reproduces it.
    Set InDesignApp = CreateObject("InDesignServer.Application")
    Set IndDoc = InDesignApp.Open("C:\overflow.indd")
    InDesignApp.JPEGExportPreferences.JPEGExportRange =  1785742674
    InDesignApp.JPEGExportPreferences.PageString = IndDoc.Spreads(1).Pages(1).Name
    x = 1 / 2
    IndDoc.Export 1246775072, "C:\overflow.jpg"
    x = 1 / 2
    You will need to create a document called overflow.indd in C. I can pass you mine if i could find a way to attach a file to this post.
    You should get the overflow error in the last line of code.

  • Timesheet(time Administartion- Time Sheet) WSDl is throughing error  when consumed by SOAP UI

    Hi,
    Requirement : We are trying to integrate the timesheet(time Administartion->Time Sheet) with external sheet
    We had downloaded the WSDL (i.e. Manage Employee Time data) from communication arrangment.
    when we try to process the same we are facing  the error as mentioned in attachment.
    can anyone help me on the same
    Regards,
    Prasad

    Hi Prasad,
    if you are testing Cloud WSDL via SOAP UI and any error you can check into Application and User Management --> Business Communication Monitoring --> and from drop down select "Reject Web Service Call" option to know more about your error.
    as per you error i thing if Work Assignment 1 is not available or may be leading zero problem, i don't know but you can check the error log into the cloud may be its helpful to you.
    Regards,
    Mithun

  • Web-UI error message "Access via 'NULL' object reference not possible"

    I need some help, I'm not a Basis person but I need to get this connection problem resolve.
    This problem is in our DEV ICWeb system.  After logging in to Web-UI, I got a error message "Access via 'NULL' object reference not possible".  We have 3 clients (100, 220, & 310) in DEV and all 3 clients are giving me the same error message.
    From the help.sap.com, I found this topic http://help.sap.com/saphelp_nwes70/helpdata/en/84/43f0d786304e19a652a8f80909a8ec/content.htm
    but in the document it asked to go to SM59 to check the ESH_APPL_WS_TEMPLATEENGINE destination.  But we don't have that destination setup in all our systems.
    Here is the complete error message:
    Error when processing your request
    What has happened?
    The URL http://crm-dev.staff.copa:8000/sap/bc/bsp/sap/crm_ui_frame/BSPWDApplication.do was not called due to an error.
    Note
    ■The following error text was processed in the system CD1 : Access via 'NULL' object reference not possible.
    ■The error occurred on the application server CRM-DEV_CD1_00 and in the work process 0 .
    ■The termination type was: RABAX_STATE
    ■The ABAP call stack was:
    Method: GET_DATA_LOSS_HANDLER of program CL_CRM_UI_CORE_APPL_CONTROLLERCP
    Method: GET_DATA_LOSS_HANDLER of program CL_CRM_UI_CORE_APPL_CONTROLLERCP
    Method: EH_TRIGGER_NAVIGATION of program CL_CRM_UI_CORE_APPL_CONTROLLERCP
    Method: SET_WORKAREA_CONTENT of program CL_CRM_UI_CORE_APPL_CONTROLLERCP
    Method: PROCESS_NAV_QUEUE of program CL_BSP_WD_VIEW_MANAGER========CP
    Method: DO_INIT of program CL_CRM_UI_FRAME_APP_CONTROLLERCP
    Method: DO_INIT of program CL_BSP_CTRL_ADAPTER===========CP
    Method: GET_PAGE_CONTEXT_CURRENT of program CL_BSP_CONTEXT================CP
    Method: ON_REQUEST_ENTER of program CL_BSP_RUNTIME================CP
    Method: ON_REQUEST of program CL_BSP_RUNTIME================CP
    What can I do?
    ■If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system CD1 in transaction ST22.
    ■If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server CRM-DEV_CD1_00 in transaction SM21.

    Hi Michael,
    Refer to the link below and check the procedure.
    http://help.sap.com/saphelp_nwes70/helpdata/en/84/43f0d786304e19a652a8f80909a8ec/content.htm
    Regards,
    Arjun

  • Javascript error calling a bi 7.0 webapplication from a bsp application

    Hi everyone,
    This is the scenario we're facing a javascript error :
    Enterprise Portal is calling a custom bsp application ( via an iview in the enterprise portal ) in the bi system with a parameter "template_id" and a value, which is the technical name of a bi web application.
    The bsp application is evaluating the parameter by some custom code and creating a html page with a redirect or a maintenance message to the bi web application passed with the parameter "template_id".
    The html link to the bi web application is created according to this documentation :
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/46/03d4ac801467e6e10000000a1553f6/content.htm
    Purpose of the bsp application :
    in the bi system there is a database table to maintain a flag for each webtemplate and infocube, which should not be called via the enterprise portal for a certain time ( some kind of maintenance switch ). The bsp application then decides to show a maintenance page for the called webtemplate or to send the redirect page to the client.
    The process described above is :
    working with the bi 7.01 sp7 in the bi ( enterprise portal sp22 ) in the productive system.
    working in the Q&A system bi 7.01 sp8 with bi 3.5 web applications.
    not working in the Q&A system bi 7.01 sp8 with bi 7.0 web applications.
    The javascript error calling bi 7.0 web applications is :
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET4.0C; .NET4.0E)
    Timestamp: Mon, 6 Jun 2011 09:11:04 UTC
    Message: Object doesn't support this property or method
    Line: 96
    Char: 11
    Code: 0
    URI: https://mlptb1.mlp-ag.com:58001/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=B_221_002_KUNDEN_POSTEN_AD
    We've opened a message. Support center is saying that this method isn't supported by sap. We should ommit the bsp application and the used functionality.
    Is there any way to find out, what is causing this object is missing ?
    Is there another way than a bsp application to use this custom maintenance function in the described system setup ?
    system components :
    production system
    SAP NetWeaver 7.0 Portal SP22
    SAP BI 7.01 SP 7
    q&a system
    SAP NetWeaver 7.0 Portal SP22
    SAP BI 7.01 SP 8
    Kind regards.
    Dirk

    Hello everyone,
    we did some further analysis on this problem und we think we found the problem.
    The error occurs while trying to execute the standard url for web templates inside a Enterprise Portal Frame, for example
    https://XXX:XXX/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=XXX
    While executing the URL a HTML-Page with some embeded Javascript-code is sent back to the browser.
    In this Javascrip-Code, the method-call "dsmObj.registerAll" leads to a script error in Internet Explorer.
    dsmObj.registerAll("pcd:portal_content/com.sap.pct/platform_add_ons/com.sap.ip.bi/iViews/com.sap.ip.bi.bex", "GUSID:6FC9SuhGDPIMMLwOdeHEIg--_7WQud13yeLJDz2kYoQFSg--", "1307605928212");
    In SP7, the method "dsmObj.registerFullKey" is called instead of "dsmObj.registerAll". This has changed in SP8.
    dsmObj.registerFullKey("GUSID:iBPvyska9*xE_JBalkQG2g--YyKv2C3NToP0I79Mw7EO8w--", "1307606479963");
    The object "dsmObj" seems to reference the parent frame of the Enterprise Portal.
    Has anyone seen this before? Any ideas how we can fix this?
    Kind regards,
    Matthias
    Edited by: Matthias Keller on Jun 9, 2011 2:07 PM

  • Error 401 while sending SOAP Request to XI

    hi friend ..
    i am getting Error 401 while sending SOAP Request to XI..
    can u suggest me where may be the error?
    thanks..

    Hi,
    Refer these threads:
    Testing XI SOAP scenario via XMLSpy
    Re: SOAP Sender ADAPTER 401 No Authorisation
    Re: XI Web Service - Code: (401) Unauthorized.
    Try soap client https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9b16d790-0201-0010-4e9b-baa5f42830d8
    Regards
    Suraj

Maybe you are looking for

  • Extra characters at end of line in spool file

    I am trying to generate csv files from SQL Developer using queries written to spool files.  I have embedded the queries and associated set commands in script files and call them, as advised elsewhere.  This gives csv files that look fine, with headin

  • Trying to understand methods - calling methods within own class - help

    I'm trying to write a simple program to search for letters in a string. I'm having a ton op problems; java seems so complicated with a lot of rules. The main problem I'm having (for now) is calling a method within the same class as main. import java.

  • How to define complex type with table per record?

    Hi, for one of my tasks I'm dealing with XML export. After short investigation of the postings in the forum I found an acceptable solution: Re: Convert ABAP to XML and Vice versa The issue is that I need an XML file like this: <plant>   <material>   

  • Billing doc not cleared

    I have posted one billing document, but document flows says account not cleared, I don't have F110, my objective is to clear the billing account document automatically, without manual clear it, how to achieve, thanks

  • Policy-map multi-match

    Hi Guys, I need explanation on multi-match policy on ACE. How does it work ? Lets take this example- policy-map multi-match CLIENT-VIPS   class VIP1-80     loadbalance vip inservice     loadbalance policy VIP1-POLICY policy-map type loadbalance first