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

Create an Excel file called employees.xlsx containing employee data, where: Header row has bold white text on a blue background Data rows have standard black font Salary column is formatted as currency CLASS zcl_create_excel_xco DEFINITION PUBLIC FINAL CREATE PUBLIC. PUBLIC SECTION. METHODS create_employee_excel. ENDCLASS. CLASS ...

  • 0
DPM125
Beginner

*&---------------------------------------------------------------------* *& Report  ZTEST_PROGRAM_2 *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT ztest_program_2. TYPES : BEGIN OF lty_student,         name TYPE string,         id TYPE zstudent_id_01,         departid TYPE zdep_id,         departmentname TYPE string,         END OF lty_student. " internal table DATA lt_student TYPE TABLE OF lty_student. " work area. DATA ls_student TYPE lty_student. DATA ls_department TYPE zdepartment_1. " assign  --> " unassig  --> directly access the place where the data is stored. START-OF-SELECTION.   SELECT studentname studentid departmentid FROM zstudent_2         INTO TABLE lt_student.   "using workarea.   clear: ls_Student.   ls_student-id = '2'.   ls_student-name = 'RAM'.   ls_student-departid = '4'.   ls_student-departmentname = 'CSE'.   " append    append ls_Student to lt_Student.     "using workarea.   clear: ls_Student.   ls_student-id = '3'.   ls_student-name = 'RAM'.   ls_student-departid = '5'.   ls_student-departmentname = 'CSE'.   " append    insert ls_Student into lt_Student.   LOOP AT lt_student INTO ls_student.     WRITE: / ls_student-name, ls_student-id, ls_student-departid, ls_Student-departmentname.   ENDLOOP.   This ABAP report ZTEST_PROGRAM_2 is a beginner-friendly example that demonstrates how to work with internal tables, work areas, and database records. It starts by defining a custom structure lty_student to hold student ...

TRY.          lo_tu_cntrl->create_new_bo_tu( EXPORTING is_bo_tu_new = ls_new_tu_head                                         IMPORTING eo_bo_tu     = eo_bo_tu ). IF eo_bo_tu IS BOUND.             es_tu_act_num = eo_bo_tu->get_num( ).             APPEND es_tu_act_num TO lt_inkeys.          ENDIF.             lo_tu_cntrl->save( ). *--Commit work             COMMIT WORK AND WAIT.             tu_num = es_tu_act_num-tu_num.             "Log something in case of success           CATCH /scwm/cx_sr_error INTO lo_tu_exception.             ROLLBACK WORK. *--Log something in case of error