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

Regarding NUMC conversion

Former Member
0 Likes
1,743

Hi all,

we have two fields on the screen, which are referring to NUMC data type.

when we donot enter any thing on the screen, it is by default taking Zero's when saved. which is a property of NUMC.

is there a way where we can change this property.(screen cannot be modified at any cost)

Thanks in Advance.

Regards,

Kishore Kumar

6 REPLIES 6
Read only

Former Member
0 Likes
1,077

Hi,

We can't change properties that were defined by SAp w.r.t to data types.

Only thing is that we have to use such fields, which will suit our requirement;

Declare a CHAR type field , so that zeros' won't come into screen.

Regards,

Anji

Read only

Former Member
0 Likes
1,077

if you don't want to have zero's when the number is saved, convert the NUMC type field to a CHAR field, so even if you save, no zero's are saved,

if this is not the answer jus explain me ur question properly.

Regards,

Pavan P.

Read only

0 Likes
1,077

Hi all,

what pavan understood is right, but i cant change the screen field to CHAR, that is the restriction that i have.

Regards,

Kishore Kumar.

Read only

0 Likes
1,077

we can't change the property of predefined data-types...

One thing is we can define user-define data types... where the field is of type CHAR...

Read only

Former Member
0 Likes
1,077

Kishore,

MOVE the data to a variable of type CHAR with same length.

at the time of saving data , use MOVE statement to convert that variable to char type, then use that char type field for saving into database.

it may solve ur issue.

Regards,

Sujatha.

Read only

Former Member
0 Likes
1,077

Hi Kishore,

To avoid this have a char variable to be on screen,

and in th Program assign this char variable to a NUMC variable.

note: Check When Char Variable is NULL .

if Null Avoid it.

else assign it to NUMC variable.

i.e. if Char variable is null ,after assignment we will have in Numc Variable

value as 0000. hence avoid.

indeed if you were intersted to give 0000 value to NUMC variable for any data

retrival . pass 0000 through screen(char variable) and assign it in the Program

to NUMc variable and have any data retrival.

Hope This will Be Helpful,

regards,

Satish.