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 in BAPI BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Kudos

Hi all,

I am creating Sales order using BAPI_SALESORDER_CREATEFROMDAT2. But i need to do some validations in it. So are there any user exits in this BAPI? Which user exit should I use for validation.

Thanks

Ashish

2 REPLIES 2

Former Member
0 Kudos

Transaction Code - VA01 Create Sales Order

Exit Name Description

SDTRM001 Reschedule schedule lines without a new ATP check

V45A0001 Determine alternative materials for product selection

V45A0002 Predefine sold-to party in sales document

V45A0003 Collector for customer function modulpool MV45A

V45A0004 Copy packing proposal

V45E0001 Update the purchase order from the sales order

V45E0002 Data transfer in procurement elements (PRreq., assembly)

V45L0001 SD component supplier processing (customer enhancements)

V45P0001 SD customer function for cross-company code sales

V45S0001 Update sales document from configuration

V45S0003 MRP-relevance for incomplete configuration

V45S0004 Effectivity type in sales order

V45W0001 SD Service Management: Forward Contract Data to Item

V46H0001 SD Customer functions for resource-related billing

V60F0001 SD Billing plan (customer enhancement) diff. to billing plan

No of Exits: 15

USER EXIT

http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm

http://www.sapgenie.com/abap/code/abap26.htm

http://www.sap-img.com/abap/what-is-user-exits.htm

http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction

http://www.easymarketplace.de/userexit.php

http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm

http://www.sappoint.com/abap/userexit.pdfUser-Exit

http://www.sap-img.com/ab038.htm

http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm

http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm

http://www.sap-img.com/abap/what-is-user-exits.htm

http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html

Rewards if useful.........

Minal

Sougata
Active Contributor
0 Kudos

Ashish,

Customer validations must be done before calling the BAPI and after the data mapping. This BAPI will automatically do heaps of validations for you, so no worries there...but if you want to do your own data validations, do it before calling this BAPI.

The BAPI has a table parameter called EXTENSIONIN which is provided for the customers to add custom fields in...please see the structure BAPIPAREX for more details. If you were to use an user-exit within a BAPI, you would in that case, write logic to populate your custom field values for the custom fields you've passed in paramter EXTENSIONIN. But for your requirement, do all data validations before calling the BAPI.

Hope this helps,

Cheers,

Sougata.