Skip to Content
0
Former Member
Jan 11, 2008 at 12:33 PM

regarding screen modification and messages

22 Views

hi experts,

1. I have devloped one screen 0100 and diaplayed 4 fields from ztable in input/output format. i hv also created 2 buttons for inserting and deletion.

so when i give input for the fields and when i click insert the data is inserting into ztable properly. but when the same data again given as input it is modifying the data. so wht i want is when we give aleady existing data as input is shoud give message as 'DATA ALREADY EXITS IN ZTABLE ' and also it should dispaly options want to change data if i click YES it should CONTINUE modify existing data if no it should not modify the existing record.

2. Also the fields which i hv displayed are in input / output form so i want to make them as active and deactive according to the requiment. i want to keep one button on application tool bar when i click change the fields will be in input mode or else when i again click that it will show me in display mode. i hv seen some demo programes in abap docu but unable to understand it please any body can give me clear idea about this code.

report:demo_dynpro_tabcont_loop_at

when 'TOGGLE'.

loop at flights-cols into cols where index gt 2.

if cols-screen-input = '0'.

cols-screen-input = '1'.

elseif cols-screen-input = '1'.

cols-screen-input = '0'.

endif.

how can i use this one when i am using ztable fields displayed on screen.?

<b>points will be rewared</b>

regards,

priyanka reddy.