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

simple coding

Former Member
0 Likes
303

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

1 REPLY 1
Read only

Former Member
0 Likes
280

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