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: 

Screen Painter - Display with no active entries

Former Member
0 Kudos

Hi Gurus

I am teaching myself some ABAP Screen design and am working through an exercise.

I have one issue with the display which is that it displays with active records already like below

I want it to display like this, so that the user is forced to use the Insert button

I'm not sure if there is a configuration setting in the Layout for this or if it is something I need to code in the PBO.

Many Thanks in advance for your assistance

Regards

Panduranga

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor

In the PBO, LOOP AT TABLE CONTROL, deactivate fields (LOOP AT/MODIFY SCREEN) as long user didn't press insert (e.g. empty internal table, SCREEN-ACTIVE = '0' if no record)

Regards,
Raymond

10 REPLIES 10

raghug
Active Contributor
0 Kudos

Did you mean to attach screen shots? i don't see any

Former Member
0 Kudos

Hi Raghu

Yes i did, let me try again.

This is how it currently looks.

This is how i want it to look.

Thanks

umayaraj
Participant
0 Kudos

hi Panduranga,

you duble click the the product id -> attribute tab-> output only(check box)

in top proprieties have dropdwon box make as empty.

Thanks

Umayaraj.

Former Member
0 Kudos

Thanks Umayaraj.

Field is still used for output and when I insert records I need the users to select from a Drop Down box

0 Kudos

is your problem solved ? 😉

Former Member
0 Kudos

No.

Your proposed solution did not work

Thanks

0 Kudos

do you want like this input

Former Member
0 Kudos

The drop downs are working 100% as expected.

But I do not want Input lines visible until the user clicks on Insert

raymond_giuseppi
Active Contributor

In the PBO, LOOP AT TABLE CONTROL, deactivate fields (LOOP AT/MODIFY SCREEN) as long user didn't press insert (e.g. empty internal table, SCREEN-ACTIVE = '0' if no record)

Regards,
Raymond

0 Kudos

Thanks Raymond

Code Sample for solution was:

if g_data_copied <> 'X'. " If not the first display of the screen
loop at screen.
if screen-name+0(8) <> 'POSITION'. "This Ensures Action Buttons are still active (Insert / Delete, etc)
screen-input = '0'.
modify screen.
endif.
endloop.
endif.

Regards

Panduranga