Application Development 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: 

modulepool programming

Former Member
0 Kudos

can i use parameters & select-options in module pool programming , if yes how i have to use plz any one guide me

13 REPLIES 13

Former Member
0 Kudos

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.

0 Kudos

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 .

0 Kudos

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.

0 Kudos

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

0 Kudos

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.

0 Kudos

is it possible for me to develop i/o fields in reports

0 Kudos

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

0 Kudos

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.

0 Kudos

ya u can develop i/o fields on report, declare it using parameters and select-options

0 Kudos

i agree but save button, refresh button, emailbutton , print buttons are mandatory to my object, so let me know how could it possible

0 Kudos

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.

0 Kudos

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.

0 Kudos

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