cancel
Showing results for 
Search instead for 
Did you mean: 

An extensibility object is needed for a custom field check

SAPSupport
Employee
Employee
0 Kudos

Our requirement is to create 4 custom fields based on the sales division in the sale order item level.

For example; if division is equal to 10, these 4 custom fields to be set as XYZ. If other than 10, they should not be equal to XYZ.

Kindly provide business context and BAdI logic to meet this requirement.


------------------------------------------------------------------------------------------------------------------------------------------------
Learn more about the SAP Support user and program here.

Accepted Solutions (1)

Accepted Solutions (1)

SAPSupport
Employee
Employee
0 Kudos

Check out the documentation on the BAdI options:

  • SD_SLS_CHECK_ITEM

^^^ If you want to check the content of the fields and prompt the end user.

  • SD_SLS_MODIFY_ITEM

^^^ If you want to fill the custom fields within a BAdI.

Answers (1)

Answers (1)

CE6
Advisor
Advisor
0 Kudos

If you want to make sure, that no inconsistencies are saved into the database, you should implement some additional check in SD_SLS_CHECK_BEFORE_SAVE (Check of Sales Documents Before Saving). Checks implemented in SD_SLS_CHECK_ITEM are shown to the user, but they will not prevent the sales document from saving.

In addition, with ABAP CLOUD (Developer Extensibility) you can also provide some context based value help for your custom field. You can find some example here and here.

If you you want to automatically determine the values of your custom fields, you should use SD_SLS_MODIFY_ITEM to set the values.