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.

Similar Messages

  • BAPI to File Scenario

    Hi Everybody,
    Greetings!!!
    I am new for XI, pls help me to sort out the queries given below:
    1. Can u all help me out for step by step procedure to be followed for BAPI to File Scenario. (Guide me all configuration step to be performed in R/3 & XI)
    2. Also, pls tell me how to configure BAPI in ALE (I am using BAPI_GOODMVT_CREATE)
    3. Also, guide me in Value mapping in XI. (Eg: if the value is A then it should call BAPI_GOODMVT_CREATE, if the value is D then it should call BAPI_GOODMVT_DELETE and if it is U then BAPI_GOODMVT_CHANGE) - Give me code if it is necessary in case of JAVA mapping.
    I will appreciate you for quick response and solve my probs.
    Regards/Guru

    Hi Guru,
    <i>Can u all help me out for step by step procedure to be followed for BAPI to File Scenario. (Guide me all configuration step to be performed in R/3 & XI)</i>
    1) Go to transaction sm59.
    2) Give some name.
    3) Connection type TCP/IP.
    4) Activation Type Registered Server Program.
    5) Give some programid. You have to use this program id in RFC sender communication channel.
    6) In gateway host give the host name of R/3.Give gateway service.
    Before testing this connection create a RFC sender communication channel in XI.There specify the parameters like R/3 hostname,program id created above, authorization credentials for R/3 etc.Then activate the communication channel.Then test your TCP/IP connection in R/3. You have to test connection only after you create RFC CC in XI because it will go and check for the program id in XI.
    You will need to schedule a JOB in your R3 system that will call the RFC during every time perdiod.
    <i>Also, guide me in Value mapping in XI. (Eg: if the value is A then it should call BAPI_GOODMVT_CREATE, if the value is D then it should call BAPI_GOODMVT_DELETE and if it is U then BAPI_GOODMVT_CHANGE) - Give me code if it is necessary in case of JAVA mapping.</i>
    Your requirement can be easily met using the Extended Reciever determination that we have...
    Here actually based on condition from the message in the payload u can assign your receivers..
    Below is the steps to do the same...
    Under Receiver Determination --> Configured Receivers --> Specify the 2 receivers and beside the same you have an option called condition, there you specify the condition on which it has to go to the first system and then the condition on which it has to go to the second system.
    When you click on the codition it will open another window (Condition Editor window) under which you have a Left Operand which when you click will open up another window(Expression Editor window), there for your need you check on the XPath radio button and then click on the field whose value you wanna check from the structure that it displays, when you click on the field it fills in the XPath Expression, then click ok.
    After that it takes you back to the previous window(Condition Editor window) with the Left Operand having the XPath Expression, so all you will have to do is to fill the Right Operand which is nothing but the value you want that field to contain.(For Example if a field "A" that you have selected which comes in the XPath Expression in ur Left Operand,has a value "1" in your Right Operand)
    There you also have an option to put in an "and" or an "or" condition if required(For Example if you wanna check if "A" and "B" is satisfied or it you wanna check if "A" or "B" is satisfied, this can also be done)
    I also suggest u to go through these blogs..
    /people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers
    /people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
    If you have any doubts or clarifications on the same, please do ask and i will tell you how to proceed.
    Regards,
    Abhy Thomas

  • BAPI to SOAP scenario - query for response as table

    This is for BAPI to SOAP scenario. We need response as TABLE(multiple values,like arraylist/resultset in java) , not as single valued items.
    .net method is ->Y_Vct(string CoCode,string Role, ref A_BTable)  -    
       Request:
               CoCode -Optional, if empty string is passed all companies will be fetched by the function
               Role - Optional, if empty string is passed all the roles will be fetched by the function
        Response:
               A_B- returns set of records(Multiple) based on the parameters passed
    BAPI is - Y_Vct
    How to get response from table of multiple values .
    like 10 records as response for 1 request.
    thanks.

    Hi Jha,
    Which version of PI you are using? If you are uisng 7.1 then you can return the multiple values.
    Regards,
    ---Satish

  • SAP IDOC's, interfaces and BAPI's

    Hi i am new to SD, can anyone give me documentation or reading material for SAP IDOC's, interfaces and BAPI's .
    Help would be greatly appreciated.
    Thanking you

    Hi Reddy,
    Very general question, I don't think you will find the answer in one document.
    BAPIs are normal function modules, with predefined input and output structures to perform standard business transactions.
    IDOCs are standardised interface documents to transfer data.
    Once the IDOC is read, it almost always calls a BAPI to perform the business transaction.
    Therefore start with reading about BAPIs since you will definately have to master those when starting to work on interfaces.
    There are hundreds of BAPIs so best is to start with a specific process, example sales order create or material master create.
    Try transaction BAPI, this lists most of the BAPIs and contains excellent documentation.
    Thanks for your points,
    Filip

  • IDOC message type or bapi to create CRM Product hierarchy

    hi all,
    I tried to tranfer the Product hierarchy to CRM using LSMW, it could not transftered by batch input and I could not find any IDOC message type or bapi to create Product hierarchy. it seemed that I could not using LSMW?
    i also found that many BAPIs in CRM were not related with ALE message.so we can not use LSMW using IDOC or BAPI to transfer data?  i will very appreciate anyone who can tell me to solve such problem, especially tranfer data to CRM. thanks so much!

    hi Ramgopal,
    u can check the  bapi-<b>BUS1112</b> for cost center, and from the methods what ever u want u can take based upon requirement
    if u find it useful plz mark the points.
    <b>check the IDOC method with message type COSMAS and basic type COSMAS1</b>
    it should workout now
    Regards,
    Naveen
    Message was edited by: NAVEENKUMAR GUDURI

  • 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

  • Developing custom IDOC , USER Exit , BADI , BAPI and RFC

    Hi,
    I want basic information on developing custom IDOC , USER exit , BADI ,BAPI and RFC.
    Thanks in advance

    Neha,
    >custom IDOC ,
    http://www.geocities.com/xplosion78/customised_ALE_IDOC_BY_SACHIN_DABHADE.zip
    >USER exit
    USER EXIT
    > BADI
    BADI Development Contents
    > BAPI and RFC
    Re: BAPI Development
    Cheers
    Agasthuri Doss

  • I want bapi real time scenario ? please help to me

    hai friends,
       I want bapi real time scenario.please help in bapi.
       my id :[email protected]
    regards,
    siva

    hi siva,
    for full information on BAPI's, check these links.....
    http://help.sap.com/saphelp_47x200/helpdata/en/7e/5e12224a1611d1894c0000e829fbbd/frameset.htm
    this link as everything like how to use bapi, code examples etc..
    reward me if useful......
    Harimanjesh AN

  • Hi, In  a IDOC --- XI(BPM)--- SOAP Sync Scenario failrure.

    Hi, In  an IDOC ->XI(BPM)->SOAP Sync Scenario I observed recently messages are failing in SXMB_MONI with an error as:
    com.sap.aii.af.ra.ms.api.DeliveryException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://172.16.209.162/esdryrun/ContractData_Push. at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest() at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response) at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
    friends, could  u plz help on this.
    Thanks,
    satya.

    Hello,
    This indicates a configuration issue with this SOAP receiver adapter. Please check the on line help for the configuration of the SOAP adapter (the link is below). Please set the indicator in the "SOAP Action" field.
    Configuring the Receiver SOAP Adapter
    http://help.sap.com/saphelp_nw70/helpdata/EN/29/5bd93f130f9215e10000000a155106/frameset.htm
    (Below is the extract from the link)
    SOAP Action
    Specify the SOAP action. The action specifies the value for the
    SOAPAction in Web service messages; set the indicator.
    Regards,
    Sarah

  • Changing a released Z bapi (Custom BAPI)

    Hi Guys,
    I created a Custom bapi (Z bapi) and has been released to production system. I need to add another IMPORT parameter to the function module and bapi. Kindly let me know the steps to change a custom bapi.
    Thanks in advance.
    mini

    Hi,
    Are you talking about an error(i.e you forgot to include this Import Parameter) or a new addition?????
    If error ..then you already have the answer.....but make sure you do a Where-Used List search for that BAPI and replace all its call with fresh Interface/Import Paraters...else you will end up having short dumps....
    In case  you are talking about upgrading your BAPI..then I will suggest you to use the new BAPI version like if the Older BAPI was ZBAPI, then this can be ZBAPI01....and use this BAPI for future use.....this will save you from any unwanted short dump.....

  • BAPI and BAPI Wrapper

    Hi All,
    I would like to know the difference between a BAPI and a BAPI Wrapper in detail.
    I would also like to know the procedure to create the various types of BAPI Wrappers- Getlist, GetDetail, Create, Modify and Delete.
    regards,
    Sunil

    Hi Sunil,
    Conceptually, BAPIs and BAPI wrappers are the same. BAPI wrappers, like BAPIs also must have a standard interface. THey are also RFC enabled FMs and like BAPIs they can comprise of the backend applciation business logic. They can also comprise of calls to Web services.
    You can easily create BAPI wrappers - GETLIST, GETDETAIL, CREATE, MODIFY and DELETE from the DOE workbench (SDOE_WB transaction) using the BAPI wrapper wizard, available under the Utilities menu.
    Once you create the BAPI wrappers, you can compare them with BAPIs and you will see that they are the same. Of course this is under the assumption that you are using MI 7.1.
    You do not need specific OO knowledge for creating BAPI Wrappers.
    Regards,
    Wenonah
    Edited by: Wenonah Jaques on May 9, 2008 7:44 AM

  • How to generate idoc after creating a bapi?

    I have used the bapi_salesorder_createfromdat1 function module to create sales orders. Now how can i generate an idoc of the sales orders created and send it to other system. Please give a solution.
    Edited by: Shakti on Nov 19, 2008 3:30 PM

    after your bapi do the following
      wa_edidc-rcvprt = gc_ls. "Partner Type of Receiver
      wa_edidc-direct = 1.     "Outbound
    Port is with simialr name of logical system
      IF sy-sysid EQ gc_ert.
        CONCATENATE: gc_xit gc_clt gc_200 INTO wa_edidc-rcvpor.
      ELSEIF sy-sysid EQ gc_erq.
        CONCATENATE: gc_xiq gc_clt gc_300 INTO wa_edidc-rcvpor.
      ELSEIF sy-sysid EQ gc_erp.
        CONCATENATE: gc_xip gc_clt gc_400 INTO wa_edidc-rcvpor.
      ENDIF.
    XIT only 200 client No, XIQ always only 300 and XIP always only 400 - Confirmed by Markus/ Erik
      IF sy-sysid EQ gc_ert.
        CONCATENATE: gc_xit gc_clt gc_200 INTO wa_edidc-rcvprn.
      ELSEIF sy-sysid EQ gc_erq.
        CONCATENATE: gc_xiq gc_clt gc_300 INTO wa_edidc-rcvprn.
      ELSEIF sy-sysid EQ gc_erp.
        CONCATENATE: gc_xip gc_clt gc_400 INTO wa_edidc-rcvprn.
      ENDIF.
      wa_edidc-mestyp = gc_ymtspa01.  "Message Type
      wa_edidc-idoctp = gc_ywhspa01.  "IDoc Type
    Move data records from internal table to the edidd structure.
    Check Whether Invoice is already sent or not to AGCONet
      IF NOT gt_final_sp2[] IS INITIAL.
        SELECT *
          FROM ysmk_invoice01
          INTO TABLE gt_invoice01
          FOR ALL ENTRIES IN gt_final_sp2
        WHERE vbeln EQ gt_final_sp2-vbeln_vf.
        IF sy-subrc EQ 0 .
        ENDIF.
        LOOP AT gt_final_sp2 INTO wa_final_sp2.
          CLEAR : wa_invoice01,gv_index.
          gv_index = sy-tabix.
          READ TABLE gt_invoice01 INTO wa_invoice01 WITH KEY vbeln = wa_final_sp2-vbeln_vf.
          IF sy-subrc EQ 0.
            IF wa_invoice01-process EQ 'X'.
              IF p_check NE 'X'.         " To Ignore previously processed Orders
                DELETE gt_final_sp2 INDEX gv_index.
              ENDIF.
            ENDIF.
          ENDIF.
          CLEAR : wa_final_sp2.
        ENDLOOP.
      ENDIF.
      IF gt_final_sp2[] IS INITIAL.
        MESSAGE s222.
        LEAVE TO LIST-PROCESSING.
      ENDIF.
      LOOP AT gt_final_sp2 INTO wa_final_sp2.
        wa_sdata_sp2-chas_ser_num = wa_final_sp2-qausp.
        wa_sdata_sp2-mat_num = wa_final_sp2-matnr.
        wa_sdata_sp2-bill_doc = wa_final_sp2-vbeln_vf.
        wa_sdata_sp2-bill_type = wa_final_sp2-fkart.
        wa_sdata_sp2-cust_num = wa_final_sp2-kunnr.
        wa_sdata_sp2-fkdat = wa_final_sp2-fkdat.
        wa_sdata_sp2-kzwi5 = wa_final_sp2-kzwi5.
        wa_sdata_sp2-netwr = wa_final_sp2-netwr.
        wa_sdata_sp2-aedat = wa_final_sp2-aedat.
        wa_edidd-segnam = gc_z1whspf2."Segment Name.
        wa_edidd-sdata = wa_sdata_sp2.
        APPEND wa_edidd TO gt_edidd.
        CLEAR wa_edidd.
        wa_invoice01-vbeln = wa_final_sp2-vbeln_vf.
        wa_invoice01-process = 'X'.
        MODIFY ysmk_invoice01 FROM wa_invoice01.
      ENDLOOP.
      IF NOT gt_edidd[] IS INITIAL.
    *---Function module to trigger the IDOC explicitly
        CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
          EXPORTING
            master_idoc_control            = wa_edidc
          TABLES
            communication_idoc_control     = gt_edidc
            master_idoc_data               = gt_edidd
          EXCEPTIONS
            error_in_idoc_control          = 1
            error_writing_idoc_status      = 2
            error_in_idoc_data             = 3
            sending_logical_system_unknown = 4
            OTHERS                         = 5.
        IF sy-subrc NE 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ELSE.
    *Commit work used if the Function module is executed successfully
          COMMIT WORK.
          READ TABLE gt_edidc INTO wa_edidc INDEX 1.
          IF sy-subrc EQ 0.
            WRITE:/ wa_edidc-docnum, text-003.
          ENDIF.
        ENDIF.
      ENDIF.
    *---Clearing the internal table and work area for Data structures
      IF sy-subrc EQ 0.
        r_mestyp-low     = gc_ymtspa01.
        r_mestyp-sign    = gc_i.
        r_mestyp-option  = gc_eq.
        APPEND  r_mestyp TO r_mestyp.
        CLEAR:  r_mestyp.
        r_docnum-low     = wa_edidc-docnum.
        r_docnum-sign    = gc_i.
        r_docnum-option  = gc_eq.
        APPEND  r_docnum TO r_docnum.
        CLEAR:  r_docnum.
       SUBMIT rbdmoind WITH p_credat = sy-datum
       WITH p_step = 100 AND RETURN.
        SUBMIT rseout00 WITH docnum  IN r_docnum
                        WITH mestyp  IN r_mestyp
                        WITH p_compl = 'Y'
                        WITH p_rcvpor = 'XITCLT200'
                        WITH p_rcvprt = 'LS' AND RETURN.
        CLEAR: wa_edidc,wa_edidd.
        REFRESH: gt_edidc,gt_edidd.

  • BAPI to FILE scenario - PRASHA

    Dear Expertise,
    Our requirement is sending a request(which contains a primary key like "UserName") to RFC in R/3 system. In R/3 system
    depending upon the primary key i.e., "UserName" it must fetch the data and send the data to XI system which should infact
    save it to a file.(R/3 system has the data in its table)
    For that we are using "https:///people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit" blog as ref...
    But we are unable to get the data from R/3 system to XI as file. We are getting the same file data which we are sending.
    Could some one send the scenario's exported file to us ASAP...
    or you can send the concerned docs or links to my personal email ID : [email protected]
    Plz help us..

    Dear Moorthy,
    Thanks for ur quick response... appreciated your work..
    The Scenario which you got is absolutely correct and fulfills our requirement.
    We have followed the same thing as you mentioned in the blog,
    The question raises from this statement 
    1) Is the BAPI response structure is filled from R/3 or are you getting this response to XI ? Check this in SXMB_MONI ..
    We are unable to get the Payload in the Response message. (in SXMB_MONI).
    Can some one send us the scenario’s exported file , so that we can double check with our scenario ….
    Advance thanks….

  • File-bapi-proxy sunchronous scenario

    Dear experts,
    I am working ona scenario.
    Sender will drop the required file on XI directory and XI will pull the file and map it with the BAPI u2013 and crate service entries in SAP r/3 via abap proxy. If errors are encountered during the process they are returned to the client in a report or as erroneous file via abap proxy.
    I have created 2 MESSAGE  types
    a) MT_Get_Request
    b) MT_Get_Response
    Also have imported a standard BAPI i.e  BAPI_EntrySheet_Create
    question is : How to create teh synchrounous message interface
    1) one message will be  OUTBOUND SYNCHRONOUS
         OUTPUT MESSAGE : MT_Get_Request
         input message       :   MT_Get_Response
    how will be the other inbound  synchronous?????
    Would it be
    Outpit Message :   BAPI_EntrySheet_Create
    Input Message  :   BAPI_EntrySheet_Create.Response  ?????????
    or ?????
    Experst, please explain me the  design . Each answer will be appreciated
    Thanks
    Veeru

    Hi Viru,
    Would it be
    Outpit Message : BAPI_EntrySheet_Create
    Input Message : BAPI_EntrySheet_Create.Response ?????????
    or ?????
    YEs you can use the BAPI interface as a synchronous interface, with BAPI_EntrySheet_Create and BAPI_EntrySheet_Create.Response  as the request response message type...
    alternatively, you can create an inbound synchronous interface and use the bapi as its input (BAPI_EntrySheet_Create) and output  (BAPI_EntrySheet_Create.Response) message type.
    Also since the sender is a file you may need to use the ResponseOnewayBean as mentioned in this wiki page:
    http://wiki.sdn.sap.com/wiki/display/XI/File-RFC-File%28Without+BPM%29
    http://wiki.sdn.sap.com/wiki/display/HOME/UsingRequestResponseBeanModuleinFILE+Adapter
    Regards
    Suraj

  • Hi doubt BAPI to JDBC scenario

    Hi experts,
      Can you send step by step procedure for BAPI to JDBC sceanrio.
    thanks
    dhanush,

    Maybe you can consider searching on SDN for sender rfc adapter scenarios and Jdbc adapter scenarios? Or is searching really that difficult a task?

