Credit Management: User Exit LVKMPTZZ and LVKMPFZ1
Hi,
I'm trying to implement crdit management and have a special requirment which is not satified by the standard risk control checks.
Hence i'm planning to implement the USER1 check in the risk catogery.
I'm aware that some ABAP code has to be done to activate and the user exits are LVKMPTZZ and LVKMPFZ1.
Where should be the code written LVKMPTZZ or LVKMPFZ1.
I guess the code has to be written in LVKMPTZZ and call the exit LVKMPFZ1 which in turns call the function module SD_ORDER_CREDIT_CHECK.
Am I true in my understanding.
Does editing LVKMPTZZ SAP access key.
Please help.
Thank you in advance.
Hiii
You can write the code to call the funtion module for credit check in LVKMPTZZ but for same you need Access key from SAP to edit the Include.
Regards
Shambhu Sarkar
Similar Messages
-
User exits LVKMPTZZ and LVKMPFZ1 in credit management
Hello all,
We want to activate these user exits but it looks like this is only possible by registring and amending the standard includes. There is no call to a 'Z' function which you find in other user exits.
Am I correct in this and has anyone implemented these user exits before ?
Thanks and regards,
ArendThat is correct. That is the way User Exits used to work in the <i>old days.</i> Customer Functions (CMOD) didn't come along until the 3.x days.
-
Using user exit. ( LVMPTZZ, LVKMPFZ1). used in Credit Management
Hi
How to find using user exit. ( LVMPTZZ, LVKMPFZ1). used in Credit Management .
Plz provide path
Regards
RohitHi,
You can find exits through transactions# SMOD & CMOD also.
Regards
Chandra -
Whenever you try to save a PDF file to a location other than the default location ('My Documents'), Firefox freezes & you have to go to the 'Task Manager' to exit Firefox and stop the error. I have Windows XP (Media Center Edition) and all updates (Firefox, Adobe PDF, Microsoft, virus protection, etc) are installed. This has only been a problem since Firefox 4, and isn't a problem in Internet Explorer.
Hi David,
Thank you for your detailed question. It sounds like the real issue is pdf files. Are there any antivirus/firewalls that might be blocking this specific file type? or are there any preferences in your control panel that might be blocking this?
Do you have any stored preferences for PDF files in Firefox?
*[[Applications panel - Set how Firefox handles different types of files]] -
User exit EXIT_SAPLL03T_002 and jobs
Hi everybody,
I have a problem with user exit EXIT_SAPLL03T_002 and trx LT12, i put code (the code is in the end) in the user exit in order to update the field QNAME from the standar table LTAP, the sentences for the update are in a job.
The problem is when a run the LT12, put the order and press enter the trx finish normally, but when i see the jobs resumen (SM37) there isnt any job.
Thank you for your help, see you.
INCLUDE ZXLTOU02 *
DATA:
WJ_JTANUM LIKE LTAP-TANUM,
WJ_LGNUM LIKE LTAP-LGNUM,
WJ_WERKS LIKE LTAP-WERKS,
WJ_USER LIKE SY-UNAME,
Parametros para el Job
l_numero LIKE tbtcjob-jobcount, "ID de un job de fondo
l_fecha LIKE tbtcjob-laststrtdt, "Fecha de ejecución más tardía
l_hora LIKE tbtcjob-laststrttm, "Ultima hora de ejecución para
l_jobname LIKE tbtco-jobname VALUE 'JOB_RF',
W_USER LIKE SY-UNAME,
W_HORA LIKE SY-UZEIT,
W_DIA LIKE SY-DATUM.
GET PARAMETER ID 'mb_usuario' FIELD W_USER.
Solo lo realiza para la transaccion LM05 y LM07
y si es por logueo No SAP
***ANTIGUO
*IF ( SY-TCODE EQ 'LM05' OR
SY-TCODE EQ 'LM07' OR SY-TCODE EQ 'LM03' OR
SY-TCODE EQ 'LM04') AND ( W_USER NE '' ).
**********ACTUALIZADO 07/02*********
IF ( SY-TCODE EQ 'LM05' OR
SY-TCODE EQ 'LM07' OR SY-TCODE EQ 'LM03' OR
SY-TCODE EQ 'LM04' OR SY-TCODE EQ 'LT12' ) AND ( W_USER NE '' ).
ojo
UPDATE ZTMB_USERCOLA
SET STATU = ' ' DOCNUM = ' '
WHERE
BNAME = W_USER.
GET PARAMETER ID 'mb_hora' FIELD W_HORA.
GET PARAMETER ID 'mb_dia' FIELD W_DIA.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = l_jobname
IMPORTING
jobcount = l_numero
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
SUBMIT ZUPDATE_LTAP
AND RETURN
VIA JOB l_jobname NUMBER l_numero
WITH WJ_TANUM = T_LTAP_VB-TANUM
WITH WJ_LGNUM = T_LTAP_VB-LGNUM
WITH WJ_WERKS = T_LTAP_VB-WERKS
WITH WJ_USER = W_USER.
Llama a la funcion para cerrar el Job
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = l_numero
jobname = l_jobname
strtimmed = 'X' "Inicio inmediato
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
ENDIF.
REPORT ZUPDATE_LTAP .
PARAMETERS:
WJ_TANUM LIKE LTAP-TANUM, " Numero de OT
WJ_LGNUM LIKE LTAP-LGNUM, " Almacen
WJ_WERKS LIKE LTAP-WERKS, " Centro
WJ_USER LIKE SY-UNAME, " Usuario SAP
W_QNAME LIKE LTAP-QNAME.
data: w_actual, w_timeout type i.
Actualiza el campos de usuario
w_actual = '0'.
w_timeout = 0.
while w_actual = '0' and w_timeout < 300.
w_timeout = w_timeout + 1.
WAIT UP TO 7 SECONDS.
UPDATE LTAP
SET QNAME = WJ_USER ZZRF_BNAME = WJ_USER
WHERE
TANUM = WJ_TANUM
AND
LGNUM = WJ_LGNUM
AND
WERKS = WJ_WERKS.
AGREGANDO 4 ENERO
UPDATE ZTMB_USERCOLA
SET TPICKEO = SY-UZEIT FPICKEO = SY-DATUM
WHERE
LGNUM = WJ_LGNUM
AND
BNAME = WJ_USER.
AGREGANDO 4 ENERO
if sy-subrc = 0.
w_actual = '1'.
UPDATE LTAK SET ZZRF_BNAME = WJ_USER
WHERE TANUM = WJ_TANUM AND
LGNUM = WJ_LGNUM.
endif.
commit work.
endwhile.Hi,
Check the print parameters. Probably after execution you may be deleting the job.
You can change the print parameters during runtime.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
no_dialog = 'X'
user = sy-uname
IMPORTING
OUT_ARCHIVE_PARAMETERS =
out_parameters = params
valid = ws_valid.
IF ws_valid <> space.
params-pdest = 'LOCL'. "Destination
params-primm = ''. "Print Immediately
params-prnew = 'X'. "New Spool Request.
params-armod = '1'. "Print: Archiving Mode - Print Only
params-linct = 65. "Rows
params-linsz = 255. "Cols
params-paart = 'X_65_255'.
params-prrec = sy-uname. "User name
params-prsap = ''. "Print: SAP Cover Page
params-prunx = ''. "PRINT: Host spool cover page
params-prcop = '001'. "number of copies
SUBMIT zmib_fiber_link_background
WITH file = i_file_list-name
WITH rb1 = space
WITH rb2 = c_x
WITH p_launch = c_x
VIA JOB ws_c_session NUMBER ws_c_jobnum
EXPORTING LIST TO MEMORY
TO SAP-SPOOL
WITHOUT SPOOL DYNPRO
SPOOL PARAMETERS params
AND RETURN.
endif.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = ws_c_jobnum
jobname = ws_c_session
strtimmed = 'X'
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
Also check the sy-subrc after JOB_OPEN.
Regards
Subramanian -
Please send material or good lionk on USER-EXIT,BADI and ENHANCEMENT
Hi All,
Please send some step by step material or good lionk on USER-EXIT,BADI and ENHANCEMENT which will be usefull for beginners like me.
Thanks in advance
SrikantaHi Srikanta,
Please see the SDN page for ABAP Enhancements and Modifications:
https://www.sdn.sap.com/irj/sdn/abap?rid=/webcontent/uuid/109f5161-ee76-2910-cb99-db10b559ef4b [original link is broken]
Cheers,
Ville -
Dear Experts,
I am pretty new in BAPI,BADI ,BDC,ALE ,IDOC,USER EXIT,VALIDATION AND SMART FORMS.
Pls let me know for these topics shall i put the question in this community or should i put in any other form. Pl suggest me .
Regards
ShivasPlz SEARCH in SCN before posting ,you will get lot of posts .
Don't use all caps in the subject line -
Difference between user exit,enhancement and BAdi
hello guys,
what is the difference between user exit,enhancement and BAdi.
Please do let me know..
Thanks in advance.
regards,
praveen.Pls do search the forum before posting*
-
Credit Management Routin - Credit Exposure User Exit
Dear SDNs,
I have requirement in Credit Management.
I have activated Credit Management and working fine. Client requirement is: To deactivate Cedit Check if it is the case of LC (Letter of Credit). I have written a routin in OVA8 > Document Controlling > No credit check. Here I have checked the field LCNUM of Table VBKD which is there in Sales Order > Billing Tab (Header) > Financial doc. no.
It is working fine again. But here this LCNUM activates Foreign Trade. So we used other Z-Field called ZLCNUM. Again it is working fine. But after using ZLCNUM we noticed that the Credit Exposure has started getting updated.
So now I am looking for the solution.
Can I go for any User Exit of Credit Exposure?? If yes, which User Exit can I use.??
If any other solution is there.. Do respond.
Quick reply would be highly appreciable...
Thanks,
HPHi,
Actually I have got some User exits for credit checks...
LVKMPTZZ
LVKMPFZ1: USER_CREDIT_CHECK1
LVKMPFZ2: USER_CREDIT_CHECK2
LVKMPFZ3: USER_CREDIT_CHECK3
And trying with that also but looking for any other solution if it is available..
And using another Sales Document Type is not possible in this case..
Any inputs...?? anybody???
Thanks..
HP -
Training and Event Management user exit
Hi,
I am trying to find a user exit in training and event management but it seems that none exist. Specifically, when a course attendance is cancelled I need to remove the record from a 'z' table. Is there another way to do this?If you are using ECC6.0 try using your own implicit Enhancement point.
How to use this can be found on the following web www.sapdev.co.uk
Regards
Jules -
Credit Mgmnt - User Exit Logic
Dear Experts
Automatic credit mgmnt settings are completed . Customized authorizations required is like below:
The reqt is like
1) Rs 0- Rs 50 Lakh - Person A
2) Rs50 Lakhs-Rs 1 Crore - Person B
3) Rs 1 Cr- Rs 2.5 Cr- - Person C
4) Rs 2.5 Cr & above - Person D
I presume that this can be done by using user exit... Field of 'Credit Limit'- KLIMK
'Credit Exposure'. OBLIG [from FD32]
Help/suggestions request ASAP.
Rgds
Sumanth.Ghi,
this is to inform you that,
you can solve your issue with an ABAPER,
he will write a big code for this.
these are the steps:
please write a piece of code in USER_EXIT_SAVE_DOCUMENT_PREPARE, which saves a document and triggers an email and stops proceeding further.
1) if the credit limit in KNKK reaches 50 lakhs mark you have to trigger a mail through a work flow to person ARs 0- Rs 50 Lakh - Person A
read the data basing on CCA/CREDIT LIMIT OF THE CUSTOMER/CUSTOMER NUMBER by catching user id who is preparing the sales order goto PA0105 to get the employee number and using employee number go to get the manager for amployee number using Z_GET_MANAGER a function module. after getting manager id from PA0105 trigger an standard function module called EFG_GEN_GET_USER_EXIT to get teh mail id of the manager - and trigger to approve the mail.
for this you have to link WORK FLOW event also in Z_GET_MANAGER function module.
here you have to create
1.new function module : Z_GET_MANAGER - which gets the total details of persons who are working in the whole organization.
2. 2 HR tables to get the details upto manager : PA0001, PA0105.
3. use standard FM : EFG_GEN_GET_USER_EXIT
4.finally link WORK FLOW EVENT which triggers an mail id to manager's in box with approval infomation.
hope this should help you
regards,
balajia
Edited by: balaji timmampalli achari on Nov 30, 2010 12:06 PM -
Hi Guru's,
In transaction VA01 when we try to create memo by clicking on "create with reference" and giving the invoice no. there, it should copy all the line items of the invoice to that particular credit memo but it is not doing in my client but in standard SAP it happens.
Can anybody help me to know, if any user exit is responsible for this or any particular section of stoping this to happen?
The error message I am getting is "Material in item 000040 does not
plant/storage location " but this is already there.
Please help me to resolve this issue.
Thanks in advance....
Regards
AbinashHi Naren,
Thanks for your reply!
While debugging, I come to know that the error message is coming due to the fact that MARD table(Storage Location Data for Material) do not have any data.
If you go through the error message "Material in item 000040 does not exist in plant/storage location". It is very much clear that error message is coming due to this only.
I have access to diff. client, in the other client this error message is not coming and also MARD table is maintained for all the materials.
Could you please suggest what could be the reason for MARD table not being updated? Also if you can suggest the solution for it.
Regards
Abinash -
User exit theory and practical knowledge (Pls help experts)
Hi Experts,
Kindly help me to know about user exit.
Thanks in advance
Will reward points.Hi,
User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a functionmodule. The code for the function module is writeen by the developer. You are not writing the code directly in the function module, but in the include that is implemented in the function module.
The naming standard of function modules for functionmodule exits is:
EXIT_<program name><3 digit suffix>
The call to a functionmodule exit is implemented as:
CALL CUSTOMER.-FUNCTION <3 digit suffix>
Example:
The program for transaction VA01 Create salesorder is SAPMV45A
If you search for CALL CUSTOMER-FUNCTION i program
SAPMV45A you will find ( Among other user exits):
CALL CUSTOMER-FUNCTION '003'
exporting
xvbak = vbak
xvbuk = vbuk
xkomk = tkomk
importing
lvf_subrc = lvf_subrc
tables
xvbfa = xvbfa
xvbap = xvbap
xvbup = xvbup.
The exit calls function module EXIT_SAPMV45A_003
2. How to find user exits?
Display the program where you are searching for and exit and search for CALL CUSTOMER-EXIT
If you know the Exit name, go to transaction CMOD.
Choose menu Utillities->SAP Enhancements. Enter the exit name and press enter.
You will now come to a screen that shows the function module exits for the exit.
3. Using Project management of SAP Enhancements, we want to create a project to enahance trasnaction VA01 .
- Go to transaction CMOD
- Create a project called ZVA01
- Choose the Enhancement assign radio button and press the Change button
In the first column enter V45A0002 Predefine sold-to party in sales document.
Note that an enhancement can only be used in 1 project. If the enhancement is already in use, and error message will be displayed
Press Save
Press Components. You can now see that enhancement uses user exit EXIT_SAPMV45A_002. Double click on the exit.
Now the function module is displayed. Double click on include ZXVVAU04 in the function module
Insert the following code into the include: E_KUNNR = '2155'.
Activate the include program. Go back to CMOD and activate the project.
Goto transaction VA01 and craete a salesorder.
Note that Sold-to-party now automatically is "2155"
Regards,
M.K -
A/R User Exit Spec and code
The spec -
1. Canadian tax - currently based on Freight type: Read the country(?) Ship-from (plant jurisdiction) to Ship-to(customer jurisdiction) and the inco term on the line item of the sales order and if it's not equal to 'DDP' the line item tax classification will be set to '0' exempt. (This is freight that comes into Canada from the US)
We will look at the shipto and shipfrom txjcd on the sales order document and billing document along with the inco term logic and we will tax freight when they are both Canada
Example Scenario:
For Freight charges where the Ship from is in Canada (Bedco, Artmedco, etc) and the Ship-to is in Canada the freight will always be taxable regardless of the inco term. This is freight that ships within Canada, no boarder crossing.
2. Regular Freight - US & Canada: If separate line item on sales order, it may be exempt from tax based upon state. revisit
a. D.1 Freight included on the line item
i. The freight is passed to the external system by populating the field FREIGHT. The freight amount is always included in the base amount.
ii. An example to fill the freight using the user-exit:
iii. In the customer pricing procedure (for example ZUSA01) enter 4 in the subtotal field of the freight condition type (OTC must have this configuration in the pricing procedure for the freight pricing conditions).
iv. In the customer structure CI_TAX_INPUT_USER, add the field KZWI4 as in KOMP-KZWI4.
v. In the user-exit, add the code CH_USER_CHANGED_FIELDS-FREIGHT_AM = I_INPUT_USER-KZWI4.
3. For PO Specific A/R Tax Exemptions using material tax class of 2, pass the TAXM1 field to the ACCOUNT_NO field in Taxware
oSolution:
For PO Specific Tax Exemptions CSR will go to the line item detail Billing Tab, Tax Classification field (TAXM1) and change that to 2 One-Time Exemption. Configuration complete.
CSR will go to the Text Tab, Internal Item Notice and CSR will provide a brief description as to why that line is tax exempt.
This the code----
TABLES: KNVV, KNA1, KOMK, MLAN, T001W, KNVI.
DATA: w_taxm1 LIKE mlan-taxm1,
i_kna1 LIKE kna1,
c_com_tax type com_tax,
i_komk LIKE KOMK.
*--- if this freight comes into canada from US then set TAXM1 to 0
*----otherwise set TAXM1 to 2 and apply frieght charges. Set ACCNT_CLS
*----to 'Y' each time TAXM1 is passed to ACCNT_NO.
IF KNA1-LAND1 EQ 'CA'.
IF C_COM_TAX-TXJCD_SF EQ C_COM_TAX-TXJCD_ST.
CH_USER_CHANGED_FIELDS-FREIGHT_AM = I_INPUT_USER-KZWI4.
w_taxm1 = 2.
CH_USER_CHANGED_FIELDS-ACCNT_NO = W_TAXM1.
CH_USER_CHANGED_FIELDS-ACCNT_CLS = 'Y'.
ELSEIF C_COM_TAX-TXJCD_SF NE C_COM_TAX-TXJCD_ST.
C_COM_TAX-TXJCD_SF = C_COM_TAX-TXJCD_ST.
C_COM_TAX-TXJCD_POA = C_COM_TAX-TXJCD_ST.
SELECT SINGLE * FROM KNVV
WHERE INCO1 = KOMK-INCO1
AND INCO1 NE 'DDP'.
IF SY-SUBRC EQ 0.
w_taxm1 = 0.
CH_USER_CHANGED_FIELDS-ACCNT_NO = W_TAXM1.
CH_USER_CHANGED_FIELDS-ACCNT_CLS = 'Y'.
ENDIF.
ENDIF.
ENDIF.
SELECT SINGLE taxkd FROM knvi INTO knvi-taxkd
WHERE kunnr = i_komk-kunwe
AND aland = i_komk-land1.
IF SY-TCODE = 'VA01' OR SY-TCODE = 'VA02' OR SY-TCODE = 'VA03' OR
SY-TCODE = 'VF01' OR SY-TCODE = 'VF02' OR SY-TCODE = 'VF03' OR SY-TCODE
= 'VF04' OR SY-TCODE = 'VF05' OR SY-TCODE = 'VF05'.
SELECT SINGLE * FROM kna1 INTO i_kna1
WHERE kunnr = i_komk-kunwe.
IF i_KNA1-land1 EQ 'CA'.
C_COM_TAX-TXJCD_SF = C_COM_TAX-TXJCD_ST.
C_COM_TAX-TXJCD_POA = C_COM_TAX-TXJCD_ST.
ENDIF.
ENDIF.
I am able to enter the user exit, but there is no value for KNA1-LAND1 or C_COM_TAX-TAXJCD_SF or C_COM_TAX-TAXJCD_ST. Does anyone what I am missing ? Please help.
Thanks in advance !!!!
NHi NP ,
which User exit ur using ? Are u talking abt MIRO or VF01.
Regards
Prabhu -
User exit activation and deactivation in production server
If I activate project of corresponding user exit and after transporting the request to Production ,
then for deactivating the project will a request is generated or should i login to Production for deactivating the project.
ThanksHi,
Deactivating the project would again ask for a request so we have to deactivate in development and take it via a transport to production.
Regards,
Himanshu
Maybe you are looking for
-
Work center planned cost calculation- PM related
i have created a work center with t-code ir01, used in Maintenance order under operations tab. In cost tab, it is not showing Planned costs of the pm order. Please advise what are check ups or config settings should be done? Thanks.
-
Possible Problem for US N95 User Upgrading to Firm...
On July 19, 2007 the new firmware version 12.0.013 for Nokia N95 became available through Nokia Software Updater for US product coded N95s. I installed it and only within 1-2 hours my phone messed up. It is now almost unusable. I am trying to figure
-
Canvio 3tb update not compatible with ZFS
Hello, I have been using mutiple Canvio 3tb usb drives (all purchased this year) in striped sets on a backup server running FreeBSD 10 and utilising the ZFS filesystem. Recently I purchased two more identical drives to increase the pool but these are
-
Whenever I go to a web page that has a flash movie on it the contents of the movie has random parts of the movie flickering on and off. The movie does show but it is extremely annoying having this flashing on so many pages. This is in Windows 2000. I
-
Hi, I bought few years ago Cisco ATA 188 , but never really used it, I installed it properly to Router, Computer, phone then I got dial tone but it does not work because I did not installed any software, I believe I need Call Management software, th