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: 

How to assign a internal table of another program to field symbol

Former Member
0 Kudos

Hi Experts,

I need to use Internal table XVBRP present in SAPMV60A program in a output routine which creates include in SAPLV61B.

I Coded as below:

data: lv_wa type char20 value '(SAPMV60A)XVBRP'.

Types: t_vbrpvb type standard table of vbrpvb.

field-symbols: <fs> type t_vbrpvb.

Assign (lv_wa) to <fs>.

However, In execution it is giving dump saying that you are attempted to assign a field to a typed field symbol but a type conflict occured

Can anybody explain me the way i have to forward to use that internal table in my output routine.

Thank you very much for your help

Gopal

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos
data: lv_wa type char20 value '(SAPMV60A)XVBRP[]'. "<---this should be body since it is declared as 
"header line, so you are trying to assign the header it is causing the dump.
Types: t_vbrpvb type standard table of vbrpvb.
field-symbols: <fs> type t_vbrpvb.

Assign (lv_wa) to <fs>.
2 REPLIES 2

Former Member
0 Kudos

Hi,

Try adding the body operator in the variable..

data: lv_wa type char20 value '(SAPMV60A)XVBRP[]'.

Thanks

Naren

former_member188685
Active Contributor
0 Kudos
data: lv_wa type char20 value '(SAPMV60A)XVBRP[]'. "<---this should be body since it is declared as 
"header line, so you are trying to assign the header it is causing the dump.
Types: t_vbrpvb type standard table of vbrpvb.
field-symbols: <fs> type t_vbrpvb.

Assign (lv_wa) to <fs>.