You are on page 1of 4

Documentation for Business Add-In

Enhancement of Rescheduling Functions (SD_ATP_SDV03V02)

PUBLIC
Document Version: 1.1 – Oct 1, 2013

1
Copyright
© Copyright 2013 SAP AG. All rights reserved.

SAP Library document classification: PUBLIC

No part of this publication may be reproduced or transmitted in any form or for any purpose
without the express permission of SAP AG. The information contained herein may be changed
without prior notice.

Some software products marketed by SAP AG and its distributors contain proprietary software
components of other software vendors. National product specifications may vary.

These materials are provided by SAP AG and its affiliated companies (“SAP Group”) for
informational purposes only, without representation or warranty of any kind, and SAP Group
shall not be liable for errors or omissions with respect to the materials. The only warranties for
SAP Group products and services are those that are set forth in the express warranty statements
accompanying such products and services, if any. Nothing herein should be construed as
constituting an additional warranty.

SAP and other SAP products and services mentioned herein as well as their respective logos are
trademarks or registered trademarks of SAP AG in Germany and other countries.

Please see http://www.sap.com/corporate-en/legal/copyright/index.epx#trademark for


additional trademark information and notices.

2
BAdI: Enhancement of Rescheduling Functions
(SD_ATP_SDV03V02)
Use
The Business Add-In (BAdI) Enhancement of Rescheduling Functions (SD_ATP_SDV03V02) is
used in the Availability Check component (SD-BF-AC). This BAdI belongs to the enhancement
spot Rescheduling Functions (ES_SD_ATP_RESCHEDULING). You can use this BAdI to modify
rescheduling (program SDV03V02, transaction V_V2). The BAdI is called in the subroutine
XTAB_SORT after the system has determined the list of sales document items and stock transfer
document items that are to be processed by rescheduling. (The system selects and sorts items
based on your settings in the rescheduling selection screen.)
Using the method Change Item List (XTAB_CHANGE), you can do the following:
 Change the sorting (priorities) of the items

 Remove items from the item list

Note that to ensure consistency, items that have been removed by the method still take
part in the rescheduling run. Immediately after the method has been executed (before
rescheduling is called), the system performs consistency checks and processes the
removed items as follows:
 Sales order items

For excluded sales order items, the system sets the Fixed date and qty indicator.
Rescheduling is not allowed to change the confirmations of the item.
 Stock transfer order items

Excluded stock transfer order items are moved to the end of the list, which causes
them to have lower priority. If sufficient quantities are available, rescheduling can still
confirm these items.
Note that the system does not allow you to change values (such as the plant or material of an
item). If you change values in the method, the system resets them to the previous values after the
method is executed.

Standard Settings
For more information about the standard settings (filters, single or multiple uses), see the
Enhancement Spot Element Definitions tab in the BAdI Builder (transaction SE18).

Example
You can find example implementations in the BAdI Builder on the Enh.Spot Element Definitions
tab in the BAdI Builder (transaction SE 18) in the Implementation Example Classes section.

The example implementation Filtering and Sorting Sales Documents


(SD_IM_ATP_SDV03V02_EXAMPLE) is relevant if you have added the Sales Document field
(data element VBELN_VA, field ZBELN) to the rescheduling selection screen. (For more
information about how to add fields to the selection screen, see the Additional Information section.)

The example implementation processes the sales document items that match the selection criteria
as follows:

 Sales document items that match the inclusive selection values are moved to the top
of the item list, which causes them to have the highest priority in the rescheduling run.

 Sales document items that match the exclusive selection values are removed from the
item list. After the execution of the example implementation, the system sets the Fixed
date and qty indicator for these items. Rescheduling is not allowed to change the
confirmations of the item.

3
See also
For information about implementing BAdIs in the Enhancement Framework, see SAP Library for
SAP NetWeaver Platform on SAP Help Portal at http://help.sap.com/nw_platform. Select a release
and choose Application Help. In SAP Library, choose SAP NetWeaver Library: Function-Oriented
View -> Application Server -> Application Server ABAP -> Application Development on AS ABAP -
> ABAP Customer Development -> Enhancement Framework.

Enhancing the Selection Screen


The enhancement spot Rescheduling Screens (ES_SD_ATP_SDV03V02_CUST_SEL) allows you
to enhance the rescheduling selection screen. You can add fields to the existing group boxes
(Data, Options, Sort order) or append fields at the bottom of the screen (outside of the group
boxes).

Note

Both the enhancement spot Rescheduling Screens


(ES_SD_ATP_SDV03V02_CUST_SEL) and the enhancement spot Rescheduling
Functions (ES_SD_ATP_RESCHEDULING), to which the BAdI Enhancement of
Rescheduling Functions (SD_ATP_SDV03V02) is assigned, belong to the
composite enhancement spot Rescheduling (ESC_SD_ATP_RESCHEDULING).

For the implementation, you use the enhancement options of the Rescheduling Screens
enhancement spot, which are located in the rescheduling program (SDV03V02). The
enhancement options are listed in the following table:

Enhancement Enhancement Option

Add fields to the Data group SDV03V02_SELECTION_SCREEN_01


box

Add fields to the Options group SDV03V02_SELECTION_SCREEN_02


box

Add fields to the Sort order SDV03V02_SELECTION_SCREEN_03


group box

Add fields after the Sort order SDV03V02_SELECTION_SCREEN_04


group box (outside of the group
boxes)

Initialize the new selection SDV03V02_INITIALIZATION (event


fields (for example, define field INIZIALISATION)
labels)

Process existing and new SDV03V02_SSO (event AT


selection fields (for example, SELECTION-SCREEN OUTPUT)
set default values)

For more information, search for Enhancement Options in the documentation of SAP
NetWeaver at http://help.sap.com.

You might also like