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
2 Answers
109 Questions

SAP EWM Help Latest Questions

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

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