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: 

Access to external variables ( Internal tables )

Former Member
0 Kudos

Hello,

I'm trying in program SAPMV50A to access a variable defined in another program SAPLV09C. The external variable is an internal table named gt_xvbpa.

In debug when i'm in SAPMV50A if i try to see the contents of '(SAPLV09C)gt_xvbpa' i can see it, but when i try to assign it's content to an internal table in SAPMV50A the assign command returns sy-subrc = 0. The code is :

DATA: begin of lt_xvbpa occurs 0.

include structure VBPAV.

data: end of lt_xvbpa,

var type string.

field-symbols: <f1> type any.

Var = '(saplv09c)gt_xvbpa'.

Assign (var) to <f1>.

lt_xvbpa = <f1>.

Does anybody have one idea why the assign command fails ? am i done it the correct way ?

Or does anybody knows another way to access to another programs variables ?

Thanks in advance,

Paulo Sousa

1 ACCEPTED SOLUTION

Former Member
0 Kudos

(saplv09c)gt_xvbpa needs to be upper case.

1 REPLY 1

Former Member
0 Kudos

(saplv09c)gt_xvbpa needs to be upper case.