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: 

FI Validation Exit

Former Member
0 Kudos

hello,

i have copied RGGBR000 to ZRGGBR000....

FORM u101 USING bool_data TYPE gb002_015

CHANGING B_RESULT.

ENDFORM.

if i check the syntax... its displaying " the type gb002_015 is unknown "...pls tell me what could be the reason?

thanx in advance..

Regards,

Maya.

3 REPLIES 3

Former Member
0 Kudos

Hi

See the original Std program RGGBR000

in that this code was commented where this gb002_015 was used

so you also comment that code

----


  • FORM U101 *

----


  • Example of an exit using the complete data from one *

  • multi-line rule. *

  • This exit is intended for use from callup point 3, in FI. *

  • *

  • If account 400000 is used, then account 399999 must be posted *

  • to in another posting line. *

----


  • --> BOOL_DATA The complete posting data. *

  • <-- B_RESULT T = True F = False *

----


*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • PLEASE DELETE THE FIRST '*' FORM THE BEGINING OF THE FOLLOWING LINES *

  • IF THE ACCOUNTING MODULE IS INSTALLED IN YOUR SYSTEM: *

*FORM u101 USING bool_data TYPE gb002_015

  • CHANGING B_RESULT.

  • DATA: B_ACC_400000_USED LIKE D_BOOL VALUE 'F'.

*

  • B_RESULT = B_TRUE.

    • Has account 400000 has been used?

  • LOOP AT BOOL_DATA-BSEG INTO BSEG

  • WHERE HKONT = '0000400000'.

  • B_ACC_400000_USED = B_TRUE.

  • EXIT.

  • ENDLOOP.

*

    • Check that account 400000 has been used.

  • CHECK B_ACC_400000_USED = B_TRUE.

*

  • B_RESULT = B_FALSE.

  • LOOP AT BOOL_DATA-BSEG INTO BSEG

  • WHERE HKONT = '0000399999'.

  • B_RESULT = B_TRUE.

  • EXIT.

  • ENDLOOP.

*

*ENDFORM.

*eject

----


  • FORM US001

----


  • Example of an exit for a boolean rule in SAP-EIS

  • for aspect 001 (single validation).

  • one data record is transfered in structure CF<asspect>

*----


  • Attention: for any FORM one has to make an entry in the

  • form GET_EXIT_TITLES at the beginning of this include

----


  • <-- B_RESULT T = True F = False *

----


FORM us001 USING b_result.

*TABLES CF001. "table name aspect 001

*

  • IF ( CF001-SPART = '00000001' OR

  • CF001-GEBIE = '00000001' ) AND

  • CF001-ERLOS >= '1000000'.

*

    • further checks ...

*

  • B_RESULT = B_TRUE.

  • ELSE.

*

    • further checks ...

*

  • B_RESULT = B_FALSE.

  • ENDIF.

ENDFORM. "US001

*eject

----


  • FORM UM001

----


  • Example of an exit for a boolean rule in SAP-EIS

  • for aspect 001 (matrix validation).

  • Data is transfered in BOOL_DATA:

  • BOOL_DATA-CF<aspect> is intern table of structure CF<asspect>

*----


  • Attention: for any FORM one has to make an entry in the

  • form GET_EXIT_TITLES at the beginning of this include

----


  • <-- B_RESULT T = True F = False *

----


FORM um001 USING bool_data "TYPE GB002_<boolean class of aspect 001>

CHANGING b_result.

*DATA: LC_CF001 LIKE CF001.

*DATA: LC_COUNT TYPE I.

  • B_RESULT = B_TRUE.

  • CLEAR LC_COUNT.

  • process data records in BOOL_DATA

  • LOOP AT BOOL_DATA-CF001 INTO LC_CF001.

  • IF LC_CF001-SPART = '00000001'.

  • ADD 1 TO LC_COUNT.

  • IF LC_COUNT >= 2.

    • division '00000001' may only occur once !

  • B_RESULT = B_FALSE.

  • EXIT.

  • ENDIF.

  • ENDIF.

*

    • further checks ....

*

  • ENDLOOP.

ENDFORM. "UM001

***********************************************************************

    • EXIT EXAMPLES FROM PUBLIC SECTOR INDUSTRY SOLUTION

**

    • PLEASE DELETE THE FIRST '*' FORM THE BEGINING OF THE FOLLOWING LINE

    • TO ENABLE PUBLIC SECTOR EXAMPLE SUBSTITUTION EXITS

***********************************************************************

*INCLUDE rggbr_ps_forms.

Reward points if useful

Regards

Anji

Former Member
0 Kudos

Hi Maya,

Its clear that the particularfield is there used in program but not in the Database..check the code and try to debug and comment or delete the filed...Then surely it will work y

reward if useful

Former Member
0 Kudos

i have just added type-pools stmt n its working

fine.......

thank u all..

Regards,

Maya.