03-13-2007 6:52 AM
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
03-13-2007 6:54 AM
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
03-13-2007 6:55 AM
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.
03-13-2007 6:58 AM
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.
03-13-2007 7:01 AM
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...
03-13-2007 7:00 AM
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.
03-13-2007 7:17 AM
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.