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: 

DETERMINE BUSINESS AREA IN SALES ORDER - BADI

Former Member
0 Kudos

Hi,

I wanted to Hardcode a Business area for a specific document type while creating sales order.

Initially the code was added to the userexit to move fields to VBAP but the values added in that code get overriden by the business area determination logic (in FV45PF0V_VBAP-GSBER_ERMITTELN)

This function further calls the following method in the BADI - BADI_SD_SALES_BASIC

- IF_EX_BADI_SD_SALES_BASIC~DETERMINE_BUSINESS_AREA

This BADI has the flag - 'For SAP Internal use' checked.

I am new to BADI's so wanted to know if it is ok to add code to this method and changes the business area in VBAP based on the sales document type.

Thanks

Navdeep Singh

1 REPLY 1

Former Member
0 Kudos

You cannot create an implimentation for a BADI if it says for SAP internal use, you need to look for another BADI or User exit