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

Module Pool While calling Tcode

ashish_shah5
Participant
0 Likes
745

Hi frnds,

I have 1 requriment for that I have to write Module Pool.

I have created two button.

FCT Code- MM01

FCT Code- MM03

I want when FCT code MM01 calls ( It will call Tcode - MM01) & for MM03 calls the Tcode MM03,

Where I will write code in PBO or PAI.

I have writtern my code PAI.

MODULE USER_COMMAND_1000 INPUT.

CASE SY-UCOMM .

WHEN 'ME20'.

CALL TRANSACTION 'ME20'.

ENDCASE.

ENDMODULE. " USER_COMMAND_1000 INPUT

But here While calling Tcode- ME20 it give me dump

Plese help me to resolve thise issue.

Regards.

1 ACCEPTED SOLUTION
Read only

GauthamV
Active Contributor
0 Likes
700

If you give FCT code as MM01 and MM03 use that only for calling

the transaction.



MODULE USER_COMMAND_1000 INPUT.
CASE SY-UCOMM .
WHEN 'MM01'.
CALL TRANSACTION 'ME20'.
ENDCASE.
ENDMODULE. " USER_COMMAND_1000 INPUT

4 REPLIES 4
Read only

GauthamV
Active Contributor
0 Likes
701

If you give FCT code as MM01 and MM03 use that only for calling

the transaction.



MODULE USER_COMMAND_1000 INPUT.
CASE SY-UCOMM .
WHEN 'MM01'.
CALL TRANSACTION 'ME20'.
ENDCASE.
ENDMODULE. " USER_COMMAND_1000 INPUT

Read only

0 Likes
700

Thx Gautam.

Actully the problem was 'ME20' Tcode is not available. 'ME2O' Tcode is there.

So thats why it was showing dump.

Regards,

Read only

Former Member
0 Likes
700

>

> Thx Gautam.

>

> Actully the problem was 'ME20' Tcode is not available. 'ME2O' Tcode is there.

> So thats why it was showing dump.

>

> Regards,

Thats Cool !!

Cheers,

Amit.

Read only

0 Likes
700

Dear Amit,

Can you please tell me how to set Background, while posting.

regards.