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: 

FIELD SYMBOL : - Get Data from Another program

Former Member
0 Kudos

Hi Gurus,

I have a Z program - ZPROG1.

I need to get the value of a variable V_VAR1 from program RV63A712 which is a routine.

How can i get the value of V_VAR1 from RV63A712 into my program ZPROG1. using field symbol .

The main program of RV63A712 is SAPLV61A.

For example .

The program RV63A712 is as below.

&----


*& Form FRM_KOND_BASIS_712

&----


  • Copper Price Participation

  • John May 09/01/2009

----


FORM frm_kond_basis_712.

V_VAR1 = B_KBETR + G_KWERT .

ENDFORM.

Avi

1 ACCEPTED SOLUTION

Former Member

In the new debugger when you check the standard tab, you should be seeing the program name SAPLV61A in the ABAP stack.

Also, the variable should be global in the program to use it in your exit. If the variable is local, look for a global variable / fetch from the table if possible.

Cheers,

Sujay

5 REPLIES 5

Former Member
0 Kudos

hello ,

try this sample code...

data: c_progvar(30) type c value '(RV63A712)V_VAL1'.

data: v_val1 type wrbtr.

field-sybmol: <fs> type any.

assign (c_progvar) to <fs>.

if <fs> is assigned.

v_val1 = <fs>.

endif.

regards

Prabhu

0 Kudos

Hi Prabhu

I have written the code as below but still its giving message as unassighned.

DATA: l_pp_rate TYPE t_currency.

FIELD-SYMBOLS : <l_pp_rate> TYPE any.

CONSTANTS : lk_pp_rate TYPE char30 VALUE '(RV63A712)L_PP_RATE'.

ASSIGN (lk_pp_rate) TO <l_pp_rate>.

Avi

0 Kudos

Hello ,

where u are calling this code ? may be that exit is triggered before its going to pricing.

wats ur requirement ?

regards

Prabhu

0 Kudos

Put a break point in your Z program and check the value of the variable as below:

(SAPLV61A)variable_u_need -> check like this in debugger

If u r able to access this variable then :

data : lv_global_variable type string value '(SAPLV61A)variable_u_need'.

fiedl-symbols: <fs> type any.

assign (lv_global_variable) to <fs>.

xxx = <fs>.

Thats it

KR

Veeranji Reddy P.

Former Member

In the new debugger when you check the standard tab, you should be seeing the program name SAPLV61A in the ABAP stack.

Also, the variable should be global in the program to use it in your exit. If the variable is local, look for a global variable / fetch from the table if possible.

Cheers,

Sujay