BAPI calls via ALE

Hi,
I have a scenario where
source and target system are same.
send order data through BAPI via ALE as per [Unchecked Deliveries|http://help.sap.com/crmcg_en/6c/d321ef6e1111d4b554006094b9b9dd/content.htm]
I am first time sending data using BAPI via ALE, in customer distribution model I have created a model view, used 'Add BAPI' to add concerned BAPI. Now my question is how to triggert the process?
Is it through
Writing the BAPI fm in order processing/ saving user enhancement?
Configure Output type with medium A in nace?
Thanks,
Suraj

Hi,
Did I get you correct? You want to sent out sales order data and receive the input in the same SAP client?
In this case you don't need BAPI or ALE setting. Use or define an output message in nace for medium 6 or A in the sales order.. SAP will create an ORDERS Idoc, eg based on condition records. In the WE20/WE21 settings of the outbound configure it to send it to an rfc destination which is equivalant to the sender system. Of course you would need some changes in the inbound dependend on what do you want to do with the data.
Kind Regards
Michael

Similar Messages

  • BAPI call via UDF in mapping - error handling/stopping processing

    Hi,
    We are calling a BAPI in an ECC system from a UDF in message mapping.  The BAPI then calls other BAPIs to perform translations and validations on the message data.  An error could occur during a translation (for example), and an error flag would be passed back to the UDF (the actual error is persisted and handled in ECC).  What should be done in the UDF to stop further processing of the message?
    Latest PI and ECC releases and service packs.
    Thanks in advance,
    Brian

    Bhavesh,
    Thanks for the replay.
    You guys are scaring me a little....I've reviewed a bunch of blogs, threads and docs about the RFC API...such as Alessandro's SAP XI Lookup API: the Killer .../3404 and the "Mapping Lookups - RFC API" document.  Why would we have something like an RFC API available via a UDF if we can't react to an error should it occur??  In my case, all I want to do is "cancel" the message, or perhaps cause a controlled failure in the mapping so that the message doesn't get to the next step (load into ECC).
    What happens in Alessandro's process if an error is caught (trace.addWarning.....)?  I see that null is returned, but how does that affect the mapping process?
    I appreciate any help
    Brian

  • How to do to add a specific BAPI WBS Check betteen 2 systems  via ALE

    I am on the module TRAVEL MANAGEMENT (FI-TV) into the sap system DTM version ECC5 (for expenses). I wish communicate with the SAP system R/3 DGI version 4.6C via ALE and BAPI.
    When I create the expense in DTM, I put a WBS and I want to do severals checks via ALE into the system DGI.
    I have implemented the note 516109 into DGI to instal the bapi "BAPI_PROJECT_EXISTENCECHECK".But the link doesn't work from DTM to DGI.
    Please could you help me ?
    Other point : How to do to add a specific Bapi to check
    WBS? I didn't found USER EXIT.
    Thank in advance.
    Odile Dougnac

    Did you set your distribution model correctly ?
    You need to add this BAPI in ALE distribution model between your two systems.
    You need also to create one defaut destination for the remote logical system (this is done in SALE) because the BAPI uses RFC destination, not IDOCs

  • IDOC, created via BAPI-CALL?

    Hey experts,
    I´m looking for a way to identifiy, if an IDOC has been created via a asynch. BAPI-Call or if it is a usuall IDOC.
    Can anyone help me?
    Thx a lot!
    Oliver

    Oliver,
    He is not talking about any Idoc. He is talking about the acknowledgement. Check this help on this:
    http://help.sap.com/saphelp_nw04/helpdata/en/44/932e8896b610bbe10000000a422035/frameset.htm
    ---Satish

  • Error executing BAPI attached to ALE Distribution Model

    Hi experts,
    I am executing BAPI_EXCHANGERATE_SAVEREPLICA which has been included in an ALE distribution model as I wish to replicate exchange rates from my source client to a number of remote clients.
    When I execute the BAPI I get an information message back in the bapi return code as follows "one table record planned for update". Does anyone know what this means? I would have expected idocs to have been created and sent across to the target clients and for the BAPI to have been executed in the target system but nothing has happened. I have released the method (BAPI) and tried various options on the partner profile but still get the same message returned when I call the BAPI.
    Any help on executing this BAPI via ALE would be much appreciated.
    Thanks
    Adrian

    This is information message that informs you that the selected row may be updated. Then when you call BAPI_TRANSACTION_COMMIT the rows will be updated.

  • Howto bapi calls

    Hello,
    I am working on a scenario in which a client (abap proxy) sends a message to the integration server, which dispatches the messages to an rfc-adapter, an bapi call.
    Therefore I have read the tutorial, which can be found on this site, but unfortunately I have run into problems. Maybe someone can help me at this point. This is what I did:
    1.I have imported the BAPI_FLIGHT_CHECKAVAILABILITY as suggested in the tutorial.
    2. I created an Message interface named: U2_BAPI_IF
    3. For the output message I have chosen: BAPI_FLIGHT_CHECKAVAILABILITY and for the input:
    BAPI_FLIGHT_CHECKAVAILABILITY.Response. I have left the fault message field empty.
    4. I did no message mapping, since I want to work with the BAPI Response structure in the abap proxy.
    5. The Message interface is defined as outbound synchron.
    6.In the Integration Directory I created a Receiver Determination with a Service as a sender, the message interface is U2_BAPI_IF. Additionally I configured a "configured receiver" the client with the BAPI.
    7.I created a Interface Determination, for the sender the same entries as above and for the configured Inbound Interface I have chosen BAPI_FLIGHT_CHECKAVAILABILITY and the receiver client
    8.I created a receiver agreement.
    9. Saved the change list.
    10. I have generated the abap proxy for the message interface U2_BAPI_IF, without problems
    11. I created the following abap program:
    data: lv_msg_raus TYPE ZU2_BAPI_IF_BAPI_FLIGHT_CHECK1,
          lo_proxy TYPE REF TO ZCO_U2_BAPI_IF,
          lv_msg_rein TYPE ZU2_BAPI_IF_BAPI_FLIGHT_CHECKA.
          lv_msg_raus-AIRLINEID = 'AA'.
          lv_msg_raus-CONNECTIONID = '0017'.
          lv_msg_raus-FLIGHTDATE = '20040801'.
          create object lo_proxy.
          call method lo_proxy->execute_synchronous
            exporting
              OUTPUT = lv_msg_raus
            importing
              INPUT = lv_msg_rein.
    12. I execute the program and I receive the following error:INTERFACE_REGISTRATION_ERROR, the SAP Stack says:
    <SAP:Stack>No implementing class registered for the interface (type ifmmessif, name BAPI_FLIGHT_CHECKAVAILIBILITY, namespace urn:sap-com:document:sap:rfc:functions )</SAP:Stack>
    So now my question, do I have to implement a class (proxy) on the receiver side to receive the message and pass it then via bapi call myself, or did I something totally wrong?
    I hope somebody can help me,
    Thanks
    Oliver

    Hi Oliver,
    I was wondering if you finally got this scenario to work, if Yes. Could you explain how did yo manage to (solve your problem)setup your scenario as described in your earlier note?
    Thanks,
    Rob.

  • How can I set a breakpoint for a BAPI call in SE37?

    Hi,
    I am trying to debug a BAPI call from an external system in R/3 4.6C.
    In SCM4.1, the SE37 transaction has an aoption under Utilities->Settings ABAP Editor/Debugging tab to activate external debugging. But in R/3 4.6C no such tab exists.
    Is there any other way of doing this in R/3 4.6C?
    Thanks,
    Chris Brookes.

    Hi,
    Unfortunately I cannot chage the source code of the FM since it is not a development system so I cannot insert a BREAKPOINT statement.
    Also, just setting a breakpoint in SE37, even if logged in as the same user who calls the BAPI does not work.
    Btw, the call to the BAPI is done via .NET.
    It seems that SE37 in R/3 4.6C just doesn't have the same options as in SCM4.1.
    Any other ideas?
    Thanks,
    Chris Brookes.

  • Employee integration R/3 - CRM  via ALE (HRMD_ABA)

    Hi friends ,
    I am trying to download the Employee records from HR to CRM via ALE and using the Message type <b>HRMD_ABA</b> and Basic Idoc Type <b>HRMD_ABA01</b>. I am able to download the employee records and it works fine .
    But I have a problem while maintaining the employee records in CRM .If I go to TX- BP in CRM and try to change the data on the Employee record (created via ALE).It is dumping with the following Error --> <i>MESSAGE_TYPE_X  Nested call of PERFORM ON COMMIT: NESTED_PERFORM_ON_COMMIT caller: SAPLB
    UPA_BADI_CALL program: SAPLBUPA_BADI_CALL form: BADI_CALL</i>
    This is happening for the employee records created via ALE not for the employee records created in CRM via TX -BP
    Has anyone encounterd this problem ,any kind of help will be really appreciated.
    Thanks and Regards,
    Ankur

    Hi Ankur,
    a different idea would be the process of note 550055.
    Maybe this helps you further.
    Sascha

  • Service Call via RFC

    Hi all.
    I am currently starting with WDA and facing some problems in calling BAPI via RFC.
    We have a "plain" WAS without SD or other modules. Our data is distributed over multiple R/3 systems.
    When I try to implement a Service Call to the BAPI BAPI_CUSTOMER_GETLIST via RFC I got the error message that this FM is not available in the current system (WAS).
    Does anyone has experience in how to get this working?
    What is the best practice here?
    - Building wrapper on WAS which calls the FM via RFC on the other system?
    - Installing missing modules on WAS ?
    Any comment would be appreciated.
    Cheers,
    Sascha

    Hi again.
    To shorten development time we considered the following solution:
    We are generating web service proxy classes on the WAS for the BAPIs of the R/3 system we want to use. Afterwards we are generating wrapper function modules which will use these proxies. So we do not have to import all missing structrues cause these are generated automatically during proxy generation.
    I tested this already with BAPI_CUSTOMER_GETDETAIL2. Calling the wrapping fm which calls the service proxy works fine from se80. I do get a result via the service.
    Then i generated a service call for my WEBDynpro component using the wizard in WDA.
    Silly is that the generated code is not compilable cause of missing ,. Anyway after correcting I tried to run my webdynpro application and when the fm gets called via the generated service method I receive the following message:
    CODE           SOAP:111
    ERRORTEXT     Unallowed RFC-XML Tag (SOAP_EINVALDOC)
    Any ideas?
    Why is it working when i call the fm directly but not when calling it from my webdynpro app?
    Thanks in advance
    Sascha
    Message was edited by: Sascha Dingeldey
    Message was edited by: Sascha Dingeldey

  • Keep alive a session between 2 BAPI calls

    Hi -
    I am calling several BAPIs to maintain data. I am calling from an outside system as I published the BAPIs as Web Services.
    I would like that the session between 2 BAPI calls is kept, so I don't miss some session info between call #1 and call #2.
    Anyone knows a way of keeping alive a session between 2 BAPI calls?
    Thanks !

    Try this..
    <b>ARFC with Resource Management (Parallel Remote Function Call)</b>
    CALL FUNCTION 'MYFUNC'
    STARTING NEW TASK 'T1'
    DESTINATION IN GROUP 'PRFC'
    EXPORTING ...
    TABLES ...
    EXCEPTIONS ...
    communication_failure = 100
    system_failure = 101
    resource_failure = 200.
    IF sy-subrc= 102.
    wait and retry...
    ENDIF.
    <b>Define ‘PRFC’via RZ12</b>
    Amandeep

  • Minimal Authentication for BAPI calls

    Hi,
    We use SAP Jco Library to connect SAP systems in our applications. Within the aplication we make BAPI calls to the SAP system for various operations. A typical BAPI calls we make are BAPI_DOCUMENT_CREATE, BAPI_DOCUMENT_GETLIST, BAPI_EQUI_GETLIST etc.
    For these BAPI calls it is must that the user needs SAP_ALL and SAP_NEW profile added to his profile. I would be interested to know what is the minimal profile the user needs to make these BAPI calls?
    Is there a document/link which talks about the minimum roles\profile needed for different BAPI calls byt the user.
    Regards,
    Naveen

    there's a couple of notes on that:
    [452508|https://service.sap.com/sap/support/notes/452508] describes RFC-connects coming from a portal.
    [129795|https://service.sap.com/sap/support/notes/129795] does the same for connect via Session Manager
    ... there are a couple of others - a quick search in SMP will reveal the others.
    as for your BAPIs: obviously you will need the authorizations for whatever the BAPI wants - some BAPI's require transaction code, several organisational values - e. g. creating CS-orders uses most of the I_* objects as well as the t-code for IW31.
    But that is about all - you do not need SAP_ALL and/or SAP_NEW - in fact: try to avoid it - reduce the RFC-users to what they need and no more. Keep to using BAPIs for your development, as they are much more trustworthy (securitywise) than other RFC-FM's/methods.
    In the SDN security forum are some sticky threads where you might find additional information in that direction. Its worth a look, Julius goes to great length of pain to make them interesting.

  • The returned value of BAPI call

    Hi, experts,
    I have a question about returned value of BAPI call.
    when the returned value is mapped as an attribute and this return value itsself is of the type: table of a certain structure. Is there any possibility that the value of this table still can be extracted from the mapped attribute? If it is possible, how?
    If not, how should this kind of situation be handled:
    when the returned value of the function at the backend has more one layer structure?
    Thanks and best regards,
    Fan

    In my experience you shouldn't use the service wizard to generate the context of such deeply nested structures. They don't generate or map correctly because it tries to put the table type as the type of the context attribute.
    Instead you should propery model the relationship in the context using nested nodes. Here is an example of address <-> address text where you can have multiple address texts per address.  From the service this was a returned nested table.
    ****BP Address and Address Text
      data lo_nd_bp_addr type ref to if_wd_context_node.
      data lo_nd_bp_addr_text type ref to if_wd_context_node.
      data lo_el_bp_addr type ref to if_wd_context_element.
    * navigate from <CONTEXT> to <BP_ADDR> via lead selection
      lo_nd_bp_addr = wd_context->get_child_node( name = wd_this->wdctx_bp_addr ).
      lo_nd_bp_addr->bind_table( wd_this->gt_bp_addr ).
    ****Add the Address Text Table as Child of each Address Context Record
      data element_set type wdr_context_element_set.
      field-symbols <wa_set> like line of element_set.
      field-symbols <wa_bp_addr> like line of wd_this->gt_bp_addr.
      element_set = lo_nd_bp_addr->get_elements( ).
      loop at element_set assigning <wa_set>.
        read table wd_this->gt_bp_addr index sy-tabix assigning <wa_bp_addr>.
        lo_nd_bp_addr_text = <wa_set>->get_child_node( name = if_componentcontroller=>wdctx_bp_addr_text ).
        lo_nd_bp_addr_text->bind_table( <wa_bp_addr>-t_text ).
      endloop.

  • Is there a software in which I can hook up my iPhone 4s to my computer and send and receive text messages and calls (via headset) through my computer?

    Is there a software in which I can hook up my iPhone 4s to my computer and send and receive text messages and calls (via headset) through my computer? Whether it's free or cost money, can someone please give me a name of a program or software that allows me to do this? I can't seem to find anything like this for the iPhone.

    No.

  • 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

  • Payroll Payment via ALE/IDOC

    Hello Everyone,
    We currently run payroll and process ACH payment information via RFFOUS_T.  The information is sent directly to the bank.  We have a new request which will require HR Payroll payment information to be sent from our SAP system to another SAP system via ALE/IDOC.  Does anyone have any documentation which offers an explanation as to how Payroll processes payment information ALE/IDOC.
    I have found a few references to PC00_M08_CDTA, RFFOEDI1, type PEXR2002/PEXR2003 etc, but nothing that brings it all together.  The process seems to be fairly standard and should be easy to implement (RFC, partner profile, etc). I am ultimately looking for a best practices or some other document which brings everything together and indicates which transactions the user must execute. 
    Thank you for your help.
    Scott

    Hi,
    Please use SAP help link below which gives you idea about ALE connection set-up and IDOC segment usage.
    http://help.sap.com/printdocu/core/print46c/en/data/pdf/CABFAIS/CABFAIS.pdf
    Thanks,
    Ameet

Maybe you are looking for