Want to create IDoc to Webservice Scenario

Hi All,
I wan to do Idoc to Web Service Scenario, I have already done Idoc to File Scenario and I have mapped the file of both end in ESR and I am done with Configuration in Integration Directory.
Now If I want to convert it to IDoc to Web Service Scenario, what all steps need to be done. and also want to know that How we can access and Send the files from Web Service to PI 7.1. As such web service is not available need to create the same also.
Can anyone provide How to guide on this scenario.
Regards,
Nitin Patil
Edited by: Nitin Patil on Dec 19, 2008 2:44 PM

Hey,
     as you have familiar with idoc to file, the idoc to webservice scenario is not different.
     You need to do the ALE settings on the R\3 side. import the Idoc in XI.
     Now for mapping purpose you need the source and the target structure.
     In case of webservice you need to import the WSLD (unlike the file in which you wold have created the data type and message type)
In order to import the WSLD, you need to do following things.
Ou require NWDS and the following settings needs to be done
Deployement of Web Services:-
Step 1)
     Goto Windows->Open Perspective->J2EE development.
Step 2)
     Goto File->new->Ejb module(give project name).
Step 3)
     Right Click on the <project name> eg. work_ejb select new->Ejb.
Step 4)
     Give an appropriate EJB name and default package (eg. com.xxx.yyy).
     Also select stateless Ejb.
     Click next then next and then next.
Step 5)
     Add method with an appropriate name.
     Mention the return type and also assign the required parameters.
     Logic is written in the EJB module bean.
Step 6)
     Right click on the <project name> and build.
     Creates .jar
Step 7)
     Goto File->new->Enterprise Application project(to create EAR)
Step 8)
     Give project name, assign EJB and build.
     Creates EAR.
Step 9)
     Right Click on the EJB.
     Goto new->Web services.
     Specify name of the web service.
     Specify EAR in the WEB service.
Step 10)
     Build EAR.
     Build Ejb.
Step 11)
     Goto Windows->Prefrences->SAP j2EE engine.
     Give the message server host name.
Step 12)
     Right Click on EAR and deploy.
Step 13)
     Goto-> http://<host name>:<port no.>/index.
Step 14)
     Choose the web service name,test it and download it(default WSDL).
Step 15)
     Import port(WSDL) in External definition of SAP PI.
After you import the wsld, you need to follow the same procedure as idoc to file.
regards,
Milan

