Skip to main content

Applying Error Message to Selection Screen without Changing Screen

Problem: Need to set an error message programmatically for selection screen field without changing screen. Example: if selection screen contains plant field. We have to make this field mandatory without using obligatory statement. Error message will be shown at the time clicking on execute button but the screen should not be changed.

Solution: An error message needs to be set with apropriate logic. But the message type should be 'S' and message should be displayed like 'E'. Then 'LEAVE LIST-PROCESSING' statement needs to be implemented which will return to selection screen as soon as the error is shown.

ABAP Code Example:

  IF s_plant IS INITIAL. "Where s_plant is an input field parameters
    MESSAGE 'Please enter plant' TYPE 'S' DISPLAY LIKE 'E'.
    LEAVE LIST-PROCESSING.
  ENDIF.
'

Comments

Popular posts from this blog

Adding New Input Fields to SAP Confirmations Screen (CO11N/COR6N) Without Coding

It is possible to add additional input fields in the SAP production order confirmation screen without coding. We can do this just adding fields to a structure which is included in AFRU table (Confirmation table). Process Steps Step 1:   Go to below customizing path. SIMG > Production > Shop Floor Control > Operations > Confirmation > Single Screen Entry > Define Single Screen Entry for Confirming Production Order Step 2:  Double click on the standard profile. Add "Customer Specific Fields of CI_AFRU" in the detail area. Step 3:  Go to default tab. Select an option from the "Customer Specific Fields" area. Then click on save button. Step 4:  Go to transaction code "SE11". Select database table and put "AFRU" and click on change button. Step 5:  Go to the include marked in the screenshot and double click on the data element of the include. Step 6:  Double click on "CI_AFRU". Step 7:  Click on "Yes" in the pop u

SAP Fiori Data Migration Cockpit Freezing Problem

SAP Data Migration Cockpit is a tool that is used to migrate data from legacy systems to SAP systems. It provides a user-friendly interface for data migration, allowing users to extract, transform, and load data from different sources. Problem Sometimes we face problem during uploading data through data migration cockpit. Problem is data migration cockpit get stuck or frozen while executing a specific task.  Solution To solve this problem we have to execute a program manually through SAP GUI. Step 1: Go to SAP transaction code SE38 Step 2: Paste the program name "/LTB/JOB_DISPATCHER" and then press the execute button. Step 3: Now check the migration cockpit. Problem solved.

SAP Production Order Confirmation Table List

SAP Production Order Confirmation is a process that enables companies to confirm the completion of production orders in the SAP system. The confirmation process allows companies to track and manage the progress of production orders, as well as record the actual quantities of materials used and the time taken to complete the production order. Production order confirmation tables are listed here. AFFW                     Goods Movements with Errors from Confirmation AFFWPRO           Log of deleted AFFW entries AFRC                     Incorrect cost calculations from confirmation AFRD                     Default values for collective confirmation AFRH                     Header information for confirmation pool AFRH_DEL           Backup Copy of Header Information for Conf AFRP0                     Table of planned changes for confirmation AFRP1                   Table of planned changes to conf.: Automatic AFRP2                   Table of planned changes for confirmation AFRP3