BAPI for Unplanned depreciation T-Code ABAA

There is a BAPI which can be used to post the unplanned depreciation in SAP   AMDP_BAPI_CALL_ON_TRANSACTION. DATA : lv_code   TYPE sy–ucomm VALUE ‘SAVE’, ls_raifp2 TYPE raifp2, lt_raifp2 TYPE TABLE OF raifp2, ls_raifp3 TYPE raifp3, lt_raifp3 TYPE TABLE OF raifp3, lt_return TYPE TABLE OF bapiret2, ls_raifp4 TYPE raifp4, ls_raifp1 TYPE raifp1. ls_raifp1–gsvor = ls_raifp1–vorgn = ‘AFAP’. ls_raifp1–bwasl = ‘650’. ls_raifp1–budat = ls_raifp1–bldat = ls_raifp1–bzdat = ‘20181218’. ls_raifp1–waers = ‘INR’.   “CURRENCY ls_raifp2–bukrs = ‘1000’. “Company Code ls_raifp2–anln1  = ‘1100000080’. *ls_RAIFP2-ANLN2  =          […]

Continue reading »

Refresh ALV Report after return from dialog screen

When ALV is created using FM REUSE_ALV_GRID_DISPLAY, you wish to change/refresh the data once you call any transaction or after navigating from any other screen. This code needs to be added in USER-COMMAND Code rs_selfield-refresh = rs_selfield-row_stable = rs_selfield-col_stable = […]

Continue reading »

ALV Toolbar needs to remove button

If you need to remove the button from Oops ALV such as addition etc you can use the below code which will help in removing the buttons from the toolbar. DATA : ls_exclude TYPE ui_func, lt_exclude TYPE ui_functions. ls_exclude = […]

Continue reading »

Asset Upload BAPI

This code will be helpful in uploading assets and deprecation data of asset which is created using AS01 and AS91 DATA : “Local Variable lv_cc           TYPE bapi1022_1–comp_code, lv_asset        TYPE bapi1022_1–assetmaino, lv_subnumber    TYPE bapi1022_1–assetsubno, lv_assetcreated TYPE bapi1022_reference, “Local Tables ls_key          TYPE bapi1022_key,         “Assest Details ls_return       TYPE bapiret2, ls_gd           TYPE bapi1022_feglg001,    “General Data ls_gdx          TYPE bapi1022_feglg001x,   “General Data Fields Updating ls_time         TYPE bapi1022_feglg003,    “Time Dependent ls_timex        TYPE bapi1022_feglg003x,   “Time Dependent Fields Updating ls_allo         TYPE bapi1022_feglg004,    “Allocation Data ls_allox        TYPE bapi1022_feglg004x,   “Allocation Data fields Updating ls_dep          TYPE bapi1022_dep_areas,   “Depreciation Areas ls_depx         TYPE bapi1022_dep_areasx,  “Depreciation Areas Fields Update “Local Internal Table lt_dep          TYPE STANDARD TABLE OF bapi1022_dep_areas,   “Depreciation Areas lt_depx         TYPE STANDARD TABLE OF bapi1022_dep_areasx. […]

Continue reading »

SAP BADI STO in GST

SAP BADI to pass the tax in STO ES_J_1IG_STO. you can write your logic in STO to select the Tax code say you can select the Tax code from the PO. CONSTANTS: lc_ebeln TYPE char50 VALUE ‘(J_1IG_INB_INV_STO)WA_OUTPUT-EBELN’. FIELD-SYMBOLS <fs_ebeln> TYPE any. “Fetch PO No. ASSIGN (lc_ebeln) TO <fs_ebeln>. IF <fs_ebeln> IS ASSIGNED. SELECT SINGLE mwskz FROM ekpo INTO @DATA(lv_mwskz) WHERE ebeln = @<fs_ebeln> AND matnr = @im_bseg–matnr. […]

Continue reading »

SAP GST India J_1IG_INV BAPI

SAP BAPI to post GST Invoice J_1IG_INB_INV_CREATE DATA : gv_ktopl TYPE ktopl, gv_gjahr TYPE bkpf-gjahr, gv_awsys TYPE logsystem. SELECT SINGLE a~vbeln, “Invoice Number a~bukrs, “Company Code a~bupla, “Shipping Plant b~blart * c~ebeln “PO No * c~werks “Plant Code FROM vbrk AS […]

Continue reading »

SAP PGI BAPI

The Code will help you do the PGI(Post Good Issue) from Delivery. BAPI to post PGI DATA : l_vbkok TYPE vbkok, i_vbkok TYPE STANDARD TABLE OF vbkok, i_lips TYPE lips, l_verko TYPE verko, i_verko TYPE TABLE OF verko, it_lips TYPE […]

Continue reading »
1 2 3 14