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: 

Passing data between diffrent programs

Former Member
0 Kudos

Hi,

I have created one module Pool screen initially.

And after some days end users wanted one button<b>[PRINT]</b> on Application tool Bar of that Module Pool screen.

Which i have done - If i hit on that button it should take me to <b>SAP Scipt output</b>.

Which i have done by Using <b>SUBMIT</b> program calling Print program and inturn displaying SAP SCRIPT Layout.

IN the <b>SAP Script output</b> i need to display almost same data that we will have in Module Pool Screen.

<b>Before using SUBMIT statement i have exported all the required data and IMPORTED the same data in SUBMITTED Program[Print Program]. And used the same to print SAP Script output.</b>

Is this the best approach for this scenario.

Will it effect Performence.

Is there any other way by which we can pass the data to Print Program.

Which could be better performence wise.

Can any give sujjestions in this regard.

Thanks in advance.

Thanks & Regards,

Prasad.

4 REPLIES 4

Former Member
0 Kudos

hi

instead of <b>submit</b> u can make the print program as an include program in the module pool program itself and call the open_form , insert_form , close_form fms in a module as per ur requirement

Former Member
0 Kudos

Another way would be to --

1. Declare a selection screen parameter in your print program with option NO-DISPLAY.

2. Therefore this selection parameter will not get displayed in your print program.

3. Now in sumbit you can pass the value of quantity to this parameter.

But i dont see anything wrong in using IMPORT/EXPORT option.

Sharath.

Former Member
0 Kudos

Hi Prasad,

I think in the case when "print',u can directly use the function modules open_form, write_form & close_ form to get the script output.

Award points if helpful.

regards,

keerthi.

Former Member
0 Kudos

Hi prasad,

1. Is this the best approach for this scenario.

I would personally say no.

We should write the code of displaying

the layout, in the module pool itself.

(This may be done using a include and

using some subroutine/FORM)

2. Will it effect Performence

No.

3. Is there any other way by which we can pass the data to Print Program.

This is the best way.

4. Which could be better performence wise

Whatever way you use,

there won't be any effect on performance.

regards,

amit m.