‎2009 Apr 07 10:34 AM
I am new to user exits and working on it. I have been given include LV69AFZZ and user exit "userexit_pricing_check".
How do i start working on it.
‎2009 Apr 07 10:37 AM
Hi,
Go to se38 and display LV69AFZZ ....
there you will see userexits by form...endform...
if yours is latest ECC6.0 you can write the code under the USEREXIT_PRICING_CHECK
form through implicit enhancement ..
or else take the access key and start coding ....according to your requirement......
Thanks,
Shailaja Ainala.
‎2009 Apr 07 10:59 AM
i have applied for access key..i will get it by today evening..
i will write the code but before that i want to debug this ...so what should be done..
I applied external break point at form USEREXIT_PRICING_CHECK.....
then what has to be done??
‎2009 Apr 07 11:19 AM
Hi,
Dont keep break-point....keep user level break.....and in debug check pricing structure....KOMP KOMV
Thanks,
Shailaja Ainala.
‎2009 Apr 07 11:39 AM
I went to se38 and display LV69AFZZ ....
there userexits is available by form...endform...
Now what i have to code...as i am not cleared about the logic..
it is mentioned that ..
Make the u2018Pricing Change Historyu2019 notes mandatory whenever price is manually changed in Inquiries, Quotations and Sales orders.
When there is a manual change to KOMP-NETWR invoke user exit (MV45AFZB). User should be prompted with the following message u2018Document Incompleteu2019 u2018Would you like to save or edit the incomplete document?u2019 Text must be entered in order to continue order processing. It will not prevent the user from saving the order. Order can be saved with an incomplete status. Once text is entered, order can be processed.
The user exit (MV45AFZB) should go into SPRO, Text Control, Define Text Types, Text Object VBBP Text Procedure u201801u2019 (Sales Item), Text IDu2019s in Text Procedure, Sequence Number u20183u2019, ID Number u20189000u2019 (TKS Pricing Change Note). Set automatically flag Reference to equal u2018Obligatoryu2019.
Include : LV69AFZZ
userexit_pricing_check --> user exit where the code will go.
In this user exit we will use to table XKOMV and KOMV work area.
KOMV will have current condition value. Which user has changed just now.
Table XKOMV will have all the conditions which were already there.
Means KOMV work area holds changed value and TABLE XKOMV holds old value.
Read the table XKOMV in work area ZW_KOMV where KSCHL = KOMV-KSCHL.
If ZW_KOMV-KBETR <> KOMV-KBETR
Popup which will take text from user and will save it in "Standard Text"
use FM "POPUP_GET_VALUES" to get text from user. I have stored a test data in ME1 200.
komk-BELNR 000 komv-KPOSN
Use "READ_TEXT" and "EDIT_TEXT" function modules to write text in the standard text.
first read if there is any existing text available. if it is available then we have to keep that text and have to append new one provided by user.
If no text is there then we have to add new one instead of appending it.
endif.
‎2009 Apr 07 11:43 AM
Hi chand,
Here you have pasted the entire requirement .....the correct point is been told dont expect the entire...logic .....plz do accordingly which is been mentioned ......you wil get it......
Thanks,
Shailaja Ainala.
‎2009 Apr 07 10:40 AM
HI,
You need to create the Project in Tcode CMOD and embedd the user exit in this project and add your logic in the user exit. Refer to link for example..
Refer to this link..[Steps To Implement User Exit |http://www.sap-img.com/abap/steps-to-implement-user-exit-confpm05.htm]
[A Short Tutorial on User Exits |http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm]
‎2009 Apr 07 10:42 AM