Problem in creatinga sales order idoc into XML file in the same appl server
Hai....friends....
I am tring to send an sales order as iDOC to a xml port in the same application server....
1. have created a xml port with path..\usr\sap\RRM\SYS\global\.
2. assigned it to logical system.
3.Have a RFC destination of TCP/ip(LOCAL_EXEC)
but in bd64 after creating model view when i am generating partner profiles a tRFC PORT has been automatically created.
then finally the IDOc has been created but its saying....IDOC CANNOT OR SHOULD NOT BE SENT...
Pls help me regarding this...
thx,
ram
Hi Thanks for your updates,
But I got the same error, while pass the data from abap into XML.
error message,what I am getting is
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
Invalid at the top level of the document. Error processing resource 'file:///C:/tempcustomers.xml'. Line 1, Position 1
#<?xml version="1.0" encoding="utf-16"?>
Thanks
Gowrishankar
Similar Messages
-
Howto transform a Sales Order (idoc) into xml file and download it?
I need to tranform a Sales order into an xml file such that I could download the file onto my disk. I try to transform an IDOC.
I do the following from an example and I get an xml document on screen but I do get get any file downloaded:
DATA: document TYPE REF TO if_ixml_document.
document = g_ixml->create_document( ).
DATA: ostream TYPE REF TO if_ixml_ostream.
ostream = g_stream_factory->create_ostream_uri(
system_id = 'file://C:\test.xml' ).
DATA: renderer TYPE REF TO if_ixml_renderer, rc TYPE i.
renderer = g_ixml->create_renderer( ostream = ostream
document = document ).
rc = renderer->render( ).
document->render( ostream = ostream recursive = ' ').
Is there something else I should do? Is there another approach for transforming a sales order to an xml file.
The R/3 4.6 system is used.
Thank you
-eglese-Hi Eglese,
Another option could be to use XML port configured for the IDOC and use the XML files generated be extracted from Web Dynpro using a file download UI element.
Thanks and Regards,
Sam Mathew -
Converting Dom Document object into XML file removes the DTD
Hi All
My xml is dtd. I have one xml file. i changed the node value after that i want to create a xml file with the same name. I created new xml file but i am not seeing the old dtd in the new file. This process is done with the help of jaxp.
My code is given below
File fileInput = new File("input.xml");
File fileOutput = new File("output.xml");
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setExpandEntityReferences(false);
DocumentBuilder builder = factory.newDocumentBuilder();
Document document = builder.parse(fileInput);
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer();
transformer.setOutputProperty(javax.xml.transform.OutputKeys.INDENT, "true");
transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "2");
DOMSource source = new DOMSource(document);
FileOutputStream fos = new FileOutputStream(fileOutput);
StreamResult result = new StreamResult(fos);
transformer.transform(source, result);
Thanks in advanceThe Transformer API does not guarantee the preservation of that information. You may want to check the DOM L3 Load/Save package (http://java.sun.com/javase/6/docs/api/index.html). Alternatively, you may force things by setting the additional output properties 'doctype-public' and 'doctype-system'.
-
Hibernate mapping XML files for the two SQL Server tables below.
Hello all..,
Question 1:
I am working on a project that needs to support a database with an inherited legacy schema that you cannot change. The schema is provided below.Hibernate mapping XML files for the two SQL Server tables below. Please provide those two XML files. Assume some hypothetical package and class names. Assume that no "fancy" stuff such as lazy initialization, optimistic locking etc is needed at this time.
CREATE TABLE [SURVEY_ANSWERS] (
[ANSWER_ID] [int] IDENTITY (1,1) NOT NULL,
[QUESTION_ID] [int] NOT NULL,
[POSITION] [int] NULL,
[TEXT] [varchar](350) NULL
CREATE TABLE [dbo].[SURVEY_QUESTIONS] (
[QUESTION_ID] [int] IDENTITY (1, 1) NOT NULL ,
[TEXT] [varchar] (350) NULL
GO
ALTER TABLE SURVEY_ANSWERS
ADD CONSTRAINT pk_SURVEY_ANSWERS PRIMARY KEY(ANSWER_ID,QUESTION_ID);
ALTER TABLE [dbo].[SURVEY_QUESTIONS] ADD
PRIMARY KEY CLUSTERED
[QUESTION_ID]
GO
ALTER TABLE [dbo].[SURVEY_ANSWERS] ADD
FOREIGN KEY
[QUESTION_ID]
) REFERENCES [dbo].[SURVEY_QUESTIONS] (
[QUESTION_ID]
)Question 2:
Assume that you are working on a project developing, say, a banking application. You are the Architect and thinking that Hibernate ORM should be used for the entire access to the relational database. As usual, you have created (or auto-generated) a set of HBM XML files as well as POJOs for which you define the mappings. Assume now that a new requirement has just popped up. The system needs to be able to import new bank accounts and user information in bulk from a very large XML file at once and store it in the database. Assume the XML file contains all necessary information to populate fields in database tables. As performance is very important for this operation. Given this description, how would you approach the problem?
Please describe briefly.
-Thanks and regards
Praveen SoniYou're not fooling anyone Dennis_Mox. But nice try.Jeez, man. Mail me at denismox[at]yandex.ru, I will show you that exact test, dammit.
-
Conversion of inbound IDOC into XML file
Hi experts,
We have an inbound idoc (FIDCC2) that starts and triggers the creation of an FI document. We would like now, that, instead of creating the FI document, the inbound IDOC creates an XML file on a given directory, with the contents of the idoc. Can anybody explain how to configure this?
Many thanks in advance,
John De Coninck.John,
Firstly, need more information. If I understand you correctly, you are getting an inbound FI document that is created as an IDOC and it posts into FI (using an underlying FM/transaction etc). Now you want to convert this IDOC into XML on a folder (which can be found on AL11 (a.k.a App Server)).
Question 1: Where are you getting this IDOC from? Is it through EDI/ALE? What is your interfacing server (the one that is sending you this IDOC.
Question 2: What format is this IDOC coming in? Is it flat/XML etc?
Question 3: Is this an internally created IDOC? Is there an attached partner profile in WE20? If there is a partner profile that exists and you're using this to create the inbound IDOC, then there are process codes available to forward these IDOC's (e.g ED08).
There are many ways you can achieve this but everything depends on how your system is configured and how this processing is going on. -
I have added several CDs to my iTunes files, several Albums were added in the form of multiple files of the same Album title with random songs listed, but not the entire album in one file.
I have tried to reassemble the Album into one file, but could not find a way to do so.Generally setting a common Album title and Album Artist will fix things.
For deeper problems see Grouping tracks into albums.
tt2 -
How to Save XML file in the same directory as the swf file automatically?
Hi all,
I'm really new here with flash and actionscript 3, so i might not make any sense, probably. Any input is greatly appreciated.
So here's my problem, i'm trying to make a Top Score history for a flash game, which i load from an XML file. The problem comes to when i want to update the XML file. how do i do that automatically without prompting the user (ofcourse). I want it to be saved automatically to the same directory as the flash file.
here's my code right now, but it prompts the user where it wants to be saved, which i don't want to happen:
var xml:XML = <XML>
<topScoreList>
</topScoreList>
</XML>;
for(var i:Number=0; i<10; i++)
var Record:XML = <Record>
<score></score>
<playerName></playerName>
</Record>;
Record.score.appendChild(topScores[i].toString()); //topScores[] -> class variable containing scores
Record.playerName.appendChild(topNames[i].toString()); //topNames[] -> class variable containing names
xml.topScoreList.appendChild(Record);
var ba:ByteArray = new ByteArray();
ba.writeUTFBytes(xml);
var fr:FileReference = new FileReference();
fr.save(ba, "topScoreList.xml");yeah that makes sense, actually - after reading a dozen more forums. It's really weird tho that flash doesn't have a Buffer writer, unlike other programming frameworks.
But yeah, thanks. i'll start reading on flash.net.SharedObject, correct ? Thanks.
Anyways, if anyone out there has a different input, will be greatly appreciated!! -
How to prevent modifying the same sales order in R/3 & CRM at the same time
Guys,
We are using CRM 5.0& R/3 4.6C. We have the middle set up. I have noticed that its possible to open the same sales order in R/3 and CRM in the change mode. I believe this could cause inconsistenices if the users modify the same order in different systems. Is there a standar way to prevent this from happening.
Is there something like a change lock like we have the distribution lock?
AnirudhHi,
As per OSS Note 705200 scenario X, Y and Z are supported with R/3 4.6C. Even if you use Scenario A, SAP wont support that. I would suggest sceario Z to be implemented. This would convert all the CRM order into R/3 order as soon as they are transferred to R/3. As a result the order can now only be modified in R/3 and all the changes would flow back into CRM maintaining the integrity between the systems.
Refer to OSS Note 541113 for details.
Regards,
Gaurav Gera -
How to export all tracks into audio files with the same duration
Hi everybody.
I am trying to export all the tracks into different audio files.
It's 10 soft. instruments and an audio track. I tried with "File>Export>All Tracks as Audio File but the result is 11 audio files with different lengths. As the song is 3 minutes and 20 seconds I would like every single track to be 3.22 sec long.
How do I do it? In fact, each track is composed not only by played instruments but also by moments of silence.
Thanks!!
Alessandrosambino wrote:
I tried with "File>Export>All Tracks as Audio File but the result is 11 audio files with different lengths. As the song is 3 minutes and 20 seconds I would like every single track to be 3.22 sec long.
The files are different lengths because each instrument does not stop playing at the same moment. It would accomplish nothing other than waste disk space if Logic appended silence to the end of each file in order to make each track the same length. The different lengths you see mean nothing because the absence of appended silence means nothing.
each track is composed not only by played instruments but also by moments of silence.
Naturally. And that silence is accounted for in your exported files, when the silence appears at the beginning of the track, and when it appears during the track. It just isn't appended at the end because that would be pointless. Consider this project, consisting of four tracks:
When I use the command File > Export > All Tracks as Audio Files, Logic will produce four files that look like this:
The files are not equal in length, which is perfectly fine. What's important is that they all start at bar 1, and will align properly when imported into some other program. So all you need is the command you already used: File > Export > All Tracks as Audio Files. In one step, it will produce all the files you need, and it will produce them correctly.
By using Bounce, you would be gaining nothing except extra work, because you would have to do it separately for each file you wanted to produce. With Export > All Tracks as Audio Files, you get all your files with just one command.
iSchwartz wrote:
exporting tracks means that any panning or automation will not be rendered. So if you want the engineer to put up all of your tracks at unity gain (all faders at zero) and have your tracks & stems reproduce the mix you're hearing at your studio, use bounce, not export.
If you want to have your tracks & stems reproduce the mix you're hearing at your studio, there's no need to go to the extra effort of using Bounce instead of Export. You only need to enable (in the Export dialog) the checkbox "Include Volume/Pan Automation." This is explained on p. 1022. When you do this, any panning or automation will indeed be rendered. -
Produce 2 different xml files from the same PDF
Hi all
I need to produce a PDF document which will produce two different XML files depending upon which option ('file A' or 'file B') the user chooses.
One file needs to capture most of the data from the PDF, the second file only needs to capture some of the data from the PDF.
Is there a straightforward and efficient way of doing this (i am new to lifecycle)?
ThanksLiveCycle will extract all bound data fields into the XML data. I don't believe that you can change data binding at run time. One thing you could do is to have a process that evaluates the data coming from the form by examining one of the fields. If the data matches a 'file A' type then just pass along the data. If it matches a 'file B' type then run an XSLT transformation to get the other form of the data.
-
PRICING Procedure in SAP for an Incomming Sales Order IDOC
Hi Friends,
Here is a situation what we have and what we intend to do.
We would be getting a Sales Order IDOC and when it hits the SAP..it comes with
-Material, Qty and Price per material
-Total Freight
-Total Tax
i.e the Pricing conditions are not maintained in SAP at all..we would just get the IDOC externally and the SAP needs to read the material, Qty at line item,
take the total freight as it comes, and total Tax as it comes in the Idoc.
My thoughts were to have all the Conditons PR00 (ZR00), KF00 (ZF00), UTXJ (ZTXJ) . ZR00 to set as Manual condition. ZF00 as header Freight and Manual condition, ZTXJ as header condition and Manual.
I therefore was trying to figure out the best way to set the pricing procedure.
Please let me know if I am on right track if not which is the way I need to set.
Thank you
RaviHI Ravi,
I think your issue is solved now...so for the benefit of SDN members....can you share the solution..as I am also working on the same requirement !!
Thanks in advance
Mayank -
hi,
I have to export production order data to an xml file and to do this I want to use an IDoc but I don't know how I can map an Idoc to an XML document after I created it. Please help meHi,
I created a custom IDoc for a production order and its segments, now I have to export this IDoc to an XML file at the same time to a print process which is start from an existing report and to do this I'd like to insert the code to fill the IDoc in an internal form of the existing report and than I could associate the IDoc to a message type that is associate to the function module "IDOCS_OUTPUT_IN_XML_FORMAT" to create the XML file from IDoc. can you tell me if I can proceed in this way to realize my project and how I can send my IDoc from the same form where I fill it. thank you -
Merging X XML files, sorting the resultlist and finally execute a distinct?
I have several questions about an XSLT file that I should write:
1� First, I get X paths to XML files. It can be 2, 3, 4, ... whatever a number. I don't know exactly the total amount of XML files.
I need to merge them dynamicly to one resultset.
2� Next, I need to sort them on a specific node (remark: every XML file has the same DOM tree)
3� Finally, I want to distinct the values because some of the nodes are in file 1, 2, 3 ... So I don't want duplicates.
I guess this is not possible in XSLT? I can't use Java, so it should be done using XSLT ;;;Have a look here:
[http://www.jenitennison.com/xslt/index.html|http://www.jenitennison.com/xslt/index.html]
under the "Sorting" and "Grouping" sections. Also consider using XSLT 2.0, which has built-in grouping elements which make the convoluted XSLT 1.0 techniques unnecessary. -
Set type problem in sales order integrated into loyalty management
Hi experts,
I try to implement the sales order integrated into loyalty management. As notes said, I should use the set type REWARD_PRO_LOY to assign to a hierarchy for loyalty. But when I use this set type in hierarchy, I found I can only assign it when I choose "service" for product type. Then I find in the "REWARD_PRO_LOY" set type, there is a switch tab. In the tab, there is only "services". I don't understand this tab means. I want to assign this set type to "materials" type. I tried to created a new set type with the same attributes, but it seemed not to work. Is anybody can give me some advice to solve the problem?
Thanks a lot,
Best Regards,
Molly XinHi Molly Xin,
If you refer to your first screen print, its very evident that the product types with which products be created using this set type includes both "Materials" and Services".
We have created similar scenario and were able to create products with product type "Materials".
Pease let me know if you have any issues while creating products with product type "Materials".
Regards -
How to transfer sales order idoc from R/3 to CRM
Hi,
I want to generate the sales order idoc in R/3 (ORDERS) and replicates to CRM through XIF adapter.
The sales documents are not realy existing in R/3. We can only get the information from related biling documents and try to gerenate ORDERS idoc.
The problem is how to map R/3 idoc to CRM idoc(CRMXIF_ORDER_SAVE_M01). The administration console seems can only send the idocs but not receiving them.
Thanks,
InaHello Yina,
Can you please answer the questions? I am a little bit confused.
If you don't have the order in R/3, are you not going to create one when creating the ORDERS IDoc? If yes, then this order will go to CRM automatically if you have the middleware set properly.
If you are NOT creating any order in R/3 during the IDoc step, Why would you want the order in CRM when you don't have it in R/3?
Are you not going to keep the middleware between R/3 and CRM open? If you keep it open, the order from CRM will crossover to R/3 - in which case you could have created the order in R/3 in the first step itself !!!
If you are not keeping the middleware open between R/3 and CRM - I don't know why would you want to keep the orders in CRM, but not in R/3. Is it because of lack of good CRM consultants in the project?
Easwar Ram
http://www.parxlns.com
Maybe you are looking for
-
I have an IPod Classic loaded with software version 1.1.2. I tried to add some music to it from my ITunes library and got a message that the IPod could not be sybced because it cannot be read from or written to. Please tell me how I can fix this issu
-
Error Message when starting Lightroom
When I start Lightroom 3.0 I occasionally get the following error message. My RAW files are read from an external HD that has an automatic spin down "feature" that I can't de-activate. I suspect that may be the source of the problem. Can anyone confi
-
A question for the digital downloads.
So I have a digital download I am trying to use. After multiple attempts on two computers, it still does not work. It says the code is invalid even thought I am 100% sure that it is. Is there any help that can be given?
-
Unicode and Non-Unicode Instances in one Transport Landscape
We have a 4.7 landscape that includes a shared global development system supporting two regional landscapes. The shared global development system is used for all ABAP/Workbench activity and for global customization used by both regional production s
-
Is there a way to attach a file to a form in FormsCentral if you import a form of your own? I can only find information on how to allow file attachments on a form you create in FormsCentral.