Examples needed for Idoc to file and IDOC to web services

Hi ,
Could any one of you give some examples which take me through step-by-step in building IDOC-TO-FILE and IDOC-TO-WEB SERVICES?
Regards,
XI Developer.

Hi,
For IDOC scenario you need to first do the required configuration:
ALE configuration for pushing idocs from SAP to XI
/people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi
Testing purpose u can use the below method:
IDOC testing using WE19
/people/sameer.shadab/blog/2005/07/25/reposting-idocs-instead-of-recreating--for-testing-purpose-xi
/people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters --> For Idoc sender: IDOC -file
IDOC configuration:
Please follow the below process for configuration:
Pre-requisites for Inbound IDoc to R/3 from PI:
Configuration required at Xi side:
Go to IDX1: configure the port.
Go to IDX2: load the DOC metadata.
Go to SM59: Create RFC destination which points to R3 system this is require in the case where your IDOC is sent to R 3 system,
Configiration required at R3 side:
Maintain Logical System for PI (SALE transaction):
Maintain Partner Profile for XI system(WE20):
Pre-requisites for Outbound IDoc from R/3 to PI:
Configurations required in R/3:
Maintain Logical System (SALE)
Define RFC Destination (SM59) which points to PI system
Maintain Port (WE21)
Maintain partner profile. (WE20):
Maintain Distribution Model (BD64):
File To IDOC - Part1 (SLD and Design):
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/11/fileToIDOC&
File To IDOC - Part2 (Configuration):
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/11/fileToIDOC-Part2+(Configuration)&
File To IDOC - Part3 (Steps required in XI and R3):
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/11/fileToIDOC-Part3(StepsrequiredinXIandR3)&
SOAP scenario:
YOu have to first create the WSDL through ID and import that WSDL in to IR external definition.
Refer the below thread and pdf:
How to use SOAP adapter:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40611dd6-e66e-2910-f383-e80fb44f9cd4
SAP AII - How to consume and expose webservices  ?
Thnx
Chirag
reward points if it helps.

