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

Advertisement

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.

Advertisement

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

October 11, 2015

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&g

How to get customer number and name from the SD document

Hi All, Can you please let me know how to get Customer Number and Name from the SD Document? Thanks a lot.... AnilHi, It will be displayed in the SD (BIlling document) itself,  you clikc on the VF03. The customer name and number will also appear in t

JAVA-SAX-Xml how to get simple tag element names to a list

i need to get the simple tag names(here it is name,price,aname,city) in to a list i have heard about SAX parser event driven it walks throgh the xml step by step when a new tag occurs it will parse etc.... but i am unable to get the only sampletag na

How to get data based on selection screen on the output

Hi Expert, Can any one tell me based on material number on slection screen correspondind field i.e on selection scren WERKS,MTART,EKGRP,DISPO,BESKZ,MATNR should also get. i.e if i give mtart on selection screen corresponding to material number mtart

A while ago i went to sync music onto my Ipod Touch. Not only did the computer erase my music i had no idea how to get it back :( I contacted Apple on the phone but the name was american and i found it really hard to understand him. How do i get it back!

A while ago i went to sync music onto my Ipod Touch. Not only did the computer erase my music i had no idea how to get it back I contacted Apple on the phone but the name was american and i found it really hard to understand him. How do i get it back

How to get a parameter without name in JSP?

hi everyone, My question is how to get a parameter without name in JSP? I have two pages, 1.html and 2.jsp. in 1.html, I embeds some Javascript codes in HTML contents like below ( changed < to ( , > to )): function toSubWin( obj ) window.open('test.

Okay i had to install Itunes onto my new OS because window's Vista messed up on me and i can't get any of my old purchases back from my account such as music and movies any ideas on how to get them back (i do not have the folder that contains old items)

Okay i had to install Itunes onto my new OS because window's Vista messed up on me and i can't get any of my old purchases back from my account such as music and movies any ideas on how to get them back (i do not have the folder that contains old ite

How do I append data and sequence numbers to a *.csv file name?

All, I am looking for an easy way to build a filename with the data and time included, as well as a sequential number between 1 and 999 in the following format: C:\TestDirectory\test_11-08-25_1551_1301_001.csv I have looked at using the Express funct

How to get automatic plant and shipping point and storage location

hi, sap gurus, how to get automatic plant and shipping point and storage location automatically into the sales order i have done all the config settings for that but its not appearing automatically. regards, balaji.tHi Balaji... U can get the plant i

How to get XML tag attribute vaue in Oracle

Hi, I have XML file which have order tag <submitOrderRes>:Application Exception: SOS</submitOrderRes>. From this xml file i want to display only the tag value , which is 'Application Exception: SOS'. how to get this tag value by select SQL any

How to get List Item attachments name without write any custom code or any database query?

Hi, How to get List Items attachments name without write any custom code or any database query?You can get it from Rest, There are 2 options, 1) create a 'Result Source' which has a search query for that List which has attachments   - Use rest query

How to get system date and time?

Can someone show me a code on how to get system date and time. Thanks!there is one really easy way to get system time, the api gives a great example of code on this. use gregorian calendar, which you'll find in the api under GregorianCalendar. You on

How to get vlan tag programe with mac book air

how to get vlan tag programe with mac book air,i'm using the usb ethernet adapterFor prompt help contact TATA. For more on this: https://discussions.apple.com/thread/3680625?tstart=270Read other 2 answers

How to remove the extra space in the output pdf file?

Hi All In our RTF layout template we have both static content and dynamic content. In RTF template we have used many if-else,choose,For each loops. On the account of that,In the output pdf file, we are getting lot of empty space in the place of that

How to get structure of IDOC into xi in the scenario is IDOC - XI - File

hi XI Guys,       When i want to Integrate SAP sys(IDOC) with File how to get structure of IDOC into XI, As we will define Data types in File -> XI -> File. Please send Step by Step process as i am new to Netweaver(XI) ThankYou, B.Pushparaju.When i

Append a file with date and name in the output file

I am running a script which produce an output in excel file, I would like the server name and the date in the output file,  Both the servername and date has declared at the beginning of the script as  $server = test1 $date = Get-Date -uformat %Y-%m-%

I have 2 Macs - an iMac that holds my entire iPhoto library and a Mac Book Pro that I use to hold a subset of the main library - how can I transfer photos and their metadata from the main library of the iMac to my Mac Book?

I have 2 Macs - an iMac which holds my main iPhoto library and a Mac Book Pro which holds a subset of the library. How can I transfer photos and their metadata from the main library to the smaller 1 on the Mac Book Pro?Link the two Macs together and

I created an image in Photoshop and saved it as the PSD file. Now when I try and open it it says it is not compatible with my version. How could this be when I created it in this version?

I created an image in Photoshop and saved it as the PSD file. Now when I try and open it it says it is not compatible with my version. How could this be when I created it in this version?That depends on why it won't open.  Most of the time it means t

How to sync your mouse and key board to the desk top when both the indicators are flashing?

How to sync your mouse and key board to the desk top when both indicator lights are blinking?  I changed the batteries and I dont know how to sync them when they both wont work to follow the step to sync them up...help!The frozen was not clear in you

[svn:fx-trunk] 10973: Removing sentence in [Deprecated] tag and referring them to the channelSet property.

Revision: 10973 Author:   [email protected] Date:     2009-10-12 13:30:33 -0700 (Mon, 12 Oct 2009) Log Message: Removing sentence in tag and referring them to the channelSet property. The ASDoc explains the deprecation. QE notes: None Doc notes: None