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
3 Answers
112 Questions

SAP EWM Help Latest Questions

  • 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

Abstract Class Defined with CLASS ... DEFINITION ABSTRACT. Can have: Attributes (data) Concrete methods (implemented) Abstract methods (declared but not implemented — must be redefined in subclass) Cannot be instantiated directly — only subclasses can be created. Supports inheritance (a subclass inherits implementation + attributes). Can implement interfaces ...

  • 0
DPM125
Beginner

A Listbox in SAP refers to a dropdown list UI element that allows users to select one value from a predefined set of values. *&---------------------------------------------------------------------* *& Report  ZREP_LCLCLASS *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT zrep_lclclass. PARAMETERS: p_color AS LISTBOX VISIBLE LENGTH 20 USER-COMMAND uc. INITIALIZATION.   DATA: lt_list TYPE vrm_values,         ls_list TYPE vrm_value.   ls_list-key = 'R'.   ls_list-text = 'Red'.   APPEND ls_list TO lt_list.   ls_list-key = 'G'.   ls_list-text = 'Green'.   APPEND ls_list TO lt_list.   ls_list-key = 'B'.   ls_list-text = 'Blue'.   APPEND ls_list TO lt_list.   CALL FUNCTION 'VRM_SET_VALUES'     EXPORTING       id     = 'P_COLOR'       values = lt_list. Output: execute the Code.

  • 0
DPM125
Beginner

Adobe Forms (a.k.a. Interactive Adobe Forms / SAP Interactive Forms by Adobe) is a form development and output management tool in SAP used to create print forms, interactive forms, and PDF-based documents. It is the new-generation replacement for older SAP form ...

  • 0
DPM125
Beginner

Program Type Code Purpose Executable? Typical Usage Executable 1 Reports, standalone programs ✅ Yes Reports, jobs, selection screens Include I Reusable code ❌ No Shared FORM routines, definitions Module Pool M Dialog screens, GUI transactions ✅ Yes Custom SAP GUI apps Function Grp F Group of function modules ❌ No BAPIs, reusable logic Subroutine S Collection of FORM routines ❌ No Old-style code reuse Class Pool K Global class definitions ❌ No OO programming, ...