‎2009 Dec 23 4:46 AM
dear sir\madam,
how can i pass variabal into the module pool screen field which is not a part of table used in screen??
‎2009 Dec 23 4:47 AM
you want to pass the value to a separate field or to the table in the module pool?
‎2009 Dec 23 5:26 AM
in seperate field in screen which is not from data dictionary.
‎2009 Dec 23 5:31 AM
lets say you have a variable as gv_var in your program..
now define the field name in screen also as : GV_VAR.
it will automatically be mapped.
‎2009 Dec 23 5:50 AM
but where n how i have to define the field name in screen??
plz answer with syntax and where to write that code(syntax)
‎2009 Dec 23 4:48 AM
Hello,
Declare a variable of the same name as that of your screen field name and pass the value to this variable in PBO. You will be able to see the value in the screen.
Vikranth
‎2009 Dec 23 5:25 AM
yes i am doing the same, but i am not able to see it on screen.
can u tell me the code.
my code is : OT_TOTAL = zgate-time1 + zgate-time2.
where OT_TOTAL is in screen as well as a variable in module code of time1 type.
is this right? whats ur code for this??
‎2009 Dec 23 5:34 AM
Of what type have you declared OT_TOTAL in the program as? Make sure you define the same type both in the screen variable and in the code variable . Also make sure you wrote this logic in PBO.
Vikranth
‎2009 Dec 23 5:37 AM
Prem,
Declare this OT_TOTAL variable in Global area of your program. Possibly like in TOP Include
DATA : OT_TOTAL TYPE ZGATE-TIME1. " Same as zgate-time1 and also take same type for Screen Field
not in any module " Check onceif it is so.
Cheerz
Ram
‎2009 Dec 23 5:48 AM
where i have to define the varaible in screen? and how?
plz write with syntax.
‎2009 Dec 23 5:55 AM
Declare this OT_TOTAL variable in Global area of your program. Possibly like in TOP Include
DATA : OT_TOTAL TYPE ZGATE-TIME1. " Same as zgate-time1 and also take same type for Screen Field
not in any module " Check once
yes i have declared this variable in global area in same manner but how i will take it in screen field.
i mean how i will define this variable in screen n where n how?plz reply with syntax.
‎2009 Dec 23 5:56 AM
DATA: VBELN TYPE VBELN. u201C GLOBAL VARIABLE.
Declare this in the program.
Regards,
Abhijit
‎2009 Dec 23 6:00 AM
i alredy declared in program but how to declare in screen n where??
‎2009 Dec 23 6:01 AM
open you screen in screen painter and create an Input/output field with name OT_TOTAL
and save it.
then goto to the flow logic of the screen in the PBO write a module sayin
MODULE input_value.
and double click on it .
when it will open in the proram write your statement there.
OT_TOTAL = z_time1 + ztime 2.
Pre-requiste is that they must have values in them(z_time1, ztime 2).
Regards,
Abhijit
‎2009 Dec 23 6:02 AM
Hello,
In the screen painter, double click on the particular field and in the attributes popup, under dict tab, you will find a drop down of all the types. Make sure you select TIMS as the format for the field there.
Vikranth
‎2009 Dec 23 5:42 AM
Hi,
Try this
DATA: VBELN TYPE VBELN. u201C GLOBAL VARIABLE.
Suppose you have a I/O field defined in the screen named u2018VBELNu2019
Then in the PBO to this
VBELN = l_vbeln. u201C l_vbeln is the local field populated
u201C Also decalare VBELN as a GOBAL VARIABLE.
Hope it helps you.
Regards,
Abhijit