cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a transaction code

Former Member
0 Kudos

Dear Expert,

Is that possible to call a transaction code using a webdynpro for abap. I have a button in my program where when i click on the button, it need to all up the su01 screen.

My coding is as below

method ONACTIONEDIT_APPRAISAL .

LEAVE TO TRANSACTION 'SU01'.

endmethod.

However when i run this program, and click ont he button, the system return a short dump.

Any idea?

Thanks,

Regards,

Bryan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You cann't call Transaction code directly from Web Dynpro Application.To call TCODE from application it should need SAP GUI.So it is not possible.

Check these Threads

Thanks

Suman

Edited by: suman kumar chinnam on Sep 10, 2008 9:56 AM

Former Member
0 Kudos

Dear Suman or anyone,

I have solve this using the navigate_absolute method, however the NAVIGATION_MODE seem that does not works.

  • Code begin*

method ONACTIONEDIT_APPRAISAL .

data lr_componentcontroller type ref to ig_componentcontroller .

data l_api_componentcontroller type ref to if_wd_component.

data lr_port_manager type ref to if_wd_portal_integration.

lr_componentcontroller = wd_this->get_componentcontroller_ctr( ).

l_api_componentcontroller = lr_componentcontroller->wd_get_api( ).

lr_port_manager = l_api_componentcontroller->get_portal_manager( ).

Data:

target type string.

Data:

nmode type string.

target = 'pcd:portal_content/mysap/Appraisal/PPPM_PAGE'.

nmode = 'INPLACE'.

call method lr_port_manager->navigate_absolute

exporting

NAVIGATION_MODE = nmode

navigation_target = target

endmethod.

*code end

I have tried to use the INPLACE navigation mode, but it still display it in a new portal page. Anyway to control it? Do i need to define a area so that the target will show in that particular area?

Please help me...

Thanks

Regards,

Bryan

Answers (1)

Answers (1)

Former Member
0 Kudos

hi brian,

i met same problem as yours. i want to lead to the tcode vf02 after i press one button.

could you please tell me how you solved this problem?

thanks very much.

Former Member
0 Kudos

Hi Jennifer,

Just create a transaction iview and use the code above to call the iview.

Thanks

Regards,

Bryan