‎2008 Feb 22 6:54 AM
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.
‎2008 Feb 22 7:00 AM
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
‎2008 Feb 22 7:07 AM
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
‎2008 Feb 22 7:08 AM
‎2008 Feb 22 7:12 AM
NO AM CREATING USING SE38 AND SET THE TYPE 'M' AS MODULE POOL PROGRAM , S AS BASIS IN APPLICATION FIELD FOR THESE PROGRAM.
‎2008 Feb 22 7:17 AM
‎2008 Feb 22 7:30 AM
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
‎2008 Sep 25 6:54 AM
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 :)'.
‎2008 Feb 22 7:03 AM
ARe u sure that the error is getting displayed in this part ???
‎2008 Feb 22 7:07 AM
‎2008 Feb 22 7:06 AM
&---------------------------------------------------------------------
*& 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.
‎2008 Feb 22 7:10 AM