Skip to Content
author's profile photo Former Member
Former Member

SAP(IDOC) ---PI---webservice

Hi

Is it possible or not to send IDOC to webservice via PI ?

I need a necessary things and steps to setup in PI (BPM etc) to send the IDOC from SAP to Webservice via PI

thanks

manian

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

11 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 05:20 AM

    BPM CONFIGURATION

    Receive(Idoc)>transform(mapping of idoc to Reques)>Send(Mode-Synchronous)>Transform(Mapping of response to Idoc)>Send(output Idoc)

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 04:50 AM

    hello manian,

    You can send the Data from the SAP Systems to Webservice.

    using the IDOC ALE settings on R3 and XI .

    using the SOAP Adapter on the Receiver Side.You webservice should be able to accept the Incoming Data from the IDOC.

    But what is scenario ? Synchronous or Async.

    if it asynchronous then you dont require any BPM.

    regards

    Ganga

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 04:54 AM

    Hi,

    You can go through below mentioned blogs .

    Invoke Webservices using SAPXI

    Invoke Webservices using SAPXI

    Troubleshooting - RFC and SOAP scenarios *** Updated on 20/04/2009 *** - troubleshoot the SOAP adapter.

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 04:57 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 04:59 AM

    check this URL for posting IDOCs to XI :

    Configuration steps required for posting idoc's(XI)

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 05:07 AM

    hi,

    Is it possible or not to send IDOC to webservice via PI ?

    Yes . Possible to send IDOC to websevice using PI.

    1.Import the IDOC.

    2.Import your WSDL file using External Definition.

    3.Create a Message Interface with Inbound.

    4.Create Message Mapping and Interface Mapping.

    5.Create Receiver business Service.

    6.Create Receiver Communication chennal with SOAP adapter.

    7.Give the target URL and SOAP action.

    There is no need of BPM.IDOC is process only asynchronous.

    If You want to send the Webservice response to some file then that time you need BPM.

    Regards,

    Prakasu

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 12, 2008 at 05:10 AM

    Hi,

    Refer this Blog.

    RFC -> XI -> WebService - A Complete Walkthrough (Part 1) By Shabarish Vijayakumar

    Insted of sender RFC you are going to use IDoc.

    Remember if your Webservice is going to be synchronous that you have to use Sync-Async Bridge.

    Demonstrating Use of Synchronous-Asynchronous Bridge to Integrate Synchronous and Asynchronous systems using ccBPM in SAP Xi By Sudhir Porumamilla

    Thanks

    SaNv...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 06:54 AM

    Hi manian ,

    Above replies are correct and u can proceed.

    But when u r integrating IDOC with webservices u need to get the response back ( Synchronous mode)

    if u r not using response message it will generate error message in componet monitoring and in Message monitoring it shows Acknowledge errors..

    So u need to send the response back from webservices to IDOC....But IDOC is Asynchronous..

    Us the BPM using Asynch-Synch Bridge......

    "Award Points if it is useful"

    Regards,

    Jayasimha Jangam

    **********

    Please read the Forum's Rules of Engagement,

    i.e.,

    /thread/117188 [original link is broken]

    and refrain from requesting points

    SDN PI/XI Forum Moderator

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 04:58 AM

    Hi,

    Yes You can send the Idoc to Webservice Very Well through XI

    If you want Response back to SAP means we need to configure BPM else no need of any BPM

    ALE Settings

    Steps

    SAP XI

    1) RFC Destination (SM59)

    a) Choose create.

    b) Specify the name of the RFC destination

    c) Select connection type as 3 and save

    d) In the technical settings tab enter the details SAP SID/URL and system number#.

    e) Enter the Gateway host as same details above SID/URL.

    f) Gateway service is 3300+system number#.

    g) In the Logon /Security tab, enter the client user & Password details of Destination system.

    h) Test the connection and remote logon.

    2) Create Port (IDX1)

    a) Select create new button

    b) Enter the port name as SAP+SID (The starting char should be SAP)

    c) Enter the destination client.

    d) Enter the RFC Destination created in SAP R/3 towards other system.

    e) Save

    3) Load Meta Data for IDOC (IDX2)

    a) Create new

    b) IDOC Message Type

    c) Enter port created in IDX1.

    SAP R/3

    1) RFC Destination (SM59)

    a) Choose create.

    b) Specify the name of the RFC destination

    c) Select connection type as 3 and save

    d) In the technical settings tab enter the details SAP SID/URL and system number#.

    e) Enter the Gateway host as same details above SID/URL.

    f) Gateway service is 3300+system number#.

    g) In the Logon /Security tab, enter the client user & Password details of Destination system.

    h) Test the connection and remote logon.

    2) Create Port (We21)

    a) First Select Transactional RFC and then click create button

    b) Enter the destination port name as SAP+SID (The starting char should be SAP)

    c) Enter the destination client.

    d) Enter the RFC Destination created in SAP R/3 towards other system.

    e) Save

    3) Create Partner Profile (WE20)

    a) Create New

    b) Create the Partner no. name as same the logical system name of the destination system.

    c) Select Partner type LS

    d) Enter details for Type: US/USER, Agent, and Lang.

    e) Click on the + button to select the message type.

    f) Select Partner no. and LS which ever create above.

    g) Select Message type

    h) Select Process code related to the Message type.

    I) save.

    In SLD u2013 System Landscape Directory

    TS for R/3 (Logical system):-Assign the client name created in R/3 as Logical system Name.

    Ts for Third Party (Logical system):-

    BS for SAP R/3 (Logical system):- Assign the client name created in R/3 as Logical system Name.

    BS for Third Party (Logical system):-Enter the XI logical system name.

    In Transaction SALE

    Define and Assign the logical system name.

    IR

    1)Import the Idoc in IR for Sender Side Structure and use this Idoc itself as DT MT and MI. No need to create

    2) Import the wsdl file given from the webservice team

    3) create MI for this webservice

    4) create Mappping and interface mapping

    ID

    1)No need to create any Sender CC for Idoc, why because Idoc Sits on ABAP Stack and can directly interact with the IS

    2) Create Receiver SOAP CC

    3) Create Receiver Determination and Interface Det

    4) Create Receiver agreement

    5) no need of Sender agreement

    REgards

    Seshagiri

    Edited by: N V Seshagiri on Aug 12, 2008 7:01 AM

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 12, 2008 at 04:59 AM

    Its very well possible to send SAP IDOC to webservice.You need to use receiver SOAP adapter and sender IDOC adapter.

    Synchronous- BPM

    Asynshronous- No BPM

    Some examples for your reference is as follows :

    Your scenario is basicallty SAPR/3(IDOC)-SAPXI-3RD PARTY(WEBSERVICES).

    In your scenario, you have to do the following steps:

    1. Configure the ALE seetings between SAP R/3 to SAP XI such as

    - creation of logical system-t-code SALE

    - creation of RFC in sm 59 pointing to SAP XI

    - creation of port and using the RFC pointing to SAP XI

    - creation of Partner profile for outbound parameter

    2. Ask the webservices team to provide you the wsdl file for the 3rd party system

    3. Do the SLD configuration for respective software product, software component

    4. Configure Integration repository , use the wsdl file as an external definition so no need to create data type n message type for your scenarios.Create message Interface as Inbound & select the message type from external defintion of wsdl file for output. Import the IDOC and do the mapping and Inteface mapping.

    5. Create the Business Service as your 3rd party system is webservice

    the configure your soap receiver adapter communication channel and mention the address location URL which is there in wsdl file , mention the user authentication parameters if required , mention the soap action which is there in wsdl.

    No need to create IDOC Sender adapter.

    Create receiver determination , Interface determination , receiver agreement. No need to create sender agreement ad no sender communication channel required in your case.

    6. Now the configuration is over and download SOAP UI tool and test the wsdl file connectivity.Once it is o.k

    7. start triggering your IDOC and and it will be sent to reciving 3rd party system via SOAP adapter.

    Hope it helps you.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.