Business Scenario: Suppose in an Organization for some Maintenance activity they need a Grinder Machine . It might be the case that the Machine is already
Category: Uncategorized
BAPI- An Introduction
Definition: BAPI(Business Application Programming Interface ) : is defined as an interface providing access to business processes and data in R/3 business application systems. Or BAPI is
Program At Exit Command
Scenario : Generally if a screen contains any obligatory(Required) input field & we execute the MP program , the screen appears & if we want
Program On Chain-Request
DATA : N1 TYPE i. DATA : N2 TYPE i. DATA : N3 TYPE i. DATA : res TYPE i. DATA : ok_code TYPE sy-ucomm. MODULE status_9000 OUTPUT. * SET PF-STATUS ‘xxxxxxxx’. * SET TITLEBAR ‘xxx’. ENDMODULE. ” STATUS_9000 OUTPUT MODULE user_command_9000 INPUT. CASE ok_code. WHEN ‘ADD’. CALL SCREEN 9001. ENDCASE. ENDMODULE. ” USER_COMMAND_9000 INPUT MODULE status_9001 OUTPUT. * SET PF-STATUS ‘xxxxxxxx’. * SET TITLEBAR ‘xxx’. res = N1 + N2 + N3.
Program ON CHAIN-INPUT
DATA : N1 TYPE i. DATA : N2 TYPE i. DATA : N3 TYPE i. DATA : res TYPE i. DATA : ok_code TYPE sy-ucomm. MODULE status_9000 OUTPUT. * SET PF-STATUS ‘xxxxxxxx’. * SET TITLEBAR ‘xxx’. ENDMODULE. ” STATUS_9000 OUTPUT MODULE user_command_9000 INPUT. CASE ok_code. WHEN ‘ADD’. CALL SCREEN 9001. ENDCASE. ENDMODULE. ” USER_COMMAND_9000 INPUT MODULE status_9001 OUTPUT. * SET PF-STATUS ‘xxxxxxxx’. * SET TITLEBAR ‘xxx’. res = N1 + N2 + N3.
Program – On Request
data : N1 type i. data : N2 type i. data : ok_code type sy-ucomm. module STATUS_9000 output. * SET PF-STATUS ‘xxxxxxxx’. * SET TITLEBAR ‘xxx’. endmodule. ” STATUS_9000 OUTPUT module USER_COMMAND_9000 input. CASE OK_CODE. WHEN ‘SHOW’. CALL SCREEN 9001. ENDCASE. endmodule. ” USER_COMMAND_9000 INPUT module STATUS_9001 output. * SET PF-STATUS ‘xxxxxxxx’. * SET TITLEBAR ‘xxx’. N2 = N1. endmodule. ” STATUS_9001 OUTPUT module USER_COMMAND_9001 input. CASE OK_CODE. WHEN ‘BACK’. CALL SCREEN 9000. ENDCASE.