Posts

Showing posts from July, 2024

SAP ABAP - Custom Report Stock on Posting Date

Image
  Main Program *&------------------------------------------------------------------* *& Report ZRMM008 *&------------------------------------------------------------------* *& *&------------------------------------------------------------------* REPORT zrmm008. INCLUDE zrmm008_01. INCLUDE zrmm008_02. INCLUDE zrmm008_03. INCLUDE zrmm008_04. INCLUDE zrmm008_05. START-OF-SELECTION.   "Check Company Code Authorization   AUTHORITY-CHECK OBJECT 'F_BKPF_BUK'     ID 'BUKRS' FIELD p_bukrs     ID 'ACTVT' FIELD '03'.   IF sy-subrc = 0.     IF grp1 = 'X'. *      PERFORM get_data.       PERFORM get_inv_sloc_level.     ELSE. *      PERFORM get_data_plant_level.       PERFORM get_inv_plant_level.     ENDIF.     PERFORM set_fieldcat.     PERFORM display_alv.   ELSE.     CLEAR str_msg.     str_msg = |NO Authoriz...