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

Message Types in SAP ABAP

In every programming language has message types which is used to provide information to the users. In ABAP there are a few types of message which is used to provide information to the users. Message types are: Type A (Abend - abnormal end of task ): Type A (Abend – abnormal end of task ) means termination of the program. The message appears in a dialog box and the program terminates. The user is not able to make any further entries. The task is terminated and the system returns to a high-level menu. Messages of type A should be issued only in extraordinary circumstances, such as serious system errors. A-messages should be avoided, if possible. Type E (error): Type E is for error messages. An error message appears and the program stops. These messages are wide used. They can prevent the user from creating inconsistent records. They can point to a prerequisite to be fulfilled. Type I ( information ): Messages from type I are information only. The program is executed and inform...

System Variables

System Variables are:  SY-DATUM for System Date. SY-ULINE for horizontal lines in a list. SY-VLINE for vertical lines in a list. SY-UCOMM returns the code for the GUI status button. SY-LSIND contains the number of the current list in the list hierarchy. SY-UNAME will return the SAP ID given to you by the client. SY-REPID provide report name. SY-TITLE title of a program. SY-DYNNR Dynpro number of active screen. SY-PFKEY Name of the current pf status. SY-LANGU Logon language.

Create Order and Unorder list in HTML

 Here is the details of order and unorder list creation in HTML: <!DOCTYPE html> <html> <head>   <meta charset="utf-8">   <meta name="viewport" content="width=device-width">   <title>My Favorite Food</title> </head> <body>   <h2>I love Noodles !!! </h2>   <h3>Lets make it..... </h3>   <h4> Ingredients: </h4>     <!-- Unorder List -->   <ul>     <li>Sticky Noodles. </li>     <li>Onion </li>     <li>Egg </li>     <li>Vegetables </li>     <li> Noodles Masala </li>     <li>Tomato Sauce </li>     <li>Oil</li>       </ul> <!-- end of unorder list -->     <!-- Order list -->   <ol>   ...

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