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: 

My exit in validation exit dont execute for fb02

Former Member
0 Kudos

Hi guys,

Validation in field BSEG-ZLPRS for FB02 transaction.

1.- i add new form in se38 -> ZGGBR000

FORM u105 CHANGING b_result.

BREAK-POINT.

DATA: znolib LIKE zliber-znolib.

SELECT SINGLE znolib

INTO znolib

FROM zliber

WHERE bukrs = bseg-bukrs AND

username = sy-uname.

IF sy-subrc <> 0.

b_result = b_false.

MESSAGE i031(z001) WITH sy-uname.

ELSE.

IF znolib = 'N'.

b_result = b_false.

MESSAGE i031(z001) WITH sy-uname.

ELSE.

b_result = b_true.

ENDIF.

ENDIF.

ENDFORM.

2.- After activated i use RGUGBR00 for rebuilding validation structures

3.- The condition is SYST-TCODE = 'FB02', cause there is no specific condition, we need to check thhis field for all circunstances

I have all ok in ggb0

Best regards

Jua

13 REPLIES 13

SuhaSaha
Advisor
Advisor
0 Kudos

Check this link: [http://www.sap-basis-abap.com/sapfi004.htm|http://www.sap-basis-abap.com/sapfi004.htm] to see if you have maintained the proper configurations.

BR,

Suhas

Former Member
0 Kudos

Thank Suhas,

Everything is a you mentioned in the link.

Still exit dont execute

Best regards

ThomasZloch
Active Contributor
0 Kudos

Try activating an "expert trace" breakpoint in GGB0 (under "extras", you must be in display mode) and see if it stops there at all.

If yes, continue debugging, if not ... is ZGGBR000 assigned to area GBLR in tx GCX2?

Thomas

0 Kudos

Thanks Thomass,

And yes ZGGBR000 assigned to area GBLR

The exit dont execute

Best regards

Juan

Former Member
0 Kudos

Hi,

Nothing yet my exit dont execute from FB02, i debugged with trace and it works, i moved the message instead of break-point to see if the the code is wrong.

Please some advices?

Best regards

Juan

former_member188827
Active Contributor
0 Kudos

this is because SAP has not provided this field for validation.Check Table GB01 with entries:

BOOLCLASS = 9

BCLTAB = 'BSEG'

BCLFIELD = ZLSPR

All those fields which are not available for validation or substitution are marked as 'X' in BEXCLUDE field.

If you want to use this field you have to modify this table entry with space instead of 'X'.

0 Kudos

>

> this is because SAP has not provided this field for validation.Check Table GB01 with entries:

> BOOLCLASS = 9

> BCLTAB = 'BSEG'

> BCLFIELD = ZLSPR

That is what i wanted Juan to check first & he was pretty much sure the field was available for substitution

Now we have a case in hand 😄

0 Kudos

Sorry Suhas im missunderstood your message

Abauser thanks a lot

And know how can i modified the gb01 table? via IMG?

Best regards

Juan

0 Kudos

No not from IMG.Only if its absolutely necessary then update table entry directly.try searching for BTE also.

0 Kudos

Thanks abapuser,

Well i guess that it is necessary cause its marked as 'X' in BEXCLUDE field.

Best regards

Juan

0 Kudos

Not solved yet...

in table GB01 i have:

BOOLCLASS = 9

CLASSTYPE = B

BLCTAB = BSEG

BCLFIELD = *

BEXCLUDE = ' '

Since i am not sustituying the field only validating its not necessary to change....

But my exit still not working

Best regards

Juan

0 Kudos

bump

Regards

Juan

0 Kudos

Nothing?

Regards

Juan