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: 

User Exit or BADI for Alert message when creating first sales invoice to customer

Former Member
0 Kudos

Hi Experts,

    Can it be done by User exit or BADI for give the alert message when creating first sales invoice(VF01) to corresponding customer? If possible, then can you specify the name for the enchancement?. That is, while saving the invoice it should check that whether this is the first invoice for the respective customer. If yes then it need to display the alert message. Kindly give the ideas if you already experienced this. Many thanks in advance.

1 ACCEPTED SOLUTION

tharaka_fernando
Contributor
0 Kudos

Hi Kavi,

you can achieve this requirement Using a BADi/Userexit while saving VF01.

Use a standard BADI / UserExit with SAVE facility and chech whether is there any sales before for this particular customer.

You can use below tables for Query ;

VBRK:--Billing Document: Header Data.

VBRP:--Billing Document: Item Data.

KNA1 - Customer master table

If this is the first sale then give the alert message.

Hint : some UserExits / BADI list

SDVFX010.

SDVFX008

badi_sd_billing

badi_sd_billing_item

sd_cond_access_a

badi_sd_sales_basic

addr_printform_short

badi_matn1

sd_cin_lv60au02

ukm_r3_activate

ukm_fill

USEREXIT_SAVE_DOCUMENT

Thanks

Tharaka

1 REPLY 1

tharaka_fernando
Contributor
0 Kudos

Hi Kavi,

you can achieve this requirement Using a BADi/Userexit while saving VF01.

Use a standard BADI / UserExit with SAVE facility and chech whether is there any sales before for this particular customer.

You can use below tables for Query ;

VBRK:--Billing Document: Header Data.

VBRP:--Billing Document: Item Data.

KNA1 - Customer master table

If this is the first sale then give the alert message.

Hint : some UserExits / BADI list

SDVFX010.

SDVFX008

badi_sd_billing

badi_sd_billing_item

sd_cond_access_a

badi_sd_sales_basic

addr_printform_short

badi_matn1

sd_cin_lv60au02

ukm_r3_activate

ukm_fill

USEREXIT_SAVE_DOCUMENT

Thanks

Tharaka