08-17-2010 7:07 AM
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
08-17-2010 11:07 AM
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
08-17-2010 7:22 AM
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
08-17-2010 8:04 AM
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
08-17-2010 9:01 AM
Hello ,
where u are calling this code ? may be that exit is triggered before its going to pricing.
wats ur requirement ?
regards
Prabhu
08-17-2010 9:10 AM
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.
08-17-2010 11:07 AM
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