Sending IDOC information in the XML format on the application server
Hello All,
We have a requirement like, while creating a billing document, an IDOC should be generated and the XML file should be created for that data in IDOC and that XML file would be sent to further via XI.
For this purpose, we have created
1. Logical Sender Receiver Systems We are sending the data from DL3 system 100 client to DL3 800 client
2. Assigned the clients to the logical system.
3. Created the distribution model with the message type INVOIC.
4. Created the partner profiles.
5. Created an XML port in transaction WE21, in which the application server file path is mentioned on which the xml file would be generated and the function module is provided which will only generate the file name is mentioned. In the outbound trigger tab the RFC destination is mentioned which is of type TCP/IP LOCAL_EXEC
6. In transaction WE20, for the 100 logical system added the message type INVOIC as a outbound parameter and same for the 800 client. The receiver port is mentioned as XML port which we have created.
Now, when we create the billing document via VF01 transaction, we give the transmission medium as ALE in the output. Hence the IDOC gets generated. The XML file also gets generated but the contents of the file are ONLY control records of the IDOC.
And not the data record and the status records.
The IDOC, if we see in WE02 displayes all the data in control , data and status records.
We want the control, Data and Status records of the IDOC to be populated in the XML file.
Please suggest if any extra configuration is required in this case. We are working on SAP 4.6.
Thanks in advance for your answers.
Regards,
Anuja
Hi Rob,
Ya ,i will take care your suggestion from next time..
Yes, we have downloaded the file using transaction CG3Y and opned it with IE as suggested by you. Howerver the contents are still seems to be control record.
For your reference putting the contents of the file.
<?xml version = "1.0"?><INVOIC01><IDOC BEGIN="1"><EDI_DC40 SEGMENT="1"><TABNAM><![CDATA[EDI_DC40]]></TABNAM><MANDT>100</MANDT><DOCNUM>0000000000227012</DOCNUM><DOCREL>46C</DOCREL><STATUS>30</STATUS><DIRECT>1</DIRECT><OUTMOD>2</OUTMOD><IDOCTYP>INVOIC01</IDO
Please advice.
Thanks.
Regards,
Anuja.
Similar Messages
-
Send Idoc to URL in XML format
Dear All
We are working on SAP ECC6 version. Where my customers requirement is send an idoc
Which contains dispatch details to there customer on URL (HTTP) in XML format
Plz suggest how to send an Idoc to URL.
Regards
ArunHi Arun,
Check this links
[idoc|http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm]
[Port Creation|http://wiki.sdn.sap.com/wiki/display/XI/StepbyStepprocessforsendingCustomerorVendorMasterDatafromECCsystemtoanexternalsystemmysqldatabasethroughSAPProcess+Integration]
Regards,
Madhu. -
Not able to Parse XML data in Sun Application Server 8.2
Iam not able to parse the xml data in sun application server,this is working fine in tomcat and oracle server.
Please go thru the code , thanks in advance.This is used in ajax.
function processStateChange() {
if (req.readyState == 4) { // Complete
if (req.status == 200) { // OK response
var message=req.responseXML.getElementsByTagName("value")[0];
setMessage(message.childNodes[0].nodeValue);
//document.getElementById("theResponse").innerHTML = req.responseText;
else
alert("Problem: " + req.statusText);
return true;
}Use Notepad. Drag and drop in notepad.
Aman -
In sap 4.7 ver i want to dispatch an Idoc through http in xml format
Hi
Here i am giving the brief scenario of about my
requirements "::::
Our organization need to receive an IDoc through
HTTP into XML format then we have to send an acknowledgement back to USA (external system
located)
then we hav eto process tha tIDoc an dsend it back
to the edi 850 ...
we are not using Sap Business Connector
Plz send the suggestions as soon as possible
I really appreciated if u can give the suggestions
regarding my business scenario ..
without using any thirdparty tool in sap 4.7 version it is possible how can i do that ??
Thanks & Regards ,
bakThe exact error message I'm getting is :
ABAP XML formatting error in XML node of type "element", name: "abap" -
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 -
Idoc be converted into XML format
Hi,
Can idoc be converted into XML format? If yes guide me the path , how to do?
Thanks
Avi<b>Hi,
we can .
Follow the link
http://www.erpgenie.com/sap/sapedi/Conversion%20of%20IDOCs%20to%20XML%20format.pdf</b>
Thanks
Manju
<u><b>Don't repeat the Questions</b></u> -
Error with the data format in the TXT file, sending as an Email attachment
Hi all,
I have an problem in the data formating in the TXT file while sending as an attachment via an email by using the FM "SO_DOCUMENT_SEND_API1".
For eg:
The data in the TXT file is looking like as follows:
0 0 0 0 2 L O U D S P E A K R O T H E R 3 8 W h i t e 0 0
0031 L O U D S P E A K R O T H E R 3 8 Black 0 000
38 L O U D S P E A K R O T H E R 3 8 Brown 0 00040
L O U D S P E A K R O T H E R 3 8 Brown 0 00042
and so on
But it should come as :
0 0 0 0 2 L O U D S P E A K R O T H E R 3 8 W h i t e
0 0 0031 L O U D S P E A K R O T H E R 3 8 Black
0 00038 L O U D S P E A K R O T H E R 3 8 Brown
0 00040 L O U D S P E A K R O T H E R 3 8 Brown
All the internal tables are correctly filled.
The code is as follows:
gwa_objtxt = 'Please find attached DATA EXTRACT Sheet'.
append gwa_objtxt to git_objtxt.
describe table git_objtxt lines gv_cnt.
clear git_doc_data.
read table git_objtxt index gv_cnt.
git_doc_data-doc_size = ( gv_cnt - 1 ) * 255 + strlen( gwa_objtxt ).
git_doc_data-obj_langu = sy-langu.
git_doc_data-obj_descr = lv_mtitle.
append git_doc_data.
clear git_packing_list.
refresh git_packing_list.
git_packing_list-transf_bin = space.
git_packing_list-head_start = 1.
git_packing_list-head_num = 0.
git_packing_list-body_start = 1.
git_packing_list-body_num = gv_cnt.
git_packing_list-doc_type = 'RAW'.
append git_packing_list.
Clear : gv_cnt.
Describe table git_objbin lines gv_cnt.
git_packing_list-transf_bin = 'X'.
git_packing_list-head_start = 1.
git_packing_list-head_num = 1.
git_packing_list-body_start = 1.
git_packing_list-body_num = gv_cnt.
git_packing_list-doc_type = 'TXT'.
git_packing_list-obj_descr = 'ATTACH.TXT'.
git_packing_list-obj_name = 'book'.
git_packing_list-doc_size = gv_cnt * 255.
APPEND git_packing_list.
clear git_receivers.
refresh git_receivers.
git_receivers-receiver = gv_eid.
git_receivers-rec_type = 'U'.
append git_receivers.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
DOCUMENT_DATA = git_doc_data
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
TABLES
PACKING_LIST = git_packing_list
CONTENTS_BIN = git_objbin
CONTENTS_TXT = git_objtxt
RECEIVERS = git_receivers
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
DOCUMENT_TYPE_NOT_EXIST = 3
OPERATION_NO_AUTHORIZATION = 4
PARAMETER_ERROR = 5
X_ERROR = 6
ENQUEUE_ERROR = 7
OTHERS = 8.please give the code of
contents bin = git_objbin " how this is getting populated.
0 0 0 0 2 L O U D S P E A K R O T H E R 3 8 W h i t e <b>0 0</b>
0031 L O U D S P E A K R O T H E R 3 8 Black
0 000
38
from this im not able to understand is this over population or concatenation problem
y dont u make a append to the final table
like
data : begin of itxt occurs 0, ,
s1(132) type c ,
end of itxt.
loop at itab.
itxt-s1+0(4) = itab-f1.
itxt-s1+4(6) = itab-f2.
itxt-s1+10(8) = itab-f3.
itxts1+18(4) = itab-f4.
append itxt.
clear itxt.
endloop.
exchange this to the contents bin of hte Fm .
regards,
vijay.
can u please mail the text file and the expected o/p to my mail id [email protected] so that i can see the same from the data provided i m not able to check the result properly . -
Using API to download the webi document in the XML format
I am just trying to use this API to download the webi document in the XML format. I need a sample XSL file which we can use to download the XML in a formatted output.
http://devlibrary.businessobjects.com/BusinessObjectsXIR2/en/en/RE_SDK/resdk_java_doc/doc/resdk_java_apiRef/com/businessobjects/rebean/wi/XMLView.html
getReader
public java.io.Reader getReader(java.net.URL xsl)
throws REException
Return the result of the XSL transformation applied to the XML report output stream.
Parameters:
xsl - URL to an XSL file used to transform report XML.
Since:
11.5
See Also:
getReader()If the same content of file already thr in the Internal table as 1 STRING/LINE then you can loop the internal table count the entries which one you want like
Kanagaraja L -
Why did you send me a download in XML format, instead of WORD?
Why did you send me a download in XML format?
balancedphoto, I just sent you a private message. Please check your inbox. :: Yuri
-
How to not change the XML format
I have a script that configures an XML document within a zip file. I unzip the file, load the xml doc into the script. Edit values then rezip it.
This works fine, but when I attempt to submit this to the device I am working on it returns an error. After checking the doc the only thing I can assume is going wrong is that the document is formatted by Powershell in such a way it can no longer be understood
by the device.
To resolve this I have added the .PreserveWhiteSpace and set it to true. This also works, but when I do a comparison, character by character space I notice that there are whitespaces being added within certain xmlnodes. How do I stop this from happening?Can you post your script and a template XML, and show where the white spaces are being added?
We can't see what your code or XML look like if you don't share it.
Solved. Turns out it was something to do with the zip and not the script. -
Possible to change the xml output of the Inbound Interface?
Hi All,
I hav a scenarion where a third party system receives the XML from XI. the output of the xml from XI looks as follows:
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:Messages xmllns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
- <ns1:WMSItalyItemReplication xmlns:ns1="http://cpe.com/cpe_ftp_wms/ItemReplication">
- <item_dl dt_tm_created="2006-06-29 09:02:23">
- <item action="" owner_id="CIB" itm_num="3143832ZZ99">
<itm_desc>Ageflex ACM50 Test</itm_desc>
<unt_dol_val>1</unt_dol_val>
<lic_ctrl_flg>Y</lic_ctrl_flg>
<lot_ctrl_flg>Y</lot_ctrl_flg>
<shelf_life>999</shelf_life>
<product_life>999</product_life>
<incubate_prd>0</incubate_prd>
<hold_ord_flg>N</hold_ord_flg>
<kit_type>N</kit_type>
<prelabel_flg>N</prelabel_flg>
<rcv_only_flg>N</rcv_only_flg>
<convey_flg>N</convey_flg>
<front_flip_flg>N</front_flip_flg>
<pick_shp_bp>N</pick_shp_bp>
<side_flip_flg>N</side_flip_flg>
<rotate_flg>N</rotate_flg>
<itm_udef_a />
<itm_udef_b />
<itm_udef_c>Constant1</itm_udef_c>
<itm_udef_d />
<multi_conf_flg>N</multi_conf_flg>
</item>
</item_dl>
</ns1:WMSItalyItemReplication>
</ns0:Message1>
</ns0:Messages>
And the output that the third party expects is as follows:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE item_dl SYSTEM "http://localhost/dtd/item_dl.dtd">
<item_dl><item><itm_desc>Ageflex ACM50 Test</itm_desc>
<unt_dol_val>1</unt_dol_val>
<lic_ctrl_flg>Y</lic_ctrl_flg>
<lot_ctrl_flg>Y</lot_ctrl_flg>
<shelf_life>999</shelf_life>
<product_life>999</product_life>
<incubate_prd>0</incubate_prd>
<hold_ord_flg>N</hold_ord_flg>
<kit_type>N</kit_type>
<prelabel_flg>N</prelabel_flg>
<rcv_only_flg>N</rcv_only_flg>
<convey_flg>N</convey_flg>
<front_flip_flg>N</front_flip_flg>
<pick_shp_bp>N</pick_shp_bp>
<side_flip_flg>N</side_flip_flg>
<rotate_flg>N</rotate_flg>
<itm_udef_a></itm_udef_a>
<itm_udef_b></itm_udef_b>
<itm_udef_c>Constant1</itm_udef_c>
<itm_udef_d></itm_udef_d>
<multi_conf_flg>N</multi_conf_flg>
</item>
</item_dl>
Observe the first two lines of the second output.
I tried to generate the second xml using a java mapping. and it is working fine when i test it in the Interface mapping's test tab. but it is not working when i test the scenario end to end. It is giving some runtime error.
is it possible to change the namespace, etc in the output of the XML coming out of XI? if v change those namespace stuff, does XI recongnise the message and send it to the appropriate reciever?
Please suggest me any solution.
any help wud b greatly appreciated.The first XML is a Split msg XML..Where there are multiple messages within a single XML document..Thats why u have a <ns0:Messages xmllns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
Tags..
Recheck what ur target system needs are & change ur mapping in XI. -
What application should i use to create the xml data as the input data for XFA template
HI,
I need to generate pdf or html document form from existing XDP with the given xml formatted data set. We usually use word to generate content for those XFA template, as the data should be in xml format content in word document should be able to convert into xml document that is compatible with XFA template. I want to know if there is any tool to conver word doument content to xml format that is compatible with XFA template or has adobe given their own tool to create content that comply with XFA template? . Also i want to know if i can do above mention functionality jaut with adobe forms if not what are the other services that i should use. Please give me the prices of adobe forms and any other tool that i should use. Thank youXFA is just the definition of the form template. Once you have an XFA based template, you can merge any XML you want.
The trick is do the appropriate binding so the data from the XML goes in the right fields on your form. This binding is done using LiveCycle Designer.
Jasmin -
The XML generated by the Lotus servlet component is not well formed
Hello Experts,
While integrating EP7 to Lotus Domino 7 we are facing some problem with XML parser.
We have following configuration
EP7 SP 13
Lotus Domino 7
All configurations related to SSO are done. SSO is working fine.
All transports are created properly. All services active
Please suggest some solution
The error is displayed when i try to access the calendar related objects, like calendar, appointments etc.
Here is error detail:
The XML generated by the Lotus servlet component is not well formed com.sap.ip.collaboration.gw.impl.transport.lotus.exception.XMLParserException: The XML generated by the Lotus servlet component is not well formed
at com.sap.ip.collaboration.gw.impl.transport.lotus.LotusCalendarTransport.getXmlDocument(LotusCalendarTransport.java:997)
at com.sap.ip.collaboration.gw.impl.transport.lotus.LotusCalendarTransport.readResponse(LotusCalendarTransport.java:1922)
at com.sap.ip.collaboration.gw.impl.transport.lotus.LotusCalendarTransport.getLotusServerTz(LotusCalendarTransport.java:405)
at com.sap.ip.collaboration.gw.impl.transport.lotus.LotusCalendarTransport.getItemList(LotusCalendarTransport.java:377)
at com.sap.ip.collaboration.gw.impl.framework.groupware.GroupwareManager.getItemList(GroupwareManager.java:263)
at com.sap.ip.collaboration.gw.impl.manager.calendar.ContentManager.getChildren(ContentManager.java:237)
at com.sapportals.wcm.repository.CollectionImpl.internalGetChildrenManager(CollectionImpl.java:1538)
at com.sapportals.wcm.repository.CollectionImpl.internalGetChildren(CollectionImpl.java:1555)
at com.sapportals.wcm.repository.CollectionImpl.doGetChildren(CollectionImpl.java:144)
at com.sapportals.wcm.repository.CollectionImpl.getChildren(CollectionImpl.java:124)
at com.sap.ip.collaboration.gwui.api.GWUtils.getAllCalendarItems(GWUtils.java:180)
at com.sap.ip.collaboration.gwui.api.htmlb.component.day.DayControlDynPage.doProcessBeforeOutput(DayControlDynPage.java:65)
at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:123)
at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Waiting for replies
Regards
Kedar Kulkarni
Do Not worry for points.Hello Michael Sambeth and all Lotus experts,
I read about a tool for Lotus Domino Ticket Verifier that is delivered by SAP.
Can you please send it to kedar.c.kulkarni @ gmail.com
I actually posted a thread, but could not get any reply for SAP standard error: GW-LOT-014
regards
Kedar Kulkarni
Edited by: Kedar Kulkarni on Apr 9, 2008 12:11 PM -
Problem with the number format in the graph axis with Report Generation Toolkit.
Hi!
I'm trying to use the Report Generation Toolkit to plot some graphs in Excel.
My first problem is that I don't know how to configure the number format in the Excel Set Graph Font.vi so that my numbers are correctly displayed in the graph's axis. The only given option is general (0,0) but this is not enough for me, my numbers can get really small so I need engineering notation or fraccional format.
Second: I also insert a table with the graph source data, but the numbers are not correctly displayed either: for example:
0,75 is shown as:
0,750000
but 1,25 is shown as:
1!250!000
My guess is I am making to much or wrong string to number conversions or Excel is getting it wrong but I can't find my way...
Can someone help me with this?
Thanks,
IsabelHere is my VI, it's just a trial so it can look messy...
Thanks,
Isabel
Message Edited by Isa_pm on 01-22-2007 01:12 PM
Attachments:
Create report.vi 96 KB -
How can I change the numeric format of the cursor coordinates display in LV 8.2
Since LV 8.0 or so the cursor display window of a graph indicator seems to be a tree control. I couldn't find where to change the numeric format of the numbers displayed in that control. What did I miss?
lecroy wrote:
Maybe I'm not clear on what your looking for but I just use a property node and route the raw cursor data out to what ever function I want to run on it, then display it in a seperate field. The nice thing with the property node is you can have multiple graphs linked together by one set of cursors all with different readouts.
Yes, of course that's an option and I guess I'll have to do it that way.
The point is that I converted a pre-LV-8.x program to LV 8.5. In the program I had used the coordinates display field in the cursor legend to display the position, just the was the cursor legend is supposed to be used, IMO. And in pre-LV-8.x days it was possible to customize the numeric format property of the cursor legend (either directly or by property nodes). It seems that with LV 8.x NI chose to use a treeview control for the cursor legend. With that 'improvement' the numeric formatting flexibility was lost since now the conversion to the string content in the cursor legend's treeview is happening somewhere 'under the hood'.
<rant> Why do they (NI) always try to 'improve' things (where nothing needs be improved) and sacrifice functionality on the way....? </rant>
Maybe you are looking for
-
Removing/replacing objects in a photo
I have a stock photo of an item I want to sell but the picture shows some accessories I don't have so how do I remove these items and replace the space with the background. There are no layrers in the photo
-
Bought this phone,is reasonably good for its price,could be better if the following issues were taken care of. 1)Touch Screen- While messaging there is no option to write with the on-screen keypad. 2)Brightness cannot be changed, 3)Music player. no o
-
+PSE 11 raw does not support Canon SX50
Hi, Just got my new Canon SX50HS camera. Looks like PSE 11 raw does'nt support it. How long does it normaly take after a camera is available to the public for Adobe to include it in its list? Where do I have to ask Adobe about that situation ? Cla
-
Anyconnect client and clientless connections hang for two users
ASA 5525, v. 9.1(5)19 Anyconnect client 3.1.02026 I have two users who are unable to connect via the AC client or clientless through the web portal. Using the client, it will get stuck in a loop of "checking for updates". On the portal, the connectio
-
Error message then replying to emails
I updated the settings based on the changes in the last 2 mos. Ever since i cannot reply to emails from my phone. The error message states that xxx was rejected by the server becuase it does not allow relaying. What setting needs to corrected?