Similar Messages

  • Reading a file and caching in web service before a web method is called

    Hi All,
    I developed a webservice with some web methods. I need to validate the licencing for those web methods. And my licensing details will be available in a file. Instead of reading the licencing file for every web method invocation I want the licensing file should be read only once and those details should be cached. So that for every method invocation I will use the cached licensing details. I am using Axis 1.0. How can I achieve this functionality. Please help me in solving this problem.
    Thanks in Advance,
    Naresh

    The program needs to read a text file.
    I made sure that the text does not have space between the lines.
    I wanted to have a String object with all the data (lines).
    So I used a StringBuffer (append) to collect all the data lines.
    I wanted to read each line of the file and assign them to my StringBuffer, using the built-in nextLine() method of the Scanner class and using the for loop.
    I already tried printing out each line as I read it (using the code below). Even though the program showed each line like it should, it still said "java.util.NoSuchElementException: No line found" at the end.
    //read a line of characters of the file
    line = file.nextLine();
    while (line != null) { //file is terminated by a null
         System.out.println(line);
         sb.append(line);
         line = file.nextLine();
    }

  • How to deploy sca files and navigate to web services?

    Hello All,
    Installed SAP MDM 7.1 and also got sapmmc on my desktop.. Wondering how can I deploy sca files and how can I get web service navigator page to see web services? Any light on this?
    Thanks
    Rajeev

    Hi,
    Please find details below:
    1. How to deploy SCA files:---> You need to deploy these .SCA files through JSPM on any JAVA AS server (7.0 or 7.1 depending upon .sca files version you have). make sure your MDM version should be minimum 7.1.02.51.
    2. How to get webservice Page:--> To Access web service page using the following link
    http://<Netweaver Java AS Machine>:<NetWeaver Java AS HTTP port>/webdynpro/dispatcher/sap.com/tcmdmwsgeneratorui/WSGenerator
    For more details please check [this|http://help.sap.com/saphelp_nwmdm71/helpdata/en/45/018c03166a0486e10000000a155369/frameset.htm] link.
    Regards,
    Shiv

  • Needed urgent clarification on FILE TO IDOC scenario

    Hi Experts,
                      I need urgent clarification on FILE TO IDOC scenario plz clarify it
    1.In FILE TO IDOC scenario after creation of RFC dest ,performing steps in IDX1&IDX2
    what configurations to be done on target system?
    2.In some blogs it is given that steps should be done in RFC dest,we21,we20  .
    But is it mandatory to do so RFC dest and WE21 steps [OR] directly can we configure partner profile in WE20?
    3.on integ server IDX2 has to be done (or) is it optional for FILE TO IDOC scenario?
    Too many to answer plz clarify good explanations will be rewarded.
                                                                                    Regards,
                                                                                    Vinod.

    Hi,
    Please follow the below process for configuration:
    Pre-requisites for Inbound IDoc to R/3 from PI:
    Configuration required at Xi side:
    Go to IDX1: configure the port.
    Go to IDX2: load the DOC metadata.
    Go to SM59: Create RFC destination which points to R3 system this is require in the case where your IDOC is sent to R 3 system,
    Configiration required at R3 side:
    Maintain Logical System for PI (SALE transaction):
    Maintain Partner Profile for XI system(WE20):
    Pre-requisites for Outbound IDoc from R/3 to PI:
    Configurations required in R/3:
    Maintain Logical System (SALE)
    Define RFC Destination (SM59) which points to PI system
    Maintain Port (WE21)
    Maintain partner profile. (WE20):
    Maintain Distribution Model (BD64):
    DO let me know if you need more information
    Thanks and Regards,
    Chirag Gohil.

  • Code for browsing a file in idoc

    i have used the same code for browsing a file in idoc as we use in hcsf, but when that hcsf is converted in hcsp,then that field is still editable even after i wrote
    <$if isHcsp$><$isInfoOnly=1$><$endif$>
    its urgent ..

    HCSF/HCSP code should have the < ! - - syntax, not the < $ syntax... if that your problem?

  • IDOC Flat File-- XI-- IDOC

    Hi,
       I have a requirement wherein we have to read the IDOC flat file and post it as IDOC to SAP using XI. I understand we have to use the Flat File Sender adapter and the IDOC Receiver Adapter. On the Sender Side we have to define the Content Conversion to convert the IDOC Flat File to IDOC XML. Writing File Content Conversion for the IDOC Flat File would be very tedious because of the number of fields and fixed structure of the flat file.
      I have don through the following guide Section 3.2 where it talks abt converting IDOC to IDOC XML using reportRSEINB00.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guides/how%20to%20convert%20between%20idoc%20and%20xml%20in%20xi%203.0.pdf
    I am not clear how to invoke this report in the Flat File Sender adapter. Also is there any other approach.
    Thanks
    Rajeev Gupta

    Hi Rajeev
    You have a flatfile at the sender side so you dnt  have any feasiable option to do other than FCC....FCC is not a tediuos one...if you can provide the strucutrre we will help you out...
    Check out you have a fixedlength file or piple separated one....
    In the functional design how many fields re present and buil the DT,MT MI accoprdingly.....
    you have to just use some conecnt conversion parameters that's it...
    item.fieldSeparator
    item.endSeparator
    item.fieldNames
    here item is your recordset name
    let us know your strucutre
    regards
    Nisar

  • IDoc flat file to IDoc

    I am receiving flat file in SFTP Server which need to be posted into SAP (No mapping involved)
    What will be the best approach ?
    1. I tried using IDOCFlatToXmlConvertor (The limitation in the format of source file. The parent and child node relationship should be explicitly mentioned in IDoc flat file which legacy system is not able to do) - Any workarounds ?
    2. I moved the Idoc flat file into SAP application server. Now need to schedule job using program RSEINB00
    3. File Content Conversion
    Any other better solution ? Appreciate your help.
    Thanks and regards,
    Jose Augastine

    For converting Idoc Flat file to idoc xml, ABAP mapping is one of the feasible option.

  • Open module for managing property file and environment variables

    Looking for an open module for managing property files and environment variables (like CLASSPATH) set in a shell script. For handeling properties (preserving comments, supporting includes, appending new entries, and more) I have looked at SuperProperties from openadaptor but find certain functionality lacking. As for interfacing with common shell scripts/files containing setting for CLASSPATH, JAVA_HOME, other system/application variables another type of object editor is needed. Maybe JFIG?
    Any ideas are greatly welcomed.

    You seem wright, you hit a brick wall here with Air to find the location
    of the command console on windows...
    So in fact I never build an exe tool, but this little problem was a nice
    case to test it and I tried it.:
    I downloaded monodevelop
    -GTK# for .NET 2.12.10*
    -MonoDevelop 2.4.2*
       from http://monodevelop.com/Download
    created a console project and had an exe in 5 minutes !
    You can download the findconsole tool and the projectfiles here:
       http://greencollective.nl/temp/dump/findconsole_monoproject.zip
    findconsole.exe will reveal the path/location of cmd.exe on a windows system.
    Cheers,
    Latcho

  • Tracks for WD par files and VC applications

    Hello Gurus,
       Could anybody please throw some light on the tracks for Webdynpro par files and visual composer applications?
    I need to know if we need separate tracks for Webdynpro par files and Visual composer applications on the NWDI. Can we use one track for the development of Webdynpro and VC applications or do we need separate tracks for these developments? What is the best practice?
    Appreciate much for your help in this regard..
    Regards,
    ~~LB

    Hi Leena,
                   In general SAP recommends to create a seperate tracks for differnet applications. based on your requirement you need to think of whether to go for single or multiple tracks.
    Regards,
    Anil.

  • ITunes ask me for password for backed up file, and i never set up any password

    iTunes ask me for password for backed up file, and i never set up any password, now i can't restore my backed up files to my phone!! please help this is really annoying!!! please help.

    For some reason I cannot post a new question so adding to this one.
    I have the same problem with the voicemail password.  I have a voicemail password, I don't need to reset it - but I want to get rid of it.  Did you get a satisfactory answer?
    VERY irritating to suddenly have to put in a password to hear voicemails.  What is up with iPhone?  I hope someone can help me. 

  • How to set password for a zip file and should be checked when reading that

    Hi friends,
    how to set password for a zip file and should be checked when reading that file???
    thanks.
    Praveen Reddy.J

    Heyy man, i think, u did not get my problem.
    all i have to do is:
    i have to create a zip file, and we should secure it with password when creating. and whenever the user wants to open that zip file he should provide correct passowrd otherwise he could not read that file. So, we should check for that also.
    Tanks for reply.

  • What kind of mac would I need for Nexflix, basic search and email? Also, sounds silly, but can I connect an HDMI from Mac to tv?

    What kind of mac would I need for Nexflix, basic search and email? Also, sounds silly, but can I connect an HDMI from Mac to tv?

    Just an FYI.  The Macs named PowerMac date from early 2006 and before.  Use this tip to discover where to post once you get your Mac:
    Site map of Communities and Categories
    The cheapest Mac available new is a Mac Mini.   It is no bigger than many an external hard drive.  But the screen and keyboard and mouse must be purchased separately.  They support USB and Bluetooth keyboards and mice, and pretty much any DVI, HDMI, or displayport display.   Although the iMac is certainly an attractive option if all you want to deal with is deciding on a printer.   I still recommend getting an Apple USB keyboard for the occasional times you may need to troubleshoot startup issues.  Normally not a problem, but as it gets older some issues can be fixed at startup or diagnosed at startup.

  • Upon launch of Lightroom after initial instalation a warning came up that said lightroom needs to create temporary files and cant open.  The it opened and the catalog i imported will not show the images.  How can I give permission? Running windows 8.1 64

    Upon launch of Lightroom after initial installation a warning came up that said lightroom needs to create temporary files and cant open.  Then it opened and the catalog i imported will not show the images.  How can I give permission? Running windows 8.1 64 bit.  I have avast virus software.

    Upon launch of Lightroom after initial installation a warning came up that said lightroom needs to create temporary files and cant open.  Then it opened and the catalog i imported will not show the images.  How can I give permission? Running windows 8.1 64 bit.  I have avast virus software.

  • How to create items and BOMs using web services

    Hi All,
    I need to create, change and read Items and BOMs through web services (using SOA Gateway, right). I found this one here: "Process Item (convenience wrapper version)" or "Process Item" within
    Internal Name     EGO_ITEM_PUB
    Type               PL/SQL
    Product          Advanced Product Catalog
    Status          Active
    Business Entity     Catalog Item
    Right now, I don't know how to use it. If somebody has a simple example to create a single item, this would be perfect! Which one would be the right one to read detailed information about an existing item?
    The second object I need to maintain (create, change and read) is BOM. Which API can I use here?
    btw: I use EBS 12.1.1 on windows.
    Many thanks,
    Konrad

    Hi!
    Thanks for your quick answer but unfortunately, I must admit that I'm an absolute beginner with Oracle and EBS and so things like:
    Enable trace and generate the tkprof file or open the form using forms builder to get the name of the API used in thta screen.or
    Please check e-trm site for your question do not help me to much :-(
    Any other advice?
    Konrad
    Api's in EBS
    Re: Api's in EBS
    http://sairamgoudmalla.blogspot.com/2009/05/script-to-find-oracle-apis-for-any.html
    API
    Fixed Asset API
    List of API
    Re: List of APIs
    Regard
    Helios

  • Accessing config information in XML file in a Weblogic web service (JWS)

    Problem:
    I have implemented a web service for sending emails and pages via Java Mail and SNPP respectively using WebLogic Workshop on the BEA WebLogic 8.1 platform. In the service, I use certain pieces of information that are currently stored in an XML file on disk. Also, in its current state, the web service is implemented with public methods directly in the .jws Java file and not as a session bean. The file read from disk is performed every time the web service operation to send a message is invoked. As we all know, the I/O files access is very expensive and a performance bottleneck, especially when it is incurred on every invocation of the web service ‘sendMessage’ [operation.
    Without radically re-writing the application, I am looking for a way to improve the performance of the web service and can only come up with the following 2 ways:
    1) Move the code out of the sendMessage operation: Here, the main question I have is 'to where should I move it to'? I have seen in the WebLogic Workshop documentation that WebLogic Server maintains only a single instance of a Java class that implements a Web Service operation, and each invoke of the Web Service uses this same instance. In that case, I should be able to put the code in the constructor so that the files is read only at the time the class is instantiated, but a constructor in the .jws file that contains the web service operations itself does not seem to be invoked by the container (I tried to put a breakpoint in the constructor, but it seems that the constructor code never gets called)
    2) Move the configuration variables into some type of standard configuration file of WebLogic, something like web.xml or wlw-config.xml or jws-config.properties files. But I found that these XML files have an associated schema to conform to and do not provide any custom elements or attributes that I could add for my application(is that true?). Also, if I can somehow put the configuration information into any of these standard files, how do I access it from within the application 'without' doing a file read from disk? Are these configuration file items available in memory for access and use by the web service and if they are, what API can I use to access and use them?
    Any and all ideas are welcome!
    Thanks!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I have been looking into a similar problem. Since web services are by design stateless, they aren't good for 'remembering' information between calls. Aside from a file read, the only other solution I have found is to use a database. You can make use of an entity bean or simply make some kind of JDBC call. I don't know if you need to stick with the config file, but if so maybe you could read the config data into a database once and then you might have faster access than reading from a file. I'm not sure about which would have better performace, but its all I have come up with so far. What parser are you using to read your XML file? Have you tried others to see if they have better performance?

Maybe you are looking for

  • ABAP Queries  not available after upgarde from 4.6C to  ECC 6.0

    Hi All, We have upgraded from 4.6C to ECC 6.0 version. There is some problem with the ABAP queries. The ABAP queries created in 4.6C were assigned to a Ztcode and now after the upgrade when we execute the Ztcode we are getting the error that the prog

  • In Applet  how to send an ' image' and 'string' as parameter

    Hi, In web application, how to use post method in applet to send an ' image' and 'string' as a parameter, I can able to send the image alone form applet to servlet.

  • HP-F-4440 All in one Is this Bluetooth capable or do I have to add it and how?

    I have an HP-F4440 what do i need to do to print bluetooth? We have 2 laptops with Windows 7 and Sprint Evo Smartphones we would like to print from.  Having a hotspot I was told we cant do a wireless network.  So I am looking at the bluetooth option.

  • Process chain with attributes

    Hi Experts, i built a process chain with 4 Masterdata. I beginn with  start and for each master data, i set up an  infopackage and at the end , i created an Attribute with the 4 Masterdata als Infojects. 1. When i save, the order changed. All the mas

  • Can I download Premiere Elements 7 trial?

    Does anybody know where can I download Premiere Elements 7 trial? My school is using Premiere Elements 7 and I'm afraid I'm going to have compatibility issues with Elements 9 and 7.