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

Passing internal table values from module pool to report

Former Member
0 Likes
2,185

Hi friends,

               I designed my selection screen in module pool program and i wrote all internal table logics in report program.

i passed that input values by using export / import using memory ID .  i gave same name for internal table in both programs.

But values is not passing to that report.

Thanks,

Meenachi.R

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,806

Export to/Import from memory should work, can you paste the coding of those statements in both your programs. Also have you checked that both programs actually execute those statements.

Regards,

Raymond

NB: The ITAB name can differ, you could have used a EXPORT tab FROM itab1 and IMPORT tab TO itab2 syntax.

Hi friends,

               I designed my selection screen in module pool program and i wrote all internal table logics in report program.

i passed that input values by using export / import using memory ID .  i gave same name for internal table in both programs.

But values is not passing to that report.

Thanks,

Meenachi.R

11 REPLIES 11
Read only

Former Member
0 Likes
1,806

HI

can copy the code or debug and analyze it u can understand where and what the problem

Regards

Mahesh

Read only

Former Member
0 Likes
1,806

Hi Meenachi,

I do not understand why you have to use Export/Import for transferring values. If you are working on a module pool you can just declare the internal tables in the TOP include. Then it will be available throughout the program.

Also the input values in the screen would be transferred to the program on PAI and Vice versa on PBO if you have declared same type variables of screen fields in the TOP include.

If you are trying to do something else, let us know clearly what you are doing.

Regards,

Karthik D

Read only

0 Likes
1,806

Thanks mahesh

Read only

0 Likes
1,806

Thanks karthik..

I am using module pool as selection screen. i want to pass the selection screen values to another existing report.how to pass the values?

Meenachi.R

Read only

0 Likes
1,806

Hi Meenachi,

If you have to use the internal table created on selection screen and use in the report, you can also design the same selection screen in report also. Then there will be no need to pass internal table.

Just handle Events carefully during execution.

--Regards

- Ketan

Read only

0 Likes
1,806

Hi,

You told that your module pool selection screen will be connected to an EXISTING report? Is this report has PBO and PAI?

Jake.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,807

Export to/Import from memory should work, can you paste the coding of those statements in both your programs. Also have you checked that both programs actually execute those statements.

Regards,

Raymond

NB: The ITAB name can differ, you could have used a EXPORT tab FROM itab1 and IMPORT tab TO itab2 syntax.

Read only

ThomasZloch
Active Contributor
0 Likes
1,806

Sounds like an awkward design, why so complicated?


Thomas

Read only

0 Likes
1,806

Thanks Thomas..

Requirement is like that..

Selection screen should be in module pool and report should display in classical.

in module pool write statement should not work right!!

Meenachi.R

Read only

0 Likes
1,806

WRITE statements works in module pool, of course you will be required to explicitaly leave to LIST-PROCESSING, but it works.

Ref: Using LEAVE TO LIST-PROCESSING

Regards,

Raymond

Read only

0 Likes
1,806

Thanks Raymond