Update PmtInf block in DMEE CGI XML Format
When F110 has multiple payment methods like ACH and Wire, the XML file has one PmtInfo block and the CdtTrfTxInf block matches the number of payment documents. Per the bank requirements, the file should have a new PmtInf block anytime there is a change in payment type, debit account or debit party information, or payment execution date.
Please suggest how to update the PmtInfo block.
Thanks!
The image fitting portion of your request can be implemented in your template. Select one or more image frame, and select the "Object > Fitting > Frame Fitting Options..." menu option. (That's what it is in the English version, anyway.) You can specify how an image will be positioned and scaled when placed in the frame, whether manually, by script, or by XML import.
As to the other two features, you are probably correct that they will require scripting. There are a couple of ways to do this in a totally automated way - you could write a script which would handle the XML import, and then post-process the document to make the desired adjustments. Or, you could use InDesign's XML Rules feature which uses an event-driven XML parser with which you can attach script actions to be fired off when certain conditions are met in the XML structure as it is being parsed.
The choice is partly one of style, how much the adjustments that will be made (e.g., to the tables) will affect following pages in the document, along with how you want the user to interact with the process.
Similar Messages
-
DME file in XML format in SAP 4.6C
Hi Experts,
For a Belgium client, I have a requirement to generate DME file in XML format for payments made to foreign and domestic vendors. I want to know the following,
1. Can DME file be generated in XML format using classic payment medium programs RFFOBE_E and RFFOBE_I.
2. If not why and what are the other options.
3. I also came to know that there is an options of using Payment medium workbench - through XML format trees BE_BEPDTA and BE_PIBDTA. But since we are in 4.6C, i am not able to create a payment format. Is there any support package or patch that is required.
4. I tried for SEPA_CT - again a XML format tree but was not very successful as that too was not available in SAP 4.6C. Is there any way that I can get this done in 4.6C - any support packages or patches available?
ThanksHi Kaylan,
could you please share that documentation with me too.
Thanks, Regards,
Alex Cardona -
xml format is missing , it works in chrome but not in firefox.
Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
*Press and hold Shift and left-click the Reload button.
*Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
*Press "Command + Shift + R" (MAC)
See also:
*https://support.mozilla.org/kb/how-clear-firefox-cache
*https://support.mozilla.org/kb/Deleting+cookies
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
*Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes -
Oracle reports in xml format end with stat_low = 6 stat_high = 0
hi
i have a problem with my reports
i have oracle application 11.5.10.2 on linux 32 redhat 4 update 5
after apply the RUP 6
my character_set is :American_America.AR8MSWIN1256
base lang American
install lang ARABIC
when i generate the reports in xml format i get:
Inventory: Version : 11.5.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
ZMCINVTRREG1 module: ZMC Transaction Register Report
Current system time is 04-AUG-2009 14:32:30
+-----------------------------
| Starting concurrent program execution...
+-----------------------------
Arguments
P_BREAK_ID='1'
P_RPT_UOM='2'
P_ORG='223'
P_QTY_PRECISION='3'
P_GLCC_STRUCT_NUM='50289'
P_TXN_DATE_LO='2009/08/04 00:00:00'
P_TXN_DATE_HI='2009/08/04 00:00:00'
P_AUDIT_DETAIL='2'
P_REASON_DETAIL='2'
P_LOC_DETAIL='2'
P_CATEGORY_DETAIL='2'
P_SERIAL_DETAIL='2'
P_LOT_DETAIL='2'
P_CATG_SET_ID='1'
P_CATG_STRUCT_NUM='101'
-- Start of Reports Command --
ar60runb
P_CONC_REQUEST_ID=373985
P_BREAK_ID='1'
P_RPT_UOM='2'
P_ORG='223'
P_QTY_PRECISION='3'
P_GLCC_STRUCT_NUM='50289'
P_TXN_DATE_LO='2009/08/04 00:00:00'
P_TXN_DATE_HI='2009/08/04 00:00:00'
P_AUDIT_DETAIL='2'
P_REASON_DETAIL='2'
P_LOC_DETAIL='2'
P_CATEGORY_DETAIL='2'
P_SERIAL_DETAIL='2'
P_LOT_DETAIL='2'
P_CATG_SET_ID='1'
P_CATG_STRUCT_NUM='101'
report=/oraapp/prodappl/inv/11.5.0/reports/US/INVTRREG.rdf
batch=yes
destype=file
desname=/oraapp/prodcomn/admin/out/PROD_apps/o373985.out
desformat=XML
-- End of Reports Command --
Request language is :
AMERICAN
Request territory is :
AMERICA
XML_REPORTS_XENVIRONMENT is set to:
/oraapp/prodora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
Enabling XML_REPORTS_ENVIRONMENT based environment switching
The Character-Set of the System is:
AR8MSWIN1256
Environment will now switch to UTF-8 code-set.
Parts of this log file may not display correctly
as a result. This is an expected behavior.
Converting parameters to UTF-8
-- Start of Reports Command Converted to UTF-8 --
ar60runb
P_CONC_REQUEST_ID=373985
P_BREAK_ID='1'
P_RPT_UOM='2'
P_ORG='223'
P_QTY_PRECISION='3'
P_GLCC_STRUCT_NUM='50289'
P_TXN_DATE_LO='2009/08/04 00:00:00'
P_TXN_DATE_HI='2009/08/04 00:00:00'
P_AUDIT_DETAIL='2'
P_REASON_DETAIL='2'
P_LOC_DETAIL='2'
P_CATEGORY_DETAIL='2'
P_SERIAL_DETAIL='2'
P_LOT_DETAIL='2'
P_CATG_SET_ID='1'
P_CATG_STRUCT_NUM='101'
report=/oraapp/prodappl/inv/11.5.0/reports/US/INVTRREG.rdf
batch=yes
destype=file
desname=/oraapp/prodcomn/admin/out/PROD_apps/o373985.out
desformat=XML
-- End of Reports Command --
XML_REPORTS_XENVIRONMENT is :
/oraapp/prodora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
XENVIRONMENT is set to /oraapp/prodora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
Previous NLS_LANG Environment Variable was :
American_America.AR8MSWIN1256
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.UTF8
stat_low = 6
stat_high = 0
emsg:was terminated by signal 6
*** glibc detected *** double free or corruption (!prev): 0x08bf6a78 ***
Report Builder: Release 6.0.8.25.0 - Production on Tue Aug 4 14:32:30 2009
(c) Copyright 1999 Oracle Corporation. All rights reserved.
Enter Username:
Reset original NLS_LANG in environment as :
American_America.AR8MSWIN1256
Program was terminated by signal 6
Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 373985.
Review your concurrent request log and/or report output file for more detailed information.
Executing request completion options...
------------- 1) PUBLISH -------------
Beginning post-processing of request 373985 on node APPS at 04-AUG-2009 14:32:37.
Post-processing of request 373985 completed at 04-AUG-2009 14:32:38.
Finished executing request completion options.
Concurrent request completed
Current system time is 04-AUG-2009 14:32:38
can any one help me with it????hi,,,
it seems OS package version conflict
Please check glibc and openmotif version (its responsible for reports)
and
Set the environment variable MALLOC_CHECK_=0 and bounce the Concurrent Managers
MALLOC_CHECK_ can be changed in two places :-
1. Add this to the $APPL_TOP/custom<TWO_TASK>_<HOSTNAME>.env
MALLOC_CHECK_=0
Then restart the concurrent managers and retest
2. Change it in the adovars.env file
Again bounce the concurrent managers and retest
THANKS (ZzZ)
Edited by: zzz on Aug 5, 2009 8:59 AM
Edited by: ZzZ on Aug 5, 2009 9:00 AM -
!!!URGENT!!!! -- Output Changes supplier details in an XML format
Hi all,
My platform is 11i Apps and 8i Database
I am really new to XML, however I have a requirment to achieve the following:
For updated or new suppliers, I need to output the new information in an XML format.
But, I am not sure how best to achieve this... can anyone offer me a some rough guidline where to begin.
Many thanks in advance
CheersPlease refer to the XSU document at:
http://otn.oracle.com/docs/tech/xml/xdk_java/doc_library/Production9i/doc/java/xsu/xsu_userguide.html -
Composer Process Report XML Format
Hi,
We generated 'Process Report' -- XML format in Oracle BPM Composer. After generating saved content in a xml file. When tried to open this file, getting error message like not in proper xml format etc., Have we missed any thing in installing or configuring Composer. pleased suggest.
-- Thanks .... Murthy@trevorbutler - Could you send us what version of Ant you're using and a sample of how you're using the <junit> Ant task? Additionally, can you validate that the example you gave for the JUnit output is from the <junit> Ant task and not the <junitreport> task? Could you also let us know which version of JUnit you used with Ant, just in case?
FWIW - The XML output that you see from running tests in JUnit via the <junit> Ant task is output that has been defined without specification by the folks at Apache Ant. There has been a lot of discussion on standardizing the output amongst the folks at TestNG, the Maven Surefire plugin and others, but I haven't seen anything standardized come out of that. Here is a wiki page that has some of that discussion http://wiki.apache.org/ant/Proposals/EnhancedTestReports. t's also important to note, that the aggregate results of the <junitreport> task contain a slight variation on the output produced by the <junit> task. Consequently, we have to emulate the lowest common denominator that we know will work with the tools out there that parse the XML output associated with an xUnit framework (e.g. - Ant tasks, CI server, etc). This being said, we rely on the community to keep us up to date with variations that we may have missed or for which need to update. It's not so much that we've decided to exclude any particular elements from the output, we just need help fine tuning as time goes on.
Thanks for the help.
-Brian -
Regarding conversion of invoice in XML format
Hi everyone,
I am working on smartforms and i require smartforms and its output in XML format, if its possible then please let me know the procedure to transmit smartforms output in XML format. Please reply, its urgent.
Thanks & Regards
V.B.In transaction SE80 browse menu Workbench -> Edit Object. In the popup window enter XSLT Program name (e.g. ZXSLT) and click on create button.
Enter the following code into the editor
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<!xsl:output encoding="utf-8" indent="yes"/>
<xsl:template match="D2CXML">
<PurchaseOrders>
<xsl:apply-templates/>
</PurchaseOrders>
</xsl:template>
<xsl:template match="item">
<PONO>
<xsl:attribute name="no">
<xsl:value-of select="EBELN"/>
</xsl:attribute> 1
<PORDNO>
<xsl:apply-templates select="EBELN"/>
</PORDNO>
<Vendor>
<xsl:apply-templates select="LIFNR"/>
</Vendor>
<PurchaseOrg>
<xsl:apply-templates select="EKORG"/>
</PurchaseOrg>
<PurchaseGrp>
<xsl:apply-templates select="EKGRP"/>
</PurchaseGrp>
<xsl:apply-templates select="X-MLSTRUCT"/>
</PONO>
</xsl:template>
<xsl:template match="X-MLSTRUCT">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="X-MLSTRUCT/item">
<Product>
<ItemNo>
<xsl:apply-templates select="EBELP"/>
</ItemNo>
<Material>
<xsl:apply-templates select="MATNR"/>
</Material>
<Qty>
<xsl:apply-templates select="MENGE"/>
</Qty>
<Price>
<xsl:apply-templates select="NETPR"/>
</Price>
</Product>
</xsl:template>
</xsl:transform>
Create Extraction Program
Create a report program using ABAP Workbench and the code of the extracting program will be as follows.
REPORT ZXML_EXTRACTION .
- - - - - - - - - - DATA DECLARATION - - - - - - - - --*
TYPE-POOLS: ABAP.
TYPES: BEGIN OF TY_XML,
EBELP TYPE STRING,
MATNR TYPE STRING,
MENGE TYPE STRING,
NETPR TYPE STRING,
END OF TY_XML.
TYPES: BEGIN OF TY_FINAL_XML,
EBELN TYPE STRING,
EKORG TYPE EKKO-EKORG,
EKGRP TYPE EKKO-EKGRP,
LIFNR TYPE EKKO-LIFNR,
XMLSTRUCT TYPE TY_XML,
END OF TY_FINAL_XML.
TYPES: BEGIN OF TY_EKPO,
EBELN TYPE EKPO-EBELN,
LIFNR TYPE EKKO-LIFNR,
EKORG TYPE EKKO-EKORG,
EKGRP TYPE EKKO-EKGRP,
EBELP TYPE EKPO-EBELP,
MATNR TYPE EKPO-MATNR,
MENGE TYPE EKPO-MENGE,
NETPR TYPE EKPO-NETPR,
END OF TY_EKPO.
TYPES: TY_TSRCLIN(1024) TYPE X,
TY_TSRCTAB TYPE STANDARD TABLE OF TY_TSRCLIN.
Global Data for XML Creation
DATA: G_XML_STRING TYPE STRING,
G_XML_STRING1 TYPE STRING,
G_FILENAME TYPE STRING,
G_PATH TYPE STRING,
G_FULLPATH TYPE STRING,
G_TITLE TYPE STRING,
G_LEN TYPE I.
DATA: G_XSLTP TYPE REF TO CL_XSLT_PROCESSOR,
G_IXML TYPE REF TO IF_IXML,
G_STREAM_FACTORY TYPE REF TO IF_IXML_STREAM_FACTORY,
G_ENCODING TYPE REF TO IF_IXML_ENCODING,
RESSTR TYPE REF TO IF_IXML_OSTREAM,
HTTP_CLIENT TYPE REF TO IF_HTTP_CLIENT,
G_SRCSTR TYPE REF TO IF_IXML_ISTREAM,
G_GEN_EX TYPE REF TO CX_XSLT_EXCEPTION,
G_MESSAGE TYPE STRING,
G_PROGNAME TYPE CXSLTDESC VALUE 'ID'.
Work Area
DATA: WA_XML TYPE TY_XML,
WA_EKPO TYPE TY_EKPO,
WA_EKPO1 TYPE TY_EKPO,
WA_SOURCE TYPE ABAP_TRANS_SRCBIND.
DATA: BEGIN OF WA_FINAL_XML,
EBELN TYPE STRING,
LIFNR TYPE STRING,
EKGRP TYPE STRING,
EKORG TYPE STRING,
XMLSTRUCT TYPE TABLE OF TY_XML,
END OF WA_FINAL_XML.
INTERNAL TABLES
DATA: T_XML TYPE TABLE OF TY_XML,
T_FINAL_XML LIKE TABLE OF WA_FINAL_XML,
T_EKPO TYPE TABLE OF TY_EKPO,
T_SOURCE TYPE ABAP_TRANS_SRCBIND_TAB,
T_SRCTAB TYPE TY_TSRCTAB.
- - - - - - - - - - SELECTION-SCREEN - - - - - - - - - - - - - - *
---Select options/Parameters--
SELECTION-SCREEN BEGIN OF BLOCK DOWNLOAD
WITH FRAME TITLE TEXT-002.
PARAMETERS: P_COMP TYPE CHAR1 AS CHECKBOX.
PARAMETERS: P_FILE TYPE RLGRAP-FILENAME.
SELECTION-SCREEN END OF BLOCK DOWNLOAD.
AT SELECTION-SCREEN.
IF NOT P_COMP IS INITIAL AND
P_FILE IS INITIAL.
MESSAGE E000(38) WITH 'Please enter the file name'(E01).
ENDIF.
IF NOT P_COMP IS INITIAL AND
NOT P_FILE IS INITIAL.
TRANSLATE P_FILE TO UPPER CASE.
G_LEN = STRLEN( P_FILE ) - 4.
IF P_FILE+G_LEN(4) NE '.XML'.
MESSAGE E000(38) WITH 'Please use the extension as .XML'(E02).
ENDIF.
ENDIF.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
G_TITLE = 'Result Document'(I01).
CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
EXPORTING
WINDOW_TITLE = G_TITLE
FILE_FILTER = '*.XML'
CHANGING
FILENAME = G_FILENAME
PATH = G_PATH
FULLPATH = G_FULLPATH.
IF SY-SUBRC = 0.
P_FILE = G_FULLPATH.
ENDIF.
- - - - - - - - - - LOGIC SECTION - - - - - - - - - - - - *
START-OF-SELECTION.
PERFORM CLEAR_VARIABLES.
PERFORM START_SELECTION.
END-OF-SELECTION.
WA_FINAL_XML-XMLSTRUCT[] = T_XML[].
APPEND WA_FINAL_XML TO T_FINAL_XML.
PERFORM CREATE_XML.
IF NOT P_COMP IS INITIAL.
PERFORM DOWNLOAD_FILE.
ENDIF.
*& Form START_SELECTION
Select all the Guids
FORM START_SELECTION .
SELECT HEBELN HLIFNR HEKORG HEKGRP
IEBELP IMENGE INETPR IMATNR
INTO CORRESPONDING FIELDS OF TABLE T_EKPO
FROM EKKO AS H INNER JOIN EKPO AS I
ON HEBELN = IEBELN.
LOOP AT T_EKPO INTO WA_EKPO.
WA_EKPO1 = WA_EKPO.
AT NEW EBELN.
REFRESH T_XML.
CLEAR WA_XML.
WA_FINAL_XML-EBELN = WA_EKPO-EBELN.
WA_FINAL_XML-LIFNR = WA_EKPO1-LIFNR.
WA_FINAL_XML-EKORG = WA_EKPO1-EKORG.
WA_FINAL_XML-EKGRP = WA_EKPO1-EKGRP.
ENDAT.
MOVE-CORRESPONDING WA_EKPO TO WA_XML.
APPEND WA_XML TO T_XML.
AT END OF EBELN.
WA_FINAL_XML-XMLSTRUCT[] = T_XML[].
APPEND WA_FINAL_XML TO T_FINAL_XML.
ENDAT.
ENDLOOP.
ENDFORM. " START_SELECTION
*& Form CREATE_XML
Create XML
FORM CREATE_XML .
Prepare for Transformation
WA_SOURCE-NAME = 'D2CXML'.
GET REFERENCE OF T_FINAL_XML INTO WA_SOURCE-VALUE.
APPEND WA_SOURCE TO T_SOURCE.
CLEAR G_XML_STRING.
CALL TRANSFORMATION ZXSLT
SOURCE (T_SOURCE)
RESULT XML G_XML_STRING.
IF SY-SUBRC <> 0.
ELSE.
G_XML_STRING1 = G_XML_STRING.
REPLACE 'utf-16' WITH 'utf-8' INTO G_XML_STRING.
ENDIF.
ENDFORM. " CREATE_XML
*& Form DOWNLOAD_FILE
Download the XML into a file
FORM DOWNLOAD_FILE .
Local Data
DATA: L_FILENAME TYPE STRING.
TRY.
CREATE OBJECT G_XSLTP.
CATCH CX_XSLT_EXCEPTION.
ENDTRY.
G_IXML = CL_IXML=>CREATE( ).
G_STREAM_FACTORY = G_IXML->CREATE_STREAM_FACTORY( ).
G_SRCSTR = G_STREAM_FACTORY->CREATE_ISTREAM_CSTRING(
STRING = G_XML_STRING1 ).
XML source is specified by stream
CALL METHOD G_XSLTP->SET_SOURCE_STREAM
EXPORTING
STREAM = G_SRCSTR.
CALL METHOD G_XSLTP->SET_RESULT_TABLE
EXPORTING
TABLE = T_SRCTAB.
RUN
TRY.
CALL METHOD G_XSLTP->RUN
EXPORTING
PROGNAME = G_PROGNAME.
CATCH CX_XSLT_EXCEPTION INTO G_GEN_EX.
G_XML_STRING = G_GEN_EX->GET_TEXT( ).
ENDTRY.
L_FILENAME = P_FILE.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = L_FILENAME
FILETYPE = 'BIN'
TABLES
DATA_TAB = T_SRCTAB.
IF SY-SUBRC = 0.
G_MESSAGE = 'File downloaded successfully'(I03).
ELSE.
G_MESSAGE = 'Error in downloading file'(I04).
ENDIF.
MESSAGE I000(38) WITH G_MESSAGE.
ENDFORM. " DOWNLOAD_FILE
*& Form CLEAR_VARIABLES
Clear the values of Global Variables
FORM CLEAR_VARIABLES .
CLEAR: G_TITLE,
G_FILENAME,
G_PATH,
G_FULLPATH,
G_LEN,
G_SRCSTR,
Work Areas
WA_SOURCE,
WA_XML,
WA_FINAL_XML.
REFRESH: T_XML,
T_SOURCE,
T_SRCTAB,
T_FINAL_XML.
ENDFORM. " CLEAR_VARIABLES
Edited by: Minal Nampalliwar on Jan 21, 2008 6:44 AM -
How to see the IDOC structure in XML format
Hi, I am ver new to MII. I configured connection between SAPand SAP MII and IDOC is triggering in SAP MII. I can see the idoc triggered in Message monitor.
Now my query is how to see the IDOC structure in XML format? I written a transaction where I am assigning transaction.xml to my Local.xml and trying to display with message action block. When I display the message I am getting message as below
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
There is no data in the xml, but in SAP side i seen data and segment which sent to MII as a IDOC. Please help me how to resolve this issue.Hi, Thanks for quick response.
In Message monitor I seen the IDOC list after executing POIT transaction code in SAP.
But the display button is disabled always in message monitor screen. I want to take this IDOC and save it in my SQL database. So I want to see this IDOC structure in XML format. Where i can see this structure? -
How to regenerate output in XML format after having assigned RTF Template
1. I created a concurrent request to get the output in XML data format
2. Having created RTF File and assigned Data Definition and Template through XML Administartor Responsibility
3. Now I want to make changes in Data Definition XML File, However I need to get the output file in XML data format, However Concurrent Request is not allowing me to get the XML output because Template is already assigned for the output and not able to de-assign template file from concurrent request.
For some reason in XML publisher, the end date for Template is disable, I am not able to update end date for template.
Is there any way to create an output in XML format through concurrent request after Template File is assigned to create an output? I will appreciate your help.This is for people who want to know more in detail. Problem is if you put end date then you have to recreate an entry and then have to go through the same process. However I have found a way to use the same file,
Get the template_id by running the following query
select * from xdo_templates_b
where template_code = 'TEMPLATE_CODE'
Run the following query to update the end_date to some previous date value
update xdo_templates_b
set end_date = to_date('6/9/2011','mm/dd/yyyy')
where template_id = 162
After that when you run request through concurrent request, it will not show the default template assigned to concurrent request. Run the request, output will be created in XML format.
Run the following query to use the template again
update xdo_templates_b
set end_date = null
where template_id = 162
Edited by: user9941374 on Jun 10, 2011 9:20 AM -
Receive idocs from SAP in XML format
Hi everyone.
Currently, to receive idocs, what we're doing is, we create an external RFC server, and listen to invocations of the RFC IDOC_INBOUND_ASYNCHRONOUS and IDOC_PROCESS_INBOUND. However, this leads us to receive idocs in EDI_DD/EDI_DD40 and EDI_DC/EDI_DC40 formats.
Is it possible to receive idocs in XML format via the RFC Server interface?
Thanks,
Mustansirhi shreya,
function Module Short text for function mod
HR_BE_DMFA_XML_DOWNLOAD Register XML conversionca
HR_PT_TAX_XML_DOWNLOAD
SDOK_LOIO_XML_DOWNLOAD_PUBLISH
SPRX_XML_DOWNLOAD Displaying the Payload
DMEE_DOWNLOAD_XML_TREE
DMEE_DOWNLOAD_XML_TREE_ABA DMEE: Download format tree
JITOUT10_DOWNLOAD_XML
GLOS_DOWNLOAD_XML
this function module you can use.
regards,
sandeep
Edited by: Sandeep patel on Jul 7, 2008 6:36 PM -
I have some servlets that are requesting tracking data from multiple carriers for an e-commerce site. The data is coming back in XML from each different carrier, but the format is different. Is there a way for me to create a "general" parsing method that will work for them all?
UPS:
<?xml version="1.0"?>
<TrackResponse>
<Response>
<TransactionReference>
<CustomerContext>Example 1</CustomerContext>
<XpciVersion>1.0001</XpciVersion>
</TransactionReference>
<ResponseStatusCode>1</ResponseStatusCode>
<ResponseStatusDescription>Success</ResponseStatusDescription>
</Response>
<Shipment>
<Shipper>
<ShipperNumber>12345E</ShipperNumber>
<Address>
<AddressLine1>2010 WARSAW RD</AddressLine1>
<City>ROSWELL</City>
<StateProvinceCode>GA</StateProvinceCode>
<PostalCode>30076</PostalCode>
<CountryCode>US</CountryCode>
</Address>
</Shipper>
<ShipTo>
<Address>
<AddressLine1>1000 MANSELL ROAD</AddressLine1>
<AddressLine2>CIM GROUP</AddressLine2>
<AddressLine3>APOLLO SECTION</AddressLine3>
<City>ROSWELL</City>
<StateProvinceCode>GA</StateProvinceCode>
<PostalCode>30076</PostalCode>
<CountryCode>US</CountryCode>
</Address>
</ShipTo>
... Airborne:
<?xml version="1.0"?>
<ECommerce action="Response" version="1.1" timestamp="2002/06/24T16:23:27" transmission_reference="DA71319F">
<Requestor>
<ID>COMPA_0124</ID>
<Password><![CDATA[********]]></Password>
</Requestor>
<Track action="Get" version="1.0" test="True">
<Shipment>
<TrackingNbr>1231230011</TrackingNbr>
<Result>
<Code>0</Code>
<Desc>Airbill found.</Desc>
</Result>
<ShipmentType>
<Code>1</Code>
<Desc>Document</Desc>
</ShipmentType>
<Service>
<Code>E</Code>
<Desc>Express</Desc>
</Service>
<Origin>
<Station>ROA</Station>
</Origin>
<Destination>
<Station>MCN</Station>
</Destination>
</Shipment>USPS:
<TrackResponse>
<TrackInfo ID="EJ958083578US">
<TrackSummary>
<EventTime>8:10 am</EventTime>
<EventDate>June 1, 2001</EventDate>
<Event>DELIVERED</Event>
<EventCity>WILMINGTON</EventCity>
<EventState>DE</EventState>
<EventZIPCode>19801</EventZIPCode>
<EventCountry/>
<FirmName></FirmName>
<Name></Name>
<AuthorizedAgent></AuthorizedAgent>
</TrackSummary>
<TrackDetail>
<EventTime>11:07 am</EventTime>
<EventDate>May 30, 2001</EventDate>
<Event>NOTICE LEFT</Event>
<EventCity>WILMINGTON</EventCity>
<EventState>DE</EventState>
<EventZIPCode>19801</EventZIPCode> <EventCountry/>
...and then there is FedEx.You could write one program that could accept any of those formats. But I wouldn't do that, because that program would be a mess to start with, and as you tried to make it work with new formats, or changes to the existing formats, it would become an awful mess.
What I would do would be to write one XSL transformation for each of the formats. Its job would be to convert a document in (say) USPS format to a document in a standard format that you define. Then you would only have to write one parser, which would accept a document in your standard format and produce whatever output you needed -- database updates, reports, notifications, whatever.
Your standard format would have to be able to mirror all of the data structures in the incoming formats, of course, but it wouldn't have to have the same element names as any of them. -
OWB11gR2 - simple and easy way to load XML formatted data into db tables?
Hi,
we're currently trying to load table data stored in XML files into our datawarehouse using OWB 11gR2.
However, we're finding this is not quite as trivial as loading flat files...
Most postings on this forum points to the blog-entry title "Leveraging XDB" found here (http://blogs.oracle.com/warehousebuilder/2007/09/leveraging_xdb.html).
This blog also references the zip-file owb_xml_etl_utils.zip, which seems to have disappeared from it's original location and can now be found on sourceforge.
Anyway, the solution described is for OWB 10g, and when trying to import experts from the zip-file etc. we end up not being able to run the "Create ETL from XSD" expert, as the 11gR2 client is different from the 10g and does not have the Experts menu et.al.
Also, this solution was published over 3 years ago, and it seems rather strange that importing XML-formatted data should still be so cumbersome in the newer warehouse builder releases.
The OWB 11gR2 documentation is very sparse (or rather - quite empty) on how to load XML data, all it has is a few lines on "XML Transformations", giving no clue as to how one goes about loading data.
Is this really the state of things? Or are we missing some vital information here?
We'd have thought that with 11g-releases, loading XML-data would be rather simple, quick and painless?
Is there somewhere besides the blog mentioned above where we can find simple and to the point guidelines for OWB 11gR2 on how to load XML-formatted data into Oracle tables?
Regards,
-Haakon-Yes it is possible to use SQL*Loader to parse and load XML, but that is not what it was designed for and so is not recommended. You also don't need to register a schema, just to load/store/parse XML in the DB either.
So where does that leave you?
Some options
{thread:id=410714} (see page 2)
{thread:id=1090681}
{thread:id=1070213}
Those talk some about storage options and reading in XML from disk and parsing XML. They should also give you options to consider. Without knowing more about your requirements for the effort, it is difficult to give specific advice. Maybe your 7-8 tables don't exist and so using Object Relational Storage for the XML would be the best solution as you can query/update tables that Oracle creates based off the schema associated to the XML. Maybe an External Table definition works better for reading the XML into the system because this process will happen just once. Maybe using WebDAV makes more sense for loading XML to be parsed (I don't have much experience with this, just know it is possible from what I've read on the forums). Also, your version makes a difference as you have different options available depending upon the version of Oracle.
Hope all that helps as a starter.
Edited by: A_Non on Jul 8, 2010 4:31 PM
A great example, see the answers by mdrake in {thread:id=1096784} -
Exporting DAC metadata in XML format
I would like to export DAC metadata in XML format . As per the administration guide it is possible to export/import metadata in XML format.
Any information on this will be appreciated.you can only export complete containers to XML, you can't only export the updates (as far as I know that is)
you can do this by selecting Tools, then select DAC Repository Management, then select Export. -
Dear SAP Gurus;
I had developed a <b><u>HR Data Extract Report</u></b> to export data in CSV format, but one of our vender application needs data in XML format - any assistance in writing code will be highly <b>appreciated</b> and reward points are <b><i>assured</i></b>.
Best Regards,
Aslam RiazHi We are also in version 4.7.
Use the code below as refefence. It works. Please close the issue with appropriate points if helps. Good luck.
Selection Screen
SELECTION-SCREEN BEGIN OF BLOCK selscr WITH FRAME TITLE text-s01.
PARAMETER:p_file TYPE rlgrap-filename MODIF ID fil." Output File Name
SELECTION-SCREEN END OF BLOCK selscr.
Data Declaratiion
TYPES: BEGIN OF address,
street(20) TYPE c,
apt(10) TYPE c,
city(20) TYPE c,
state(2) TYPE c,
zip(10) TYPE c,
END OF address.
TYPES: BEGIN OF person,
name(20) TYPE c,
ssn(11) TYPE c,
dob(12) TYPE c,
address TYPE address,
END OF person.
DATA: BEGIN OF employee OCCURS 0,
person TYPE person,
END OF employee.
Data for xml conversion
DATA: l_dom TYPE REF TO if_ixml_element,
m_document TYPE REF TO if_ixml_document,
g_ixml TYPE REF TO if_ixml,
w_string TYPE xstring,
w_size TYPE i,
w_result TYPE i,
w_line TYPE string,
it_xml TYPE dcxmllines,
s_xml LIKE LINE OF it_xml,
w_rc LIKE sy-subrc.
DATA: xml TYPE dcxmllines.
DATA: rc TYPE sy-subrc,
BEGIN OF xml_tab OCCURS 0,
d LIKE LINE OF xml,
END OF xml_tab.
Initialization
INITIALIZATION.
At Selection-Screen On Value Request
AT SELECTION-SCREEN.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
Validating file
PERFORM get_local_file_name USING p_file.
Start-of-selection
START-OF-SELECTION.
Populate the internal table
PERFORM populate_data.
Create xml file
PERFORM create_xml.
END-OF-SELECTION.
Down load the xml file
PERFORM download_xml.
*& Form populate_data
text
--> p1 text
<-- p2 text
FORM populate_data .
REFRESH employee.
CLEAR employee.
MOVE: 'Venu Test One' TO employee-person-name,
'111-11-1111' TO employee-person-ssn,
'01/01/1900' TO employee-person-dob,
'1111 Sanzo road' TO employee-person-address-street,
'111 A1' TO employee-person-address-apt,
'BALTIMORE' TO employee-person-address-city,
'MD' TO employee-person-address-state,
'21209' TO employee-person-address-zip.
APPEND employee.
CLEAR employee.
MOVE: 'John Smith' TO employee-person-name,
'222-22-2222' TO employee-person-ssn,
'02/02/1888' TO employee-person-dob,
'2222 John Smith road' TO employee-person-address-street,
'222 B2' TO employee-person-address-apt,
'SANFRANSISCO' TO employee-person-address-city,
'CA' TO employee-person-address-state,
'99999' TO employee-person-address-zip.
APPEND employee.
ENDFORM. " populate_data
*& Form create_xml
text
--> p1 text
<-- p2 text
FORM create_xml .
CLASS cl_ixml DEFINITION LOAD.
g_ixml = cl_ixml=>create( ).
CHECK NOT g_ixml IS INITIAL.
m_document = g_ixml->create_document( ).
CHECK NOT m_document IS INITIAL.
WRITE: / 'Converting DATA TO DOM 1:'.
CALL FUNCTION 'SDIXML_DATA_TO_DOM'
EXPORTING
name = 'EMPLOYEE'
dataobject = employee[]
IMPORTING
data_as_dom = l_dom
CHANGING
document = m_document
EXCEPTIONS
illegal_name = 1
OTHERS = 2.
IF sy-subrc = 0.
WRITE 'Ok'.
ELSE.
WRITE: 'Err =',
sy-subrc.
ENDIF.
CHECK NOT l_dom IS INITIAL.
w_rc = m_document->append_child( new_child = l_dom ).
IF w_rc IS INITIAL.
WRITE 'Ok'.
ELSE.
WRITE: 'Err =',
w_rc.
ENDIF.
CALL FUNCTION 'SDIXML_DOM_TO_XML'
EXPORTING
document = m_document
IMPORTING
xml_as_string = w_string
size = w_size
TABLES
xml_as_table = it_xml
EXCEPTIONS
no_document = 1
OTHERS = 2.
IF sy-subrc = 0.
WRITE 'Ok'.
ELSE.
WRITE: 'Err =',
sy-subrc.
ENDIF.
LOOP AT it_xml INTO xml_tab-d.
APPEND xml_tab.
ENDLOOP.
ENDFORM. " create_xml
*& Form get_local_file_name
text
-->P_P_FILE text
FORM get_local_file_name USING p_p_file.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
CHANGING
file_name = p_p_file
EXCEPTIONS
mask_too_long = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE i007(zu). " 'Error in getting filename'.
ENDIF.
ENDFORM. " get_local_file_name
*& Form download_xml
text
--> p1 text
<-- p2 text
FORM download_xml .
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
bin_filesize = w_size
filename = p_file
filetype = 'BIN'
TABLES
data_tab = xml_tab
EXCEPTIONS
OTHERS = 10.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
SKIP 5.
WRITE:(15) 'The ', p_file , 'is created successfully'.
ENDIF.
ENDFORM. " download_xml -
FL SUI Reporting XML Formatting
Has anyone had any luck with submitting 1st quarter SUI Reports to FL with the new XML format? We have applied a couple of the OSS correction notes and we are still getting errors from the transmission. Hoping to beat the reproting deadline. Any tips to offer?
For whatever reason, our SAP delivered form was not correct. We received this updated file format last week, modified the SAP form, and then copied it to a "Z" form. In addition, we applied the respective notes and have been successful in gettting the file to the State. We receive a "W40" message. We spoke with the State and this is not an issue as we receive a confirmation number.
Dave
Nr Lct C Record description Field Tape content Off Lth
0000 001 Special Record Indicator SAP 000 003
0000 004 Character set(ASC or EBC) ASC 000 003
0000 007 Record Length 275 000 003
0000 010 Insert CRLF? CRLF 000 004
0000 014 State Name FL 000 002
0000 016 Layout Type XML 000 003
0001 001 RECSEQNO 001 000 003
0001 004 Blanks 000 006
0001 010 TransmissionHeader RBEG 000 004
0001 014 Jurisdiction FLORIDA 000 007
0001 021 TransmissionId FLUCTVEN 000 008
0001 029 Timestamp TMSTP 000 019
0001 048 ETIN 00000 000 005
0001 053 ProcessType P 000 001
0002 001 RECSEQNO 002 000 003
0002 004 Blanks 000 006
0002 010 OriginHeaders RBEG 000 004
0002 014 ReturnOriginHeader RKEY 000 004
0002 018 OriginId 00000000 000 008
0002 026 Timestamp TMSTP 000 019
0002 045 ItemReference 000 001
0002 046 AgentIdentifier E 000 001
0002 047 5 AgentIdentifier E000 000 007
0003 001 RECSEQNO 003 000 003
0003 004 RTXCMP T5UTL-TXCMP 000 004
0003 008 Blanks 000 002
0003 010 ReturnData SCHEMA 000 006
0003 016 StateReturn RKEY 000 004
0003 020 Quarter QCOUNT 000 001
0003 021 Taxyear UDATE 000 004
0003 025 SoftwareId 07000133 000 008
0003 033 5 ReturnType StateUI 000 007
0003 040 5 Form UCT-6 000 005
0003 045 5 Action Original 000 008
0003 053 Reason 000 020
0003 073 TypeTIN FEIN 000 008
0003 081 5 TINTypeValue E001 000 009
0003 090 5 TypeStateEIN UIAccountNo 000 011
0003 101 5 StateEINValue E000 000 007
0003 108 BusinessName T5UTL-LTEXT 000 057
0003 165 AddressLine T5UTL-STRAS 000 022
0003 187 City T5UTL-ORT01 000 022
0003 209 StateOrProvince T5UTL-STATE 000 002
0003 211 ZipCode T5UTL-ZIPCD 000 005
0003 216 PhoneNumber FRMFD-TMTEL $xml_format$ 000 010
0003 226 FirstName 000 027
0003 253 MiddleName 000 027
0003 280 LastName 000 027
0003 307 Phone 000 010
0004 001 RECSEQNO 004 000 003
0004 004 RTXCMP T5UTL-TXCMP 000 004
0004 008 Blanks 000 002
0004 010 1 UITotalWages T001 000000000000000 000 015
0004 025 1 ExcessWages T002 000 011
0004 036 1 UITaxableWages T003 000 015
0004 051 3 ContributionRate 00.00 000 005
0004 056 1 ContributionDue T005 000 010
0004 066 1 UIInterest 000 009
0004 075 1 UIPenalty 000 009
0004 084 1 UITotalDue EXIT $xml_format$ 000 011
0005 001 RECSEQNO 005 000 003
0005 004 RTXCMP T5UTL-TXCMP 000 004
0005 008 Blanks 000 002
0005 010 Employee PayRoll 000 007
0005 017 SSN P0002-PERID $SSN_NA$ 000 009
0005 026 FirstName P0002-VORNA 000 015
0005 041 MiddleName P0002-MIDNM 000 001
0005 042 LastName P0002-NACHN 000 020
0005 062 Suffix P0002-NAMZU 000 004
0005 066 1 TotalWages T001 0000000000 000 010
0005 076 1 TaxableWages T003 0000000000 000 010
0005 086 3 TotalWages 00000000.00 000 011
0005 097 3 TaxableWages 00000000.00 000 011
0005 108 TaxState XX 000 002
0006 001 RECSEQNO 006 000 003
0006 004 RTXCMP T5UTL-TXCMP 000 004
0006 008 Blanks 000 002
0006 010 2 NumberOfEmployees N000 000 007
0006 017 2 Month1Employees N0M1 000 005
0006 022 2 Month2Employees N0M2 000 005
0006 027 2 Month3Employees N0M3 000 005
0007 001 RECSEQNO ATR 000 003
0007 004 SEQNO 0007 000 004
0007 008 Blanks 000 002
0007 010 OriginManifest 000 001
0007 011 itemCount 1 000 001
0007 012 5 ItemReference OriginManifest 000 014
0007 026 5 contentLocation contentLocation 000 015
0007 041 5 ReturnData Transmission 000 012
0007 053 documentCount 1 000 001
0007 054 5 StateUI StateReturn 000 011
0007 065 documentId UCT-6 000 005
0008 001 RECSEQNO RND 000 003
0008 004 SEQNO 0008 000 004
0008 008 Blanks 000 002
0008 010 5 EFIN Originator 000 010
0008 020 5 Type Originator 000 010
Maybe you are looking for
-
Non-functioning cross-dissolves with FCP 5.1 on intel
I am having trouble with FCP 5.1 running on my macbook. My cross dissolves work when used between two clips but as a fade to black, it doesn't work, or rarely does. I have 8 hours to finish this project to be showed at a wedding reception tomorrow. I
-
"Open Link in New Tab" doesn't remember first page in history
I recently noticed that the "Open Link in New Tab" is not remembering the very first page in the tab history. The replication is simple. # Go to any page (Google works well) # Right click and chose to open a link on the page in a new tab # On the new
-
Hotsync problems after dowloading 4.1.4e
I have a Palm TX for about a year and a half that until now I was synching to the Palm. I need to changed that and synch it to Outlook. I followed the Palm website direction and downloaded Outlook conduit 4.1.4e. It had changed the settings but since
-
Why replay history data from NI-DAQ buffer?
LabVIEW 8.6.1f1, NI-DAQ 8.8, Win Vista, two cDAQ chassis. (I can't move to LV09 or LV10 for this, not yet anyway). I have a client with two cDAQ banks, each with 16 TC channels (on 4 modules) and 16 voltage channels (on 1 module), 64 channels all to
-
Mapping error while calling WebService
Hi, I tried implementing the Credit Limit check Web service example and was getting the following error PARSE_APPLICATION_DATA Error during XML => ABAP conversion (Response Message; error ID: CX_ST_GROUP_MISSING_CASE; (/1SAI/TXS00000000000000000006 X