‎2007 Feb 01 10:35 AM
Hi,
I am very new to Enhancements concept. Now i am in the requirement of VA02 Userexit.(To reprice the Net Billed sales order). Please any body help me how to procedd further. I got a FD. I have to create TD and further devt. Can anybody help me.
Thanks..
‎2007 Feb 01 10:44 AM
i dont know what u wanna do , but for Repricing u cannt make use of any user exits , u have to use VOFM(tcode)
for VA01--->user exit --->MV45FZZ.
<b>SORRY Boss , in gen , i will not go thru FD's but U can do all these thing in that user exit.</b>
Regards
prabhu
Message was edited by:
Prabhu Peram
‎2007 Feb 01 10:51 AM
Hi Prabhu,
Thanks for ur reply. I am sending my requirement, Just u can see it and u can give me clear idea how to go further.
Functional Specification Details
Description of the Process
Every time a Net billed sales order is re-priced using the standard re-pricing functionality the following control should take place:
1. If the referenced quote is in Approve status and Sold status:
Copy the Approved buy price from the quote to the net billing sales order
Set the net Net billed Status at item level
2. If in the referenced quote is not Approved and Sold:
Set the approved buy price to zero
Un-Set the net Net billed Status at item level
Functional Description:
Every time a sales order with order type VBAK-AUART = ZOR or ZEXP is re-priced perform the following check for each line of the order (table VBAP) only if the quote number VBAP-VGBEL is different from blank:
1. To recover the quote status, enter table JEST with JEST-OBJNR = VBAK-OBJNR where VBAK-VBELN = VBAP-VGBEL.
If an entry with JEST-STAT = E0004 and JEST-INACT = blank is found, than the quote is approved.
If an entry with JEST-STAT = E0001 and JEST-INACT = blank is found, than the quote is sold.
2. If the quote is both Approved and Sold:
Recover the buy price from the quote entering the condition table KONV with:
KNUMV = VBAK-KNUMV where VBAK-VBELN = VBAP-VGBEL
KPOSN = VBAP-VGPOS
KSCHL = ZAUB
Copy the Approved buy vale KONV-KBETR to the Approved buy price of the sales order item (table KONV, condition KSCHL=ZAUB, value KBETR)
Set the status of the sales order item to net billed. To set the status, table JEST should have an entry with:
JEST-OBJNR = VBAP-OBJNR
STAT = E0010
INACT = blank
Function module STATUS_CHANGE_EXTERN can be used
3. If the quote is not both Approved and sold:
Set the approved buy price of the sales order item to zero (table KONV, condition KSCHL=ZAUB, value KBETR = 0)
Set the status of the sales order item to net billed. Table JEST should have an entry with:
JEST-OBJNR = VBAP-OBJNR
STAT = E0010
INACT = X
Function module STATUS_CHANGE_EXTERN can be used
waiting for ur reply..
thanks & regards..
‎2007 Feb 01 11:31 AM
Hi,
The User exits for VA02 are
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
So look at the description and see what will be useful for your requirment, so after that activate the User exit from SMOD, there will be a Fucntion module and write the code in that function module, Your FD explaines the sample code also, so write the code in that User exit funtion moduel
Regards
Sudheer