How to Add Cancel Date to Incompletion Procedure

May 11, 2018 | Author: Anupa Wijesinghe | Category: Information Technology Management, Technology, Areas Of Computer Science, Computing, Software


Comments



Description

ContentsIntroduction ................................................................................................................................................... 2 Add “Cancellation Date” to the Incompletion Procedure ......................................................................... 4 Add field to the sales order header – Sales tab as an screen enhancement ............................................ 5 Test results after adding this field to the sales order header screen .................................................... 7 ABAP Coding required ............................................................................................................................... 9 Introduction It’s often requested by business users to make the sales order header “Cancellation Date” as mandatory field in the sales order. Incompletion procedure is the standard SAP way of making any sales order field mandatory. “Cancellation Date” field is located in the “Item Overview” tab of the sales order. Though standard SAP delivered sales order incompletion procedure has “Cancellation Date” as a field available, there is no screen available for the “Item Overview” screen. You can validate this by checking all screens available in the standard incompletion procedure, under IMG Path – Sales and Distribution / Basic Functions / Log of Incomplete Items / Define Incompleteness Procedure. Select your incompletion procedure assigned to the order type and go to the “Fields” node. Below are the all screens available for you to assign. Therefore, you will have to do an enhancement to achieve this. Let’s see how we can achieve this using an enhancement. Add “Cancellation Date” to the Incompletion Procedure First add the sales order “Cancellation Date” field to your incompletion procedure. Assign screen “KKAU” (Sales order Header – Sales) as the screen against it. Add field to the sales order header – Sales tab as an screen enhancement You need to add the “FSH_CANDATE” to sales order header / header tab. This will be a screen enhancement. This field should be added to screen number 4301. Program – SAPMV45A In order to do above, you need to go to transaction SE80. Select Program from the drop down menu and navigate the screen section. Go to the screen number 4301 and double click on it. Right click on the top area and select option “Layout” Add this new field to the screen. Test results after adding this field to the sales order header screen For some reason, addition of “FSH_CANDATE” field to the sales header is not enough. If I try to create a sales order now, I am getting the incompletion popup for the “Cancellation Date”. I also can navigate to the sales order header / sales tab to maintain it now using Edit button. Once maintained, that value automatically get passed to the “Item overview” tab “Cancellation Date” field as well. However, when I try to save my sales order, system again popup the incompletion procedure stating “Cancellation Date” is missing. Therefore we need to edit the respective program to clear the incompletion procedure if this field is populated. In order to do that, we need to edit the ABAP coding associated in the screen program - SAPMV45A ABAP Coding required In the program - SAPMV45A, we need to clear the structure associated with the incompletion procedure (XVBUV). Below is a sample ABAP code that was done. Once above coding is written, system will not give the incompletion popup. Author: Anupa Wijesinghe E-Mail: [email protected] / [email protected] Website: www.learnsaptips.com View my profile in LinkedIn Follow me on Twitter Disclaimer This article is done based on my research and readings, unless otherwise stated. The views expressed are my own and not of anyone else. Author accepts no liability for the content of the articles in this website or for the consequences of any actions taken on the basis of the information provided. Using this information is at the users own discretion and responsibility.
Copyright © 2024 DOKUMEN.SITE Inc.