Posts

Showing posts from May, 2021

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

Parameters in SAP ABAP

 In ABAP Parameters used to declare  Input variable in ABAP reports.Variables are like DATA statements. For every parameters variables are declare and an input box become visible on selection screen. Syntax: Parameters: Para_name type / like Data element or per-define type . Case 01: Type/like to Data Element. Parameters: P_Rock type ZROCK_NAME. Where ZROCK_NAME is DATA ELEMENT. Parameters : P_home like P_Rock.    Case 02: Type / Like to ABAP predefined Data type. Parameters: P_Rock(10)  Type C. Case 03: Reference to ABAP Table, structure or view field. Data: Emp_id(40) type C. Emp_id = 'pa0001-pernr'. Parameters: P_Rock Like (Emp_id).