Application Development 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: 

how to make noneditable field in screen painter when using parameter id

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

former_member184569
Active Contributor
0 Kudos

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.

17 REPLIES 17

former_member184569
Active Contributor
0 Kudos

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.

0 Kudos

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.

0 Kudos

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

0 Kudos

hi,

   i am using the same output field only in screen,but screen is non editable but not showing any values.

0 Kudos

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.

0 Kudos

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?

0 Kudos

hi,

this my screen i have done.

0 Kudos

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.

0 Kudos

before populating the list box,

Give the statements clear list_box_table . or refresh list_box_table.

This will avoid any duplications.

0 Kudos

hi,

   i tried it but the issue is not solved.

0 Kudos

do sort and delete adjacent duplicates comparing all the fields

0 Kudos

hi,

   now its working fine,i have cleared internal table when back button is pressed.

Former Member
0 Kudos

hi vinodh,

          Try to set parameter id and try the same process.

regards

krishna kanth

SyambabuAllu
Contributor
0 Kudos

Hi Vinod,

As suggested susmitha,you can follow the above post it will works.

Thanks,

Syam

former_member188282
Active Participant
0 Kudos

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

former_member188282
Active Participant
0 Kudos

Place the same filed in the second screen also and change the attributes as fallows.

Thanks,

Rajesh.

former_member184958
Active Participant
0 Kudos

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.