Question:
Hi Friedns,
Presently i am working on SAP-BC, i am new to this technology,my task
is to send MATMAS IDoc from SAP to BC, in turn BC converts IDoc to XML, (i.e outboudnd in SAP and inbound for BC).My problem is where can i store the XML file,i tried like this :
created routing rule & i gave Transport as XML,XML Dialect as SAP-XML,
specify URL as http://localhost:5555/invoke/sivaram/matmas.xml, but it
is not storing the file. Can you please suggest me how to do this.
And also how to convert the XML to xCBL Standards.
Please guide me with step by step.
Thanks in advance.
regards
Sivaram Kandula
Answer:
Hey Sivaram,
For me i just used the B2B as the transport. I used for this a 'dummy' service which is just empty.
After you created the rule you can find this rule in the developer in the specified package under e.g. wm.PartnerMgr.flows.I1QCLNT010.X2465_BSCN:Z2MMMATMASZ001.
In this flow you can make your changes. You can add the service pub.sap.idoc:encodeSDATA and then pub.sap.idoc:encode.
In the WMsamples you can find an example of how to write the xml string to file (sample.IO.test:writeToFile).
Good luck,
Erik
Answer:
Hi Erik,
Thank you very much, i will try according to your suggestions.
Can you please tell me how to convert the XML file to xCBL Standards.
thanks in advance.
regards
Sivaram Kandula
Answer:
Hey Sivaram,
I don't have any knowledge about xCBL, but i guess it's just a different kind of xml standard, isn't it?
Anyway, maybe you can translate the xml to xCBL standard using xslt translation. You can, for example, use excelon stylus studio to convert make the xslt template. (you can import both xml and make the template by a easy using GUI).
After you create the template you can convert the xml with the service pub.sap.xslt.transformation:XSLTransformation.
Cheers,
Erik
Answer:
Hi Insonmia,
I was unable to store my XML file, when i do the :lol:utbound process
i.e SAP-BC, i am getting XML file, but where can i store the XML File.
Please tell me in step by step. Ultimately i have to give the XML file to the client,but for time being I want to store it in Hard Disk. How can I store in Hard disk.
Thanks in advance
Regards
SRK
Answer:
If you are testing, you can use SAVEPIPELINETOFILE service to store the whole pipeline. Otherwise, there is a sample file service called sample.IO.utils.fileWriter:openFileWriter WritefileWriter and CloseFileWriter that can write files.
When I am testing, I normally just use the pub.client:smtp service to email the file to myself.
Answer:
Hello,
on webMethods community you can find free package PSUtilities in which there is part for handling files (load, moce, copy, save). I am using it constantly to archiving inbound and outbound files.
HTH
Gordan
_________________
Proud member of Tuly Idiot club
Answer:
Thanks for the TIP Gordan, there are indeed some usefull packages on this site, including the package you mentioned.
Cheers,
Erik
Answer:
How can I store my xml file throuhg Url, I have given URL as http://xi1.myitgroup.com,
But still the status is given as Rolled back.
When you see the details of TID, it is showing 405 method not allowed.Finallly I got the XML File, but I don’t know how to send this XML file to the mentioned URL.
Could you please guide me how to do it.
Thanks in advance.
Regards
Sivaram Kandula