‎2008 Aug 12 2:59 PM
Hi Abapers,
I have a developed template in module pool program and from the screens i accepted values and stored it to database table. Now my problem is in another screen i have to select a value from the previously entered ones and if i click display button the data should be displayed in the template form of a screen .
Thanks & Regards,
Syam.
‎2008 Aug 13 7:23 AM
hi,
in PAI
case sy-ucomm.
when 'disp'.
write select stmt with condition on which u want to
display the screen.
try the above......
- rajesh
‎2008 Aug 13 9:38 AM
hai rajesh,
i have exactly done like that but its not working properly,
any more methods to suggest.
‎2008 Aug 13 7:31 AM
Hi,
First set the value of the field from the previously entered data in the PBO event
Then in the PAI event write the code for transfering data from db to screen elements.
regards
padma
Edited by: Padmavathi Palli on Aug 13, 2008 8:32 AM
‎2008 Aug 13 11:37 AM
do u have any code for transfering data from db to screen elements, probably give me an example for it.
Thanks & Rrgards,
Syam
‎2008 Aug 13 11:46 AM
do u have any code for transfering data from db to screen elements, probably give me an example for it.
Thanks & Rrgards,
Syam
‎2008 Aug 13 12:28 PM
Hi,
in PAI
case sy-ucomm
when 'DISP'.
select single * from <db> into wa where <condition>.
screenfield-name = wa-fieldname.
--
--
endcase.
regards
padma
‎2008 Aug 13 8:21 AM
Hi,
In the First Screen under PAI event write the INSERT case
CASE SY-UCOMM.
WHEN 'INST'.
-
-
-
Endcase.
In the second screen under PAI event now write DISPLAY case with required conditions
CASE SY-UCOMM.
WHEN 'DISP'.
SELECT -
-
-
-
FROM *****
INTO ITtab
WHERE conditions.
ENDSELECT.
Endcase.
Regards,
kavitha.
‎2008 Aug 13 1:39 PM
hi kavitha,
i followed ur approach but only first field is getting displayed on the screen , all other below it r empty. how can i display all the text field boxes with accurate values from database table.
Thanks & Regards,
Syam.
‎2008 Aug 13 2:38 PM
HELLO ,
THANKS FOR ALL THOSE WHO HELPED IN CLEARING MY PROBLEM.