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

Call ttransaction mode

Former Member
0 Likes
939

Hi Guys,

I was hard coded call transaction mode "N", Can we change mode while debugging?

Thanks,

Gourisankar.

Hi Guys,

I was hard coded call transaction mode "N", Can we change mode while debugging?

Thanks,

Gourisankar.

7 REPLIES 7
Read only

mahaboob_pathan
Contributor
0 Likes
904

hi,

yes you can change it in debug mode.

Read only

0 Likes
904

Hi,

I dont think we can change it if we have hard-coded it.... you have to change the mode in the program and run it again......

-Muktar

Read only

0 Likes
904

Hi,

Can you please tell me, How we can change?

Thanks,

Gourisankar.

Read only

0 Likes
904

Hi,

If you are passing the mode in a variable then you can change uts value in debugging, but if you have simply mentioned N, you cant change it .

Regards,

Pankaj

Read only

0 Likes
904

Hi,

In the program we can change it.

Read only

0 Likes
904

Hi,

u cant change if u have hardc coded it in program.

Declare variable for mode. assign 'N' to it.

Then u can change while debugging.

Regards,

Srinivas

Read only

0 Likes
904

Hi gourisankar,

U can assign the display mode to some variable and at runtime u can change that value.

This is a demo program available in abapdocu.

Hope this helps u.

Here opt is a strucuture( Parameter string for runtime of CALL TRANSACTION USING)

DATA class_name TYPE c LENGTH 30 VALUE 'CL_SPFLI_PERSISTENT'.

DATA: bdcdata_wa TYPE bdcdata,

bdcdata_tab TYPE TABLE OF bdcdata.

DATA opt TYPE ctu_params.

CLEAR bdcdata_wa.

bdcdata_wa-program = 'SAPLSEOD'.

bdcdata_wa-dynpro = '1000'.

bdcdata_wa-dynbegin = 'X'.

APPEND bdcdata_wa TO bdcdata_tab.

CLEAR bdcdata_wa.

bdcdata_wa-fnam = 'BDC_CURSOR'.

bdcdata_wa-fval = 'SEOCLASS-CLSNAME'.

APPEND bdcdata_wa TO bdcdata_tab.

CLEAR bdcdata_wa.

bdcdata_wa-fnam = 'SEOCLASS-CLSNAME'.

bdcdata_wa-fval = class_name.

APPEND bdcdata_wa TO bdcdata_tab.

CLEAR bdcdata_wa.

bdcdata_wa-fnam = 'BDC_OKCODE'.

bdcdata_wa-fval = '=CIDI'.

APPEND bdcdata_wa TO bdcdata_tab.

opt-dismode = 'E'.

opt-defsize = 'X'.

CALL TRANSACTION 'SE24' USING bdcdata_tab OPTIONS FROM opt.

hope it solves ur problem.

Regards,

Arun.