Hi!
System info: Crystal XI, Microsoft SQL server, JDE database
I am trying to create an consignment inventory report pulling in the customer account name based on where the inventory currently resides.
I am trying to create a command and within the command convert a numeric field to text. The F4101.ABAN8 address field is stored as a number. The F41021.LILOCN field is stored as a string [20]. The LILOCN field does have alpha and numeric data in it, but the data that I am specifically looking at is all numeric, the LILOCN numeric data is the location of inventory and the 8 digit address number is found on the ABAN8 field. Once I have those two properly linked I will be able to pull in the name of the customer.
Below is the code for what I have tried... but it gives me a result of "6.2e+007" when what I am looking for would be 62XXXXXX.
SELECT "F0101"."ABAN8",
convert(char, "F0101"."ABAN8") As "AN8",
"F0101"."ABALPH", "F0101"."ABMCU"
FROM "JDE_EPD_REP"."CPRODDTA"."F0101" "F0101"
WHERE "F0101"."ABMCU"=N' 132' AND "F0101"."ABAN8">61999999
Thanks!
System info: Crystal XI, Microsoft SQL server, JDE database
I am trying to create an consignment inventory report pulling in the customer account name based on where the inventory currently resides.
I am trying to create a command and within the command convert a numeric field to text. The F4101.ABAN8 address field is stored as a number. The F41021.LILOCN field is stored as a string [20]. The LILOCN field does have alpha and numeric data in it, but the data that I am specifically looking at is all numeric, the LILOCN numeric data is the location of inventory and the 8 digit address number is found on the ABAN8 field. Once I have those two properly linked I will be able to pull in the name of the customer.
Below is the code for what I have tried... but it gives me a result of "6.2e+007" when what I am looking for would be 62XXXXXX.
SELECT "F0101"."ABAN8",
convert(char, "F0101"."ABAN8") As "AN8",
"F0101"."ABALPH", "F0101"."ABMCU"
FROM "JDE_EPD_REP"."CPRODDTA"."F0101" "F0101"
WHERE "F0101"."ABMCU"=N' 132' AND "F0101"."ABAN8">61999999
Thanks!