Thursday, April 21, 2016

Function Exit - Sales Order Predefined

Here we have demonstrated another Function Exit or Customer Exit. In the following example we have predefined a value of sales order. Sales order is created by VA01 transaction. There is a field ‘SOLD TO PARTY’. We want this field will be predefined with value 2400 whenever we enter VA01. Following is the step by step approach.

1.       Enter VA01 transaction.

2.       Enter order type OR and hit enter.

3.       Initially the sold to party is blank. Sold to party means the party to whom the product will be sold. So basically it will be the customer.

4.       Note down the screen field by pressing F1 > then go to technical information. Here it is KUAGV-KUNNR.

5.       Now go to system > status and double click on the program.

6.       Then go to attribute > not down the package.

7.       After that go to SMOD and then find (CTRL + F).

8.       Enter the package (VA) and execute.

9.       Now we see that there are a lot of exits for this particular transaction VA01. We have to go by the description of exits and we have chosen Predefined sold-to-party.

10.   Double click on the exit and we enter into the enhancement.

11.   Now double click on the exit and we enter into the function module (SE37).

12.   Now go to CMOD and create a project.



13.   Enter the enhancement name and hit enter.

14.   Now double click on the exit.

15.   Create the include program to write our own code.

16.   Activate the code and activate the project. We see that the exporting parameter takes the value of customer number with E_KUNNR like KNA1-KUNNR. So we are passing a fixed value to E_KUNNR.


17.   Now again enter VA01 with OR order type.

18.   We can deactivate this project and by doing this VA01 will go to previous phase.

9 comments:

Rahul said...

Thanks for sharing this Informative content. Well explained. Got to learn new things from your Blog on SAP SD.
SAP SD

Bhavya Kumar said...

Best blog.Got to learn new things.Thanks for this Blog SAP Success Factors Training in Chennai

Rahul said...

Well explained. Got to learn new things from your Blog on Appium.
Appium training in chennai

Shalini said...

Hi, This is shalini from Chennai learned SAP Training in Chennai from mr.karthick. The training really was good and i got selected in leading mnc company as SAP Consultant.

You can contact 8122241286 for Best SAP Training in Chennai or reach www.thecreatingexperts.com

sanayamohit said...

SAP Success Factors Real Time Hands on Training in Chennai...

Don't always Depend on Training Institute Alone and so please aware of Best Trainers too..

http://thecreatingexperts.com/sap-successfactors-training-in-chennai/

If You need a Best Trainer over SAP Success Factors Means??? Please ready for an DEMO From the Trainer MR.Karthick
CONTACT:8122241286

Both Classroom/Online Training is Available!!!!!!

Shruti Ramalingam said...

From My search…Creating Experts provides Best SAP Training with real time projects assistance.

Most of the modules are equipped with advance level topics which the student can learn from the basics to the advance level stage.

They also provide placement assistance in leading MNC companies across the globe according to the current requirements.

http://thecreatingexperts.com/sap-successfactors-training-in-chennai/

And these are the Best SAP training institute which provides Real Time Hands on Training…

codedion Technologies-9003085882

creating Experts-8122241286

http://thecreatingexperts.com/sap-mm-training-in-chennai/

dinesh said...

SAP Success Factors Real Time Hands on Training in Chennai…

Don’t always Depend on Training Institute alone.Please aware of Best Trainers too..

http://thecreatingexperts.com/sap-successfactors-training-in-chennai/

If You need a Best Trainer in SAP Success Factors??? Then be ready for a DEMO From the Trainer MR.Karthick
CONTACT:8122241286
http://thecreatingexperts.com/sap-mm-training-in-chennai/

Both Classroom/Online Training is Available!!!!!!

Keerthi Suresh said...

SAP Success Factors Real Time Hands on Training in Chennai…

Don’t always Depend on Training Institute alone.Please aware of Best Trainers too..

http://thecreatingexperts.com/sap-successfactors-training-in-chennai/

If You need a Best Trainer in SAP Success Factors??? Then be ready for a DEMO From the Trainer MR.Karthick
CONTACT:8122241286
http://thecreatingexperts.com/sap-mm-training-in-chennai/

Both Classroom/Online Training is Available!!!!!!

ragu varan said...

Best SAP HANA Training in Chennai by leading HANA Consultant.
Reach at 9003085882
http://thecreatingexperts.com/category/sap-hana-training-in-chennai/