Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Control on lower case upper case

Former Member
0 Likes
1,832

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,148

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

4 REPLIES 4
Read only

Former Member
0 Likes
1,149

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

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,148

Hello Balraj,

How are you generating the XML from the internal table - Transformations, XML-mapping classes?

BR,

Suhas

Read only

Former Member
0 Likes
1,148

Using a Z Class

Read only

former_member194152
Contributor
0 Likes
1,148

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.