Sample: BCALV_GRID_EDIT (with validation)
Read moreHave to use add-on DESTINATION when using BAPI_MATERIAL_MAINTAINDATA_RT
https://launchpad.support.sap.com/#/notes/1227242 4. Site authorizations in BAPI_MATERIAL_MAINTAINDATA_RT: For the BAPI “BAPI_MATERIAL_MAINTAINDATA_RT” in IS Retail, all authorizations of the authorization object M_MATE_WRK are...
Read moreLUW
Logical unit of work (LUW) in SAP: The objective of this document is aimed at explaining the concept of logical unit of work in SAP. I assume that this will be a good read for my fellow readers. Why logical units of work? The main purpose...
Read moreGenerate an xml file by ABAP
https://sapintegrationhub.com/abap/transformation/xml-transformation-example-xslt_tool/ Another sample with encoding: http://sapblog.rmtiwari.com/2012/05/simple-transformation-for-xml-in-abap.html
Read moreEnhance MD79 add Material Desciption into Excel output
Add to the Excel output as below Step 1: Modify output structure Step 2: put data into the new field Step 3: Add 1 more row to internal table define data type for excel column COL_NO = 2 is for Material Description Step 4: Set column title Step...
Read moreCreate a background job from ABAP code
FORM run_background . DATA: lv_jobname TYPE tbtcjob–jobname. DATA: lv_jobcount LIKE tbtcjob–jobcount, lv_release(1) TYPE c. lv_jobname = ‘jobname’. CALL FUNCTION ‘JOB_OPEN’ EXPORTING...
Read moreITOB0001, ITOB0003 : User-Fields in Equipment, Functional Location, Fleet Masters
Source: https://blogs.sap.com/2014/04/08/itob0001-itob0003-user-fields-in-equipment-functional-location-fleet-masters/
Read moreRefresh ALV
FORM refresh_alv. DATA go_gui_alv_grid TYPE REF TO cl_gui_alv_grid. * Get the current grid control instance CALL FUNCTION ‘GET_GLOBALS_FROM_SLVC_FULLSCR’ IMPORTING e_grid = go_gui_alv_grid...
Read moreDynamic where clause
data: lv_fields type string, lv_clause type string, lv_tablename type string, lt_results TYPE TABLE OF matnr. lv_tablename = ‘MARA’. lv_fields = ‘MATNR’. lv_clause = ‘MTART = ”FERT” AND MBRSH =...
Read moreUpload data from an Excel file
Class ZCL_CONVERT_EXCEL_TO_ITAB class ZCL_CONVERT_EXCEL_TO_ITAB definition public final create public . public section. class-methods GET_ITAB importing !FILENAME type STRING !WORKSHEET type STRING optional !BEGIN_COL type I default 1...
Read moreCreate and maintain parameter values in TVARVC (STVARV vs STVARVC)
STVARVC T-code STVARVC can be used for the Client independent variables (Client ‘000’). The system variants (variant name starting with SAP& or CUS&) are cross-client and they are stored in client 000. Therefore these variants...
Read moreABAP-LO-Common FMs and tables
No. Objects Remark 1 Characteristics GET CHARACTERISTIC INFORMATION 2 Assign Characteristic to Plant TC: CL24N FM: BAPI_OBJCL_CREATE EG: Plant 1102 Characteristic: Z_PLANT_CLASS Class Type: 030 3 4 5
Read more