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

*&---------------------------------------------------------------------* *& Report  ZTEST_PROGRAM_2 *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT ztest_program_2. *--- Radio Buttons PARAMETERS: r_opt1 RADIOBUTTON GROUP grp DEFAULT 'X' USER-COMMAND rad,             r_opt2 RADIOBUTTON GROUP grp,             r_opt3 RADIOBUTTON GROUP grp. *--- Fields controlled by radio buttons PARAMETERS: p_field1 TYPE char20,             p_field2 TYPE char20,             p_field3 TYPE char20. *--- Screen Modification AT SELECTION-SCREEN OUTPUT. LOOP AT SCREEN. CASE screen-name. WHEN 'P_FIELD1'. screen-active = COND #( WHEN r_opt1 = 'X' THEN 1 ELSE 0 ). WHEN 'P_FIELD2'. screen-active = COND #( WHEN r_opt2 = 'X' THEN 1 ELSE 0 ). WHEN 'P_FIELD3'. screen-active = COND #( WHEN r_opt3 = 'X' THEN 1 ELSE 0 ). ENDCASE. MODIFY SCREEN. ENDLOOP. *--- Output START-OF-SELECTION. WRITE: / 'Option 1:', r_opt1,          / 'Option 2:', r_opt2,          / 'Option 3:', r_opt3,          / 'Field1:', p_field1,          / 'Field2:', p_field2,          / 'Field3:', p_field3. Output: This ABAP program ZRADIO_DEMO demonstrates how to create a dynamic selection screen using radio buttons. It defines three ...

  • 0
DPM125
Beginner

Steps to Send Email with Attachment in ABAP (Background) Create document content (subject, body). Create an attachment (text, CSV, PDF, etc.). Build the BCS object and send.   REPORT z_send_email_attachment. DATA: lo_send_request TYPE REF TO cl_bcs, lo_document TYPE REF TO cl_document_bcs, lo_sender TYPE REF TO cl_sapuser_bcs,

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

REDUCE is used to aggregate values like totals, counts, etc., in a clean, functional style. *&---------------------------------------------------------------------* *& Report  ZREP_LCLCLASS *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT zrep_lclclass. TYPES: BEGIN OF ty_order,          id     TYPE i,          amount TYPE i,        END OF ty_order. DATA: lt_orders TYPE STANDARD TABLE OF ty_order WITH EMPTY KEY,       lv_total  TYPE i. lt_orders = VALUE #(   ( id = 1 amount = 100 )   ( id = 2 amount = 250 )   ( id = 3 amount = 150 ) ). lv_total = REDUCE i( INIT sum = 0                      FOR order IN lt_orders                      NEXT sum = sum + order-amount ). WRITE: / 'Total Amount:', lv_total. Output: Total Amount: 500

  • 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, ...