Skip to Content
avatar image
Former Member

validation in ob28

Hi,

i have created a validation in ob28 for f-47. first i have created a form in zggbr000 and write code in it. after that i create a validation in ob28 and use this exit which i have created in zggbr000 in the check and prerequisite is sy-tcode = f-47.But when i give a break pont on that code and use t-code f-47 the debugger doesn't go to that code. plz any one help.

1. define form

exits-name = 'U403'.

exits-param = c_exit_param_none.

exits-title = 'AMOUNT VALIDATION'. " check order value

APPEND exits

2.FORM U403 USING b_result

end form.

3.use ob28 and create validation

prerequsite = (sy-tcode = f-47)

check = u403

message

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Aug 26, 2010 at 02:53 PM

    Check the transaction code value. F-47 is just a variant of FB01. You need to use document level values in your check.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 26, 2010 at 03:09 PM

    Read OSS [Note 842318 - Frequently asked questions about validations + substitutions|https://service.sap.com/sap/support/notes/842318] look for "debug" to find the actual include to use foir debug.

    Regards,

    Raymond

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 27, 2010 at 05:46 AM

    Hello ,

    you need to create these steps in GGB0(tcode) then on u need to do it in tcode OB28.

    let me know if you need any more info on it.

    regards

    Prabhu

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 27, 2010 at 02:24 PM

    @prbhat..

    Please check if you hav maintained the correct validation against the company code u are checking.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 27, 2010 at 02:24 PM

    @prbhat..

    Please check if you hav maintained the correct validation against the company code u are checking in ob28 transaction.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 27, 2010 at 07:12 PM

    Hi Prabhat,

    Make sure you have run the regeneration part of code, if not then obviously the control will not go to your part of the code because whenever we add any step through GGB0, We have to run the regeneration program RGUGBR00. As soon as you run this program your changes will take effect.

    Caution wile running the program. On Selection screen, you need to check all checkbox except Generate sets, Gen. substn routns in all clnts & Trace Prog. generate calls

    I am sure control will go to your part of the code in Debug mode.

    Regards

    Abhinandan

    Add comment
    10|10000 characters needed characters exceeded

    • No, I don't think you last two gentlemen understand - his breakpoint is in the validation exit code. It will NEVER hit because the pre-requisite fails for the simple fact that the SY-TCODE value in the check is wrong. Though good suggestions, the issue has nothing to do with assignments in GGB4 or boolean code re-generation. Transaction code checks are not a good idea in validations...