‎2008 Feb 06 9:44 AM
Hi Experts,
I am a new to sap and I need some fundamental coding for the following items.....
1. Date ( MM/DD/YYYY) format.
2. EAN/UPC Number is 5.23E+11 , it should be convert to digits.(i.e 000000005333)
3. A InfoObject has length 4. when we entered 2, it displayed 2. I need it should display as 0002.
4. Some documents are same no. ex, 34333 45675
34333 45232
34333 45646 , I need to display with a intersection symbol. ( i.e )
34333 - 45675
34333 - 45232
34333 - 45646
Any number of coding will be appriciate....
‎2008 Feb 06 9:52 AM
hi,
use these
1. Date ( MM/DD/YYYY) format.
if your sap system format is MM/DD/YYYY format then no need of doing any thing
check in system- own data-user profile- defaults
2. EAN/UPC Number is 5.23E+11 , it should be convert to digits.(i.e 000000005333)
data: var1 type p.
move g_variable to var1.
here g_variable is having 5.23E+11 value
now var1 will display 000000005333.
3. A InfoObject has length 4. when we entered 2, it displayed 2. I need it should display as 0002.
take a numeric data type
data: g_var1(4) type n .
move infoobject to g_var1.
now g_var1 will contain 0002.
4. Some documents are same no. ex, 34333 45675
34333 45232
34333 45646 , I need to display with a intersection symbol. ( i.e )
use concatenate statment
concatenate var1 var2 into var3 separated by '-'.
now check var3.
34333 - 45675
34333 - 45232
34333 - 45646
regards,
Venkatesh