01-31-2017 11:00 PM
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
02-01-2017 6:59 AM
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
01-31-2017 11:33 PM
01-31-2017 11:56 PM
Hi Raghu
Yes i did, let me try again.
This is how it currently looks.
This is how i want it to look.
Thanks
02-01-2017 2:48 AM
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.
02-01-2017 3:15 AM
Thanks Umayaraj.
Field is still used for output and when I insert records I need the users to select from a Drop Down box
02-01-2017 3:29 AM
02-01-2017 3:31 AM
02-01-2017 3:40 AM
02-01-2017 6:26 AM
The drop downs are working 100% as expected.
But I do not want Input lines visible until the user clicks on Insert
02-01-2017 6:59 AM
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
02-02-2017 2:23 AM
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