ALE-BAPI-Scenario to XI with several BAPIs

Hello
<b>Descritpion of the current situation:</b>
I configured an ALE Distribution model to transfer the HR payroll accounting data from an single SAP 4.7 system (WebAS 6.20) into 8 different SAP-Accounting-Systems (SAP R/3 4.6C). The model contains 14 BAPIs-Calls which are sent to SAP XI (3.0 SP17) and forwarded to the corresponding SAP-R/3-System, depending on the company-code.
SAP XI demands for each BAPI an RFC-Sender-Adapter which contains a programID. For each programID I have to configure an TCP/IP-RFC destination in the sender system which contains the corresponding programID. The ALE distribution model configuration (BD64) allows only to use logical systems as receiver. So I have to create 14 logical systems with the same identification as the 14 TCP/IP-RFC destinations. In addition I was only allowed to create TCP/IP-RFC destinations with a length of 10 characters, because the field for the logical system isn't longer.
<b>My questions are the following</b>:
1) Is there a possibility to avoid the creation of 14 logical systems in this situation?
2) Are there User-Exits or BADIs to map a different RFC-Destination in ALE before executing the BAPI-Call (i.e. depending on the logical system AND the BAPI)?
3) Does anybody have a similar model and what are the experiences?
Thanks
Beat Mueller

Hi
Here's the List of the Object-Methots and BAPIs for Checking:
CompanyCode.GetPeriod:
- BAPI_COMPANYCODE_GET_PERIOD
CostType.GetFixaccountList:
- BAPI_FIXACCOUNT_GETLIST
GeneralLedgerAccount.GetDetail:
- BAPI_GL_ACC_GETDETAIL
AcctngServices.DocumentDisplay:
- BAPI_ACC_DOCUMENT_DISPLAY
AcctngServices.PreCheckPayrollAccountAssign:
- BAPI_CODINGBLOCK_PRECHECK_HR
AcctngEmplyeeExpnses.Check:
- BAPI_ACC_EMPLOYEE_EXP_CHECK
AcctngEmplyeeExpnses.Post:
- BAPI_ACC_EMPLOYEE_EXP_POST
AcctngEmplyeeRcvbles.Check:
- BAPI_ACC_EMPLOYEE_REC_CHECK
AcctngEmplyeeRcvbles.Post:
- BAPI_ACC_EMPLOYEE_REC_POST
AcctngEmplyeePaybles.Check:
- BAPI_ACC_EMPLOYEE_PAY_CHECK
AcctngEmplyeePaybles.Post:
- BAPI_ACC_EMPLOYEE_PAY_POST
Customer.Find:
- BAPI_CUSTOMER_FIND
Customer.GetDetail2:
- BAPI_CUSTOMER_GETDETAIL2
Vendor.Find:
- BAPI_VENDOR_FIND
Vendor.GetDetail:
- BAPI_VENDOR_GETDETAIL
and here are the IDocs for Posting the Documents:
ACC_EMPLOYEE_EXP.ACC_EMPLOYEE_EXP02
ACC_EMPLOYEE_PAY.ACC_EMPLOYEE_PAY02
ACC_EMPLOYEE_REC.ACC_EMPLOYEE_REC02
Documentation:
4.6c:
http://help.sap.com/saphelp_46c/helpdata/en/ae/1c4b6e5733d1118b3f0060b03ca329/frameset.htm
Our project had been stopped until now and will be reactivated in April. Have you been successfull posting the payroll form HR to FI/CO via SAP XI? How did you solve it?
Greetings
Beat Muller

