‎2008 Feb 05 1:32 PM
Hello,
can we write as follows
AT SELECTION-SCREEN.(this is in main program)
&----
***Include program for custom at selection screen
*&----
&*
INCLUDE zhrtiratsel.
And in include program.
SELECT SINGLE pernr
FROM pa0105
INTO p0105
where usrid = sy-uname.
like as above can we retrive data or not?
‎2008 Feb 05 1:35 PM
Yes you can do that but you need to put your internal table definition in another include so it can be used everywhere. Else, use a subroutine for the same.
Regards,
Amit
‎2008 Feb 05 1:39 PM
Write as below ...
INCLUDE zhrtiratsel.
AT SELECTION-SCREEN.(this is in main program)
&----
***Include program for custom at selection screen
**&----
&
Perform get_data.
Write this in the include zhrtiratsel.
form get_data.
SELECT SINGLE pernr
FROM pa0105
INTO p0105
where usrid = sy-uname.
endform.
‎2008 Feb 05 2:04 PM
hi
good
yes you can do like this to fetch the data using the include.
thanks
mrutyun^
‎2008 Feb 05 2:58 PM