Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Access to external variables ( Internal tables )


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

Former Member
Former Member replied

(saplv09c)gt_xvbpa needs to be upper case.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question