‎2019 Aug 21 10:39 AM
I cannot run this simple abap program:
REPORT ZSAM11.
data: ok_code type sy-ucomm.
parameters: p_carrid type sflight-carrid.
start-of-selection.
call screen 100.
*&---------------------------------------------------------------------*
*& Module STATUS_0100 OUTPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
module status_0100 output.
set pf-status '0100'.
* SET TITLEBAR 'xxx'.
endmodule. " STATUS_0100 OUTPUT
*&---------------------------------------------------------------------*
*& Module USER_COMMAND_0100 INPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
module user_command_0100 input.
case ok_code.
when 'BACK'.
set screen 0.
leave screen.
endcase.
endmodule.
I am getting:
The system attempted to use dynpro 100 in program zsam11. This dynpro does not exist.
Maybe I do not have dynpro installed in sap or something. you know how to add this dynpro or screen to sap or how else this can be fixed?
‎2019 Aug 21 11:20 AM
You have to create screen 100 under your program. You can learn more about dynpro on https://help.sap.com/doc/abapdocu_750_index_htm/7.50/en-US/abapcall_screen.htm
‎2019 Aug 21 12:31 PM
You only copied one of the objects required (the main code source, but forgot Dynpro and probably menu, texts, etc.
Double-click on the 100 after call screen, or use SE51 to create the dynpro with attributes, fields, layout and execution logic.
Do the same operation for the menu after set pf-status or use SE41.
(Or use SE80 and its contextual menu/tree display for navigation)
But, first, find and read some book or course on Abap.