Application Development and Automation 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: 
Read only

Modifying Standard Screen

Former Member
0 Likes
940

Hello all,

I have copied the standard screen to the Zscreen and added 4 new fields.

The fields are added successfully.

However I am facing one problem.

The fields are available in editable mode always.

Even if I go to display mode, they are still editable. The other existing fields however goes into display mode.

Anyone have any idea about how to go about this?

Help would be appretiated.

Regards,

~Pranu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
708

Hi,

Loop at screen.

screen-output = 0.

modify screen.

endloop.

Tks,

Krishna..

5 REPLIES 5
Read only

Former Member
0 Likes
708

Hello,

You need to modify the screen according to the action that your are performing (ok_code).

case ok_code.

when 'DISP'.

Loop at screen.

screen-output = 0.

modify screen.

endloop.

when 'CRT'.

****

endcase.

Thanks,

Jayant

Read only

0 Likes
708

My fields are added in the subscreen.

The subscreen is going into display mode so I assume even my custom fields should go.

Pelase correct me if I am wrong.

And if I have to add the code you have said, where do I actually put it?

Thanks again

Read only

0 Likes
708

Hi Pranu,

You have to add the above logic for the 4 extra fields in the PBO of the ZScreen u have created.

Regards

Poornima

Read only

Former Member
0 Likes
708

Hi

Go to the screen flow logic and in the PBO write a logic...

PBO

if sy-pfkey eq 'DIS'. -


> GUI status

loop at screen.

check screen-group2 = 'TST'. ---> ur group of fields

screen-input = '0'.

modify screen.

endloop.

endif.

Read only

Former Member
0 Likes
709

Hi,

Loop at screen.

screen-output = 0.

modify screen.

endloop.

Tks,

Krishna..