‎2007 Jul 10 12:31 PM
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
‎2007 Jul 10 12:36 PM
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
‎2007 Jul 10 1:17 PM
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.
‎2007 Jul 10 1:25 PM
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
‎2007 Jul 10 1:27 PM
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
‎2007 Jul 10 1:30 PM
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