Posts

Showing posts with the label Modularization in SAP ABAP

BAPI for material storage location Add

 We can add material storage location plant wise using third party app or web. BAPI names : BAPI_MATERIAL_MAINTAINDATA_RT Import parameters: HEADDATA: Material Tables: STORAGELOCATIONDATA: Material: Plant: STGE_LOC:   STORAGELOCATIONDATAX: Material: Plant: STGE_LOC:   use below code after completing steps. CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.        

Modularization in SAP ABAP

In SAP ABAP environment, modularization involves the organization of programs into modular units, also known as logical blocks. It reduce redundancy and increases program readability even as you are creating it and subsequently during the maintenance cycle.Modularization also enables reusability of the same code again.ABAP has made it necessary for developers to modularize, organizing the programs relatively more than in the OOPS based language that have relatively more built in modular feature. Modularization techniques: Subroutines function module Include Field-symbol. Subroutine: It is a mini program and can be called within program and from outside of the program. Using Subroutines we can perform calculations, write statement, call function Module etc. Types of Subroutine : Internal subroutine.  External subroutine. Passing parameters in Subroutine: Pass by Value Pass by reference Pass by Value: DATA X TYPE C VALUE 'APPLE'. PERFORM SUB USING X. ...

Modularization in SAP ABAP

What is Modularization in SAP ABAP Programming? The concept of modularization is divided the main program into sub-programs for better readability and re-usability. Modularization can be implemented in the following ways: Include Programs. Function Modules. Sub-routines. Classes. Include Programs: These programs can not be executed directly. These are sub-programs which contains a set of  re-usable statements. These programs doesn't contain parameter interface, that is no importing and exporting parameter. Function Module: These are also sub-programs which contains a set of reusable statements for better readability and re-usability. Function modules contains parameter interface, that is importing and exporting parameter. These function module can be executed independently. Function modules contains exception to catch certain type of error.] For functional modules T-code is : SE37. Sub-routines in SAP ABAP: Sub-routines are sub-programs in SAP ABAP ...