cancel
Showing results for 
Search instead for 
Did you mean: 

Sales order _ sold to party

Former Member
0 Kudos

Hi friends... this is our client requirement...

>>>while creating the sales order, the end user enter the sold to party once in a day only....if end user enters more than once(same sold to party) in a day sap system should give a warning message.

>>>Sales area users save the order creating , the delivery document and transfer order for the warehouse. All the orders arrive with in 10 AM are delivered in the same day the other in the day after.

please suggest me....

thanks for advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

pl check the following user exit which defaults a sold to party for the sales order. Check with your for the required parameters to be set in the code.

ADDING A DEFAULT SOLD-TO-PARTY in Sales Order Creation

To show a default sold-to-party in this field when the user creates a sales order (VA01) we can use a function exit .This function exit is located

in enhancement no V45A0002 . Before we can choose the exit we have to

create a project in CMOD after that enter V45A0002 in the enhancement field and click on the components . In the components you will see the

exit EXIT_SAPMV45A_002 . This exit is used for our purpose.

Double clicking on this exit will takes us to function builder (SE37) . This

function exit has one exporting parameters and two importing parameters, we are interested in exporting parameter which is E_KUNNR

of type KNA1-KUNNR i.e if we move the desired customer name to this

structure(E_KUNNR) it will be shown in the field as the default value when we create the sales order.

This function also contains a customer include ZXVVA04 . This include

will be used to write our custom code .

Double clicking on this include and it will prompt us that this include does not exists do you want to create this object ,select yes and the include will be created .In this include we can write our own code that will fill the field E_KUNNR.

e.g. E_KUNNR = 301.

Activate the include and Activate the project. Now when ever the SALES ORDER will be created , sold-to-party field will come up with a predefined

customer .

regards

sadhu kishore

Answers (1)

Answers (1)

Former Member
0 Kudos

1. is your user allowed to create only ONE sales order per day?

2.define background job (SM36)

Former Member
0 Kudos

HI ...

User can create number of sales orders....

same sold to party should not enter more than one time in a day .

please suggest

thanks alot

Former Member
0 Kudos

if you do any output for that sold-to-party while saving order

you can analyse table NAST for the next times (another order with the same sold-to-party)

please ask your abapers - they can set warrining message for the output.

Former Member
0 Kudos

helo u can set this through userexits.

which is V45A0002 ask ur abaper to do so.