on 12-12-2012 11:45 AM
Hi
I am trying to populate a field within crystal reports with data from one of 2 fields from the OIBT table (or text if both fields are blank):
1) - Cardcode (If available)
2) - IntrSerial (if Cardcode is not available)
3) - 'Undefined' (If Cardcode and IntrSerial are both not available)
I have the following formula
IF (not isnull({OIBT.CardCode}))then {OIBT.CardCode} else IF not isnull({OIBT.IntrSerial}) then {OIBT.IntrSerial} else 'Undefined'
It works in all cases except for Batches which have been transferred between depots prior to upgrading SAP from 2007 to 8.81
Data of this type shows nothing in the Cardcode field if it is displayed alone on the report - however it is still printing this field instead of the (like the Not Isnull command is not working for these items or there is something in the field which is not visible)
Is there a different command I should use instead of isnull? Or any other way around this problem?
Thanks
Vicky
@trimcardcode
{OIBT.CardCode} & "x1"
@Supplier2
if not isnull({@trimcardcode}) then IF {@trimcardcode} startswith "x" then IF not isnull({OIBT.IntrSerial}) then {OIBT.IntrSerial} else "Undefined" else {OIBT.CardCode} else IF not isnull({OIBT.IntrSerial}) then {OIBT.IntrSerial} else "Undefined"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vicky
Have you tried open the batches as update under the Batch Management and check if anything is not filled in?
Kind regards
Peter Juby
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vicky,
Try:
SELECT isnull({OIBT.CardCode},isnull({OIBT.IntrSerial},'Undefined')) FROM OIBT
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.