Check that the plant entered on the selection screen is valid and that the user has the appropriate authorisation to view records for that plant. First select an entry from the Plants/Branches table (T001W).
T001W-WERKS (Plant) = Plant (selection screen)
WERKS (Plant) Plant
NAME1 (Name) Plant Description
If no records are found in the table an error message should be displayed and the report should not be produced. If a record is found the user needs to be authorised to view entries from the corresponding plant. Check Authorisation object M_MATE_WRK.
HOW TO CHECK AUTHORIZTION CHECK.
CAN U PROVIDE ANY PSEUDOCODE???