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 final internal table data to bdc report program

former_member391265
Participant
0 Kudos

HI All

My req. is to pass it_final table data which is a oops abap report .. i need to pass this data in bdc report to process bdc program..

as i am aware of submit statement and import and export parameters also...and we can use it  but i am not sure if we can use export/import in oops report. as it is giving me an error not to use export in oops...

can you please suggest...

<awarding points is against Forums' RoE>

thanks

Message was edited by: Suhas Saha

3 REPLIES 3

jrg_wulf
Active Contributor
0 Kudos

Hi,

export and import are useable in OO Context as well. All you have to do, is to stick to the sytax in its full extent.

That is, when you want to export your int TAB to memory, you code like this:

EXPORT new_name from it_final TO MEMORY ID my_id.

Hope it helps.

Regards

Jörg

Former Member
0 Kudos

you can create OO method to add export internal table to your destination?

Execute SE24, then go to 'Method' then create a method there.

Former Member
0 Kudos

hi,

i hope this will help u out.

EXPORT :-

To read data objects from an ABAP program into ABAP memory, use the following

statement:

Syntax

EXPORT <f1> [FROM <g 1>] <f 2> [FROM <g 2>] ... TO MEMORY ID <key>.

This statement stores the data objects specified in the list as a cluster in memory. If you

do not use the option FROM <f i >, the data object <f i > is saved under its own name. If

you use the FROM <g i > option, the data objet <g i > is saved under the name <f i >.

The name <key> identifies the cluster in memory. It may be up to 32 characters long.

The EXPORT statement always completely overwrites the contents of any existing data

cluster with the same name <key>.

IMPORT :-

To read data objects from ABAP memory into an ABAP program, use the following

statement:

Syntax

IMPORT <f1> [TO <g 1>] <f 2> [TO <g 2>] ... FROM MEMORY ID <key>.

This statement reads the data objects specified in the list from a cluster in memory. If

you do not use the TO <g i > option, the data object <f i > in memory is assigned to the

data object in the program with the same name. If you do use the option, the data object

<f i > is read from memory into the field <g i >. The name <key> identifies the cluster in

memory. It may be up to 32 characters long.