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

Moving internal table to another internal table using ASSIGN statement.

Former Member
0 Likes
1,535

Hi,

We have a requirement to move an internal table form one program(SAPMV60A) to the internal table of the include(RV61B9xx) using the following statement.

[ xvbrp is a internal table in SAPMV60A. ]

ASSIGN ('(SAPMV60A)xvbrp') TO <ls_xvbrp>.

We tried all the combinations for declaring <ls_xvbrp> as table.

It is going to dump in our system,

" Type conflict with ASSIGN in program "SAPLV61B ".".

Your efforts will be rewarded with points.

Thanks in Advance,

Warm Regards,

Baburaj

5 REPLIES 5
Read only

Former Member
0 Likes
1,083

Hi,

Use the ABAP Memory IMPORT and EXPORT option and Export the internal table and import there in other include

OR u can use application server file like open dataset.

OR upload it to any cluster table and download it in include useing

IMPORT FROM DATABASE

EXPORT FROM DATABASE

Regards,

Nandha

Reward if it helps

Read only

Former Member
0 Likes
1,083

Hi,

Try this:

FIELD-SYMBOLS: <ls_xvbrp> TYPE ANY.

ASSIGN ('(SAPMV60A)xvbrp[]') TO <ls_xvbrp>

if xvbrp is a table with header line do not forget to put xvbrp[] in your assign statement.

Read only

0 Likes
1,083

Hi

If you declare your field-symbols as table you should use []

FIELD-SYMBOLS: <ls_xvbrp> TYPE TABLE.

ASSIGN ('(SAPMV60A)xvbrp[]') TO <ls_xvbrp>.

else

FIELD-SYMBOLS: <ls_xvbrp> TYPE ANY.

ASSIGN ('(SAPMV60A)xvbrp') TO <ls_xvbrp>.

But I believe in this case you'll assign the header line of xvbrp.

Max

Read only

uwe_schieferstein
Active Contributor
0 Likes
1,083

Hello Baburaj

Perhaps the following article may be useful to you:

<a href="http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/208811b0-00b2-2910-c5ac-dd2c7c50c8e8">SAP® User Exits And The People Who Love Them</a>

Regards

Uwe

Read only

Former Member
0 Likes
1,083

Hi,

You need to define say

CONSTANTS:

c_pgmvariable(21) value '(SAPMV60A)xvbrp[]'.

FIELD-SYMBOLS: <FC> Type ANY.

DATA: BEGIN OF I_REF_ESLL OCCURS 200.

INCLUDE STRUCTURE VBRP.

DATA: END OF I_REF_ESLL.

*

assign (c_pgmvariable) to <FC>.

I_REF_ESLL[] = <FC>.

I hope this helps,

Regards

Raju Chitale