Posts

Using BAPI upload excel file for t-code AS02 in SAP

Using BAPI " BAPI_FIXEDASSET_CHANGE " create a zprogram to upload excel file for mass change fixed asset in SAP. REPORT  ZAS02_ASSET_CHANGE_UPLOAD . TYPE-POOLS :  truxs . " Structure for Excel data TYPES :  BEGIN  OF  ty_excel ,          anln1  TYPE  anln1 ,          bukrs  TYPE  bukrs ,          kostl  TYPE  kostl ,          werks  TYPE  werks ,          prctr  TYPE  prctr ,         END  OF  ty_excel . DATA :  lt_excel     TYPE  TABLE  OF  ty_excel ,       ls_excel     TYPE  ty_excel ,     ...

Initial & Not initial concept in SAP ABAP

Initial & Not initial: In SAP we use initial & not initial  keyword for internal table value check purpose. Initial means there is no records in the internal table. Like we  have an internal table as IT_Doc. so we use initial keyword as:    if IT_doc is initial. Give message " no record found". endif.   Not initial:  At least one record is in there.   for similar internal table we can write :   If IT_Doc is not initial.   "then set logic to display the value".   endif.   

Comparison Operators for Character-Like Data Types

 The following table shows comparison operators for comparisons between character-like operands. The trailing blanks are respected for operands of type string. operator Meaning CO Contains Only: True, if operand1 only contains characters from operand2. It is case-sensitive and trailing blanks are respected in both operands. If operand2 is of type string and initial, then the logical expression is false, except if operand1 is also of type string and initial. In this case, the logical expression is always true. If the comparison is true, sy-fdpos contains the offset of the first character in operand1 that is not contained in operand2. If the comparison is true, sy-fdpos contains the length of operand1. CN Contains Not Only: True if a logical expression with CO is false, that is, if operand1 contains not only characters from operand2. sy-fdpos is set in the same way as for CO. If the comparison is true, sy-fdpos contains the offset...

Search Help in SAP ABAP (Elementary Search Help)

Image
 Search Help is a data dictionary object which is used to create a popup window that contains all the data related to your search. It is an input Help that permits the user to display a list of possible values for a screen field. In other words, search help is a field help provided to the user whenever he presses a Search help button in executing an ABAP program. It is created by using t-code SE11. There are two types of search help:  Elementary Search Help: created from a single table. Collective Search Help: created from the collection of multiple elementary search helps. Create Elementary Search Help:   Use T-Code SE11.        Select Elementary Search Help:   Next under the Definition tab enter the following information about the new search help. Short Description: A short description of search help Selection Method: Enter the name of the database table ie. VBUP in this case. Search Help Parameters: Enter the parameters for...