Hello,

Sign up to join our community!

Welcome Back,

Please sign in to your account!

Forgot Password,

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask a question.

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

ABAP

ABAP Programming

Share
Followers
6 Answers
115 Questions

SAP EWM Help Latest Questions

  • 0
DPM125
Beginner

Use the same destination (DEMO_EHS_DEST) Fetch a CSRF token Serialize an ABAP structure into JSON Send it as the POST body to the demo OData endpoint Handle the response cleanly CLASS /iap/cl_intelligent_matching DEFINITION PUBLIC FINAL CREATE PUBLIC. PUBLIC SECTION. TYPES: BEGIN OF ty_rawmat_result, uuid TYPE string, material_id ...

  • 0
DPM125
Beginner

This ABAP class is designed for SAP BTP ABAP Environment to connect securely to an external OData or REST API (for example, an EHS Raw Material service).It demonstrates: Secure HTTP communication via BTP destinations CSRF token handling JSON serialization/deserialization Clean separation between connection ...

  • 0
DPM125

User enters Sales Order → goes to item screen. User enters Material + Quantity. SAP validates item → calls USEREXIT_CHECK_VBAP. Your enhancement runs. If xvbap-kwmeng < 10, show error/warning. If OK → continue. User clicks Save. SAP calls USEREXIT_SAVE_DOCUMENT_PREPARE → do final checks. SAP calls USEREXIT_SAVE_DOCUMENT → write ...

  • 0
DPM125

*&———————————————————————* *& Report  ZTEST_BDC_FI01_1 *& *&———————————————————————* *& *& *&———————————————————————* REPORT ztest_bdc_fi01_1. types: begin of ty_error, msg type string, lineno type i, end of ty_error. *       Batchinputdata of single transaction DATA:   bdcdata LIKE bdcdata    OCCURS 0 WITH HEADER LINE. PARAMETERS : p_data TYPE ibipparms–path. DATA : it_tab TYPE truxs_t_text_data, lv_filename TYPE rlgrap–filename, it_msg type table of bdcmsgcoll, lv_msg type string, lt_error type table of ty_error, ls_error type ty_error. TYPES: BEGIN OF record, * data element: BANKS banks(003), * data element: BANKK bankl(015), * data element: BANKA banka(060), * data element: REGIO provz(003), * data element: ORT01_GP ort01(035), * data element: BRNCH brnch(040), ** data element: BANKA *        banka_007(060), ** data element: REGIO *        provz_008(003), ** data element: ORT01_GP *        ort01_009(035), ** data element: BRNCH *        brnch_010(040), END OF record. DATA: lt_record TYPE STANDARD TABLE OF record, ls_record TYPE record. AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_data.

  • 0
DPM125

*&———————————————————————* *& Report  ZTEST_BDC_FI01_1 *& *&———————————————————————* *& *& *&———————————————————————* REPORT ztest_bdc_fi01_1. types: begin of ty_error, msg type string, lineno type i, end of ty_error. *       Batchinputdata of single transaction DATA:   bdcdata LIKE bdcdata    OCCURS 0 WITH HEADER LINE. PARAMETERS : p_data TYPE ibipparms-path. DATA : it_tab TYPE truxs_t_text_data, lv_filename TYPE rlgrap-filename, it_msg type table of bdcmsgcoll, lv_msg type string, lt_error type table of ty_error, ls_error type ty_error. TYPES: BEGIN OF record, * data element: BANKS banks(003), * data element: BANKK bankl(015), * data element: BANKA banka(060), * data element: REGIO provz(003), * data element: ORT01_GP ort01(035), * data element: BRNCH brnch(040), ** data element: BANKA *        banka_007(060), ** data element: REGIO *        provz_008(003), ** data element: ORT01_GP *        ort01_009(035), ** data element: BRNCH *        brnch_010(040), END OF record. DATA: lt_record TYPE STANDARD TABLE OF record,

  • 0
DPM125

RFC (Remote Function Call) Definition: A communication method that allows one SAP system (or external system) to call a function module in another SAP system. Nature: Technical interface (low-level). Can be synchronous (sRFC), asynchronous (aRFC), transactional (tRFC), or queued (qRFC). Usage: Purely for function/module execution between ...

  • 0
DPM125

Scenario: Business wants to run a Sales Order Report (ZSD_SALES_ORDER_REPORT) every night automatically in the background. Instead of manual execution, a background job is scheduled from the ABAP program. CODE:   REPORT z_schedule_bg_job. DATA: lv_jobname TYPE tbtcjob-jobname VALUE ‘Z_SALES_ORDER_JOB’, lv_jobcount TYPE tbtcjob-jobcount, lv_subrc TYPE sy-subrc. PARAMETERS: p_variant ...

  • 0
DPM125

Aspect Enhancement 🚀 (Safe) Modification ⚠️ (Risky) Definition Extend standard SAP without changing its code Change SAP standard code directly Upgrade Impact Upgrade-safe ✅ Upgrade issues ❌ (need rework) Where Used User Exits, BAdIs, Enhancements Direct changes in SAP standard objects Maintainability Easy to maintain Hard to maintain Example Add custom field validation Change standard pricing logic ...