Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Standard BADI

Former Member
0 Kudos

Dear all,

I need to do some enhancement by LE_SHP_DELIVERY_PROC method FILL_DELIVERY_HEADER. Is there any reference document explain the step to use the standard BADI??

Regards,

Kit

1 ACCEPTED SOLUTION

Former Member

Hi Kit,

Proceed as follows.

1. Execute the TCode SE24

2. Input the interface name IF_EX_LE_SHP_DELIVERY_PROC in Object type input field and click on Display

3. Place the cursor on the method FILL_DELIVERY_HEADER and press F9 or follow the menu path GoTo->Documentation->To component

4. System will display the related documentation of this method.

Also refer to the below documentation on LE_SHP_DELIVERY_PROC and its associated interface IF_EX_LE_SHP_DELIVERY_PROC


HY SIMGLE_SHP_DELIVERY_PROC
____________________________________________________
Short Text
Business Add-In for Delivery Processing

Use
Application component: LE-SHP-DL

You can use the Business Add-In LE_SHP_DELIVERY_PROC to influence processing of delivery data, during creation and changing of deliveries at specific points described in the interface. The BAdI methods enable you to read, write, determine, delete, and save your own delivery-related data, and to change the standard delivery data.

This Business Add-In also makes methods available that you can use to control the ready-for-input status of fields in the delivery transaction, and to activate function codes.


Standard settings

This Business Add-In is not active in the standard system.
The Business Add-In can be used more than once.
Activities

To activate the Business Add-In, you must create an active implementation. To do this, go to Customizing for the component Logistics Execution and choose Shipping -> System Modifications -> Business Add-Ins in Shipping.

For more information about this procedure, see the SAP Library under

Basis Components -> ABAP Workbench -> Changing the SAP Standard -> Business Add-Ins -> Implementing Business Add-Ins.
Note that the Business Add-In can be used multiple times and therefore all active implementations are called and run through.

Example

You can use the Business Add-In LE_SHP_DELIVERY_PROC, if you want to fill and update additional fields in the delivery items or in the delivery header.

Further notes

There is example coding for this Business Add-In in which some of the methods have been implemented.

BAdI Interface IF_EX_LE_SHP_DELIVERY_PROC
The interface makes the following methods available:

CHANGE_FCODE_ATTRIBUTES
You can use this method to deactivate the function codes in delivery processing, dependent on the delivery data currently being processed. For example, you can use this method if you want to generally suppress goods issue postings online, or if you want to exclude a user range from using specific functions.

CHANGE_FIELD_ATTRIBUTES
This method helps you to control the attributes of fields in the delivery transaction yourself. For example, you can use this method to specify that no entries can be made in certain fields in the delivery transaction.

READ_DELIVERY
This method is used to read your own, delivery-dependent data after the standard delivery data has been read. You can also use this method to update delivery data before you start online or background processing.

INITIALIZE_DELIVERY
You can use this method to initialize your own data together with the standard data from delivery processing. This might be necessary, for example, if you want to process a new delivery document within the transaction.

CHECK_ITEM_DELETION
This method is called before a delivery item is deleted. You can use this method to perform checks to see whether an item can be deleted, and if necessary, to then prevent deletion of a delivery item.

ITEM_DELETION
You can use this method to delete your own item-dependent data when a delivery item is deleted.

DELIVERY_DELETION
This method is called when a delivery is deleted completely. Implement this method if you want to delete your own delivery-related data.

DELIVERY_FINAL_CHECK
This method is used to perform the last checks before saving a delivery. You can use this method to prevent the delivery being saved/created.

SAVE_AND_PUBLISH_DOCUMENT
You can use this method when you want to save your own delivery-related data. The method can also be used to pass on the delivery data to external applications.

SAVE_AND_PUBLISH_BEFORE_OUTPUT
You can use this method when you want to save your own delivery-related data. The method can also be used to pass on the delivery data to external applications.

SAVE_DOCUMENT_PREPARE
This method is called when the delivery is saved after the final checks have been successful. Here, you can prepare your own delivery-relevant data for saving, or you can make final changes to the standard delivery data.

DOCUMENT_NUMBER_PUBLISH
When a delivery is being created, you work with a temporary delivery number within delivery processing. If you manage your own delivery-related data that refers to the delivery number, then you can use this method to copy the final delivery number into the data after number assignment has taken place.

FILL_DELIVERY_HEADER
This method is called when the delivery is created, when the delivery header is generated. You can use this method if you want to fill your own fields with data in the header for the delivery.

FILL_DELIVERY_ITEM
You use this method to populate your own fields in the delivery item with data. This method is called when a delivery item is created.

CHANGE_DELIVERY_HEADER
This method is called when delivery header data is changed. It enables you to adjust your own dependent data.

CHANGE_DELIVERY_ITEM
You use this method if you want to influence delivery item data when creating or changing delivery items. This method also allows you to prevent delivery items being created in certain situations.

PUBLISH_DELIVERY_ITEM
You can use this method to publish the delivery items after changes have been made. You can use this method if you want to adjust your own item-dependent data.

Hope this helps you out. Reward accordingly.

Thanks and Regards,

Maddineni Bharath.

2 REPLIES 2

former_member186099
Contributor
0 Kudos

Hi ,

I don't have any documents for this but i can guide you how you need to proceed when you want to implement BADIs,

1) Find out the BADI for your requirement.

2) First read the documentation available for the corresponding BADI (For all BADIs SAP has provided the proper documentation). (This helps you a lot)

