Receiving binary IDOC via Queue and convert it to XML-IDOC

Hello,
we are focusing the following scenario:
We receive an plain, binary IDOC in a MQSeries Queue. We want to pick it, transform it and place it into R/3 (of course using XI 3.0). Afterwards the other way around.
I know the Howto for the ABAP mapping from XML-Idoc to plain IDOC. This may also work for our scenario. Do you agree?
The other way around is more difficult. I assume that - since the IDOC adapter resides in the ABAP stack - we cannot re-use an existant adapter module in the JMS adapter. Right?
I heared about JCO capabilities of "xmlizing" Idocs - but did not find hints within the javadoc. Anyway, would this really be the preferred way - writing an user exit for the adapter using JCO - to handle this? There must be a way to do it better, must it not?
How did you guys face this problem - I think its a common one...
Any starting points for a discussion are appreciated....
Greets,
helge

Hi Helge,
For the conversion of the incoming flat message, one could imagine a similar ABAP mapping as the one described for the XML->flat message conversion. The function module IDX_IDOC_TO_XML could be a good starting point for your search.
To perform conversions in the Java stack (e.g. in an adapter module) might be a quite complex task since you first have to get the IDoc metadata. And there you cannot reuse existing function modules.
Best regards
Joachim

Similar Messages

  • ABAP program for BAPI and convert DB into XML

    ABAP program for BAPI and convert DB into XML
    Thank you,
    Regards,
    Jagrut BharatKumar Shukla

    Refer the link -
    give an example of bapi coding?
    how can we transfer huge amount of data from database server to xml format
    Regards,
    Amit
    Reward all helpful replies.

  • Reading Flat File in Inbound and Converting it to a Idoc

    Hi
    We are stuck with a situation where in we get a ASN file from Mainframe to XI . XI just reroutes it to SAP and puts the file on Application server. Now R/3 has to read that ASN File and has to split it according to the Invoices and create Idocs for PO's as per the invoice Numbers. (We have a program which splits the incoming file into different Files depending on the Invoices)
    Now My doubt here is how can i get a Idoc triggered after the File has been read and split in the R/3.
    I checked Transaction WE16 , Prog. RSEINB00  but couldnt get a understanding .
    Please suggest.
    regards
    Vikas Chaudhary

    Hi Shiva,
    Thanks for a response .
    But as per my Functional Consultant ; PI's Role should be limited only to reroute the file and store it on Application Server .
    R/3 Picks up that file and then splits it based on the Invoice Number; and again stores it in the application server.
    Then R/3 Should Pick it up again one by one and convert to Idocs .
    ASN to be splitted into Diff. Invoices . Once Splitted. Each Invoice Creates a PO . Once a PO is created Goods Reciept should be done. And after the Goods Reciept is done Service Entry Sheet needs to be created too.
    A Query Again : I donn think this can be done via One Message Type. I am also lookin out for using  one msg. type for creating a PO and other activities can be done by extending a existing msg. type.
    Regards
    Vikas Chaudhary

  • Solution for sending/receiving multiple accounts via Mail and web Gmail

    I don't know why I haven't seen this before, especially since I've posted about this with no solutions, but I just discovered I can now do the following:
    I have multiple email accounts from multiple domain names, and can send and receive from all accounts through Apple Mail as well as only one Gmail web client.
    At the gmail.com web client, I go to Settings: Accounts and Import and click on Send mail from another address. I fill in the obvious info for each email account I want to add, choose 'Send through Gmail', and follow instructions to verify.
    At the Apple Mail client, after configuring my Gmail account (instructions on how to do this are all over the web), I go to Preferences: choose the Gmail account: Account Information: Email Address and add in all the email addresses I want to use separated by commas (ie [email protected], [email protected], [email protected])
    Now when I send to or from any of these emails, it sends and receives with the correct From: and To: emails, as well as replies to the correct emails.
    As for the iPhone, I just add accounts for each of the emails I want to send from and put in wrong info for the incoming mail (ignoring the initial 'can't connect' pop-ups). I receive all mail just fine and can send.
    Again, this didn't work a few months ago, but it does now. Maybe I'm missing something without realizing it yet.

    godaddy accounts sometimes like port 80 vs 587 as well.    just to piggy back on your thread.

  • For IDOC monitoring, analysis and error handling in  ALE & idoc

    Hello...experts..can u please tell me about idoc monitoring,analysis and error handling..and can u please tell as per interview  point of view in this area..if availble can u send material about this...
    thx
    Message was edited by:
            durga kottapalli

    Hi,
    Reprocessing IDocs with errors
    Outbound (BD88)
    Once the error has been determined and corrected it is not necessary to resend the IDoc again. You simply resend the IDocs that have already been generated.
    Using the IDoc overview screen you need to take note of the following for each IDoc that was not processed:
    Error number: 2, 4, 5, 25, 29
    Error number: 30 (Execute Check IDoc dispatch to process)
    IDoc number
    Using the Error number, the IDoc number and the transaction BD88 , with the required message type you can resend the IDoc. Match the error number with this transaction and execute the function for the IDocs incorrectly processed.
    Just check the below link, u will get all IDOC related Interview questions
    http://www.allsaplinks.com/idoc_sample.html
    http://www.allsaplinks.com/
    http://www.sappoint.com/abap.html
    http://www.sap-img.com/
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDISC/CAEDISCAP_STC.pdf
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFAALEQS/CABFAALEQS.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDI/CAEDI.pdf
    http://www.sappoint.com/abap.html
    http://sap.ittoolbox.com/documents/popular-q-and-a/extending-a-basic-idoc-type-2358
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://expertanswercenter.techtarget.com/eac/knowledgebaseCategory/0,295197,sid63_tax296858_idx0_off50,00.html
    http://www.sapgenie.com/sapedi/index.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEIO/BCMIDALEIO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEPRO/BCMIDALEPRO.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/dc/6b7eee43d711d1893e0000e8323c4f/frameset.htm
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sap-img.com/
    http://www.allsaplinks.com/
    Regards,
    Suresh.
    Message was edited by:
            SureshKumar Ramamoorthy

  • Send XML and receive binary data via SOAP

    Hi folks,
    following idea (Client-Server-Rendering-Architecture):
    1. Send XML as JavaScript variable via SOAP to the InDesign Server
    2. Attached the XML String to a new document or template
    3. Apply several XMLRules to the docuument
    4. Render to document as JPG|PDF whatever
    5. Transmit the JPG (means binary) via SOAP back to the client
    Following problems raised by implementing this
    1. Build a new XML-Object with new XML() works, but how to attach this object to the document, i've just found importXML() but from file, not string and xmlElements.add() for adding just a tag not a whole xml tree. The importXML() performance from a File object is not that fast ...
    2. How to render a document not to a file with exportFile() but into a variable, object etc.?
    3. How to send a binary object (from an object, a variable or File object if not possible as describe in Q#2) back to the client via SOAP (scriptResult)? Do I have to expand the WSDL (and|or C++ API), any examples?
    Thanks for your help, by the way, the describe scenario is what I expect of a rendering server not more not less ...
    Tino

    for one thing, don't use == to compare strings... You have that all over the place, like:
    if(currentElement=="region") {                                                                                                                                                                                                                                                   

  • Why does an Inbound IDoc no change and differs from an Outbound IDoc no?

    Hi Experts,
    This seems to be a basic question..! But can someone kindly clarify why an IDoc number gets changed when sent from one R/3 system to another R/3 system and how does this happen???
    i.e., whenever an IDoc was triggered from R/3 system A to R/3 system B through XI/PI, the Inbound IDoc number (in system B) differs from the Outbound IDoc number (in system A)... Why does this happen and how???
    Thanks in advance!
    Br,
    G@nesh

    Hi Ganesh,
    The IDOC numbers are always Unique,
    IDOC can be generated in SAP system as a result of internal testing (WE19), or
    can be posted from a non sap system (say PI).
    So every time a new IDOC comes, it is assigned a new number to avoid confusion and also this plays a
    critical role in the  end to end testing and validation.
    If you look at the control record of the IDOC you can see a element called DOCNUM. this stores to actual IDOC number.
    from PI side you can  use IDX5 and in ECC  We02/05 to notice the idoc numbers.
    Regards,
    Srinivas

  • Adapter queues and thread allocation

    I have browsed through the forums for Adapter threads and message queue related issues but still dont have complete clarity on this topic.
    Scenario-
    Say i have only one file adapter interface in my XI box, an that file adapter is reading a 500 mb file and it has a pollling interval of 5mins, the file is not completely read within the first 5 mins.
    Question-
    Now will the thread allocated to this adapter be alive and keep reading this file or will it be released when the next polling interval starts?
    So what happens when the polling interval is exceeded?
    (Assume there is no parallel processing)
    will a new thread be allocated to the adapter ?
    If yes will it start processing the file or will it wait until the completion of the first thread ?
    According to the New Queueing Scheme in XI 3.0 SP19 / 7.0 SP11
    a sender file adaper in sync mode has one queue assigned to it and Send.maxConsumers=5, say.
    Consider a situation where i have 6 file adapters all reading 50mb files,
    Will one of the file adapter threads will be blocked because all the 5 threads would be in use simultaneously?
    If a large file is being read and is being written in the message queue all the other threads would have to wait till the file is fully read and will be in the blocked state right?
    Appreciate any help.
    Thanx
    Siva

    Hi,
    For each adapter there are four queues..
    File_http://sap.com/xi/XI/SystemCall
    File_http://sap.com/xi/XI/SystemRecv
    File_http://sap.com/xi/XI/SystemRqst
    File_http://sap.com/xi/XI/SystemSend
    and each of the above queues will have threads assigned.(5 by default)
    If these queue threads  are all busy at atime then the message status will be set in Waiting Status...
    Once a message is read via Call queue ,data will be sent to Adapter engine Messaging System via Recv queue...
    Similarly in recieving side data will be received from IE via Rqst and send to adapter via Send queue..if target system is busy i.e adapter thread is keep running and there are 6 instances of the same type then message status will be Waiting/To Be Delivered while the message status of processing messages will be Delivering.
    So in your case data will be read via Call queue and passed on the Recv queue..which result in availability of queue ..even if set interval elapses..
    Hope this gives you an insight
    Regards
    Rajesh

  • Converting jtree to xml

    hi, i am currently working on a project where i construct a jtree using a java gui....once the user clicks on save button, the jtree has to be read and converted into an xml document....
    for eg, the jtree looks like this
    - process
    ----reply
    ----receive
    etc..
    the xml document should be as follows:
    <process>
    <reply> </reply>
    <receive></receive>
    </process>
    i need your help in this regard....kindly help
    Regards
    Lalitha

    Chapter 23 of the book, constructs a tree XMl editor, and it saves among other things...
    http://www.manning.com/sbe/

  • Convert Excel to XML file

    Hi Guys,
    I need to generate the XML from Excel file. The XML file will have the definition like this:
    <people_list>
    <name>Fred Bloggs</name>
    <birthdate>27/11/2008</birthdate>
    <gender>Male</gender>
    </people_list>
    The Excel file will look like this:
    A B C
    1 Fred Bloggs 10/21/2008 Male
    2 ABC 12/23/2008 Female
    3 XYZ 07/16/2008 Male
    All the values in name,birthdaye,gender will come from the Excel file. I am having 100 rows in the Excel file with the data and I want to parse this excel file and create the XML file with the above template.
    Any ideas how to do this?
    Thanks,
    Mahesh

    Hi Mahesh,
    there are tons of ways to do what you need. It all depends on how your workflow is organized and how complicated it may become.
    Alternative 1:
    Export your Excel file as a cvs and convert cvs to XML (which shouldn't be so hard).
    Pro: Relative easy transformation.
    Con: Every time you want to convert the Excel file to XML you first needs to export it out of Excel by a manual step.
    Alternative 2:
    Save you Excel file as XML (e. g. the new *.xslx documents) and transform it as you like.
    Pro: Very clean way to do this. You can access the single source Excel file directly from Java. No further steps needed.
    Con: It's very very hard to program because the Excel xml structure is ridiculously complex.
    Alternative 3:
    You can create a little Excel VBA Script which generates the XML File.
    Pro: Easy programing.
    Con: Needs some experience in Visual Basic 6 programming.
    Alternative 4:
    Use http://jexcelapi.sourceforge.net/ or any other Excel-API to Access the Excel application out of Java.
    Pro: Clean way to do it. You need no further manual actions to prepare something. (maybe the most flexible and at the same time easyest way)
    Con: Additional license.
    Best Wishes
    esprimo

  • IDOC status 30 even if I set transfer IDoc immediately in we20

    Hi All,
    I am creating Bommat IDocs using 'MASTER_IDOC_DISTRIBUTE'  .I am getting the 30 status instead of getting status 3.
    Even   if I set transfer IDoc immediately in we20.
    Please let me know how to resolve this.
    Thanks,
    Vinay.

    Hi Vinay parakala
    Schedule back ground job to program RSEOUT00 regularly to process the 30 status idoc....
    Your program generates the idoc ... and RSEOUT00 will process you idocs which are in 30 status...
    i hope  above info helps you
    Note: enter Message type BOMMAT in  program RSEOUT00
    Thanks
    Ramesh

  • Read .csv file to XI and convert to IDOC

    Hi XI  Gurus,
    We have a requirement at work where we need to import .csv files to XI ehich then XI converts it to xml and posts an IDOC to SAP. I have tried creating this in XI with File Adapter with File Content Conversion.
    I gave all the things required for File Content Conversion but still my .csv file is not being picked up and read by XI. Iam not sure why this is happening but can anayone please help me with this.
    Also please do let me know if anyone has a tutorial related to this scenario.
    Thanks,
    Mayuresh.

    Hi All,
    I tried checking the error via Run Time Workbench (RWB) and going to Communication Channel Monitoring. It shows that there are some errors in the Communication Channel but when i go inside  it does not open an error window for me containing the error details.
    Just wanted to explain my file structure and the settings i have done in the 'File Content Conversion' of the 'File Adapter' so that you guys can tell me where i am wrong:
    Message Type: VENDOR_MT
    VENDOR_MT
        VendorNumber
        LastName
        SearchTerm
        Currency
      Address
          Street
          City
          Zip
          Country
    I am using IDOC receiver at the other end (CREMAS.CREMAS03).
    CSV File Structure: (Sample)
    34567, Reed, Jon, AUD, Smith Street, Melbourne, 3066, AU
    The settings that i have used in the File Adapter (Content Conversion tab) are:
    RecordSet Structure: VendorNumber, LastName, SearchTerm, Currency, Street, City, Zip, Country
    RecordSet Sequence: Ascending
    ignoreRecordSetName: true
    Vendor_MT.fieldNames: VendorNumber, LastName, SearchTerm, Currency
    Vendor_MT.keyFieldValue: 01
    Vendor_MT.fieldSeperator: ','
    Vendor_MT.endSeperator: nl
    Address.fieldNames: Street, City, Zip, Country
    Address.keyFieldValue: 02
    Address.fieldSeperator: ','
    Address.endSeperator: nl
    Please do let me know if the communicatioon channel settings i have made are correct. Also let me know if i am missing some major setting.
    Thanks,
    Mayuresh.

  • Is it wise to keep the Nikon camera files "DSC's"  after downloading them and converting to DNG files via Adobe converter for lightroom use. In other words do the DNG files have all the raw data I would ever need in processing or should I save the camera'

    Is it wise to keep the Nikon camera files "DSC's"  after downloading them and converting to DNG files via Adobe converter for lightroom use. In other words do the DNG files have all the raw data I would ever need in processing or should I save the camera's DSC files?

    DNG files do not contain some metadata supplied by the camera, which can be used by the manufacturer's software. Thus, if you don't keep the original Raw photo, you will lose this information.
    If your 1000% sure you're never going to use the manufacturer's software, then this isn't a problem. But who can be sure what software you will be using 10 years from now?

  • Downloading a binary via IE and getting the "corrupt or invalid" message

    Hi,
    I'm trying to resolve the issue when downloading a binary via IE and getting the "corrupt or invalid" message.
    I've tried using the /tr switch instead of /t, however I still get the same problem.
    I'm using the signtool.exe from SDK 8.1 and IE version 10.0.9200.17028
    I've tried using the following time stamp server but it did not responded:
    http://timestamp.verisign.com/scripts/timstamp.dll
    so I've used this one instead:
    http://timestamp.globalsign.com/scripts/timstamp.dll
    but even though I still get the "corrupt or invalid"  message.
    Thanks

    Hi,
    see
    http://blogs.msdn.com/b/ieinternals/archive/2014/09/04/personalizing-installers-using-unauthenticated-data-inside-authenticode-signed-binaries.aspx
    Questions regarding Internet Explorer 8, 9 and 10 and Internet Explorer 11 for the IT Pro Audience. Topics covered are: Installation, Deployment, Configuration, Security, Group Policy, Management questions. If you are a consumer looking for answers or to
    raise a question, it's highly recommended you head on over to http://answers.microsoft.com
    does the problem persist If you upgrade to IE11/win8.1?
    Rob^_^

  • Oracle adf file handling af: inputFile and convert to binary to send in

    Hi ...
    I want to try to do is select a file by a <af: inputFile and convert it to binary without having to upload it to the UCM .... I have some idea of how it would be something like this ....
    <af:form usesUpload="true">
    <af:inputFile label="Upload:"
    valueChangeListener="#{backingBean.fileUploaded}"/>
    <af:commandButton text="Begin"/>
    </af:form>
    import java.net.MalformedURLException;
    import java.net.URL;
    import javax.faces.application.FacesMessage;
    import javax.faces.context.FacesContext;
    import javax.faces.event.ActionEvent;
    import javax.faces.event.ValueChangeEvent;
    import javax.xml.namespace.QName;
    import javax.xml.ws.Holder;
    import org.apache.myfaces.trinidad.model.UploadedFile;
    import org.tempuri.*;
    String Binary = new String();
    public void fileUploaded(ValueChangeEvent event) {
    UploadedFile file = (UploadedFile) event.getNewValue();
    if (file != null)
    FacesContext context = FacesContext.getCurrentInstance();
    FacesMessage message = new FacesMessage(
    "Successfully uploaded file " + file.getFilename() +
    " (" + file.getLength() + " bytes)");
    context.addMessage(event.getComponent().getClientId(context), message);
    public void llamarWs(UploadedFile file){
    URL url;
    try {
    Holder<String> holder = new Holder<String>();
    Holder<Boolean> holderResponse = new Holder<Boolean>();
    url = new URL("10.10.20.152:8088/VTDWEntelSAEDWS/DWSAEDService.asmx?wsdl");
    DWSAEDServiceSoap servicePort = new DWSAEDService(url, new QName("http://tempuri.org/","DWSAEDService")).getDWSAEDServiceSoap();
    servicePort.uploadDocument(holder, arg1, arg2, arg3, arg4, arg5, holderResponse);
    String respuest = holder.value;
    } catch (MalformedURLException e) {
      but I can not make it work ...
    Edited by: 892270 on 16-Aug-2012 08:46

    User, please always tell us your jdev version as the solution might depend on it.
    Instead of posting some code, can you please elaborate on the use case? From the code I don'T understand what you try to do. Data (file) uploaded through the af:inputFile is binary. The file may only be a text file, but it might be an image. The inputFile doen not know as it only represents the data stream send from the client.
    In you code I don't see that you actually read the data from the stream, neither do I see any action on the stream. Can you describe what you mean by
    but I can not make it work ...You may read http://tompeez.wordpress.com/2011/11/26/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-1/ for more info about file handling in ADF
    Timo

Maybe you are looking for

  • How to display a report in tree format

    hai can any one send me the code to display the report in a tree format if i take example of customer numbers as tree branches and if i click each customer number the tree should expand showing all sales orders for a customer ragrds afzal

  • Change Default Swatch Library

    I created a swatch library in InDesign that I'm going to send to multiple computers and access there. Is there a way to make my swatch library the default library that comes up when I open a new document? I tried loading it and then saving my workspa

  • Data Palette not showing Managed Beans for Dynamic Web Project, JSF 2.1

    Hello. I have a problem in OEPE (oepe-juno-distro-win32.zip), where the Data tab in Palette shows no Managed Beans, even if I created them in the ManagedBeans in faces-config.xml using the Faces Config Editor. I have created a Dynamic Web Project wit

  • Can you download from i tunes to more than one i pod

    download from i tunes to more than one i pod

  • Runclient on win98

    I'm trying out the converter tutorial. I was able to successfully install and run j2ee, deploytool and ant on win98. Now I'm trying to run the application client. runclient -client ConverterApp.ear -name ConverterClient -textauth The login screen app