Similar Messages

  • Query on IDOC to webservices scenario

    Halo Gurus,
    In general,if we have scenario involving webservices,we get WSDL file and use it in scenario development.
    In case,if WSDL is not provided ,can anyone help me to understand how to proceed with the scenario?
    Please provide more details,what are the necessary things that needs to be in place for stating a scenario that involves
    webservices.
    Regards,
    M.Raj.

    Hi M.Raj,
    Your scenario is IDOC to WebServices, here if in case the WSDL file is not available then you could generate the wsdl file in XI Integration Directory.
    Please follow the below steps,
    1. Create the Data type Message type and Message interface. (Use the Data type structure as per your requirments,, lets assume you have similar structure as IDOC type and you have creaetd in Integration Repository)
    2. Then do the regular mappuing and develope the other objects (Interface mapping, Integratuion scenario etc )in similar way as per any normal scenario
    3. Import the integration scenario in and make the regular development in Integration directory (ID).
    4. After activate all the development, in  ID goto >Tools>Define WebService
    5. one wizard will be open,  press continue.
    6. Give the Integration server SOAP Inbound channel as URL in below format
    http://<host>:<port>/XISOAPAdapter/MessageServlet?channel=<party>:<service>:<communication channel>
    Remember the above link is case sensitive. If party is not available use it as channel=:<><service>:<communication channel>
    7. Select the Outbound Message Interface and continue.
    8. give Service details and Interface details as per previous screen. (can press BACK button to see it)
    9. Finish --> to generate the wsdl.
    You could use this wsdl to deploy in the Webservice and can process it futrher.
    If you have different wsdl in webservice then this will not work..
    Thanks
    Swarup

  • Doubt in idoc 2 file scenario

    Hi,
    I want to create idoc 2 file scenario with out any Transformation.
    In that case how/what to create Data type for receiver.
    I want to receive the same idoc in the receiver folder/Directory (like XML file) with out any transformation.
    Thanks
    Ruban

    Hi,
    For this scenario you need to create the Data type structures as similar to IDOC type and just have to transfer to file without FCC.
    It will transfer the IDOC data as it is in XML format
    refer
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters - IDoc to File
    /people/venugopalarao.immadisetty/blog/2007/01/24/troubleshooting-file-to-idoc-scenario-in-xi
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/error%2bhandling%2bin%2bfile-idoc%2bscenario
    (Just avoid using FCC conversions on receiver file adapter in above scenarios)
    Thanks
    Swarup
    Edited by: Swarup Sawant on Mar 24, 2008 6:15 PM

  • Creating  idocs based on invoice number ocurrences

    Hi ,
    I want  to create idocs based on invoice numbers .
    Lets say i have a file coming in from sender system
    Invoice1 material customer value
    Invoice1 materail1 ..........
    imvoice2 material2.....
    invoice2 material1.....
    invoice1 material3..
    Invoice3. material4....
    So for Invoice1 only one Idoc should be created  similarly for invoice 2 which is ocurring twice in the file
    only 1 idoc  should be created
    Let me know how to achieve this ..  by UDF , or by split by value
    please help
    thnx
    Chirdip

    Hi,
      Change the IDOC occurance to 0-unbounded.Export the xsd change the occurance and import it to external definition.
    Map Like below:
    invoice number--removecontext--sort--splitbyvalue(valuechange)--IDOC
    other fields you need to map like below.
    invoice number--removecontext--sortbykey--SplibyValue(Each)---IDOC fields
    source field----removecontext------
    Regards,
    Prakasu.M

  • Steps to create IDOC when MB1C transaction trigger

    Hello,
    I want to create IDOC whever MB1C (Goods reciept) transaction is triggered. Basically I need to fill header and item data in IDOC segments and send that IDOC to 3rd party system. What are the steps need to follow in SAP to achieve this functionality. Also, if any IDOC failuer in 3rd party system, how do we re-trigger the IDOC again with the same data.
    Thanks,
    Shreekant

    Hi Brad,
    Thanks for your reply, please can you provide me the steps to create o/p type for MB1C transaction in NACE transaction?
    I searched in sdn but no proper postings are available.
    Waiting for your reply,
    Shreekant

  • Do not want to create EUPEXR IDoc during F110 run

    HI All
    I am running F110 with RFFOEDI1 program, and after the payment program, it is generating payext IDocs as well as EUPEXR IDocs. But I do not want to create EUPEXR IDocs. I Could nt figure out what settings are  driving these EUPEXR IDocs . Can any one help me out? plzz

    sorry,  I have nt added the message type to the partner profile.the program is still creating the EUPEXR IDocs...but those idocs are failing anyway as there is no EUPEXR Message type in the partner profile.

  • Idoc to Webservice to Idoc scenario- is this possible without BPM?

    Hi guys
    We have a scenario where we need to send an IDoc to webservice and get the response back into another IDoc.
    Questions:
    1. Is this scenario possible without a BPM? or do we need to use BPM (Sync-Async bridge).
    2. Is there a Async to Sync bridge in BPM?
    3. How do I use this bridge in my scenario and customize it?
    Appreciate your quick response
    Regards
    Satya

    Hi Satya,
    >>1. Is this scenario possible without a BPM? or do we need to use BPM (Sync-Async bridge?
    You need BPM
    2. Is there a Async to Sync bridge in BPM?
    You dont need a "bridge", just take a synchronous send step
    3. How do I use this bridge in my scenario and customize it?
    Map the IDoc to request container and the response container to the second IDoc.
    Your need 4 container, receive step, transformation, send step (synchronous), transformation, send step (asyncronous)
    Regards,
    Udo

  • IDOC to Webservice to Email - Async to Sync Scenario

    Dear Experts,
    I have a scenario: IDOC to Webservice (Async to Sync)
    The response from the webservice needs to be sent via email. So I have a Email channel added to the Business service (ECC).
    I tried this with BPM, but it does not work complaining about multiple receivers in a sync receiver interface.
    Anyone has done similar to the above?
    1. Using BPM?
    2. Without BPM?
    Thank you.

    Thank you for the reply. This is what I have:
    Repository:
    1. Async ABS Interface for webservice request message
    2. Sync ABS interface with webservice request message and response message
    3. Async ABS interface for the reposnse message
    5. Async IB interface for hte email message
    4. Message mapping between IDOC and webservice request message
    5. Message mapping between webservice response message and email message
    6. 2 Interface mappings with the above mapping objects
    7. Integration Process BPM with Receive step (Async w/s req), Sync send step (w/s req and respp) and Async send step (w/s response)
    Directory:
    1. Receiver agreement with BPM as sender and Webservice as receiver with SOAP receiver channel
    2. Receiver agreement with BPM as sender and ECC as receiver with email receiver adapter
    3. Interface determination for request mapping
    4. Interface detrmination for response mapping
    5. Receiver determination with ECC as sender and BPM as receiver
    6. Receiver determaination with BPM as sender and Webservice as receiver
    7. Receiver determination with Webservice as sender and ECC as receiver
    is the above sufficient and right?
    Thank you.

  • IDOC to Webservice (Async/Sync scenario)

    Hi Experts,
    Can you please help me out need to design an SEnario
    IDOc to webservices useing SOAP. to External WEbservice,
    I need some step to design.and Need to validate VEndor Number in that. in External webservice.
    Reg's
    Raj

    hi raj,
    u can use asynch/synch bridge in bpm for synch idoc-xi-soap.
    for bpm refer:
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    for soap adapter refer;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79
    for idoc refer:
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters - IDoc to File
    /people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi - ALE settings for R3-XI
    u can refer all these links and complete ur scenario.
    [reward if helpful]
    regards,
    latika.

  • RFC - XI - WEBSERVICES scenario - Where to create RFC Destination

    Hi  Experts
    For my RFC - XI - WEBSERVICES scenario, I have to create one TCP/IP RFC destination on R/3 system with the following details
    RFC Destination Name    : XXXX
    Connection Type            : T (TCP/IP)
    Activation Type              : u201CRegistered Server Programu201D
    Program ID                      : YYYY
    Gateway Host                : R/3 Details ..??
    Gateway Service           : R/3 Details ..??
    My Function Module (Remote-Enabled) - u201CZZZZu201D is defined in R/3 System.
    This Function Module should be communicated with the target system i.e. NW XI system 
    As per the Note from SAP Help: To be able to communicate using RFC, you need to define the target systems as RFC destinations in the sending system(R/3)
    Target system u2013 XI Server
    Sending system u2013 R/3 System
    Are my details provided are good enough as per my explanation? Please guide me in this regard.
    QUESTION : Where exactly do I need to create the RFC Destination(SM59)? on R/3 side or on XI side?

    Refer the following link-
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414700)ID1636235450DB01012070359836134304End?blog=/pub/wlg/1438
    what are the inputs should be given to Gateway Host and Gateway Service while creating RFC Destination??
    Open transaction SMGW on the R/3 system and choose
    Goto -> Parameters -> Display. Beneath Attributes there will be the
    entries 'gateway hostname' and 'gateway service'.#

  • I want to create org data profile in service scenario, with price determination from sales org, distribution centre , can any one help me with these

    i want to create org data profile in service scenario, with price determination from sales org, distribution centre , can any one help me with these
    IF I CREATE SERVICE ORG WITH SERVICE SCENARIO ORG DATA PROFILE,
    MY PRICING IS NOT GETTING DETERMINED AS IT IS LINKED TO SALES ORG AND DISTRIBUTION CHANNEL THROUGH PRICING DETERMINATION SO HOW TO DO THE CUSTOMIZATION FOR THIS SITUATION
    WITH REGARDS,
    SATHISH

    Hi Satish,
    Please assign the org det. rules to org det. profile with Sales and Service scenarios and then assign the org. det. profile to transaction type. The below screenshot is just for your reference.
    Hope it would fix your issue.
    Regards,

  • Idoc to file scenario( I dont want acknowledgements )

    Hi all,
    where i can disble the acknowledgements in idoc to file scenario.
    Kiran

    Hi,
    If you want the ack..
    Go throughthis steps..
    go to transaction SXMB_ADM on XI SAP system
    Choose Integration Engine Configuration
    Select "Execute"
    Choose "Specific Configuration"
    choose New Entries
    Select :
    Category : RUNTIME
    Parameters : ACK_SYSTEM_FAILURE
    Current Value : 1
    and save it.
    The below link contains everything about IDOC acknowledgments
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/903a0abc-e56e-2910-51a8-9dc616df56eb
    Might help you..
    Regards,
    vasanth

  • Exposing IDoc as Webservice

    Hello Everybody,
    I want to find the way how can i expose the IDoc as webservice.
    First of all is it possible? If yes then how can we achieve this?
    Thanks In advance,
    Bhavik

    Hi Bhavik,
       There is a basic difference between web service and IDOC. Web service is a call based interface, where you use request and response mechanism to call a functionality, these are mostly synchronous. IDOC is document based interface, these are mostly assynchronous.
       Coming to your problem, since you want to use IDOC's you can not expect to get a response synchronously(Processing of IDOC depends on partner profile) and I am quite sure you are talking about an inbound scenario because for outbound scenario you will consume web service rather than exposing web service.
       If my assumption is correct then from WAS 6.20 onwards you can use FM IDOC_PROCESS_ASYNCHRONOUS (I can't recall the exact name of the FM but it sounds like this) and create a WSDL for this using BSP application 'WEBSERVICEBROWSER'.
    Regards,
    Sanjeev

  • Error/Doubts in Idoc-XI-File scenario

    Dear All,
    I am doing one scenario in which DELIVERY idoc is posted from R/3 to XI and then from XI that idoc is to be sent as flat file to one local folder.
    For this scenario, I have done all ALE settings and I am able to see the idoc in XI in cXML format.Now I want to sent it as flat file.
    Now, for doing this I created 2 BS & 2 TS. 1 BS & TS of type Third Party for receiver & 1 BS & TS are of type Web as ABAP for sender. Then I have created one namespace in IR. I have not created any DT, MT, MI, MM becoz the structure of source and target file are same. Now, I created one IM in which I specified specified Type as "ABAP Class" & Mapping program name as one of the Z function module as specified in one of the SAP Guides.
    Then in ID, I created 2 Parties ie. one for Sender & one for receiver. Sender is having a communication channel of type Idoc & receiver is having communication channel of type File. And thn further Receiver Agreement, Inetrface Determination, Sender Agreement & Receiver Agreement are configured.
    In my system there is one scenario already configured which is using Delivery idoc so I have used party in my scenario for both sender & receiver.
    Now, when I am sending the idoc from R/3, I am able to see cXML in SXMB_MONI but it is taking receiver as the one which is defined for the already existing scenario but not the receiver defined by me.
    Can anybody guide if I have followed the correct steps & where I am doing the error.
    Warm Regards,
    N.Jain

    Hi ,
    Plese refer the following blogs ,
    IDoc to File
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    You have to do all this settings mentioned in the docuemnt:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/sapR3%28Idocs%29ToXI--Steps+Summarized&
    Also can you check this weblogs on the same:
    /people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi
    /people/venugopalarao.immadisetty/blog/2007/01/24/troubleshooting-file-to-idoc-scenario-in-xi
    /people/michal.krawczyk2/blog/2005/03/29/xi-error--unable-to-convert-the-sender-service-to-an-ale-logical-system
    /people/ravikumar.allampallam/blog/2005/02/23/configuration-steps-required-for-posting-idocsxi
    /people/saravanakumar.kuppusamy2/blog/2005/01/20/configuration-tips-for-a-business-serviceintegration-process-to-send-back-ale-audit-idoc
    Thanks ,
    Suvarna
    Award pts if  it helps .

  • RFC Destination not getting connected - IDoc to XI scenario

    Hi Everybody,
    I want send an IDoc from R/3 System to Xi, I have created Two logical systems (Sender and Receiver correspondingly) and i have assigned the clients to them.
    Once i create RFC destination, i have specified all my technical settings as well as Login/Security settings, once i click, "Remote Log On" it takes me directly to Login page of XI. Please guide me how to solve the problem. If i click Test---> Authorization, it prompts out with an error "Name and Password is incorrect (repeat Logon)", but i have given exact username and password.
    I am a fresher to XI.... please give me some documents related to IDoc to XI scenario step by step to [email protected] I would be grateful and appreciate you if u would help me to sort out this problem....
    Please give me step by step solutions.... Thanks in Advance...
    Regards/Guru

    Requirements in R3 system:
    1. Create RFC destination pointing to XI in SM59
    2. Create port for XI using we21
    3. create Outbound Entry in partner Profile for XI in we20.
    Requirements in XI system:
    1. Create Technical System pointing to the R3 system.
    2. create Business System pointing to the R3 system.
    If you want to send IIDOC out of XI,
    1. SM59 - Create RFC destination
    2. IDX1 - Create port
    3. IDX2 - Import Metadata.
    Note:u dont need a IDOC sender adapter or a Sender Agreement to sent a IDOC to XI.
    Check dis link for more info:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cdded790-0201-0010-6db8-beb9bb2b2660
    please refer to michel book on IDCO usage in XI
    Message was edited by:
            Sreeram Reddy

Maybe you are looking for

  • Flash Player Problem in  IE 11 windows 8.1

    Flash player isn't working in IE 11 windows 8.1 I just upgraded to windows 8.1, and flash player isn't working in the new IE 11. I installed all updates and have checked that I have the most current version of flash installed. But when I test whether

  • Cd wont copy driver issue due to other cd burning software.i dont have any other software!

    my problems start when i want to import songs from a cd.I get an error message telling me that other burning software is  or may be causing driver issues. Yet i dont have any other software. This has happened recently.Many thank to anyone who can hel

  • Not able to adjust date and time - format does not permit

    Hello, I just scanned one old photo as a JPG and then imported it to Aperture 2, I renamed the file 1976-07-01_01.jpg based on the date the pic was taken. Then I tried to adjust the date and time in Aperture but got this error window: "Unable to adju

  • PO reminder

    hi all, i maintained complete setting related to reminder MAHN out put type.... message type message schema and in ME9F it is nt showing neoutput... error is coming No print-relevant changes to document 4500000541 exist Message no. ME140 SAP MM

  • No startup script in TOMCAT 5 ?

    Hey. I'm trying the latest version of TOMCAT but I miss the catalina.bat (I'm using windows) which allows to startup and shutdown the tomcat server. All I'm left with is the tomcat5.exe, but I need a prompt based way to startup and shutdown TOMCAT. A