Skip to Content
avatar image
Former Member

How to get required tags and name spaces in the output File?

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Apr 07, 2009 at 08:17 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello,

      Before using this module payload is as follow:

      <?xml version="1.0" encoding="UTF-8" ?>

      - http://www.siemens.com/ad/mes/b2mt-1.0">

      - 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.

  • avatar image
    Former Member
    Apr 07, 2009 at 03:01 PM

    Thanks for your views 😉 Its really helped to solve the problem.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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