Application Development 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: 

field validation for xblnr in transaction f-28

former_member188827
Active Contributor
0 Kudos

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

10 REPLIES 10

Former Member
0 Kudos

u have to make use of Tcode GGB0.

Regards

Prabhu.

0 Kudos

hi,

what steps should i follow in GGB0 .

Former Member
0 Kudos

See if u can write a Field Exit for the same XBLNR.

regards,

vijay.

0 Kudos

i tried field exit but in abp/fieldexit parameter is set to no .

0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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.