01-03-2012 2:06 PM
Hi All.,
I have designed the custom screens with create,change,display mode..
1. In the creation mode, after saving the data.. the ID will be generated.
2. In the change/display mode.. by giving the ID and hitting enter key the data will be displayed..
Now..,I want to the call the transaction in Change mode( which am already doing using call transaction <tcode> stmt) passing the ID and at the same time dispalying the data without hitting the enter key..
Is it possible to display the data without hitting the enter key ? i mean we should pass ID and also the relevant data of that id should be displayed ..
thanks
suresh
01-03-2012 2:25 PM
Hi,
yes, it is possible to display the data without hitting the enter key
- it just depends on how You do the coding part.
I would check in PBO if the ID is known (in defined variable, memory id, etc.) and read corresponding data to fill rest of screen elements.
I think that You have such code in PAI section, which is executed after user action - PBO is executed before screen is displayed.
Regards,
--
Przemysław
01-03-2012 2:25 PM
Hi,
yes, it is possible to display the data without hitting the enter key
- it just depends on how You do the coding part.
I would check in PBO if the ID is known (in defined variable, memory id, etc.) and read corresponding data to fill rest of screen elements.
I think that You have such code in PAI section, which is executed after user action - PBO is executed before screen is displayed.
Regards,
--
Przemysław
01-03-2012 2:31 PM
yes. i have that coding ( after hitting the enter key) in PAI event
how exactly we can do that ?.. any example or link.pls
01-03-2012 2:36 PM
Hi,
check documentation of PROCESS BEFORE OUTPUT.
Here is small example:
In screen 100:
PROCESS BEFORE OUTPUT.
MODULE data_0100.
In output module for screen 100:
MODULE data_0100 OUTPUT.
IF gv_doc_id IS NOT INITIAL.
PERFORM read_data.
ENDIF.
ENDMODULE. " DATA_0100 OUTPUT
Regards,
--
Przemysław
01-03-2012 2:51 PM
thanks alot.. ..but how can we pass the id from other program to screen(tcode)...coz am using call transaction <tcode> stmt..using this we cannot pass id to screen...
do u advise to use any other stmt for passing id from prog to tcode...
thanks
01-03-2012 3:06 PM
Hi,
if You are passing from another program, then EXPORT TO MEMORY would be correct.
Check the documentation.
Regards,
--
Przemysław
01-03-2012 3:25 PM
Set the the parameter value and than use call transaction with skip first screen option
Nabheet