VI Export - how to export the Company Code

SOLVED

Can't find this having been discussed anywhere, although I thought I had.

I am assuming I can use a Temp field and either assign "<CompanyCode>" or Calculate it somehow.

So far, nothing that I have tried has worked.

Parents
  • +1
    verified answer

    Greetings,

    Just did a quick test and it looks like you can do this using a calculated field and setting the calculated value to coSession'CompanyCode$

    Here are my results exporting AP_Divsion with company code.

    Thanks,

    Kent Mackall

  • 0 in reply to Kent Mackall

    Thanks Kent.

    Looks good, at least in the Job Log, but maybe I'm doing something wrong as the Company Code is not actually in the exported file.

    Note that Temp001 is actually set up to export after all the Header fields.

    The column for Temp001 is actually blank. I had it at the end of the fields, and it was still blank. It probably means something that all the following columns are shifting to fill the blank space, but I don't know what.

    Here it is in a different VI job as the last column:

Reply
  • 0 in reply to Kent Mackall

    Thanks Kent.

    Looks good, at least in the Job Log, but maybe I'm doing something wrong as the Company Code is not actually in the exported file.

    Note that Temp001 is actually set up to export after all the Header fields.

    The column for Temp001 is actually blank. I had it at the end of the fields, and it was still blank. It probably means something that all the following columns are shifting to fill the blank space, but I don't know what.

    Here it is in a different VI job as the last column:

Children