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

open a programm in abap editor

Former Member
0 Likes
929

hi all,

I have one list box,in which iam having my all programme list.

my problem is that when i select any programme from list,it should be open into abap editor.

thank you.

hi all,

I have one list box,in which iam having my all programme list.

my problem is that when i select any programme from list,it should be open into abap editor.

thank you.

5 REPLIES 5
Read only

Former Member
0 Likes
868

Hi!

Try these:

1. Fill your program name into parameter ID 'RID'.

zmyprogramname = 'ZMYPROGRAM'.

SET PARAMETER ID 'RID' FIELD zmyprogramname.

2. CALL TRANSACTION 'SE38' AND SKIP FIRST SCREEN.

It has to work.

Regards

Tamás

Message was edited by:

Tamás Nyisztor

Read only

Former Member
0 Likes
868

u can do this by using following code

DATA: BDCDATA TYPE TABLE OF BDCDATA.

DATA: ITAB TYPE TABLE OF BDCMSGCOLL.

DATA: PROGRAM LIKE SY-REPID,

WA_BDCDATA TYPE BDCDATA.

WA_BDCDATA-PROGRAM = 'SAPMS38M'.

WA_BDCDATA-DYNPRO = '0100'.

WA_BDCDATA-DYNBEGIN = 'X'.

APPEND WA_BDCDATA TO BDCDATA.

CLEAR WA_BDCDATA.

WA_BDCDATA-FNAM = 'RS38M-PROGRAMM'.

WA_BDCDATA-FVAL = PROGRAM.

APPEND WA_BDCDATA TO BDCDATA.

...

CALL TRANSACTION 'SE38' USING BDCDATA MODE 'N'

MESSAGES INTO ITAB.

u can change here mode as 'A'

don't forget to reward

Sameer

Read only

Former Member
0 Likes
868

Have a look at how the DWDM transaction does this when you click on the Source Code button... it calls the RS_TOOL_ACCESS function module with

operation           = 'SHOW'      
object_name         = node-text1     "program name
object_type         = node-type      "'PROG'

You can also use "EDIT" as an operation/

Hope this is what you wanted...?

Read only

Former Member
0 Likes
868

Hi,

use the FM "EDITOR_PROGRAM".

regards,

Navneeth K.

Read only

0 Likes
868

also u can use FM "RS_TOOL_ACCESS"

on selecting a particular object from list call this FM.