Help in creation of XML file for IDOC postings
Hi All,
Need help if anyone has knowledge/experience in creating XML files for IDOC processing.
We need to design an input file (in XML format) for creation of IDOCu2019s for purchase Invoices through Interface.
We have an existing input file, which is working correctly. We are trying to modify this existing input file for a new Tax Code (Non-deductible inverse tax liability). This tax code is working fine for manual postings. But, through IDOC, tax postings are not correctly triggering.
Could you please confirm if any one has experience on this, so that I can share more details for resolving.
Thanks & Regards,
Srini
Hello,
you can use CALL TRANSFORMATION id, which will create a exact "print" of the ABAP data into the XML.
If you need to change the structure of XML, you can alter your ABAP structure to match the requirements.
Of course you can create your own XSLT but that is not that easy to describe and nobody will do that for you around here. If you would like to start with XSLT, you´d better start the search.
Regards Otto
Similar Messages
-
Automate creation of web.xml file for tomcat 4.1.29
hi , this is with ref to Tomcat 4.1.29, if i am correct, each Servlet in the application has to be mentioned in the web.xml file for the Tomcat to know about it. Is there any way to automate the creation of web.xml file , depending on the contents of the Servlet folder of the application. Any way to escape from writing each Servlet name in web.xml file.
rcHello,
Maybe you should check if you can use Ant tool to do
that. I am not sure if it can help u.
Zeph.
http://ant.apache.org/
It will, specially if used in conjunction with XDoclets :
http://xdoclet.sourceforge.net/
XDoclet has Ant tasks to generate web.xml files. -
Issue in Creation of XML file from ABAP data
Hi,
I need to create a XML file, but am not facing some issues in creation of XML file, the in the required format.
The required format is
-<Header1 1st field= u201CValueu201D 2nd field= u201CValueu201D>
- <Header2 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 10 fields>
<Header3 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 6 fields/>
<Header4 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 4 fields/.>
<Header5 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 6 fields/>
</Header2>
</Header1>
Iu2019m using the call transformation to convert ABAP data to XML file.
So please anybody can help how to define XML structure in transaction XSLT_TOOL.
And one more thing, here I need to put the condition to display the Header 3, Header 4, Header 5 values. If there is no record for a particular line item in header 3, 4 & 5, I donu2019t want to display full line items; this is only for Header 3, 4 & 5.
Please help me in this to get it resolved.Hello,
you can use CALL TRANSFORMATION id, which will create a exact "print" of the ABAP data into the XML.
If you need to change the structure of XML, you can alter your ABAP structure to match the requirements.
Of course you can create your own XSLT but that is not that easy to describe and nobody will do that for you around here. If you would like to start with XSLT, you´d better start the search.
Regards Otto -
XML file for SEPA Credit transfer
Hi All,
I am working in ECC 6.0. The system was configured to generate XML files for credit transfer as per SEPA guidelines. The files are being created in the application layer. But the line length is being restricted to 255 characters. As per the specifications of a XML file in apllication layer. all information should be contained in one single line.
Secondly the job log for the payment medium creation program contains the below mentioned line among others -
"Incorrect Print Parameter" of message class "0K", message no. 091and message ID I
Can anybody tell me what is going wrong?HI,
Can you please help me in solving the issue when using the PMW format SEPA_CT.
My co. code currency is EUR and when paying the invoice which is in GBP i am not able to get the currency EUR in the DME file generated by the payment run instead I am getting the currency GBP.
As per the SEPA concept evey payment will be in EUR irrespective of the currency in which the invoice is raised. So please let me know what needs to be done to get the local currency EUR amount the DME file for the payment made against invoice raised in GBP...
Thanks in Advance..
Regards
Sanjeev -
Hi All,
pls can you help me
i need how will i get xml file from idoc
can you give me the steps to get it
thanks
marsreport zexternalfile .
tables : zzpublisher,
sscrfields.
data: it_publisher like standard table of zzpublisher,
wa_publisher like zzpublisher.
select * from zzpublisher into table it_publisher.
call function 'GUI_DOWNLOAD'
exporting
BIN_FILESIZE =
filename = 'C:externalfileskamal.XLS'
FILETYPE = 'ASC'
APPEND = ' '
write_field_separator = 'X'
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
IMPORTING
FILELENGTH =
tables
data_tab = it_publisher
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
if sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
Pls go thru the following websites :
A Step-by-Step Guide on IDoc-to-File Using Business Service in the XI Integration Directory
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e07dcaa0-a92b-2a10-3a96-b3d942bd1539
How to convert an IDoc-XML structure to a flat file and vice-versa in XI 3.0
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
Introduction to IDoc-XI-File scenario and complete walk through for starters.
/people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
Reward points if found helpful.... -
Need to generate a Index xml file for corresponding Report PDF file.
Need to generate a Index xml file for corresponding Report PDF file.
Currently in fusion we are generating a pdf file using given Rtf template and dataModal source through Ess BIPJobType.xml .
This is generating pdf successfully.
As per requirement from Oracle GSI team, they need index xml file of corresponding generated pdf file for their own business scenario.
Please see the following attached sample file .
PDf file : https://kix.oraclecorp.com/KIX/uploads1/Jan-2013/354962/docs/BPA_Print_Trx-_output.pdf
Index file : https://kix.oraclecorp.com/KIX/uploads1/Jan-2013/354962/docs/o39861053.out.idx.txt
In R12 ,
We are doing this through java API call to FOProcessor and build the pdf. Here is sample snapshot :
xmlStream = PrintInvoiceThread.generateXML(pCpContext, logFile, outFile, dbCon, list, aLog, debugFlag);
OADocumentProcessor docProc = new OADocumentProcessor(xmlStream, tmpDir);
docProc.process();
PrintInvoiceThread :
out.println("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>");
out.print("<xapi:requestset ");
out.println("<xapi:filesystem output=\"" + outFile.getFileName() + "\"/>");
out.println("<xapi:indexfile output=\"" + outFile.getFileName() + ".idx\">");
out.println(" <totalpages>${VAR_TOTAL_PAGES}</totalpages>");
out.println(" <totaldocuments>${VAR_TOTAL_DOCS}</totaldocuments>");
out.println("</xapi:indexfile>");
out.println("<xapi:document output-type=\"pdf\">");
out.println("<xapi:customcontents>");
XMLDocument idxDoc = new XMLDocument();
idxDoc.setEncoding("UTF-8");
((XMLElement)(generator.buildIndexItems(idxDoc, am, row)).getDocumentElement()).print(out);
idxDoc = null;
out.println("</xapi:customcontents>");
In r12 we have a privilege to use page number variable through oracle.apps.xdo.batch.ControlFile
public static final String VAR_BEGIN_PAGE = "${VAR_BEGIN_PAGE}";
public static final String VAR_END_PAGE = "${VAR_END_PAGE}";
public static final String VAR_TOTAL_DOCS = "${VAR_TOTAL_DOCS}";
public static final String VAR_TOTAL_PAGES = "${VAR_TOTAL_PAGES}";
Is there any similar java library which do the same thing in fusion .
Note: I checked in the BIP doc http://docs.oracle.com/cd/E21764_01/bi.1111/e18863/javaapis.htm#CIHHDDEH
Section 7.11.3.2 Invoking Processors with InputStream .
But this is not helping much to me. Is there any other document/view-let which covers these thing .
Appreciate any help/suggestions.
-anjani prasad
I have attached these java file in kixs : https://kix.oraclecorp.com/KIX/display.php?labelId=3755&articleId=354962
PrintInvoiceThread
InvoiceXmlBuilder
Control.javaYou can find the steps here.
http://weblogic-wonders.com/weblogic/2009/11/29/plan-xml-usage-for-message-driven-bean/
http://weblogic-wonders.com/weblogic/2009/12/16/invalidation-interval-secs/ -
How to dpwnload one XML file for each report row
Hi all,
i have a report on the products table with about 1000 rows
desc of table products
product_id varchar (10)
product_desc varchar2 (2000)
I would like to download on the file system an xml file for each row of the report
the nane of each xml file = <product_id>.xml
thanks in advance
kmHi,
You would probably find it better to search on the PL/SQL forum as this is more their area than Apex.
From what I can see in there (and there are a number of examples that would help you), you need to do something like:
DECLARE
vPATH VARCHAR2(50) := '/DEV';
vFILENAME VARCHAR2(50);
vFILE UTL_FILE.FILE_TYPE;
BEGIN
FOR C IN (SELECT PRODUCT_ID, PRODUCT_DESC FROM PRODUCTS)
LOOP
vFILENAME := C.PRODUCT_ID || '.xml';
vFILE := UTL_FILE.FOPEN(vPATH, vFILENAME, 'W');
UTL_FILE.PUT_LINE(vFILE, '<xdr>');
UTL_FILE.PUT_LINE(vFILE, '<product_id>' || C.PRODUCT_ID || '</product_id>');
UTL_FILE.PUT_LINE(vFILE, '<product_desc>' || C.PRODUCT_DESC || '</product_desc>');
UTL_FILE.PUT_LINE(vFILE, '</xdr>');
UTL_FILE.FCLOSE(vFILE);
END LOOP;
END;I haven't included exception handling etc and you should check on the PL/SQL forum to see if there are better examples!
Andy -
Hello Guru,
could you please help with my issue with Fiori Installation.
We want to install SAP Fiori Front-End (GW+UI) on the Sandbox system with SAP Netweaver 7.3.1. (SP14)
Gateway component (SAP GW CORE 200 SP10) was installed without any problems.
But I need to install UI-add-on (NW UI Extensions v1.0) and when I try to install it via SAINT, transaction said me that I need to generate xml-file for it (as in General notes for UI add-on mentioned).
But I have Solution Manager 7.0.1 and in MOPZ for this version I do not have option "install Add-on" as it written in Guide for ui add-on installation.
Could you please help me with advice how to generate xml-file for UI add-on installation on SolMan v.7.0.1?
If where is no way, but only to upgrade Solution Manager, maybe somebody could give me xml-file for your system (for NW 731) and I will change it to my needs, I will be very grateful!
Thanks in advance for any help!!!
Bets regards,
Natalia.Hello Guru,
could you please help with my issue with Fiori Installation.
We want to install SAP Fiori Front-End (GW+UI) on the Sandbox system with SAP Netweaver 7.3.1. (SP14)
Gateway component (SAP GW CORE 200 SP10) was installed without any problems.
But I need to install UI-add-on (NW UI Extensions v1.0) and when I try to install it via SAINT, transaction said me that I need to generate xml-file for it (as in General notes for UI add-on mentioned).
But I have Solution Manager 7.0.1 and in MOPZ for this version I do not have option "install Add-on" as it written in Guide for ui add-on installation.
Could you please help me with advice how to generate xml-file for UI add-on installation on SolMan v.7.0.1?
If where is no way, but only to upgrade Solution Manager, maybe somebody could give me xml-file for your system (for NW 731) and I will change it to my needs, I will be very grateful!
Thanks in advance for any help!!!
Bets regards,
Natalia. -
Creation of rule file for adding aliases to Members
Please help me in creation of rule file for adding of aliases to the members. I have created a new alias table along with default alias table.
These are the members and alias names for the newly created alias table.
0000002452 TA
0000002459 HJ
0000002460 HK
0000002462 HM
0000004012 CB
0000004015 EA
0000004025 BA
0000004070 DA
0000004087 GC
0000004088 FD
0000006231 CM
0000009103 WP
0000009106 WV
0000009126 WW
0000008458 NH
0000008475 NY
0000008481 NF
0000008483 NG
The below are the members and aliases for the default alias table.
0000001209 P&S Storage Facilities
0000001210 1210 US Procurement & Supply
0000002452 Warren Truck Assembly
0000002459 Toledo I Assembly
0000002460 Toledo II Assembly
0000002462 Toledo III Assembly
0000004001 US Manufacturing Group Office
0000004012 Jefferson North Assembly
0000004015 Belvidere Assembly
0000004025 Sterling Heights Assembly
0000004070 Newark Assembly
0000004087 St Louis North Assembly II
0000004088 St Louis South Assembly II
0000004199 Pilot Operations
0000004501 Opm
0000005111 Kokomo Casting
0000005203 Trenton Engine
0000005205 Kenosha Engine
0000005209 New Mack Avenue Engine
0000005304 Detroit Axle
0000005305 Kokomo Complex
0000005308 Indiana Transmission
0000005403 New Castle Machining & Forge
0000005404 McGraw Glass
0000005406 Toledo Machining
0000006203 Warren Stamping
0000006204 Twinsburg Stamping
0000006215 Sterling Heights Stamping
0000006231 Conner Avenue Assembly
0000002100 2100 Sales & Marketing
0000005221 GEMA - Plant1 Ops
0000009006 9006 Canadian Customs
0000009008 Canadian Manufacturing Group Office
0000009103 Windsor Assembly
0000009104 Etobicoke Casting
0000009106 Pillette Road Assembly
0000009126 Bramalea Assembly
0000008458 Atos
0000008475 Saltillo Truck Plant
0000008481 Toluca Assembly Plant
0000008483 Lago Alberto Truck Plant
Now I have to create rule files to update these aliases.
Please elaborate, so that it will be clear for me. As I am new, please make it up with steps.You dont need to create a rule file. You can create a alias table like this in a notapad
$ALT_NAME 'First'
0000002452 TA
0000002459 HJ
0000002460 HK
0000002462 HM
0000004012 CB
0000004015 EA
0000004025 BA
0000004070 DA
0000004087 GC
0000004088 FD
0000006231 CM
0000009103 WP
0000009106 WV
0000009126 WW
0000008458 NH
0000008475 NY
0000008481 NF
0000008483 NG
$END
and Save it as First.alt and You can import like this
1)Open the outline in edit mode.
2)Select Outline > Import alias table.
3)In the Open dialog box, select the alias table import file.
4)Click OK.
go to outline properties and the new alias table must be made Set as active to view the alias names.
you can create and import up to 10 alias tables -
How to create an XML File for Gantt?
Hi Everybody.
I need a Gantt in Web Dynpro ABAP. I need it for the boss to do a Forecast for Vacation. I Hope this is understanding.
Did Anyone know how can i create a XML File for the Gantt at runtime?
Thanks
MSiHi Marcus,
the following link is to the JNet/JGantt developer doco
[JNet/JGantt Developer Documentation|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/lw/uuid/f010ec31-9658-2910-3c83-c6e62904eceb]
included in this is the:
[Schema for XML|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/com.sap.km.cm.docs/lw/webdynpro/jnet_jgantt%20developer%20documentation/schema/xml-spy/jnet-schema.html]
You can use this to build XML to represent a gantt like chart.
I did this to build XML to represent employee avaliablity - although we fronted the gantt through WD Java not ABAP - the java applet called is the same (I believe).
Don't underestimate the work required to tweek your data into a decent layout. It took me days.
There may be tools/api to help generate the XML - I don't know of them - I'd look forward to seeing any other replies to this thread from people who have used/built any. An example of a class that generates JNet XML - CL_SPI_UI_JNET - but this does not seem to be a Gantt display.
Cheers,
Chris -
Wrong currency in intrastat XML file for Zhech Republic
I'm having problem with intrastat XML file for Zhech Republic currency code. In selection I have defined to have report in EUR currency and all entries are correctly in EUR. But when created XML file the currency code is CZK even values are EUR values. XML field <currencyCode>CZK</currencyCode>.
Why and ow this can be corrected?
Best Regards
Johanna NissinenHI,
Can you please help me in solving the issue when using the PMW format SEPA_CT.
My co. code currency is EUR and when paying the invoice which is in GBP i am not able to get the currency EUR in the DME file generated by the payment run instead I am getting the currency GBP.
As per the SEPA concept evey payment will be in EUR irrespective of the currency in which the invoice is raised. So please let me know what needs to be done to get the local currency EUR amount the DME file for the payment made against invoice raised in GBP...
Thanks in Advance..
Regards
Sanjeev -
Mutiple mapping XML files for one datasource
One of our projects raised the following question. Any help would be greatly appreciated.
"Can we have mutiple ToplinkMappings.xml files for one database? The reason we are looking at it is, our toplinkMappings.xml file size is keep growing in size(right now 2.2MB), we are getting into issues while comparing with the previous versions. The PVCS diff tool and beyond compare tools are not able to interpret the corresponding blocks of code on both the versions properly."
HaiweiHi Haiwei,
Yes, you can have multiple deployment.xml files in a session. Take a look at Configuring Multiple Mapping Projects.
--Shaun -
XML file for GigE Vision camera
Hello,
I am working on a design of GigE Vision camera. It should be very simple linescan camera. I implemented the whole required GigE Vision register set, can communicate with the camera in MAX. The problem is that I need to creata this XML file for the camera.There is this XML file here:
http://www.emva.org/cms/upload/Standards/GenICam_Downloads/SFNC_Reference_Version_2_0_0_Schema_1_1.x...
What should I do with it? My first version of the camera will have 2 funcions: turn it on and turn it off I am bit confused, because the xml file template has lots of functions, that I don't really need. Should I delete them? Or leave inside with default values? What does minimal configuration XML file need?
Regards,
Linus
Solved!
Go to Solution.linru wrote:
Thank you very much! Perhaps I was too concentrated on digging through various documents and missed the important info.
And one more question: how does NI software build the *.icd file? By reading XML file? Or by reading registers in my camera?
Both. The XML is processed by the GenApi software component which then translates it to register operations. The XML file thus controls what features are visible based both on the XML file as well as the camera registers (features in the XML may be conditionally available based on the <pIsImplemented< tag). Next, the IMAQdx ICD file contains the subset of features in the XML file that are available and are tagged as <Streamable>, meaning they can be saved to a settings file.
Eric -
Possible elements in the instanceconfig.xml file for presentation services
g'day
Has anyone here come across a list of all the possible elements that can be put in the configuration file for a presentation service, instanceconfig.xml ?<P>
I have found next to nothing in the documentations, about what can be configured there.<P>
What I am specifically after is: How can I change the default listening port for the Presentation Service? The default port is 9710 and I want to move to another port.<P>
Also, how can I move the JavaHost from the default port 9810? I can change the file <i>OracleBI/web/javahost/config/config.xml</i> to reflect the change. Once the JavaHost has been restarted it starts up on the expected port, but the Presentation Service still tries to communicate over RPC to port 9810. How do I configure the presentation service to search for the JavaHost on a non-default port?<P>
I have boiled it down to my original question: What are the possible values I can configure in the instanceconfig.xml file?<P>
Any comments here would be great.<P>
Cheers,<br>
BorkurSo, I had a little breakthrough here.
I found in the OBIEE deployment guide, page 142:
To change the Presentation Services listener port
1 Open the instanceconfig.xml file for editing.
2 Locate the <WebConfig> element.
3 Within the <WebConfig> tags, create the element <RPC> and assign it the RPC Listener Port
value for the BI Presentation Services instance, as shown in the following example.
<WebConfig>
<ServerInstance>
<RPC>
<Listener port="9715" />
</RPC>
</ServerInstance>
</WebConfig>
NOTE: In the preceding example, the RPC Listener port for the BI Presentation Services instance
has been changed to port 9715 from the default of 9710.
4 Save changes to the file.
This almost works. The RPC element has been deprecated, as was reported in the sawserver.out.log:
The configuration entry 'RPC/Listener' is deprecated. Please refer to the admin guide for more information.
What I then did was to just remove the RPC elements and leaving the Listener element straight under there ServerInstance element. This seems to have solved the problem.
I still have to figure out how to let the Presentation Service know that I have moved the JavaHost to antoher port ...
Cheers,
Borkur -
How to generate an XML file for an animation of IK armature
Can someone please tell me how to generate an XML file for an animation of IK armature.
I have a 5 keyframe/16 frame animation of a human character made up of a series of moveiclip symbols that is animated with an IK armature. I need the XML information from the animation.
When I go to Commands > Export Motion XML I get the error message "There is more than one object on frame 1" and then nothing happens.
Thank you,
cI hope that's not the case. I want to write to adobe about it. I think it's a great feature and it functions really well even though it is not a very developed IK tool. My biggest issue with it is ouput options and integration with motion tweens.
I have seen a lot of examples of animators using it online, just no one talked about output. I just feel it hasn't been developed. It can generate a sprite sheet but only for a single pose frame of the animation, and not all the key frames or pose tweens. I find that functionality quite odd, as if adobe just forgot about IK when added in sprite sheets, etc. and the reason it half works is just an accident.
Maybe you are looking for
-
HT203216 my iPhone calendar will no longer sync to my outlook on my mac
if i enter something on my iphone it will not sync to my computer (a mac) where i use outlook for my calandar- please help. I know that itues used to be an option but i have updated so i don't have that option any more
-
What to specify in my JDBC receiver communication channel
Hi! In my Receiver comm channel I have selected Adapter Type:JDBC Receiver Transport protocol: JDBC 2.0 Message Protocol: XML SQL Format Adapter Engine: Integration server JDBC driver:?????? Connection: ?????? I dont have any idea as what to give
-
There has to be more options to add your children
Is there another way that I may create an account for my 8 year old ? I do not have a credit card, however, I do have a debit card. Not everyone wants or uses a credit card, and it stated that in order "to create an account for a child, you must veri
-
Hi, I'm trying to check installed components on XI box from URL: http://<host>:<javaport>/sap/monitoring/SystemInfo But Im getting error 403 Forbidden You are not authorized to view the requested resource. So what user roles or rights do I need to a
-
This is probably a new-user "stupid" question but...how do I remove the navigation bar from the bottom of the screen?