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

Call a module pool program

Former Member
0 Likes
5,884

How to call a module pool program in a report program...? I also need to pass parameters to the module pool program.......

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
2,531

You could setup some parameter ids and SET them in your calling program, and then use the CALL TRANSACTION statement to call the module pool program, in this module pool program you would then GET the parameter ids and the values.

You could also use the EXPORT IMPORT functionality to achieve the same result.

An outdated technology is the use of CALL DIALOG. Not sure you want to go there.

Regards,

RIch Heilman

16 REPLIES 16
Read only

Former Member
0 Likes
2,531

hi Sowmya,

Refer

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
2,532

You could setup some parameter ids and SET them in your calling program, and then use the CALL TRANSACTION statement to call the module pool program, in this module pool program you would then GET the parameter ids and the values.

You could also use the EXPORT IMPORT functionality to achieve the same result.

An outdated technology is the use of CALL DIALOG. Not sure you want to go there.

Regards,

RIch Heilman

Read only

0 Likes
2,531

>>An outdated technology is the use of CALL DIALOG. Not sure you want to go there.

SAP still uses it in HR_INFOTYPE_OPERATION & HR_MAINTAIN_MASTERDATA.. at least on 47.. don't know if they changed the approach in the newer versions.. SAP7.0?

~Suresh

Read only

0 Likes
2,531

Hi Surresh, yes I would assume that you will still see this even in ECC 6.0. Why fix what isn't broken, right? I think the idea here, is that any future development as of a certain release, the internal developers were simply not supposed to use it anymore.

Regards,

Rich Heilman

Read only

0 Likes
2,531

Check the section under "Using Dialog Modules". It simply says that they are obselete.

http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9db635c111d1829f0000e829fbfe/frameset.htm

Regards,

RIch Heilman

Read only

Former Member
0 Likes
2,531

HI

Just give Call screen <screen name>

Regards

Haritha.

Read only

Former Member
0 Likes
2,531

I think i will explain my problem more clearly... for example if i want to execute so10 withour bdc.. i am calling the program of the first screen of the transaction namely sapmssce..... now i need to pass values to the program and retrieve results from this program... this output i may pass it to the next screen( program for the next screen.) can u get my flow??

I just wanna know how do i call the program and how to pass parameters..

Read only

0 Likes
2,531

Again, if you are just using CALL TRANSACTION, then you can try to SET the parameter ids of the screen. But you will probably not be able to pull the results from a standard module pool program, it is not designed that way. Report programs are a different story.

Regards,

Rich Heilman

Read only

0 Likes
2,531

Now if you are being specific about transaction SO10, meaning that you actually want to use the SO10 transaction, there is no need to. You can read edit and save standard texts using the function module READ_TEXT, EDIT_TEXT or SAVE_TEXT.

Regards,

RIch Heilman

Read only

Former Member
0 Likes
2,531

Hi Sowmya

If u want to call a module pool program, then u should use CALL Transaction with Set parameter id...

Every module pool programs has been associated with a transaction. So instead of calling a module pool u can call transaction.

I assume u can use CALL SCREEN statement.

Need ur reward points if u feel its useful.

Regards

Ravi

Read only

Former Member
0 Likes
2,531

Hi I think i didnt communicate it yet the right way it wanted it to be done..... i dont want for so10... i gave an example...how to pass parameters to the module pool program....... i don want to record a bdc or do call transaction...... i want to operate on the transaction screen wise rather program wise..... so i am calling the transaction associated to the first screen manually and then i am passing it to teh program associated with the second screen and so on.......

i just want to know how to pass parameters to the program.... for example sapmssce... how to pass parameters to this program using abap reporting...... how to call this program in the first place..??

i heard SUBMIT solves this purpose... can u explain it??

Read only

0 Likes
2,531

You can't do that with a module pool program without using BDC. You can use the SUBMIT statement and pass parameters when it is a report program(executable program) only. You can also get the report results back from a SUBMIT.

So with what you are saying the only resolution is a BDC over the transaction, and you would not be able to get the results except for any messages that come back thru the MESSAGES into MESSTAB extension of the CALL TRANSACTION statement.

Regards,

Rich HEilman

Read only

Former Member
0 Likes
2,531

Hi Rich...

thanks for ur concern towards my issue... the porblem we are facing is with ck40n transaction... where in one of the OSSNotes we read that bdc rather batch job in background cannot be done for that transaction... so in this case we need to call the programs of that transaction.. screen by screen and pass values and retrieve values..... so can u help me with that...

Read only

0 Likes
2,531

I wonder if you could use the CK42 transaction in a BDC instead. This is the "CHange Cost Roll" transaction.

Regards,

RIch Heilman

Read only

Former Member
0 Likes
2,531

That was avery useful suggestion but some of the functionalities of ck40n was not found in ck42... it had only the general data part..... it was not having processing data options... i need to generate the costing estimate...

the processing data has 4 steps to perform.... it ends with analysis where a report will be generated for the cost estimate.......

can u look into the transaction and help me with this issue???

Read only

0 Likes
2,531

Well, I think we should start debuggin the transaction and pulling out the function modules being used and they maybe you can try building your application calling this function modules, hopefully they are full APIs, but I am very doubtful.

Regards,

RIch Heilman