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.

SAP EWM Help Latest Questions

  • 0
  • 0
DPM125

Use of Hide keyword in sap abap

It stores the value of a variable or field at the time the line is being written to the list. Later, when that line is clicked (e.g., in an AT LINE-SELECTION event), the hidden values are automatically restored.

How it works:

  • During WRITE statements in the basic list, you use HIDE to store additional data in the background.

  • When the user interacts (e.g., double-clicks) on that list line, the system retrieves the hidden data, which you can then use in the AT LINE-SELECTION event.

    REPORT zprg_test_ecc.
    
    DATAv_ename TYPE ename,
          v_empno TYPE empno.
    
    START-OF-SELECTION.
    
      SELECT empno ename FROM emp INTO (v_empnov_ename).
        WRITE/ v_ename.
        HIDEv_empnov_ename.
      ENDSELECT.
    
    AT LINE-SELECTION.
    
      WRITE'Details for employee:',
             / 'EmpNo:'v_empno,
             / 'Name:'v_ename. 

Related Questions

Leave an answer

Leave an answer