01-08-2007 9:32 AM
hi
ive created a table "zcheck' with fields as follows:
xblnr ....key....reference
hkont....key....account number.
wrbtr..amount
my requirement is that if user enters cheque number in reference then the cheque number shud get validated from zcheck table.if cheque has been cleared then an error message should b issued,.if not cleared den user should b allowed to clear da cheque.
ive aleady searched user exits for f-28 but cudnt find ny....kindly help ,,regards
01-08-2007 9:35 AM
01-08-2007 9:39 AM
01-08-2007 9:36 AM
See if u can write a Field Exit for the same XBLNR.
regards,
vijay.
01-08-2007 9:43 AM
01-08-2007 9:54 AM
....fieldexit parameter is set to no //
I didnt get you .
For this scenario the processing is to validate the cheque number from the Ztable and check the status whether cleared or not and then error message.
if u write a select and validate with the ztable field why it is failing ?
//my requirement is that if user enters cheque number in reference then the cheque number shud get validated from zcheck table
in the code where are u validating the ztable content ?
No select on Z table ?
check if u have to do some more coding ..
regards,
vijay.
01-08-2007 9:43 AM
use standard SAP program - RSMODPRF and create field exit for corresponding data element there..and u can write in ur validation code there.
activate field exit
amit
01-08-2007 9:53 AM
FUNCTION FIELD_EXIT_XBLNR1.
*"----
""Local Interface:
*" IMPORTING
*" REFERENCE(INPUT) TYPE XBLNR1
*" EXPORTING
*" REFERENCE(OUTPUT)
*"----
data : begin of it_bkpf occurs 0,
xblnr like bkpf-xblnr,
end of it_bkpf.
select xblnr from bkpf into corresponding fields of table it_bkpf .
READ TABLE IT_BKPF WITH KEY XBLNR = INPUT.
IF SY-SUBRC <> 0.
message 'Please Enter correct reference No.' type 'E'.
ENDIF.
ENDFUNCTION.
this is the function module for field exit ,i have also activated it. i have assigned it to program SAPMF05A for screen 103 wht steps should be followed next.
01-08-2007 9:48 AM
have you use any field exit for that? if no then run the report RSMODPRF and give your fields data element name and create the fn module and assign program name and screen no. activate that. it may work...
regards
shiba dutta
01-08-2007 9:57 AM
activate the fn module first.
now come out of fn module builder and run rsmodprf again in selection screen dont specify anything.
run that it will show all the field exits.
assign prog name and screen no.
choose your fieldexit and activate it from the menu bar.
regards
shiba dutta
01-08-2007 5:21 PM
His problem is that the exit cannot be activated if the ABAP/FIELD EXIT system parameter is set to no. This is a system parameter and requires SAP to be restarted as mentioned in the Long message text. If the BASIS guy's won't set it to yes, you won't be able to use field exits as I see it, you'll have to find an alternative method.