BAPI Synchronous Config

when setting up the config for an RFC BAPI synchronous call, it appears that i must have a BAPI on my client side so i can configure the distribution model (BD64) and BAPI destination (BD97) accordingly. Now here's the odd thing. the whole point of this is to call a remote BAPI synchronously. But to set up the config, i must have the BAPI setup on the client, from which i would never call it. ok, the BAPI's method can be any old function module, but is this really how it is done? or am i missing something obvious?
thanks

i will call the remote bapi's methods (implemented by the RFC FM on the target system - server) in a bespoke porgram.
in the source system - client, i will use the function module ALE_SYNC_BAPI_GET_RECEIVER to return the rfc destination from BD97 and pass over eg. CALL FUNCTION ZBAPI_MYFUNCTION destination l_var_dest...
should i wish to, i could also call ALE_BAPI_GET_FILTEROBJECTS to interogate the dist mod - BD64, for any filters.
however, i think ... to enter the object and method in either BD64 or BD97, i must have to create the object's method's bapi in my source system - client. to do this, i have to actually create a function module, release it, create the method for my object, use the function module i have just created, make it an API type in the method, then release it in the method.
this is all well and good it you want to use any functionality implemented by a BAPI on the system the BAPI is created on, however, i am trying to call a remote BAPI.
the BAPI implementation on the client, has nothing to do with the BAPI call on the server. it does not even have to be called the same, nor require the same interface. it purely exists for the population of BD64 and BD97.
i hope what i have written is getting nearer to the point.
cheers christian
glen

