Skip to Content
avatar image
Former Member

FIELD SYMBOL : - Get Data from Another program

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 17, 2010 at 10: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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 17, 2010 at 06: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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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.