06-23-2007 7:18 AM
can i use parameters & select-options in module pool programming , if yes how i have to use plz any one guide me
06-23-2007 7:23 AM
hi,
u can define select-option and parameter in the module pool program between the statements begin of screen.....end of screen.
and the use them in the screen.
generally its not advisable to have a select-option in module pool programming.
doing it in the above way will complicate things.
regards,
Navneeth K.
06-23-2007 7:26 AM
ok i agree but i have to develop the report with fistname , lastname , start date & end date if i click ok button it has to display the duration of days & if i click refresh it has to clear is there any idea to develop these type report in reports .
06-23-2007 7:28 AM
hi,
wat u can do is create four i/o fields for first name, lastname, start date and end date respectively. upon clicking save just pick values from these fields and save to db.
regards,
Navneeth K.
06-23-2007 7:31 AM
thats it ,automatically it has to calculate the duration also and display the days with resepect to start & end dates example : 20.10.2006, & end date 25.10.2006 if i click ok it has to display duration of days & if i click save it has to save in database , plz guide how could i develop code for it
06-23-2007 7:34 AM
for calculating the interval between the two days, i.e. to find no. of days between two given date. there is a function module , try searchig se37 with keyword interval.
06-23-2007 7:41 AM
06-23-2007 7:48 AM
parameters : st-date type sy-ucomm,
e-date type sy-ucomm.
data: duration typee i.
duration = e-date - st-date.
write duration . this code is not working in modulepool programing .
it is displaying an error as have to develop with begin of /end-of-screen , i doint know how to develop this plz guid how could i execute this code in modulepool program
06-23-2007 7:53 AM
hi,
there are few issues with this code:
1. why do u declare it of type sy-ucomm,
2. if you want to declare the same in a module pool program then declare between.
begin of screen <screen number>.
....
end of screen.
if you want further info abt this stmnt press F1 on the begin keyword.
06-23-2007 7:55 AM
ya u can develop i/o fields on report, declare it using parameters and select-options
06-23-2007 7:59 AM
i agree but save button, refresh button, emailbutton , print buttons are mandatory to my object, so let me know how could it possible
06-23-2007 8:04 AM
steps:
1. place 4 fields on screen in se51. (fields as mentioned above)
2. create your own pf-status with save, display... buttons.
3. set this status on PBO event.
4. on clicking save write a module in PAI. this module should insert this record to the database.
5. for displaying the info abt the person ask him to enter say his id or somethin unique id given to each person while saving. upon entering the id , when he preeses enter button in pai write module to fetch record from database.
6. in call this modules based on sy-ucomm.
06-23-2007 8:08 AM
i understood but little bit of confusion will u plz explain clearly & iam aware of inserting a record in database with out any irratiation plz guide me dude naveenth.
06-23-2007 8:15 AM
can i use the module pool screen date /layouts to view in alvs , i have one screen which contaims first name i/o field last name i/0 field start date & end date ,one refresh button , save button . i need to see these elements in my alv is there any method , give me idea how could i develop & view