2014 Jul 28 11:00 AM
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
2014 Jul 28 11:47 AM
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
2014 Jul 28 11:06 AM
Hi Jaiprakash,
The dump is due to program type.. you can convert program type Module pool into Executable program.
2014 Jul 28 11:20 AM
Dear Thangam,
After changing the program type from Module pool to executable its not executing.
Regards
Jai
2014 Jul 28 11:22 AM
2014 Jul 28 11:28 AM
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
2014 Jul 28 11:46 AM
Have you checked in debugging mode? i think syntax is correct but you fetching logic may be an mistake.
Regards,
Thangam.P
2014 Jul 28 11:11 AM
Hello Jaiprakash,
Create a transaction for your program ZCLICK
and use it instead of SUBMIT.
CALL TRANSACTION zclick_transaction
I hope you help.
2014 Jul 28 11:15 AM
Dear Pau,
I am running the same after creating t-code only. but still i am getting the dump.
Regards
Jai
2014 Jul 28 11:15 AM
Hi Mr. Jaiprakash
Just change type of program executable to module pool in the program attribute.
thanks and regards..
laxman
2014 Jul 28 11:18 AM
Dear Laxman,
After changing the program type from Module pool to executable its not executing.
Regards
Jai
2014 Jul 28 11:21 AM
Hi Mr. Jaiprakash
Change executable to------> module pool.
regards.
laxman
2014 Jul 28 11:27 AM
After changing the same to module pool, again i am getting the same dump.
Regards
Jai
2014 Jul 28 11:39 AM
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.
2014 Jul 28 11:51 AM
2014 Jul 28 11:47 AM
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
2014 Jul 28 11:50 AM
Dear Harish,
Thank you for your help.
I have solved my issue.
Regards
Jai
2014 Jul 28 12:08 PM
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
2014 Jul 28 12:12 PM
Hi Mitchel,
Thank you so much your help. i have resolved my issue.
Regards
Jai