09-04-2013 7:20 AM
hi,
i want to make noneditable field in second screen when i am using parameter id for passing a value from first screen to second another.
regards,
vinodh.
09-04-2013 7:59 AM
In the screen attributes of screen field, set input = 0.
Before calling screen, set parameter id.
set PARAMETER ID 'ANL' field p_anln1-low.
CALL SCREEN 100.
At PBO of the new screen, get parameter id.
MODULE status_0100 OUTPUT.
* Set PF Status and Title Bar
SET PF-STATUS 'STAT1'.
SET TITLEBAR 'FUEL'.
get PARAMETER ID 'ANL' FIELD anln1.
09-04-2013 7:59 AM
In the screen attributes of screen field, set input = 0.
Before calling screen, set parameter id.
set PARAMETER ID 'ANL' field p_anln1-low.
CALL SCREEN 100.
At PBO of the new screen, get parameter id.
MODULE status_0100 OUTPUT.
* Set PF Status and Title Bar
SET PF-STATUS 'STAT1'.
SET TITLEBAR 'FUEL'.
get PARAMETER ID 'ANL' FIELD anln1.
09-04-2013 8:09 AM
HI susan,
i declare parameter id,i am getting values of first screen in second screen.but when i use loop at screen in pbo second screen,field is noneditable but not not showing any values.i even tried 'output only' options in program tab but its not working.
regards,
vinodh.
09-04-2013 8:22 AM
Non need to do the loop at screen. I have edited the answer above.
You can make it non editable by checking only the the checkbox for output field .
Also give the Parameter ID also in the attributes, so you dont have to explicitly use the get statement.
It should work. Let me know the result
09-04-2013 8:31 AM
hi,
i am using the same output field only in screen,but screen is non editable but not showing any values.
09-04-2013 8:36 AM
Its working for me this way.
Before calling screen.
set PARAMETER ID 'ANL' FIELD p_anln1.
call screen 100.
In screen layout, check only the output field attribute.
In the PBO of Screen 100.
get PARAMETER ID 'ANL' FIELD anln1.
09-04-2013 9:21 AM
Make sure that the field name in the get parameter statement is same as the screen field name.
Can you please share the following.
get parameter statement, set parameter statement and the screen shot of screen field attribute?
09-04-2013 10:02 AM
09-04-2013 11:59 AM
HI,
now its working but when press back button its coming back to previous screen,but list box is showing duplicate value like 2013,2014,2013.
i dont know where to refresh the internal table.
regards,
vinodh.
09-04-2013 12:31 PM
before populating the list box,
Give the statements clear list_box_table . or refresh list_box_table.
This will avoid any duplications.
09-04-2013 12:42 PM
09-04-2013 1:03 PM
09-04-2013 3:50 PM
hi,
now its working fine,i have cleared internal table when back button is pressed.
09-04-2013 8:18 AM
hi vinodh,
Try to set parameter id and try the same process.
regards
krishna kanth
09-04-2013 8:34 AM
09-04-2013 8:52 AM
Hi Vinod,
change the field setting as shown below
changes the field setting as shown above.Here not required SET parametes also.
Directly you can pass the values to field.
Sample Output
Thanks,
Rajesh
09-04-2013 10:48 AM
Place the same filed in the second screen also and change the attributes as fallows.
Thanks,
Rajesh.
09-04-2013 1:46 PM
Hi,
Go to TPARA table create one parameter, Then using that parameter you can pass the value from one screen to another screen using set and get parameter.
Regards,
John.