Posts

Showing posts with the label MB51 BAPI to get same report using API

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

MB51 BAPI to get same report using API

 Using t-code MB51 we can get a details report based on search criteria. Sometimes we need to fetch this data using API for that case we can use BAPI to fulfill our demand. BAPI : ""BAPI_GOODSMVT_GETITEMS" We need to prove parameters value based on requirement. Input Parameter: Material_RA: Low to High PLANT_RA:         Low to High STGE_LOC_RA: Low to High Batch_RA: Low to High MOVE_TYPE_RA: Low to High PSTNG_DATE_RA: Low to High VENDOR_RA : Low to High   use below code after completing steps. CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.