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

Former Member
0 Likes
782

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
743

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

7 REPLIES 7
Read only

Former Member
0 Likes
743

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

Read only

0 Likes
743

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

Read only

Former Member
0 Likes
744

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

Read only

0 Likes
743

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

Read only

0 Likes
743

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

Read only

0 Likes
743

Thanks Nishant.

Problem solved.

Cheers

Poorna

Read only

Former Member
0 Likes
743

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