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

The XCO Library (ABAP Cloud) — part of SAP’s modern ABAP RESTful programming model — allows you to programmatically create and manipulate repository objects like CDS views, classes, and transformations (including XSLT). CLASS zcl_create_xsl_demo DEFINITION PUBLIC FINAL CREATE PUBLIC. PUBLIC SECTION. METHODS ...

  • 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
Beginner

A macro is a text replacement technique defined using DEFINE … END-OF-DEFINITION. It’s similar to a preprocessor directive and is expanded at runtime. When to use: · For short code blocks with similar patterns (e.g., logging or repetitive output). · Used mainly in ...

  • 0
DPM125
Beginner

This replaces the need for LOOP AT, IF, and APPEND all in one line—powerful and readable. *&---------------------------------------------------------------------* *& Report  ZREP_LCLCLASS *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT zrep_lclclass. TYPES: BEGIN OF ty_user,          name   TYPE string,          status TYPE string,        END OF ty_user. DATA: lt_users TYPE STANDARD TABLE OF ty_user WITH EMPTY KEY,       lt_names TYPE STANDARD TABLE OF string WITH EMPTY KEY. lt_users = VALUE #(   ( name = 'Alice'   status = 'ACTIVE' )   ( name = 'Bob'     status = 'INACTIVE' )   ( name = 'Charlie' status = 'ACTIVE' ) ). lt_names = VALUE string_table(   FOR user IN lt_users   WHERE ( status = 'ACTIVE' )   ( user-name ) ). LOOP AT lt_names INTO DATA(name).   WRITE: / name. ENDLOOP. Output: Alice Charlie

  • 1
DPM125
Beginner

Segment Definition: The smallest building block of an IDoc. Represents a logical grouping of fields (like a table structure). Each segment corresponds to a set of related data — for example: E1KNA1M → Customer general data (Name, Address, etc.) E1KNB1M → Company code–specific customer data. Segments ...