Similar Messages

  • Problem with BAPI CALL in BPM(with in a loop)

    Hi All,
    I have a scenario where i invoke a BAPI by name BAPI_IPAK_START which pushes some data from Delta Queue to the Info Object.After invocation, the BAPI returns a request ID.In order to get the status of the request which is created by the previous BAPI, i invoke another standards BAPI BAPI_ISREQUEST_GETSTATUS with the previous request ID(the ID that is returned by BAPI_IPAK_START).i hav to check for the status until the request is fulfilled.inorder to do that,i inserted the BAPI_ISREQUEST_GETSTATUS in a loop with the condition on XPATH variable of the response that is returned by the BAPI_ISREQUEST_GETSTATUS.TECHSTATUS is the XPath variable name of the response of the  BAPI_ISREQUEST_GETSTATUS.The loop has to b executed until it's value is G.when i activated this BP,an error code with 99 is returned in my sxi cache.the work flow is not getting generated.the error is displayed as
    'TECHSTATUS' is not a component of data object 'PAYLOAD'.
    Any help wud b appreciated.
    thnx
    Anil

    hi,
    >>an error code with 99
    check cache refesh and tell me if it gives any error!?
    regards,
    Felix

  • Problems with running BAPI   BAPI_SALESORDER_CREATEFROMDAT2

    Hi all,
    I’ve got a problem running BAPIs in SD invironment.
    I’m creating contract releases in SD via BAPI.
    First I run BAPI BAPISORDER_GETDETAILEDLIST in my program to get detaildata of the contract.
    Then I run the BAPI   BAPI_SALESORDER_CREATEFROMDAT2 filled with contract reference data and in addition with order data to create the contract release.This works properly so far. On both sides in the contract and in he contract release I find the correct document flow. Means: in document flow of the contract I find all the releases created . Also I find the contract in the documentflow of the releases.
    But…something does not work: In the contract the released values are not updated. When I create a release manually, the release values are accumulated  in the contract in field  ‘value released’ under flag ‘item detail’. But this does not work, when the leases are created via BAPI. However I checked several parameters in the BAPIS but I cannot find something that leads to an update .
    Can somebody help me and can tell me what is to be done to get this field updated? Thanks in advance.
    same in German...
    Ich habe ein Problem mit BAPIs im SD.
    Ich erzeuge Abrufe zum Kontrakt im SD mittels BAPIs.
    Zuerst lasse ich den BAPI BAPISORDER_GETDETAILEDLIST laufen, um mittels Kontraktnummer alle Daten zum Kontrakt zu bekommen. Dann lasse ich den BAPI   BAPI_SALESORDER_CREATEFROMDAT2 gefüllt mit SD-Abrufdaten und den Referenzdaten des Kontraktes laufen Dies funktioniert soweit sehr gut. Sowohl im Kontrakt als auch im Abruf sind jeweils die übergeordneten bzw. untergeordneten Vertiebsbelege zu sehen. Die Referenz wird also hergestellt. Jedoch wird im Kontrakt nicht die Abrufwerte aufsummiert. Normalerweise wird bei manueller Erstellung der Abrufe im Kontrakt die jeweilgen abgerufenen Werte gegen den Kontraktwert aufsummiert (Feld abgerufene Werte im Kontrakt unter Reiter ‚Positionsdetail‘. Ich habe alle möglichen Parameter im BAPI geprüft und getestet aber nichts gefunden, was mir die abgerufenen Werten aufsummiert.
    Kann mir dazu einen Tip geben, was ich tun kann, damit auch die Werte richtig referenzieren ? Danke im Voraus.

    the usage of exactly this BAPIs in the way I described  is in according to SAP note 370988.
    BAPI_SALES_DEL_SCHEDULE_CREATE ist for SD schedule agreements and not for SD contracts and does not offer Input parameters for e.g.  adding price conditions what is needed for my task.
    The field in contract I mentioned e.g. in Transaction VA42 VA43 is filled / gets its Information out of Infostructure/table S135. The BAPI seems not be able to fill this structure while creating the contract release.
    I'm looking for example an input parameter I did not found already or any other option that leads to an update of infostructure S135 while creating/posting a release via BAPI.

  • Http to bapi scenario runtime mapping exception

    Hi,
    I am doing to http to bapi scenario and I am giving the valid sales order number and organization. And It is throwing me below exception when I see it in sxmb_moni.
    ======================
    <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_request_sales_bapi_</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
      <SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_MM_request_sales_bapi_: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    ========================
    I have executed individual mappings with sample data and worked fine.
    Any inputs on this?
    Thanks
    Balaji

    hi,
    you need to test the mapping as shown in my blog:
    /people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
    to find the error
    then correct your mapping and try again
    Regards,
    michal

  • How to create a document with SRM BAPIS

    Dear colleagues,
    I have a problem with SRM BAPIs. I need to insert a pdf document into a record using SAP BAPIs, This document is already in a table in a binary format
    I am trying with these BAPIs:
        1.
              CALL FUNCTION 'BAPI_SRM_DOC_CREATE'
                  EXPORTING
                    rms_id                  = rms_id
                    sps_id                  = sps_id
                    documentid              = documentid
                    description             = 'DESCRIPTION'
                    do_commit               = 'X'
                    documentid_check_unique = 'X'
                  IMPORTING
                    return                  = return
                    objectid                = objectid
                    documentclass           = documentclass
                  TABLES
                    required_properties     = required_properties.
              This BAPI is working as expected. It returns objectid for the new document.
         2. Now I'm using BAPI_RECORD_ADDELEMENT:
                 ls_doc_id-objectid = objectid.
                CLEAR: ls_sp_poid. " clear weg und ls_sp_poid clearen
                ls_sp_poid-name  = 'DOC_ID'.
                ls_sp_poid-value = ls_doc_id.
                APPEND ls_sp_poid TO lt_sp_poid.
                CLEAR: ls_doc_id.
                ls_sp_poid-name  = 'VARIANT'.
                ls_sp_poid-value = '0'.
                APPEND ls_sp_poid TO lt_sp_poid.
                CLEAR: ls_doc_id.
                ls_sp_poid-name  = 'VERSION'.
                ls_sp_poid-value = '0'.
                APPEND ls_sp_poid TO lt_sp_poid.
                ls_insertion_by_anchor-anchor = 'DECRET'.
                ls_insertion_by_anchor-parent_node_id = '5'.
                ls_insertion_by_anchor-parent_node_attr_name = 'DECRETAT'.
                ls_insertion_by_anchor-parent_node_attr_value = '40'.
              CALL FUNCTION 'BAPI_RECORD_ADDELEMENT'
                  EXPORTING
                    objectid                    = zrm_attcab_scr-phio_id
                    documentclass               = documentclass
                    sps_id                      = 'ZRM_SPS_DOCVAR'
                    anchor                      = 'DECRETS'
                    description                 = 'Descripcion'
                    store_as_new_version        = 'X' "Si X se crea vacio
    *               STACKED                     = ''
    *               DOC_CONTEXT                 =
                    element_type                = 'I'
    *                 insertion_by_anchor         = ls_insertion_by_anchor
    *                insertion_by_modelid        = insertion_by_modelid
    *               INSERTION_BY_REFERENCE_NODE =
    *              ALL_SAME_NAME_ANCHOR        = 'X'
    *               SET_ELEM_DESCR_HARD         = ' '
    *                omit_authority_check        = 'X'
                  IMPORTING
                    return                      = ls_return
                  TABLES
                    element_sp_poid             = lt_sp_poid.
    *             ELEMENT_PROPERTIES                =
    *             ELEMENT_VISIBILITY                =
             This BAPI returns an internal error
    Am I following the correct steps or am I skipping anything?
    Could anyone help me?
    Thanks in advance!!

    I have the same problem!!!
    Anyone knows?
    Thanks!

  • How to create a Contract with reference to a Sales-Order(VA01) with a BAPI

    Hi,
    my name is Wadim and i need help.
    My problem:
    I am creating a sales-order(VA01) with the BAPI 'BAPI_SALESORDER_CREATEFROMDAT2'.
    After that i have to create a contract(VA41) with reference to this order. I found the BAPI "BAPI_CONTRACT_CREATEFROMDATA" and it has the same interfaceparameters like the salesorder-bapi. but there are no parameters to get a connection to the sales-order.
    Is it even possible to get a connection to a sales-order with a bapi???
    thanks for help
    regards mark
    Edited by: Krapp Wadim on May 20, 2010 9:19 PM

    Hi Wadim,
    I have a similar requirement to create order lines in an existing contract with reference using  BAPI_CUSTOMERCONTRACT_CHANGE.  The order lines get created in the contract. However, the condition types from the order line which i'm referencing are not getting referenced and are not getting added in the Contract's line after referencing.
    Did you come across any such issue ? If yes , could you suggest the solution ?
    Regards,
    Venkat.

  • How to create an uwl with a BAPI

    Hi Experts!!!
    I need someone that say me, how to create a task in the uwl with a bapi or program.
    Thanks in advanced,
    Regards,

    Hi Carlos,
    Do you have the javadocs?  It contains information in regards to the UWL API.
    http://help.sap.com/javadocs/NW04S/current/uw/overview-summary.html#Service Component Collaboration
    What is the necessity to create a task from a BAPI or from a program?  If the task is in the backend inbox (SBWP) once UWL is configured properly it will also be created in the worklist. 
    We use SWK_LOCAL_INBOX_GET to pull back the list of tasks
    We use the following wapis for the following purposes:
    SAP_WAPI_GET_HEADER to retrieve the from value
    SAP_WAPI_GET_OBJECTS to retrieve the attachment information
    SAP_WAPI_WORKITEM_DESCRIPTION to retrieve the task description text
    Have a look at the page that I sent you above.  This gives great information on the UWL structure and how it works.
    Please let me know if you require any additional documentation.
    Beth Maben
    EP - Senior Support Consultant
    AGS Primary Support, Business Suite & Technology
    Please see the UWL Wiki @
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/bpx/uwl+faq  ***

  • IDOC -to -BAPI -to -BAPI scenario

    Hi ,
       my scenario is   IDOC - to - BAPI - and BAPI(Response) -to - BAPI (Req) .
    I think a bit confusion  . Actually I'm getting the data from  MDM system through an IDOC  into XI system  and I want to post this data into an ECC system by using RFC. so, up to this level scenario is simple IDOC - to - RFC. but  i want to post the RFC response message to MDM system  . for posting this reponse in MDM system they created a simple BAPI and  that BAPI will post the data into a ZTABLE in MDM system . so  i want to pass the BAPI(ECC system) response message to  BAPI(MDM  system).
    So, please suggest me  the steps and how can we achive this..
    Because for creating the Out bound interface as synchronous  system is not accepting one IDOC message and and one BAPI message.
    Regards
    Jain

    Hello,
    You can achieve this using BPM
    Async Rec - transfortm  - sync send (Req/Response)- transform - send response
    Regards,
    Sreenivas.

  • Problem with mutiple BAPI calls during the commit

    Hi all,
    I am trying to create accounts for a given partner i the transaction F9K1 using the BAPI BAPI_BKK_ACCNT_CREATE. After calling the BAPI I am committing it too.
    The problem is if I try to create multiple accounts like RCA, ACA, MCA, IOE and so on, the first time the BAPI is called to create RCA account it is successful an it is even committing. When I call the BAPI to create the the ACA account the return table from the BAPI shows success message but the commit fails. If I restart the program and try creation of accounts now the RCA will throw a error msg saying account already exist, ACA account will be created and then the MCA account creation fails in the same manner explained above.
    I see the issue is with multiple BAPI calls and I tried using all sort of methods like clearing buffers, start new task in local and wait command and all.  But none of them seems to be working for me.
    Can anyone please guide me on how I can overcome this problem.
    Thanks.

    BAPI :
    BAPI BAPI_BKK_ACCNT_CREATE
    Functionality
    Use this method to create an account in Bank Customer Accounts. This method returns the following values:
    Identification details for the newly created account such as the internal and the external account number, and the bank area details
    A table containing error messages
    To create an account by using this method, you must specify values for the import parameters Bank Area (BANKAREA) and Product (PRODUCTNAME).
    Note: You must also specify a value in the External Account Number (EXTERNALACCOUNTNR) parameter if you have defined an external number range for the bank .
    REgards,
    Jayan.

  • Bapi for Transfer posting with clearing

    Hello,
    please let me know the bapi for Transfer posting with clearing for transcation F-04 or FB05.
    quick reply wil be helpfull.
    Thanks,
    ram

    Hi
    I don't know in release greater than 4.7, but there isn't that BAPI.
    There's a BAPI to post a document, but the clearing is an internal transaction so I don't believe there's a BAPI for it.
    Anyway you can try to create one using the std BDC RFBIBL00: it suppoerts that transaction.
    Max

  • Write data to BI with staging bapi

    Hi everyone,
    I have to deliver data from a Non SAP source system via RFC to BI. I'd like to use staging BAPI BAPI_ISOURCE_TD_T_SEND. There are several Import Parameters in the Function Module but no Fieldname for the Infoprovider i want to load.
    I don't know if I'm wrong, does the bapi write to a Infosource or directly in the Infoprovider?
    I would greatly appreciate if anyone can guide me to the steps involved in delivering data using this BAPI.
    Thanks in advance
    Tom

    Hi Thomas,
        Welcome to SDN.
    Have you checked this Doc...
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/aeaf06d4-0901-0010-60b4-f7dc7dab6b96">Staging BAPIs for the SAP Business Information Warehouse</a>
    Hope it Helps
    Srini

  • 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

  • BAPI for invoice creation with reference SalesOrder

    hi Mr Anjireddy,
    i am able to create invoice with the bapi BAPI_BILLING_CREATEMULTIPLE, here i'm giving the RefDocNo of the SalesOrder, the invoice is generated but i'm not gettting the NetValue, TaxValue.
    plz give the information for that prob,
    eswar

    Hi Vinod,
    This is just idea.
    Get Purchase Requisition details using
    <b>BAPI_REQUISITION_GETDETAIL</b> and then use <b>BAPI_PO_CREATE1</b>. I think there is no Direct BAPI.
    *******Poorna*********

  • Bapi to create Invoice with reference to SalesOrder

    Hi All,
    I want to create Invoice with reference to SalesOrder ,
    can anybody help me regarding
    --> what is the Bapi to Create Invoice with reference to SalesOrder
    --> what are the import parameters
    Thanks in Advance
    Regards
    Srinivas

    Hi Giuseppi,
    Thanks to your reply,
    i have used BAPI_BILLINGDOC_CREATEMULTIPLE , i have given the following input values in the BILLINGDATAIN
      -- salesorg,distrchan,division,doc-type,sold-to,plant,material,doc-number,item-number , when  i execute the Bapi , i got the DocNo:0090021983 , but i did not find that DocNo. by executing the Bapi BAPI_BILLINGDOC_GETLIST.
    i found the short description for
    BAPI_BILLINGDOC_CREATEMULTIPLE -- is for Individual Customer Billing Document, is it the correct Bapi to create invoice
    what is the correct Bapi to create invoice based on the salesorder.
    RV_INVOICE_CREATE OR GN_INVOICE_CREATE OR BAPI_BILLINGDOC_CREATEMULTIPLE.
    Can u specify the import parameters for that Bapi.
    Thanks & Regards
    Srinivas

  • SAP PP-What is BAPI & how it relates with PP-module

    What is BAPI & how it relates with PP-module

    hi
    SAP has introduced object-oriented technology by making SAP processes and data available in the form of SAP business objects.
    External applications can access SAP business objects through standardized, platform-independent interfaces - die Business Application Programming Interfaces (BAPIs). The SAP Business Objects and their BAPIs provide an open, object-oriented view of the business processes and data in an SAP System.
    This guide provides an overview of the SAP business objects, SAP interface types, and their BAPIs as well as the Business Object Repository where business objects and BAPIs are defined and stored.
    go with this link
    http://help.sap.com/saphelp_47x200/helpdata/en/7e/5e114a4a1611d1894c0000e829fbbd/frameset.htm
    -ashok

Maybe you are looking for

  • Bridge in pse 8 / pse 9 for Mac

    Hi. I use pse 8 for Mac and is fund of Bridge. Can anyone tell me if pse 9 includes Bridge in (pretty much) the same version. Or to put it another way: Would I benefit of an upgrade?

  • Help Finding Regular Expressions

    Does Java have regular expressions? Where can I find them in the API? Thanks!

  • Making website in Indesign CS 5.5

    Hi, I am a big lover of Indesign. I have read most of articles people saying not to create website in Indesign, but i dont agree with them i started making my website in Indesign CS5.5 . I am facing one problem "How to center the website in center of

  • Bundle photoshop cc et LR

    Impossible de finaliser la commande de ce bundle, une fois les informations de paiement tenseignées et validées la page de confirmation reste dans l'état "en cours" et ne bouge plus, et pas de nouvelles par mail,...

  • No subwoofer with X-Fi Xtreme Music connected to analog 5.1 inputs of HT amplifier

    I have a X-Fi Xtreme Music connected to the analog 5.1 channel inputs of my Thomson home theater amplifier. Everything works fine expect for the subwoofer. When I play stereo content using CMSS 3D or when I use Creative's built-in DD or DTS decoders