Skip to Content

field validation for xblnr in transaction f-28

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 09:35 AM

    u have to make use of Tcode GGB0.

    Regards

    Prabhu.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 09:36 AM

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

    regards,

    vijay.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Mehwish Haq

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

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 09: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

    Add a comment
    10|10000 characters needed characters exceeded

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

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 09: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 09: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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.