on 2013 Dec 13 7:11 AM
Hi experts,
I written the routine where the calday is converted to quarter but there is no syntax error. when i try to loading the below error message displaying so can any one suggest this issue.
| @5C@ | InfoObject ZQUARTER does not fulfill ref. integrity in record 1 in value 04 | RSAR | 192 | @35@ | @3R@ |
below the code
data:p1(02).
p1 = SOURCE_FIELDS-calday+4(2).
if p1 = 01 or p1 = 02 or p1 = 03.
move '04' to p1.
elseif p1 = 04 or p1 = 05 or p1 = 06.
move '01' to p1.
elseif p1 = 07 or p1 = 08 or p1 = 09.
move '02' to p1.
elseif p1 = 10 or p1 = 11 or p1 = 12.
move '03' to p1.
endif.
RESULT = p1 .
Regards
RK
Request clarification before answering.
Hi
Why do you write a routine when you have calday? You can just assign calday to quarter and the time derive is automatically.
hope that helps
Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.