‎2006 Sep 22 6:50 AM
Hi Friends
I have a Module pool program in which i have created three tcodes create change and display for the same program. I have put create change and display fcodes for each tcode. when the user pushes display from the create transaction it should go to the Display transaction.
I have written the code like this.
MODULE user_command_1000 INPUT.
Copy ok_code value to save_ok_code
save_ok_code = ok_code.
CLEAR ok_code.
Handle user input based on user command
CASE save_ok_code.
When user hits 'Display' button
WHEN c_create.
LEAVE TO TRANSACTION c_tcode_display.
The problem is in the create tcode there is a mandatory field therefore the system is throwing the following message.
Make an entry in all required fields
Message no. 00055
Diagnosis
You have attempted to update data or start an action. However, not all required information was specified.
System Response
The system could not execute the action.
Procedure
Enter all required information. Fields in which you must enter data are prefilled with a question mark ("?") by the system. If the current screen contains tabs, check all tabs to make sure you have filled in all required fields. Then restart the action.
How to overcome this message and call the required transaction.
Thanks and regards
Poorna
‎2006 Sep 22 7:15 AM
In VA01 they are using
CALL FUNCTION 'FUNCTION_EXECUTE'
EXPORTING
PROGRAMM = T180-AGIDV
KOPFGRUPPE = TVAK-KOPGR
POSITIONSGRUPPE = TVAP-POSGR
FUNKTION = FCODE
IMPORTING
CUA_STATUS = T185V-STATUS
CUA_TITEL = T185V-CTITEL
CUA_PARA1 = T185V-PARA1
CUA_PARA2 = T185V-PARA2
CUA_PARA3 = T185V-PARA3
CUA_PARA4 = T185V-PARA4
FOLGEFUNKTION = FCODE
DUNKEL = T185-DUNKEL
LEAVE = FLAG-LEAVE
LEAVE_SCREEN = FLAG-LEAVE_SCREEN.
..Here u have to pass program name and fcode
Check in SE37
‎2006 Sep 22 6:53 AM
Hi,
You can fill in the Mandatory fields and then continue with display or change push buttons.
Hope this would hav esolved your problem.
Thanks and Regards,
Prashanth
‎2006 Sep 22 6:59 AM
Yes Prashant it will solve my problem.
But if we see the standard tcode like VA01, it allows us to go to change and display todes without triggering this message. I tried to debug it but didn't find a solution.
Anybody pl tell me if there is a solution to overcome this message.
Thanks and regards
Poorna
‎2006 Sep 22 7:15 AM
In VA01 they are using
CALL FUNCTION 'FUNCTION_EXECUTE'
EXPORTING
PROGRAMM = T180-AGIDV
KOPFGRUPPE = TVAK-KOPGR
POSITIONSGRUPPE = TVAP-POSGR
FUNKTION = FCODE
IMPORTING
CUA_STATUS = T185V-STATUS
CUA_TITEL = T185V-CTITEL
CUA_PARA1 = T185V-PARA1
CUA_PARA2 = T185V-PARA2
CUA_PARA3 = T185V-PARA3
CUA_PARA4 = T185V-PARA4
FOLGEFUNKTION = FCODE
DUNKEL = T185-DUNKEL
LEAVE = FLAG-LEAVE
LEAVE_SCREEN = FLAG-LEAVE_SCREEN.
..Here u have to pass program name and fcode
Check in SE37
‎2006 Sep 22 7:29 AM
Hi Sumi,
I saw this FM in the debug mode. But didn't understand where to put this FM in my program.
The message which i was getting is the system generated message.
I'm new to module pool. Pl. tell me where to place this FM.
Thanks
Poorna
‎2006 Sep 22 7:42 AM
Hi,
You can try this.
The button which you have created for that button set the FCT_TYPE as 'E'.
then use a MODULE in PAI
like MODULE <module name> AT EXIT-COMMAND.
Here. you can code to go to other transaction.
Regards
Nishant
‎2006 Sep 22 7:59 AM
‎2006 Sep 22 7:19 AM
Hi,
Use
AT Exit-command
such as: module_exit at Exit-Command and in this module write leave to screen 0 or leave to program .
Regards,
Senthil