on 04-07-2009 9:12 AM
Hello,
I am doing IDOC to File sceanrio and I am able to get the file but the problem is that I am unable to get the required tag names. Out put file is having ns0 ns1 and so on..
Eg:
ns2:MaterialDefinitionProperty><ns2:MaterialDefinitionProperty><ns2:ID>CU_NET_WEIGHT</ns2:ID></ns2:MaterialDefinitionProperty><ns2:MaterialDefinitionProperty><ns2:ID>EAN_SKU</ns2:ID></ns2:MaterialDefinitionProperty><ns2:MaterialDefinitionProperty><ns2:ID>CUPerCase</ns2:ID>
and so on..
Source structure is IDOC
Target structure is External Defination imported with references.
How can I get the output file with the exact namespaces and tags as imported through External Definations.
Thanks in Advace.
Thanks for your views Its really helped to solve the problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI! Rajeev,
I have gone through this forum and we having 100% same to same requirement here in my project.
We want this at the top of the Output Payload..
<?xml version="1.0" encoding="UTF-8" ?>
- <SyncMaterialDefinition xmlns="http://www.siemens.com/ad/mes/b2mt-1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bml="http://www.wbf.org/xml/b2mml-v02" xmlns:sit="http://www.siemens.com/ad/mes/b2mml-v02-SITExt-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:oag="http://www.openapplications.org/oagis">
- <oag:ApplicationArea>
and also isome part of payload nstead of ns0: and ns1:
we want it as below for some part of same output payload
<oag:ApplicationArea>
- <oag:Sender>
<oag:LogicalId>SAP</oag:LogicalId>
<oag:Component>PMConnector</oag:Component>
<oag:ReferenceId />
<oag:Confirmation>Always</oag:Confirmation>
</oag:Sender>
<oag:CreationDateTime>2009-06-14T22:23:29.42Z</oag:CreationDateTime>
</bml:MaterialDefinitionProperty>
- <bml:MaterialDefinitionProperty>
<bml:ID>XXXXXXX</bml:ID>
- <bml:Value>
<bml:ValueString>0.0</bml:ValueString>
<bml:DataType>string</bml:DataType>
<bml:UnitOfMeasure>n/a</bml:UnitOfMeasure>
<bml:Any />
*</bml:*Value>
Check the above code how we want but we are getting in normal way .
Could you please review this and guide me in detailed way how to do in a step by step manner if possible by taking my above payload condition.
Regards:
Amar Srinivas Eli
Hi Rajeev,
I think you are looking at the structure of the target and not the data.
In your test tab of the message mapping, give some input values and Run your Message mapping.
Then in the target side, press the SRC button, to see the actual XML Payload of the target file.
See if you still get the name spaces in your target payload.
Regards,
Ravi kanth Talagana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi,
I did the same and I see ns0 ns1
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MaterialDef xmlns:ns0="http://www.siemens.com/ad/abc/b2mt-1.0"><ns1:ApplicationArea xmlns:ns1="http://www.openapplications.org/oagis"><ns1:CreationDateTime>2009/04/07</ns1:CreationDateTime></ns1:ApplicationArea><ns0:DataArea>
and so on!...
I dont want to have default values ns0 ns1 and so on..
Thanks
You could try the anonymizer bean.
http://help.sap.com/saphelp_nw70/helpdata/EN/45/d169186a29570ae10000000a114a6b/frameset.htm
Configure the module to allow just your ns2-namespace (anonymizer.acceptNamespaces=namespace ns2).
HI Heinrich,
I tried with your suggestion:
Enter the module name AF_Modules/XMLAnonymizerBean.
Select the Module Type Local Enterprise Bean
Module Key is 0 where as CallSAPAdaptor is 1
Module Key 0
Parameter Name anonymizer.acceptNamespaces
Parameter Value Namespace ns2
I send IDOC PI processed successfully but I didnt received ns2 is replaced wiht Namespace.
Do I miss some thing else?
Thanks
Hi Heinrich,
I have the following namespace in the External Defination !...
bml="http://www.wbf3.org/xml/b2mmlv02"
in the output I want to have bml instaed of ns2.
I need to update module with http://www.wbf3.org/xml/b2mmlv02 with Namespace and ns2 with bml??
Thanks
Rajeev.
Yeah...
Module Key 0
Parameter Name anonymizer.acceptNamespaces
Parameter Value http://www.wbf3.org/xml/b2mmlv02 bml
Hi,
I made Adaptor configuration as mentioned but still I see ns2 in the payload:
<ns2:MaterialDefinition xmlns:ns2="http://www.wbf3.org/xml/b2mmlv02">
<ns2:ID>500</ns2:ID>
<ns2:Description>abc 1,5KG RICOTTA</
Am I missing some thing? I would like to have bml instaed of ns2.
This module is excuting before calling adaptor:
Module Key 0
Parameter Name anonymizer.acceptNamespaces
Parameter Value http://www.wbf3.org/xml/b2mmlv02 bml
Thanks
Rajeev.
Hello,
Before using this module payload is as follow:
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:SyncMaterialDefinition xmlns:ns0="http://www.siemens.com/ad/mes/b2mt-1.0">
- <ns1:ApplicationArea xmlns:ns1="http://www.openapplications.org/oagis">
<ns1:CreationDateTime>2009/04/07</ns1:CreationDateTime>
</ns1:ApplicationArea>
how can I get use of this module to get abc and def instead of ns0 and ns1 ?????
Any one can input there idea why the following XMLAnonymizerBean is not working:
Adaptor Configuration:
XMLAnonymizerBean XMLAnonymizerBean 0
after this module standard SAP callsap adaptor is called 1
anonymizer.acceptNamespaces -
Name
http://www.siemens.com/ad/mes/b2mt-1.0 abc http://www.openapplications.org/oagis def -
Value
still I am getting the same output as before, I mean there is no effect at all by using this module. I didnt got any error message and I see in Message monitoring this module got called and executed successfully.
Thanks
Rajeev.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.