‎2012 Feb 27 9:30 AM
Hi,
I have one internal table say it_tab....i am converting this table into xml file....fields of internal table is equal to xml tag, for example i have defined internal table field name as "Product" so xml tag will be Product.....but my problem is that sap automatically convert internal table field name in uppercase....i want XML tag as "Product" instead of "PRODUCT" or "product"
Please help me how can i control this. Here is the example:
data: begin of it_tab occurs 0,
Product type string,
end of it_tab.
so after generate XML file XML tag should be: Product.
‎2012 Feb 27 9:41 AM
using TRANSLATE convert the whole field name to lowercase 'product'>> using offset ( field+0(1) ) convert the first character to upper case 'Product', and modify your internal table accordingly.
dont think there s any FM or direct method to do this.
Edited by: AJ Nayak on Feb 27, 2012 3:21 PM
‎2012 Feb 27 9:41 AM
using TRANSLATE convert the whole field name to lowercase 'product'>> using offset ( field+0(1) ) convert the first character to upper case 'Product', and modify your internal table accordingly.
dont think there s any FM or direct method to do this.
Edited by: AJ Nayak on Feb 27, 2012 3:21 PM
‎2012 Feb 27 9:57 AM
Hello Balraj,
How are you generating the XML from the internal table - Transformations, XML-mapping classes?
BR,
Suhas
‎2012 Feb 27 10:00 AM
‎2012 Feb 28 6:58 AM
check what type specification u have used in program for value to hold product.
for example if you see data element NAME1_GP, it contains domain NAME, in output characterstic of domain thr is a checkbox named "Lower Case" this should be checked if you want to hold lower case in reference data type.