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

Dump in Module Pool while running the T-Code

Former Member
6,091

Dear all,

I am facing an issue in Module pool programming. The issue is it is giving dump while running the t-code. and the error is " You attempted to start the ABAP/4 program "ZCLICK" with SUBMIT, but the attributes specify this program as type "M" instead of "1". You can only start programs of type 1 with SUBMIT." So Kindly suggest.


Regards

Jai

1 ACCEPTED SOLUTION
Read only

Former Member
4,696

Hi Jaiprakash,

As per my understanding, you made a mistake while creating transaction code.

While creating a transaction code you will get below screen

You need to select highlighted radio button. By using this you won't get dump.

Reward if it is helpfull.

Regards,

N. HARISH KUMAR

17 REPLIES 17
Read only

thangam_perumal
Contributor
0 Likes
4,695

Hi Jaiprakash,

                     The dump is due to program type.. you can convert program type Module pool into Executable program.

Read only

0 Likes
4,695

Dear Thangam,

After changing the program type from Module pool to executable its not executing.

Regards

Jai

Read only

0 Likes
4,695

Hi Jaiprakash,

                    Please share your coding..

Read only

0 Likes
4,695

DATA: IO_MATNR TYPE MATNR,

       TXT_MATNR TYPE CHAR10.

*&---------------------------------------------------------------------*

*&      Module  STATUS_0100  OUTPUT

*&---------------------------------------------------------------------*

*       text

*----------------------------------------------------------------------*

module STATUS_0100 output.

   SET PF-STATUS 'ZRESPOND_DB_CLK'.

*  SET TITLEBAR 'xxx'.

endmodule.                 " STATUS_0100  OUTPUT

*&---------------------------------------------------------------------*

*&      Module  USER_COMMAND_0100  INPUT

*&---------------------------------------------------------------------*

*       text

*----------------------------------------------------------------------*

module USER_COMMAND_0100 input.

DATA: lv_cur_field(20),

       lv_cur_val(18).

CASE sy-ucomm.

   WHEN 'PICK'.

     GET CURSOR FIELD lv_cur_field VALUE lv_cur_val.

     IF lv_cur_field = 'IO_MATNR' AND lv_cur_val = io_matnr.

       SET PARAMETER ID 'MAT' FIELD lv_cur_val.

       CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.

     ELSEIF lv_cur_field = 'TXT_MATNR'.

       lv_cur_val = 'MARA'.

     SET PARAMETER ID 'DTB' FIELD lv_cur_val.

       CALL TRANSACTION 'SE16' AND SKIP FIRST SCREEN.

     ENDIF.

     WHEN 'BACK' OR 'CANCEL' OR 'EXIT'.

       LEAVE TO SCREEN 0.

ENDCASE.

endmodule.                 " USER_COMMAND_0100  INPUT

Read only

0 Likes
4,695

Have you checked in debugging mode? i think syntax is correct but you fetching logic may be an mistake.

Regards,

      Thangam.P

Read only

Former Member
0 Likes
4,695

Hello Jaiprakash,

Create a transaction for your program ZCLICK

and use it instead of SUBMIT.

CALL TRANSACTION zclick_transaction

I hope you help.

Read only

0 Likes
4,695

Dear Pau,

I am running the same after creating t-code only. but still i am getting the dump.

Regards

Jai

Read only

Former Member
0 Likes
4,695

Hi Mr. Jaiprakash

Just change type of program executable to module pool in the program attribute.

thanks and regards..

laxman

Read only

0 Likes
4,695

Dear Laxman,

After changing the program type from Module pool to executable its not executing.

Regards

Jai

Read only

0 Likes
4,695

Hi Mr. Jaiprakash

Change executable to------> module pool.

regards.

laxman

Read only

0 Likes
4,695

After changing the same to module pool, again i am getting the same dump.

Regards

Jai

Read only

0 Likes
4,694

At the time of tcode creation for module pool one dialog box will appear with some radio buttons.

in that you need to select fist radio button for modulepool tcode, second radio button is for report tcodes..

Just now i checked to i also got same dump and i resolved it.

Read only

0 Likes
4,694

Thank u all for your help.

Regards

Jai

Read only

Former Member
4,697

Hi Jaiprakash,

As per my understanding, you made a mistake while creating transaction code.

While creating a transaction code you will get below screen

You need to select highlighted radio button. By using this you won't get dump.

Reward if it is helpfull.

Regards,

N. HARISH KUMAR

Read only

0 Likes
4,694

Dear Harish,

Thank you for your help.

I have solved my issue.

Regards

Jai

Read only

0 Likes
4,694

Hi Jai,

These following steps resolved the issue for me.

*Set the program type to executable(Type 1)

*Create a Transaction in SE93

*Select the second radio button(Program and selection screen ( report transaction ) )

*Specify the program name for "Program"

*Execute!

Regards,

Debugger Mitchel

Read only

0 Likes
4,694

Hi Mitchel,

Thank you so much your help. i have resolved my issue.

Regards

Jai