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

Pass internal table form report program to moudle program

Former Member
0 Likes
567

Hi fellow Abapers,

i am stuck in a requirement of passing an internal table from my Report (ALV ) program to the module program in which i have a table control

actually, when one checkmarks the alv list records and presses the buton modify on the ALV toolbar, it should take me to the module pool program, displaying the selected records on table control,

i have the final table in alv , in which i have all those records (checkmarked) in a table called IT_MODULE,

how to pass this table to table control, it's not accepting the table.

please help me out..

Rohan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
540

Use Export/Import statement.

EX:

Export IT_MODULE to memory id 'XXX'.

Import the same in the PBO of the Module pool program.

-bhavana

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Apr 14, 2008 6:25 PM

4 REPLIES 4
Read only

Former Member
0 Likes
541

Use Export/Import statement.

EX:

Export IT_MODULE to memory id 'XXX'.

Import the same in the PBO of the Module pool program.

-bhavana

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Apr 14, 2008 6:25 PM

Read only

0 Likes
540

Hi bhavna,

a silly question, but how to find the memory ID ??

my code is as below

WHEN '&MOD'. MODIFY REDORD BUTTON

CLEAR V_COUNTER.

REFRESH: IT_FINAL_TEMP.

= IT_FINAL[].

DELETE it_module[] WHERE V_BOX NE 'X'.

DESCRIBE TABLE it_module[] LINES V_COUNTER.

**&--if no checkbox is selected

IF V_COUNTER = 0.

*&--display error message to select one

MESSAGE E007. "please select a record to modify

ELSE.

CALL TRANSACTION 'Z_RM_ALV_MODULE' .

ENDIF.

ENDCASE.

now i have to pass this IT_MODULE, to PBO..

please tel me how to fins the memory ID ??

<REMOVED BY MODERATOR>

Rohan

Edited by: Alvaro Tejada Galindo on Apr 14, 2008 6:25 PM

Read only

0 Likes
540

Thanks bhavna,

problem resolved.

Read only

Former Member
0 Likes
540

Hi,

Create a function module. Now pass the internal tble to the Function module. Decalare a global internal table in the top include of the FM. with in the sourcode of the FM, assign the value to our new global variable.

Now create a screen in the FM. ( type call screen 100 in source code and double click on it. it will create one for you)

Regards,

Niyaz