Sage MAS 90 and 200 Sage MAS 500 blogs Product Feedback Support Training
Reply
Sage MAS Partner
dws253
Posts: 6
Registered: 01-29-2010
0

Import concatenated Vendor Number

My CSV source file has two columns that I need to concatenate to create the Vendor Number.  The same CSV is used to create temporary vendors and invoices.  I keep getting Vendor Number is required error when testing.  I have set up the identical calculation (Temp003$+Temp004$) for the Reference number field as a test and it resolves just fine with the two columns stuck together.  The first column is variable length in the CSV file and the second column is always 1, 2, 3, or 4.  Is there a way to get the six rightmost characters from the first column? It appears VI is zero padding the vendor number.  Could be I am trying to put 8 characters into a 7 character field.  Any other ideas?

 

Super Contributor
rmikolainis
Posts: 1,252
Registered: 10-29-2008
0

Re: Import concatenated Vendor Number

Why not trying to format the column in Excel? Takes like 5 seconds to do in Excel.

Sage MAS Partner
dws253
Posts: 6
Registered: 01-29-2010
0

Re: Import concatenated Vendor Number

This import is part of a one click solution that is supposed to be simple to use.  Click a desktop icon and the vendors and invoices are imported, ready for posting and printing checks.  The do a lot of these every day.  They are trying to simplify processes.  I may have to do something before the VI processing starts, but it seems so simple to populate a couple of Temp fields and concatenate in the VI job itself...it just doesn't work - at least for Vendor Number, while it does work for some other string field.  I am trying to find out if I am missing something.  Thanks.

Switcher
BigLouie
Posts: 2,689
Registered: 10-28-2008
0

Re: Import concatenated Vendor Number

How are you handling the division number? Even if they do not use divisions you still have to have a value.

Big Louie No MBA but BMOC
--------------------------------------------------------------------------
You have enemies? Good. That means you've stood up for something in your life.
Sage MAS Partner
dws253
Posts: 6
Registered: 01-29-2010
0

Re: Import concatenated Vendor Number

Divison number is a separate field in VI.  It is ASSIGNed a static value.  Only one division number in use.

Sage MAS Partner
VKZIMM
Posts: 768
Registered: 11-10-2008
0

Re: Import concatenated Vendor Number

Are you temp fields assigned prior to you assigning the Vendor Number?

 

Have you tried using a temp field that is calculated like your reference field and then having the Vendor Number

be calculated and put the Temp field in the calculated box?

 

Yes, if you use the calculated box you can find out how to pad or get specified data from a field.  Check under Functions and Operators.  There is a PVX language manual available somewhere.