Application Development and Automation 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: 
Read only

regarding Navigation logic.

Former Member
0 Likes
372

hi guys,

i have below code in my program. In call transaction statement i am using <b>P_code</b> variable using VK01 transaction.

How can i navigate this variable and find the Transaction code used inside the program.

I know double click the variable P_code will navigate to Transaction code. But how to traverse like this using ABAP program logic.

I used SCAN .command to take tokens and keyword but could not find the logic to do this.

Suggestion please.

Thanks

Chandra

FORM bdc_transaction TABLES p_bdcdata

USING p_code.

<b> CALL TRANSACTION<i> p_code</i></b> USING p_bdcdata

OPTIONS FROM str_bdcopt

MESSAGES INTO t_bdcmsg.

ENDFORM. " bdc_transaction

2 REPLIES 2
Read only

andreas_mann3
Active Contributor
0 Likes
338

hi,

make a where used list of "p_code":

use :

-read report sy-repid into itab

and SEARCH itab FOR 'p_code'

or

-abap RPR_ABAP_SOURCE_SCAN

A.

Message was edited by:

Andreas Mann

Read only

0 Likes
338

hai andreas,

Thanks for your reply.

Now i want to search two things.

1-how to find where used list for P_code variable used in program and Values assigned to it.

2-How to find. what value is passed from (Perform...'VA01') statement

.to (Form P_Code) ...Statements..

Thanks

Chandra