09-14-2007 3:42 PM
the default data type of i/o field in the screen programming is char(1). how can we declare it as char(10), i want to capture the value of the field in one screen to another field in other screen... in doing this i am able to get only the first character....
how to populate the whole value....
thank you.
09-14-2007 4:21 PM
Hello,
Is the dialog program custom or SAP?
If custom, try going into SE80 for the function group and check what the source of the screen field is. If it comes from a structure, then you will need to increase the source field in the structure, which means you also have to check and see if any other code or program will be impacted by the field size increase. If the field is defined directly on that particular screen, then you should be able to increase the size using the Screen Painter (Attributes tab) for that field. You would still need to check for references to the field to see if any other code is affected.
Hope this helps.
K---
09-14-2007 4:21 PM
Hello,
Is the dialog program custom or SAP?
If custom, try going into SE80 for the function group and check what the source of the screen field is. If it comes from a structure, then you will need to increase the source field in the structure, which means you also have to check and see if any other code or program will be impacted by the field size increase. If the field is defined directly on that particular screen, then you should be able to increase the size using the Screen Painter (Attributes tab) for that field. You would still need to check for references to the field to see if any other code is affected.
Hope this helps.
K---
09-14-2007 4:26 PM
09-14-2007 4:27 PM
Hi,
i dint understand the logic as to y u need to assign a char10 value to char1 variable.
i think u will have to declare the char1 variable by urselves as char10 and display.
can u be more clear?
09-15-2007 7:31 AM
Hi,
Whatever u have assigned name to ur i/o, u have to declare the char variable in to ur prog. with the same name.
So when u give the value into io box at run time this value will be stored into this variable.
Now when u are calling the new screen from this screen, u can use the value through this vatriable.
09-15-2007 8:58 AM
hi
kartik
just use the following code
get cursor field v_fnam value v_fval.
set parameter id 'MAT' field v_fval.
call screen< scr num>.
reward if u find use ful
regards
Nagesh.Paruchuri.