Application Development and Automation 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: 
Read only

User Exit

Former Member
0 Likes
277

Hi,

I am new to the User Exits concept. Now i am in the requirement to do the follwing thing. Can any body tell me how to proceed for the following requirement.

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..

1 REPLY 1
Read only

sourabhshah
Product and Topic Expert
Product and Topic Expert
0 Likes
239

hi,

Here is a link which talks about user exits..

http://help.sap.com/saphelp_erp2005vp/helpdata/en/c8/1975d943b111d1896f0000e8322d00/frameset.htm

Regards,

Sourabh