‎2008 Apr 14 6:37 AM
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
‎2008 Apr 14 6:47 AM
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
‎2008 Apr 14 6:47 AM
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
‎2008 Apr 14 6:54 AM
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
‎2008 Apr 15 7:52 AM
‎2008 Apr 14 6:54 AM
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