Skip to main content

SAP Sales Document Item Search Component

You can extend the SAP Sales Document Item Search Component by adding up to 10 fields at the end of the search result table. You can also replace the standard search with a custom selection.

The SFCI Sales Document Item Search Component calls BAdI /ENSXSFCI/ SD_SALESDOCITEM_SRCH.

The BAdI contains the following methods: SEARCH_BY_PARAMETER, SEARCH_BY_CHANGED_DATE, and ADDITIONAL_FIELDS.

Method SEARCH_BY_PARAMETER

The SEARCH_BY_PARAMETER method receives the IS_CONTEXT results and returns the CT_KEY sales document item structure. The CV_IMPLEMENTED flag should be set if this method is implemented. You can use the CUSTOM tab in the Context to pass extra selection fields from the front-end.

The SAP Sales Document Item Search Component logic checks the CV_IMPLEMENTED flag and ignores the standard search if it's set.

Method SEARCH_BY_CHANGED_DATE

The SEARCH_BY_CHANGED_DATE method receives the IS_CONTEXT results and returns the CT_KEY sales document item structure. The CV_IMPLEMENTED flag should be set if this method is implemented. You can use the CUSTOM tab in the Context to pass extra selection fields from the front-end.

The SAP Sales Document Item Search Component logic checks the CV_IMPLEMENTED flag and ignores the standard search if it's set.

Method ADDITIONAL_FIELDS

The ADDITIONAL_FIELDS method receives the CT_DATASET sales document search result table and lets you add values to the CUSTOM01 - CUSTOM10 fields in the table. This method is called after all the SAP Sales Document Item Component logic is executed.