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: 

Function module RS_TOOL_ACCESS

Former Member
0 Kudos

Hi,

using the function module <b>'RS_TOOL_ACCESS'</b> I can get the where used list, but i dnt want the pop box to be displayed instead want to hold the where used list in a variable????????

<b>helpful answers will be highly appreciated.......</b>

Message was edited by:

kiran kumar

1 REPLY 1

Former Member
0 Kudos

Hello,

Try with SCAN instruction :

DATA : begin of t_code_prgm occurs 0,

ligne(72) type c,

end of t_code_prgm.

DATA begin of t_tokens occurs 0.

INCLUDE STRUCTURE STOKEN.

DATA end of t_tokens.

DATA begin of t_statements occurs 0.

INCLUDE STRUCTURE SSTMNT.

DATA end of t_statements.

DATA begin of t_structures occurs 0.

INCLUDE STRUCTURE SSTRUC.

DATA end of t_structures.

Parameters : p_programme like sy-repid.

READ REPORT p_programme into t_code_prgm.

SCAN ABAP-SOURCE t_code_prgm TOKENS into t_tokens

STRUCTURES into t_structures

STATEMENTS into t_statements.

TIPS:

t_structures-STMNT_FROM and t_structures-STMNT_TO is an interval matching with t_statements-number (or =index, it's the same)

t_statements-FROM and t_statements-TO is an interval matching with t_tokens index.

(Use F1 on 'SCAN' to find list of types in t_structures-TYPE and t_structures-STMNT_TYPE

example : TYPE R for "ROUTINE", STMNT_TYPE "O" for "FORM", STMNT_TYPE "M" for "MODULE" ...)

Regards,

Deepu.K