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: 

Get Buffer data from stack using field symbol within the implicit Enhacement under same program

0 Kudos


Hi All,

   Here i am facing a problem while getting buffer data from stack... i have worked before to get buffer data using following code..

DATA : g_var(30) VALUE '(Prog_name)table_name'.
  FIELD-SYMBOLS: <fs_tab> TYPE STANDARD TABLE.
  ASSIGN (g_var) TO <fs_tab>.

 

then i use to access <fs_tab> to get the table entries in current prog.

But in present scenario i have implemented an implicit enhancement with in the perform (XXXX) that is present in SAPLVV01 program with in which i dont have access to an internal table which is outside the perform...dont get confused ... graphically it is simple like...

  Note :  (SAP01 Standard program).

  here im using below code within my enhancement to get access to ITAB..

DATA : g_var(30) VALUE '(SAP01) ITAB'.
  FIELD-SYMBOLS: <fs_tab> TYPE STANDARD TABLE.
  ASSIGN (g_var) TO <fs_tab>.

As shown in the above attachment  ITAB has no access with in the perform . My requirement is to get values of ITAB within my enhancement section, so if i try to get it using buffer it will fetch nothing... as it will try to get data from report SAP01 from perform but not from FM where it not accessible...

Is there any solution to this issue...??!! 

Thanks,

Prasanna

                                                                                                                           

1 REPLY 1

former_member210541
Active Participant
0 Kudos

The internal table / variable should have a global scope, local variable are usually not accessible