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

displaying template with values

Former Member
0 Likes
913

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.

9 REPLIES 9
Read only

Former Member
0 Likes
846

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

Read only

0 Likes
846

hai rajesh,

i have exactly done like that but its not working properly,

any more methods to suggest.

Read only

Former Member
0 Likes
846

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

Read only

0 Likes
846

do u have any code for transfering data from db to screen elements, probably give me an example for it.

Thanks & Rrgards,

Syam

Read only

0 Likes
846

do u have any code for transfering data from db to screen elements, probably give me an example for it.

Thanks & Rrgards,

Syam

Read only

0 Likes
846

Hi,

in PAI

case sy-ucomm

when 'DISP'.

select single * from <db> into wa where <condition>.

screenfield-name = wa-fieldname.

--

--

endcase.

regards

padma

Read only

Former Member
0 Likes
846

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.

Read only

0 Likes
846

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.

Read only

Former Member
0 Likes
846

HELLO ,

THANKS FOR ALL THOSE WHO HELPED IN CLEARING MY PROBLEM.