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

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 which contains certain re-usable statement.
  • We use sub-routines for re-usability inside the program.
  • We use sub-routines for external re-usability.
  • Sub-routines contains importing and exporting parameters.
Classes in SAP ABAP:

  • Classes are used for better re-usability.
  • Classes are object oriented in SAP ABAP.

 

Comments

Popular posts from this blog

New commodity code create in SAP S/4 Hana

Convert First character to Upper case in SAP ABAP