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

creating t-code for method

former_member226225
Contributor
0 Likes
1,688

Hi ,

I am getting the problem related to creating the t-code for methods . In that my method is having parameters

then how to pass the parameter values to that method when creating t-code.

Thanks & Regards,

Raghunadh K

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,376

The dump message explains everything "you may only call methods that do not have any parameters at this point". So not possible. What function is that method performing ?

4 REPLIES 4
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,377

The dump message explains everything "you may only call methods that do not have any parameters at this point". So not possible. What function is that method performing ?

Read only

Harsh_Bansal
Contributor
0 Likes
1,376

Hi,

One way is -

Create a new tcode.

When it prompts for Tcode type (after you press the create button) -

Then select option - 'Transaction with Parameters(Parameter Transaction)'.

Now in next screen, it will ask you the tcode for which you want to enter the default values.

Here give your first tcode.

Select skip initial screen.And in the bottom, you can specify the values.

Regards,

Harsh Bansal

Read only

0 Likes
1,376

Hi Bansal

can you you tell me what screen no and from module pool we have to specify

Thanks & Regards,

Raghunadh K

Read only

0 Likes
1,376

Other alternative is create zprogram and a transaction for it.

and in that zprogram , call you class method and then pass the parameter you want.