Similar Messages

  • BAPI IDoc Config for LSMW

    Hello all,
    I would like to use LSMW to change CRM Business Partner data via BAPI. I have located the correct BAPI to use, but I now need to perform the proper port config, Partner profile setup, etc. Does anyone have straightforward documentation on how to <b>convert this BAPI</b> so that it can be used by LSMW? The Bus. Object is BUS1006005, but it has not yet been prepared for use by LSMW. I have plenty of LSMW experience using BDC, so full LSMW documentation is not necessary. Thanks in advance for your help.
    Kind Regards,
    Jason

    Hi Jason,
    The port config & Partner profile setup, etc. are generally done by basis consulatants. I think bass consultants can help in this as the Ports are beng created one time in a system.
    Ashvender

  • Synchronous and Asynchronous BAPI

    Hi All,
    Like BDC do we have any options to update the database using BAPI synchronously or asynchronously? In BAPI which approach do we go for and is there a way that we can specify these update modes in BAPI like call transaction.
    Please help.
    Regards,
    MD.

    Hi
    Synchronous BAPIs
    Synchronous BAPIs are generally used to read data from a remote logical system, for example to display a customer list.
    Before calling the BAPI, it is therefore necessary to determine the RFC destination of the remote system or the BAPI server. The application developer has access to an API for determining the RFC destination of the BAPI.
    Asynchronous BAPIs
    Asynchronous BAPIs are generally used for replicating data on one or more logical systems, for example to distribute article master data.
    To implement an asynchronous data transfer with a BAPI, an ALE IDoc interface must be generated. This interface controls all of the data communication between logical systems using IDoc technology. The application then calls the generated ALE IDoc interface locally instead of the BAPIs.
    As with synchronous BAPIs, the corresponding logical systems of the BAPI must be determined before you call the ALE-IDoc interface. These are transferred to the ALE-IDoc interface as input parameters.
    http://help.sap.com/saphelp_nw04/helpdata/en/5a/ccb4cb808311d396b40004ac96334b/frameset.htm
    With Regards
    Nikunj Shah
    Edited by: Nikunj Shah on Jul 14, 2008 1:26 PM

  • RFC synchronous error HTTP

    We have a strange problem. We try a simple scenario file-->RFC (Bapi) (synchronous). But it won't work, in asynchronous way it is no problem, that works great.
    The strangest thing is that we don't get the 2 messages on the monitor (in asynchronous way we get the 1 message).
    Once we did get the message, here it is:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">CLIENT_RECEIVE_FAILED</SAP:Code>
      <SAP:P1>402</SAP:P1>
      <SAP:P2>ICM_HTTP_TIMEOUT</SAP:P2>
      <SAP:P3></SAP:P3>
      <SAP:P4></SAP:P4>
      <SAP:AdditionalText><html><head><title>SAP Web Application Server Error</title> <style type="text/css"> body { font-family: arial, sans-serif;} </style> </head> <BODY text="#172972" link="#808080" vlink="#808080" alink="#8e236b" bgcolor=white leftmargin="0" topmargin="0" marginheight="0" marginwidth="0"> <table height="61" width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="http://sapdev:55000/sap/public/icman/img/bluebar_tile.gif" height="30"><table> <tr> <td width=5></td> <td width=20% nowrap><font face=arial size="-1" color=white>SAP Web Application Server </font></td><td width=75% align="right" nowrap><font face=arial size="-1" color="white"><a href="http://help.sap.com/">Help </font></td><td width=5% nowrap></font></td> </tr></table> </td><td rowspan=2 width=122 height=61 valign=top><img src= "http://sapdev:55000/sap/public/icman/img/theme.jpg" width=122 height=61 border=0 alt="SAP"></td> </tr><tr><td background="http://sapdev:55000/sap/public/icman/img/graybar_tile.jpg" height="31">  </td></tr> </table> <br><br> <table width=800> <tr><td width=50 nowrap> </td><td> <H2>500 Connection timed out</H2><br>Connection timed out (-5) <br><hr> <table border="0"> <tr><td>Error:</td><td>-5</td></tr> <tr><td>Version:</td><td>6040</td></tr> <tr><td>Component:</td><td>ICM</td></tr> <tr><td>Date/Time:</td><td>Thu Apr 28 11:13:48 2005 </td></tr> <tr><td>Module:</td><td>icxxthr.c</td></tr> <tr><td>Line:</td><td>2559</td></tr> <tr><td>Server:</td><td>SAPDEV_XI1_50</td></tr> <tr><td>Detail:</td><td>Connection to partner timed out</td></tr> </table> <p></p> </td></tr></table> <table><tr><td width=50 nowrap></td> <td nowrap><FONT SIZE=-1><a href="http://www.sap.com/">© 2001-2003, SAP AG</a></FONT></td></tr></table></SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace=""></SAP:ApplicationFaultMessage>
      <SAP:Stack><b>Error when receiving by HTTP (error code: 402, error text: ICM_HTTP_TIMEOUT)</b></SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    At first we thought the error was the http_timeout, so we raised the number but the problem was the same. The RFC adapter works fine, so that isn't the problem.
    any help would be great...
    TIA

    Hi Bart,
    Did you put a business process between the File (async) and the RFC (sync)? Because you can't connect async and sync interface without a BPM.
    Cheers,
    Frank

  • Doubt  Sync-Async Bridge:

    Hi,
         Do we have Sync-Async Bridge and also Async-Sync Bridge in BPM ?
    Regards,
    siva

    Hi Dhanush,
    There are both kind of bridge.
    1. Sync-Async Bridge is used with BPM.
    2. Async-Sync Bridge can be used with/without BPM.
    Prerequisites:
    Good knowledge of basic XI features.
    Good knowledge of RFC/tRFC concepts.
    Good knowledge of BPM architecture and concepts.
    Example to understand <b>Async-Sync Bridge</b>.
    Suppose from the calling side, the HTTP request arrives as an asynchronous document into XI. As a result, it is persisted immediately in XI and the calling application can move on. On the receiving end we would like to call the BAPI synchronously because the PO number will be immediately returned. This is referred to as an asynchronous-synchronous bridge. Then we would like to send this response, containing the PO number, asynchronously to an external legacy system.
    Regards,
    Sarvesh

  • Asy-Syn bridge

    I have a scenario like
    The XML PO data from the HTTP client is posted asynchronously to XI (using quality of service “Exactly Once”). The control is taken over by BPM and posts the BAPI synchronously into the R/3 system and upon receiving the BAPI response containing the PO number, BPM will send a message asynchronously to the legacy system, as a flat file.
    Is this Asyn-Synch, does Asyn-Synch really exists. I would appreciate if anybody can explain me.
    Thanks
    sneha latha reddy

    Hi,
    If your sender is Sync,in the above scenario, then you need to have steps like. I.e Open Sync bridge and close the bridge.
    For more -you can refer BPM Pattern in the SAP BASIS software component in the Integration Repository.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/65d4dab39b0398e10000000a1553f6/content.htm
    also this blog will help you-
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    discussion on http and Webservice-from different views
    Http client directly sends data into XI pipeline.
    But Webservice is the case, you need to have adapter to convert XI understandable message format.
    Generally Webservice is mainly used in the internet applications. and also for remote client
    But http client is used when you have integration in the same landscape. http client is used by external systems to connect to the Integration Engine using the native HTTP interface i.e message with no SOAP enevelop
    Difference between SOAP and Http Sender
    Regards
    Moorthy

  • Problem after transporting

    Hi Experts,
    My scenario involving File -> BAPI (synchronous) was working fine in the development server but now in the test server when i check the file is picked but i dont think it has reached my BPM. When i click on PE in sxmb_moni i get a screen and in it i find an entry saying "status: waiting because of e" ....
    Anybody got any clue whats happening ?
    Regards,
    Shabarish.

    Hi JK,
    I already ran these checks .... in BPM the status is 0.
    I dint find any entries in SWWL also and the cache content is upto date.
    The file is picked but at the outbound status i see a red flag. When i clicked on PE it usually takes us to a Workflow chart but in this case a new screen is what i see which i have never encountered before. It says Event Queue browser (the tcode of the screen reads SWEQBROWSER) and below it says
    Object type : ZXI_PROXY_MTINVOICERECEIP_0001
    Event: received
    followed by Key and Receiver Type with the status as Waiting because of e.
    I have no clue what this means.
    ~ShaBz~

  • DB2 Table locks after SAP Gui crashes

    Hi,
    I have a really annoying problem. Since my SAP Gui crashes sometimes, when I have nearly the limit of sessions open, I get serious problems with table locks in DB2.
    Background:
    When I run a program, which is updating/deleting/inserting data in SAP tables and the SAP Gui crashes, the table entries, which have been processed at that time get locked. So when SAP is then doing the roll back, the locks still exist!
    The SAP basis guys have restarted the system for me, when I got this problem before, but it's really annoying, when this happens again...
    I mean, of course the SAP gui shouldn't crash, but anyway the locks should be deleted by SAP during roll back, right?
    Does anybody know this problem and does anybody know how to solve it without restarting the machine?
    Many thanks!

    Hi Markus,
    true, the SAP Gui is also an issue I have to solve... But anyway the table lock should not occur.
    If you think about some other situations, where the process can be interrupted:
    - Calling a BAPI synchronous via RFC, which is updating/inserting/deleting table records
    - Windows bluescreen
    - etc....
    Whatever, it is really annoying to be in the need of restarting the system, when a process is going to be interrupted...
    Any ideas to this anyone?
    Thank you!

  • FILE to SOAP synchronous scenario - config of SOAP channel

    Hi All,
    I have a scenario where I want PI to pull some files from 3rd party application.
    Adapters to be used: SOAP receiver, FILE adapters.
    I am aware of the use of Request/Response beans in File sender channel and the File receiver channel to dump the received files in a particular location.
    I need help with the configuration of the SOAP channel.
    The files to be pulled will be Encrypted.
    Summary:
    File sender(RequestResponse & ResponseOneWay Beans) , File receiver( to receive the files), SOAP receiver.
    Need help with the config of SOAP.
    Kindly let me know your views.
    Thanks,
    Pratibha.

    Hi,
    Let me put it in detail steps:
    In forward flow we will be sending an IDoc. It will be processed and later an Acknowledgement file will be generated.
    Now, we want to PULL this Ack file. If the other party had to push the Ack file, the scenario would have been simple.
    But, we want to poll for this file and then pull it.
    So, we would have something like this:
    1. FILE SENDER sends a sample file.
    2. We will be applying the beans in file sender to make it a synchronous scenario. So, the Ack file will be received at the location mentioned in the corresponding FILE RECEIVER adapter.
    3. We have a SOAP RECEIVER which should send the ACK file in response.
    I have configured the same scenario where the RECEIVER was HTTP adapter. The 3rd party had provided us the URL and ENT-APRF value. When I used to send the sample file via FILE SENDER to this HTTP receiver, I was able to retrieve the ACK file via the FILE RECEIVER.
    Now, I wish to configure the same using RECEIVER SOAP adapter.
    I need to know about the config at SOAP end i.e. how and where  the ACK file will be available at the SOAP end for the FILE sender to pull the file.
    Ack files will be encrypted..
    Any views/suggestions will be of great help.
    Thanks,
    Pratibha.

  • Integration Process not continuing after Synchronous BAPI call

    I have an integration process that splits up a batch file of purchase orders into single purchase order messages. This allows me to use the "ForEach" block to call the synchronous BAPI_PO_CREATE1.
    I have managed to get the process to call the BAPI and create the purchase order. The response message arrives back though the abstract synchronous interface and is mapped to the asyncronous response message. After that the process seems to hold where I am expecting it to continue on the process and be appended to a container storage list for mapping to a single return message.
    I have not set up any correlation sets as I thought they wouldn't be needed for a sychronous call.
    Has anyone got any advice on my approach to this process and how I might fix it.
    Thanks in advance

    Hi Bhavesh,
    There are no errors as such in the SXMB_MONI but it gets as far as the Inbound Message (PE_ADAPTER) stage after the Sych BAPI call.
    Also the SOAP Header at this stage seems to be missing "sysnchronous" or "asynchronous" in the  SAP:ProcessingMode tags.
    The technical workflow is as follows
    FTP Batch file outbound to Integratin Process Receive (Async)
    Transform message into a Multiline list of BAPI_PO_CREATE1.request (async abstract)
    Enter "For Each" Block using the multiline list.
    BAPI_PO_CREATE1 mapped to synchronous abstract interface
    synchronous abstract interface mapped to BAPI_PO_CREATE.request and response
    BAPI_PO_CREATE.response mapped to async BAPI_PO_CREATE.response
    async BAPI_PO_CREATE.response appended to multiline list
    Exit block
    Transform multiline response list into single line response
    FTP inbound
    As far as I can make out I have not correctly configured the receiver of PO_CREATE1.response after it has been mapped from the sync to async so it just persists it and sits there waiting or it is waiting for somethign else to happen.
    Let me know if I can clarify anything further.
    Thanks
    Ben

  • File - BAPI -  File Synchronous scenario

    Hi all,
    I am working on a 'flat file--> BAPI --> flat file' scenario. This is a synchronous scenario in which data from input flat file will be sent to BAPI on R/3 side and from the response of BAPI a flat file will be created.
    Is it possible to implement this scenario without using BPM ?
    Thanks.

    Hi Minal,
         For this, you hv to use BPM
    The BPM procee will look like this
    1. Receive step (Receive the data from file)
    2. Sync send to R/3 and get a response
    3. Async send (response) to File
    Check the following link
    <a href="/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit:///people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    Regards,
    Akshay
    Message was edited by:
            Akshay Salunke

  • Synchronous & Asynchronous BAPI

    Hi,
    I understand the basic difference between Sync & Async BAPIs that the client waits for the response in case of Synchronous BAPI.
    But I would really appreciate if anybody can give me little more details as to how it is implemented or probably point me to a link where I could find more info.
    Thanks,
    Ritu

    Hello Ritu,
    Check the following :
    http://help.sap.com/saphelp_47x200/helpdata/en/78/2173f551ce11d189570000e829fbbd/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/78/21741c51ce11d189570000e829fbbd/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/78/21743651ce11d189570000e829fbbd/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/78/21744351ce11d189570000e829fbbd/frameset.htm
    Regards,
    Homiar.

  • Data collection was switched from an AI Config task writing to an hsdl file to synchronized DAQmx tasks logging to TDMS files. Why are different readings produced for the same test?

    A software application was developed to collect and process readings from capacitance sensors and a tachometer in a running spin rig. The sensors were connected to an Aerogate Model HP-04 H1 Band Preamp connected to an NI PXI-6115. The sensors were read using AI Config and AI Start VIs. The data was saved to a file using hsdlConfig and hsdlFileWriter VIs. In order to add the capability of collecting synchronized data from two Eddy Current Position sensors in addition to the existing sensors, which will be connected to a BNC-2144 connected to an NI PXI-4495, the AI and HSDL VIs were replaced with DAQmx VIs logging to TDMS. When running identical tests, the new file format (TDMS) produces reads that are higher and inconsistent with the readings from the older file format (HSDL).
    The main VIs are SpinLab 2.4 and SpinLab 3.8 in folders "SpinLab old format" and "Spinlab 3.8" respectfully. SpinLab 3.8 requires the Sound and Vibration suite to run correctly, but it is used after the part that is causing the problem. The problem is occuring during data collection in the Logger segment of code or during processing in the Reader/Converter segment of code. I could send the readings from the identical tests if they would be helpful, but the data takes up approximately 500 MB.
    Attachments:
    SpinLab 3.8.zip ‏1509 KB
    SpinLab 2.4.zip ‏3753 KB
    SpinLab Screenshots.doc ‏795 KB

    First of all, how different is the data?  You say that the reads are higher and inconsistent.  How much higher?  Is every point inconsistent, or is it just parts of your file?  If it's just in parts of the file, does there seem to be a consistent pattern as to when the data is different?
    Secondly, here are a couple things to try:
    Currently, you are not calling DAQmx Stop Task outside of the loop; you're just calling DAQmx Clear Task.  This means that if there were any errors that occured in the logging thread, you might not be getting them (as DAQmx Clear Task clears outstanding errors within the task).  Add a DAQmx Stop Task before DAQmx Clear Task to make sure that you're not missing an error.
    Try "Log and Read" mode.  "Log and Read" is probably going to be fast enough for your application (as it's pretty fast), so you might just try it and see if you get any different result.  All that you would need to do is change the enum to "Log and Read", then add a DAQmx Read in the loop (you can just use Raw format since you don't care about the output).  I'd recommend that you read in even multiples of the sector size (normally 512) for optimal performance.  For example, your rate is 1MHz, perhaps read in sizes of 122880 samples per channel (something like 1/8 of the buffer size rounded down to the nearest multiple of 4096).  Note: This is a troubleshooting step to try and narrow down the problem.
    Finally, how confident are you in the results from the previous HSDL test?  Which readings make more sense?  I look forward to hearing more detail about how the data is inconsistent (all data, how different, any patterns).  As well, I'll be looking forward to hearing the result of test #2 above.
    Thanks,
    Andy McRorie
    NI R&D

  • Updation in synchronous mode using bapi

    hi all ,
           i have a requirement to update master table using bapi /SAPMP/BAPI_MATERIAL_SAVEDATA  where has it is taking more time can any one of you sugguest what will be the best approach which i can improve the execution time and can u tell me whether i can execute bapi in synchronous mode.
    with regards,
    abaper

    Hi,
    You can go for either BDC or LSMW also.
    Regards,
    Renjith Michael.

  • IDOC / BAPI for Variant Config

    Can anyone help with getting data out of Variant Config detailing all possibilities?  Does an extract/upload BAPI / IDoc exist?
    If not does anyone have any other advice on how to do this?
    Rgds,
    Mark

    Hi,
    If you are looking for Variant Config data of a Sales Order, then the function is VC_I_GET_CONFIGURATION
    The function expects VBAP-CUOBJ as the input
    regards,
    Advait
    Edited by: Advait Gode on Oct 28, 2008 10:16 PM

Maybe you are looking for