The TMG event 01: Before Save., can be used instead of going for event 05: New Entry if you have validation process to do. The problem with event 05 is that, control goes into the include/form only on the newly created entries. So, if you have...
Read moreAdd SSL into SAP AS
TCode STRUST More detail: https://docs.appdynamics.com/sap/en/set-up-sap-netweaver-systems/set-up-sap-abap-agent/ssl-certificates
Read moreCatch ENTER event on SELECTION SCREEN to checked change radio button depend on a PARAMETER value
Requirement: catch changing Plant value -> ENTER If Plant value is not empty then checked radio button Data: GPRO Else checked radio button Data: MatDoc Logic: AT SELECTION-SCREEN. IF p_werks IS NOT INITIAL. CLEAR rb_md...
Read moreSAP ABAP – Create SELECTION SCREEN for TMG (Table Maintenance Generator)
REPORT zpg_pp01_07_del_plan_eff. CONSTANTS: gc_view TYPE char30 VALUE ‘ZMV_PP_WDEF_A’, gc_u TYPE char1 VALUE ‘U’, gc_and TYPE char3 VALUE ‘AND’...
Read moreHow to find custom CMOD project using exit name
EG: you need to find CMOD project for exist name EXIT_SAPLFMR4_002 Step 1: depend on table MODSAP -> get Exit name Step 2: depend on table MODACT -> get CMOD project Now you know CMOD project and you can access it and as you can...
Read moreEnhancement
No. TCode Requirement How? 1 VL32N When clicking SAVE BADI LE_SHP_DELIVERY_PROC, method SAVE_DOCUMENT_PREPARE 2 VL32N When click icon delete BADI LE_SHP_DELIVERY_PROC, method DELIVERY_DELETION
Read moreCreate an Inbound Delivery (VL31N) by BAPI BBP_INB_DELIVERY_CREATE
DATA: ls_inb_delivery_header LIKE bbp_inbd_l, lv_ib LIKE likp–vbeln, lt_inb_delivery_detail TYPE STANDARD TABLE OF bbp_inbd_d, ls_inb_delivery_detail LIKE LINE OF lt_inb_delivery_detail, lt_return ...
Read moreSORT dynamic internal table with dynamic fields
DATA(category_and_price) = VALUE abap_sortorder_tab( ( name = ‘CATEGORY’ ) ( name = ‘PRICE’ descending = abap_true ) ). SORT <product_list> BY (category_and_price).
Read moreABAP 7.5 declare a new field in SELECT statement by CAST
Sample: SELECT vbak~vbeln, vbak~kunnr, vbak~vdatu, vbap~matnr, vbap~wrf_charstc1, vbap~vstel, vbap~werks, vbap~kwmeng, mara~satnr, CAST( ‘ ‘ AS CHAR( 70 ) ) AS atwrt INTO TABLE @DATA(lt_so) FROM vbap...
Read moretmp
CUSTOM BUTTON, SELECT ALL, DESELECT ALL & FILTER OPTION IN OOPS ALV – USING CL_GUI_ALV_GRID
https://sapcodes.com/2019/12/11/custom-button-select-all-deselect-all-and-filter-option-in-oops-alv-using-cl_gui_alv_grid-class/
Read moreCall a transaction in BDC way
Selection Screen: DATA: bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE. CLEAR bdcdata. bdcdata–program = ‘SAPLFSH_PP_PCW’. bdcdata–dynpro = ‘0025’. bdcdata–dynbegin = ‘X’. APPEND bdcdata...
Read more