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

screen automatically updated

Former Member
0 Likes
417

i m having one screen which is having three I/O BOX. now when i m putting some data in first I/O box,the other two I/O box shows data automatically from database without pressing any button.

How can i do this......plz give me sample code

2 REPLIES 2
Read only

Former Member
0 Likes
392

parameters: vbeln like vbrk-vbeln modif id INV,

date like vbrk-fkdat modif id DAT.

data: flag type c.

at selection-screen output.

loop at screen.

if screen-group1 = 'INV'.

if vbeln is not initial.

flag = 'C'.

endif.

elseif screen-group1 = 'DAT'.

if flag = 'C'.

select single fkdat from vbrk into date

where vbeln = vbeln.

clear flag.

modify screen.

exit.

endif.

endif.

Read only

Former Member
0 Likes
392

PARAMETERS : CID TYPE ZCUSTOMERMASTER-CUSTOMERID,

PLID TYPE ZPOLICYTRANS-POLICYID.

AT SELECTION-SCREEN ON CID.

SELECT SINGLE POLICYID INTO POLICY FROM ZCUSTOMERPLANDET WHERE

CUSTOMERID = CID.

PLID = POLICY.

Now if u enter the value in CID and click enter automatically PLID get filled.

IF u r using dialog program use functioncode.

give a fcode for the i/o text field.

In module user command write like this.

Case sy-ucomm.

when 'fcode'.

SELECT SINGLE POLICYID INTO POLICY FROM ZCUSTOMERPLANDET WHERE

CUSTOMERID = CID.

PLID = POLICY.

endcase.