cancel
Showing results for 
Search instead for 
Did you mean: 

Validation in PS

Former Member
0 Kudos

Hi all

I am using validations in project system & all user exits available are consumed in various validation conditions created. I want to insert a customized user exit in validation "check" step.

how can I do it ??

Regds

Kuldeep

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Kuldeep,

I think its not possible to insert customized user exit in CHECK , as it was a similiar requirment with me also , but i wasn't able to do it .

And if u will get some answer on this , then please share with everybody on SDN as some one may find it useful.

Thanks ,

Dhruv Kumar Malhotra

Former Member
0 Kudos

Hi Ravindra

We got the solution.

It is possible to add extra user exit in validation, it is standard feature of SAP. For it write following code for new user exit in program RGGBR000. Once it is done successfully, u can see the new exit in OPSI transaction.

exits-name = 'UM001'. "matrix validation:

exits-param = c_exit_param_class. "complete data used in exit.

exits-title = text-103. "Example EIS

APPEND exits.

*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

hopefully it will help you.

rgds

Kuldeep

Answers (0)