3) You should be able to decide the method you should implemnt for your requirement after going through the documentation.

4) Refer the sample code provided by SAP. It helps you a lot.

Path:

Go to SE18.

Enter the BADI name.

Click on display

For available methods:

Click on interface TAB

For samle code

Take the menu path.

goto->sample code-> Display

For documentation:

Click on interface TAB

Click on any one of the methods.

Click on the interface documentation icon present on the application tool bar.

Reward points if you find it helpful.

Regards,

Prasanna

Click on any one of the methods

And

Former Member

Hi Kit,

Proceed as follows.

1. Execute the TCode SE24

2. Input the interface name IF_EX_LE_SHP_DELIVERY_PROC in Object type input field and click on Display

3. Place the cursor on the method FILL_DELIVERY_HEADER and press F9 or follow the menu path GoTo->Documentation->To component

4. System will display the related documentation of this method.

Also refer to the below documentation on LE_SHP_DELIVERY_PROC and its associated interface IF_EX_LE_SHP_DELIVERY_PROC


HY SIMGLE_SHP_DELIVERY_PROC
____________________________________________________
Short Text
Business Add-In for Delivery Processing

Use
Application component: LE-SHP-DL

You can use the Business Add-In LE_SHP_DELIVERY_PROC to influence processing of delivery data, during creation and changing of deliveries at specific points described in the interface. The BAdI methods enable you to read, write, determine, delete, and save your own delivery-related data, and to change the standard delivery data.

This Business Add-In also makes methods available that you can use to control the ready-for-input status of fields in the delivery transaction, and to activate function codes.


Standard settings

This Business Add-In is not active in the standard system.
The Business Add-In can be used more than once.
Activities

To activate the Business Add-In, you must create an active implementation. To do this, go to Customizing for the component Logistics Execution and choose Shipping -> System Modifications -> Business Add-Ins in Shipping.

For more information about this procedure, see the SAP Library under

Basis Components -> ABAP Workbench -> Changing the SAP Standard -> Business Add-Ins -> Implementing Business Add-Ins.
Note that the Business Add-In can be used multiple times and therefore all active implementations are called and run through.

Example

You can use the Business Add-In LE_SHP_DELIVERY_PROC, if you want to fill and update additional fields in the delivery items or in the delivery header.

Further notes

There is example coding for this Business Add-In in which some of the methods have been implemented.

BAdI Interface IF_EX_LE_SHP_DELIVERY_PROC
The interface makes the following methods available:

CHANGE_FCODE_ATTRIBUTES
You can use this method to deactivate the function codes in delivery processing, dependent on the delivery data currently being processed. For example, you can use this method if you want to generally suppress goods issue postings online, or if you want to exclude a user range from using specific functions.

CHANGE_FIELD_ATTRIBUTES
This method helps you to control the attributes of fields in the delivery transaction yourself. For example, you can use this method to specify that no entries can be made in certain fields in the delivery transaction.

READ_DELIVERY
This method is used to read your own, delivery-dependent data after the standard delivery data has been read. You can also use this method to update delivery data before you start online or background processing.

INITIALIZE_DELIVERY
You can use this method to initialize your own data together with the standard data from delivery processing. This might be necessary, for example, if you want to process a new delivery document within the transaction.

CHECK_ITEM_DELETION
This method is called before a delivery item is deleted. You can use this method to perform checks to see whether an item can be deleted, and if necessary, to then prevent deletion of a delivery item.

ITEM_DELETION
You can use this method to delete your own item-dependent data when a delivery item is deleted.

DELIVERY_DELETION
This method is called when a delivery is deleted completely. Implement this method if you want to delete your own delivery-related data.

DELIVERY_FINAL_CHECK
This method is used to perform the last checks before saving a delivery. You can use this method to prevent the delivery being saved/created.

SAVE_AND_PUBLISH_DOCUMENT
You can use this method when you want to save your own delivery-related data. The method can also be used to pass on the delivery data to external applications.

SAVE_AND_PUBLISH_BEFORE_OUTPUT
You can use this method when you want to save your own delivery-related data. The method can also be used to pass on the delivery data to external applications.

SAVE_DOCUMENT_PREPARE
This method is called when the delivery is saved after the final checks have been successful. Here, you can prepare your own delivery-relevant data for saving, or you can make final changes to the standard delivery data.

DOCUMENT_NUMBER_PUBLISH
When a delivery is being created, you work with a temporary delivery number within delivery processing. If you manage your own delivery-related data that refers to the delivery number, then you can use this method to copy the final delivery number into the data after number assignment has taken place.

FILL_DELIVERY_HEADER
This method is called when the delivery is created, when the delivery header is generated. You can use this method if you want to fill your own fields with data in the header for the delivery.

FILL_DELIVERY_ITEM
You use this method to populate your own fields in the delivery item with data. This method is called when a delivery item is created.

CHANGE_DELIVERY_HEADER
This method is called when delivery header data is changed. It enables you to adjust your own dependent data.

CHANGE_DELIVERY_ITEM
You use this method if you want to influence delivery item data when creating or changing delivery items. This method also allows you to prevent delivery items being created in certain situations.

PUBLISH_DELIVERY_ITEM
You can use this method to publish the delivery items after changes have been made. You can use this method if you want to adjust your own item-dependent data.

Hope this helps you out. Reward accordingly.

Thanks and Regards,

Maddineni Bharath.