cancel
Showing results for 
Search instead for 
Did you mean: 

Validation using field exit

Former Member
0 Kudos

In transaction ob28 (change validation) i got tyhe next validation which is in COMPLETE DOCUMENT.

Prerequesite

( SYST-TCODE = 'F-58' OR SYST-TCODE = 'FBZ4' ) AND

BSEG-LIFNR = '999109'

Check

U105 (this is the name for my user exit)

Message

****Note: BSEG-LIFNR is the vendor.

-

-


In the user exit form i have this code

FORM U105 USING bool_data TYPE gb002_015

CHANGING b_result.

break CCCRZQ.

B_RESULT = B_FALSE.

  • Has account 11119991 has been used?

LOOP AT BOOL_DATA-BSEG INTO BSEG

WHERE HKONT = '0011119991'.

B_RESULT = B_TRUE.

EXIT.

ENDLOOP.

ENDFORM.

-***** iam trying to use this user exit to check if in one of the lines in bseg table (when i´m generating the document) has the account(hkont) ='0011119991'

1.- Do u know why the breakpoint is not working in the form whats wrong whe i ran f-58?

2.- The user exit entered in check setion is fine or do i need something else?.

Regards.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Check whether you have appended this exit in the initial part of the exit program.

Check whether you have assigned the exit program in the view V_T80D in SM30 transaction.

Also execute report RGUGBR00 in transaction SE38 after this. Select all options except the following ones: 'Generate rule usage', 'Generate validation usage', 'Generate substitution usage' and 'Gen. substn routns in all clnts'.

Regards,

SDNer