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

error in module pool program

Former Member
0 Likes
2,566

hai goodmorning,

this is my module pool program . while am check this program it displays the error such as

field 'disp' is unknown.it is neither in one of the specified tables nthior defined by data statements. data statements.what can i do. i dont know how to resolve the error.

&----


*& Module pool SAPDYSC1

*&

&----


*&

*&

&----


PROGRAM SAPDYSC1.

TABLES: SFLIGHT.

DATA: OK_CODE LIKE SY-UCOMM,

SAVE_OK LIKE OK_CODE.

MODULE INIT_SCREEN_100 OUTPUT.

CALL SCREEN 100.

ENDMODULE.

MODULE INPUT1 INPUT.

SAVE_OK = OK_CODE.

CLEAR OK_CODE.

CASE SAVE_OK.

WHEN ‘DISP’.

SELECT * FROM SFLIGHT

WHERE CARRID = SFLIGHT – CARRID AND

CONNID = SFLIGHT – CONNID.

ENDSELECT.

LEAVE TO SCREEN 200.

WHEN ‘EXIT’.

LEAVE TO SCREEN 0.

WHEN ‘BACK’.

LEAVE TO SCREEN 100.

ENDCASE.

ENDMODULE.

11 REPLIES 11
Read only

Former Member
0 Likes
1,494

Hi

Check if u have assigned the function code 'DISP' in ur menu painter SE41.

Thanks

Vasudha

Edited by: Vasudha L on Feb 22, 2008 8:00 AM

Read only

0 Likes
1,494

am new in the module-pool.

while i am create the function-list for particular module program 'SAPDYSC1. it depict the message in status bar as*

*program SAPDYSC1. has not yet been created*

regards

surender

Read only

0 Likes
1,494

did u create it thru se80.....

Read only

0 Likes
1,494

NO AM CREATING USING SE38 AND SET THE TYPE 'M' AS MODULE POOL PROGRAM , S AS BASIS IN APPLICATION FIELD FOR THESE PROGRAM.

Read only

0 Likes
1,494

goto se80 and try activating the prg...

Read only

0 Likes
1,494

sir,

how to create the module pool program using se80

how to create the screen using se51,

how to create the menu painter using se41,

tell the stepwise procedure .

regards

surender

Read only

0 Likes
1,494

Steps to create a Module Pool Program through SE80:

1. Goto Transaction SE80(Object Navigator) and click on the "Repository Browser" button on the top menu.

2. Select option "Program" from the Listbox.

3. Enter a name for your program (starts with 'Z' or 'Y')

4. Press the return key and it will ask for creation of the program if it does not exist.

5. Create the Program.

6. Mark the program as Module Pool (Type 'M').

7. Save+Activate the Program.

8. The Program Name will appear in the list below.

9. Right-click on the Program Name.

10. Choose 'Create->Screen'

11. Enter the desired Screen Number.

12. Enter the Short Description and select the radio button 'Normal Screen' while saving.

13. Activate the Screen.

14. Expand the folder 'Screens' under the Program Name.

15. Double click on the Screen Number.

16. You will be seeing the 'Flowlogic' page of the Screen.

17. Click on the 'Layout' button in the Application tool bar.

18. Create the Screen Layout.

19. Save+Activate the Screen.

20. Create your PBO/PAI/POV/POH Modules in the Flowlogic.

21. Save+Activate the Screen and the Program.

22. You are now 'GOOD TO GO :)'.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,494

ARe u sure that the error is getting displayed in this part ???

Read only

0 Likes
1,494

s sir

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,494

&---------------------------------------------------------------------
*& Module pool SAPDYSC1
*&
&---------------------------------------------------------------------
*&
*&
&---------------------------------------------------------------------

PROGRAM SAPDYSC1.
TABLES: SFLIGHT.

MODULE INIT_SCREEN_100 OUTPUT.
CALL SCREEN 100.
ENDMODULE.

MODULE INPUT1 INPUT.
CASE sy-ucomm.

WHEN ‘DISP’.

SELECT * FROM SFLIGHT
WHERE CARRID = SFLIGHT – CARRID AND
CONNID = SFLIGHT – CONNID.
ENDSELECT.
LEAVE TO SCREEN 200.

WHEN ‘EXIT’.
LEAVE TO SCREEN 0.

WHEN ‘BACK’.
LEAVE TO SCREEN 100.
ENDCASE.


ENDMODULE.

Read only

0 Likes
1,494

THE SAME ERROR IS DISPLAYED .