Posts

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'.        

STO Deletion

STO Deletion: In sap we create STO frequently.Some times user create false STO that case we need to delete STO. If STO is recived then we need to reverse goods movement using T-code VL09.After completion goods reverse we use T-code ME22N to delete Purchase documents. Select all line item and set delete flag.Lastly Save it. Your STO set a delete flag and you can't use it further process.

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. ...

Control Break Statement in SAP ABAP

Control Break Statement : Events 1.AT NEW 2.AT FIRST 3.AT LAST 4.AT END OF 5.ON CHANGE OF Using these statements we can control the flow of ABAP programming statement within the LOOP........ ENDLOOP statement AT NEW: It triggers for a group of similar contents in an internal table.It triggers whenever there is a change in field values in an internal based on character value. Syntax:  AT NEW <field-name>.  ....................... statenments  ......................... ENDAT. AT FIRST:  It triggers during first loop iteration . Syntax:  AT FIRST. .................... STATEMENTS ........................... ENDAT.   AT LAST: It triggers for last line of an Internal Table or last loop iteration.Most of the time AT LAST used to do for GRAND Total. Syntax: AT LAST. ................................ ................................ ENDAT. AT END OF: It will triggers the end of group of similar values in an internal ta...

Internal Table & Structure concept in SAP ABAP

Today I am going to discuss about Internal Table concept in sap ABAP. Internal table is a temporary table created in RAM. It is created during run time and store data temporarily. Using "Table of"  key word we can create internal table.Internal table can store multiple value in run time. Syntax of internal table: Data: Itab TYPE TABLE OF  MARC (TYPE TABLE). Even we can create internal table as we need. At the very first time we need to create a structure. Using Type keyword we create structure in ABAP program. Structure never holds any data, based on structure we can create number of object in sap. Syntax: Types: Begin of st ,             matnr  type  marc-matnr,            werks   type  marc-werks,            sobsk    type marc-sobsk,           ...

AMDP in SAP HANA

Database procedure are stored and execute in the Database. On HANA database through ABAP using AMDP class and AMDP method called  ABAP managed Database Procedure. SQL script is the language for creating stored procedure in HANA. Benefit of SQL script allows complex calculation inside HANA Database. Language varies from one database system to others. The ABAP Managed Database Procedure should be created using ABAP developments tools Eclipse or HANA studio. If we consider students as a Class and that Class has a Marker Interface "IF_AMDP_MARKER_HDB"  then it is an AMDP Class.If one or more method of AMDP class has then keyword is "BY DATABASE PROCEDURE". The AMDP class must contain the appropriate tag interface. In Class definition provide interface IF_AMDP_MARKER_HDB . Define Table Type as TT_name and structure as TY_name. Define the method GET_name_data

SAP PM table list.Part:02

In my previous post I share most important table name for PM module.As a sequence today I also share again some useful table.Hope it will assist you when work. Keep in touch with me. SAP PM Orders Table Description AFIH Order header AFAB Network – Relationships AFPO Order Item AFFH PRT assignment data for the work order AFFL   Work order sequence AFFT   Order – Process Instructions AFFV Order – Process Instruction Values AFKO Order header data PP orders IHPA Partners PMCO Cost structure and overview of the order MCIPMIS Order data for PMIS PMCOQT Quantity structure for the maintenance order PMPL Print data for the order PMSDO PM organizational data for SD documents  ...