Maybe you are looking for

  • System creating procurement proposal for components having MRP type VB

    Hello All          I am having a FG under which there are two raw materials ROH1 & ROH2, MRP type for FG & ROH1 is PD & lot size EX, MRP type for ROH2 is VB & lot size HB. When am running Single-Item-Multilevel MRP for FG (using txn MD02) system is c

  • Exception in servermgr_accounts when creating open directory master...

    Just to give you some background, I'm new to Mac Os X Server. And I'm trying to get a mail/ical/web-server with "open directory" setup. The server is placed in a remote location, behind a NAT-firewall. I thought I hade everything setup, took a while

  • HOW TO TRUNCATE LEADING ZEROS  [ URGENT ]

    A PROGRAM TO GET THE LENGTH OF THE SRVPOS [ SERVICE NUMBER] BUT IN OUTPUT IT IS GIVING 12 LEADING ZEROS WHAT SHALL I DO TO REMOVE LEADING ZEROS AND TO GET THE LENGTH OF  THE SRVPOS [ SERVICE NUMBER] AFTER REMOVING LEADING ZEROS TABLES: ESLL. DATA: BE

  • Which config. will be best. 1 instance & two schemas. Two instances

    I have a database with 8GB memory and 4 750GHz processors. 1. One instance and two schemas (one production and one test, both are identical). 2. Two instances with one schema each.(One Production and one test. both are identical). A 4GB SGA will be e

  • Bluetooth now not working on my iPad

    Bluetooth was working on my iPad a couple of weeks ago, but now does not work.  It discovers devices (eg keyboard) but does not connect.  The same keyboard does connect on my wife's iPad.  I have not made any changes to settings.  Can anyone help?