Application Development and Automation 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: 
Read only

BOPF Code value check

Roman71
Participant
0 Likes
1,044

Hello Colleagues,

I have implemented class /BOFU/CL_V_CODE_VALUES like described in this blog: http://scn.sap.com/community/abap/bopf/blog/2013/10/04/bopf-code-values-check#comment-644522

This works fine if the Domain has a check table or a check value. If I use a value range I get errors on all inputs.

I have domain "WORK_DAYS_YEAR" for storing the work days  a year can have. The Domain is a DEC(3). The possible value would be 0 and 366.

I have implemented the check class but I always get an error that my value is wrong no matter what I input.


Any idea on this?

Many thanks

Best regards

Roman

1 ACCEPTED SOLUTION
Read only

cyclingfisch_
SAP Mentor
SAP Mentor
0 Likes
811

Hi Roman,

just to get I right:

your validation does not work, if you try to check the values of a domain are defined as an interval. E.g. WORK_DAYS_YEAR with possible values between 0 and 366?

Did you try to debug the EXECUTE-method of the super class /BOFU/CL_V_NODE_CODE_VALUES? This might give you a hint what causes the issue.

Cheers Martin

3 REPLIES 3
Read only

cyclingfisch_
SAP Mentor
SAP Mentor
0 Likes
812

Hi Roman,

just to get I right:

your validation does not work, if you try to check the values of a domain are defined as an interval. E.g. WORK_DAYS_YEAR with possible values between 0 and 366?

Did you try to debug the EXECUTE-method of the super class /BOFU/CL_V_NODE_CODE_VALUES? This might give you a hint what causes the issue.

Cheers Martin

Read only

0 Likes
811

I had a look into the coding of /BOFU/CL_V_CODE_VALUES->BOBF/IF_FRW_VALIDATION~EXECUTE now. I couldn't debug it, but I didn't see coding which handels the case of intervalls in value lists defined in DDIC.

Either that's a bug or not supported!

Read only

0 Likes
811

Hello Martin,

thank you very much for support. You have now confirmed what we have thought when we stepped through the code.

Maybe SAP can extend this in the future to support all validation types possible. I think this makes sense.

Best regards

Roman