2008 Apr 07 3:34 PM
I am creating an internal version of the notification report program and would like to use a table created in the called program in the main program.
I generate the data in the called program and would like to "pass" the data into a holding table in the calling program.
For instance called program loads table i_hold_text, I would like to pass this to calling program ZRIPRSN00 table GT_HOLD_TEXT to use in the SAPScript. Ideas?
2008 Apr 07 3:42 PM
Sounds like you should use ABAP memory here by using EXPORT ... TO MEMORY in the called program and IMPORT ... FROM MEMORY in the calling program. Have a look at the online help for these ABAP statements.
Cheers
Thomas
I am creating an internal version of the notification report program and would like to use a table created in the called program in the main program.
I generate the data in the called program and would like to "pass" the data into a holding table in the calling program.
For instance called program loads table i_hold_text, I would like to pass this to calling program ZRIPRSN00 table GT_HOLD_TEXT to use in the SAPScript. Ideas?
2008 Apr 07 3:42 PM
Sounds like you should use ABAP memory here by using EXPORT ... TO MEMORY in the called program and IMPORT ... FROM MEMORY in the calling program. Have a look at the online help for these ABAP statements.
Cheers
Thomas
2008 Apr 07 3:49 PM
You could use field-symbols.
like
DATA: l_text(18) VALUE '(SOURCE_PROGRAM_NAME)table_name[]'.
field-symbols <fs> type table.
Assign (ltext) to <fs>.
if sy-subrc eq 0.
"Do what you want with <fs>
endif.