Sage 100

 View Only
Expand all | Collapse all

Ok stumped on this, I have an import to AR invoic

Kelly Sappington

Kelly Sappington09-08-2016 17:59

Kelly Sappington

Kelly Sappington09-08-2016 18:01

Kelly Sappington

Kelly Sappington09-08-2016 18:02

  • 1.  Ok stumped on this, I have an import to AR invoic

    Posted 09-08-2016 17:21
    Ok stumped on this, I have an import to AR invoice header using misc codes. My challenge is the invoice number. In the source file I have say T036, I created a temp file and extracted the 36 (know I am going from a string to a number), in temp 2 is the 5 digit number (say 98765) and I need to bring the 2 together for the complete invoice number of 3698765. Everything I have tried wants to just add them together. Is this possible? v5.2std Also it is possible that my temp 1 numbers will change, so I can't assign it.


  • 2.  RE: Ok stumped on this, I have an import to AR invoic

    Posted 09-08-2016 17:35
    They have to both be strings. I can't tell from the above if you have your first temp as string or not, but assuming temp1 is string and temp2 is numeric, then calc field would be Temp001$+str(Temp002). If temp1 is also numeric, then str(Temp001)+str(Temp002)


  • 3.  RE: Ok stumped on this, I have an import to AR invoic

    Posted 09-08-2016 17:52
      |   view attached
    Thanks @BethBowers that got me further than I was. Now I put that in temp 3 and tried to make invoice no be temp 3 and invoice number is all zeros


  • 4.  RE: Ok stumped on this, I have an import to AR invoic

    Posted 09-08-2016 17:57
    or let me clarify if I use the same formula that I use in temp 3 for invoice no I get the 0000000 for inv no.


  • 5.  RE: Ok stumped on this, I have an import to AR invoic

    Posted 09-08-2016 17:58
    I believe the temp fields have to be before the field you are assigning it to.


  • 6.  RE: Ok stumped on this, I have an import to AR invoic

    Posted 09-08-2016 17:58
    Do you actually have the TEMP fields on the list of fields lower than the invoice number? I seem to remember that somewhere along the line, VI seems to have started to ignore the order of fields when it comes to the KEY field. But I might be wrong, so check first that the Temp fields are first.


  • 7.  RE: Ok stumped on this, I have an import to AR invoic

    Posted 09-08-2016 17:59
      |   view attached


  • 8.  RE: Ok stumped on this, I have an import to AR invoic

    Posted 09-08-2016 18:01
    I was afraid of that. I've run into that - VI ignores the order when it comes to the key field. If you put the invoice number field on the import TWICE (getting desperate)


  • 9.  RE: Ok stumped on this, I have an import to AR invoic

    Posted 09-08-2016 18:01
    I'll try changing the order


  • 10.  RE: Ok stumped on this, I have an import to AR invoic

    Posted 09-08-2016 18:02
    I was thinking I would have to get to that


  • 11.  RE: Ok stumped on this, I have an import to AR invoic

    Posted 09-08-2016 18:02
    Seems like I ran into this on an AP import and had no way around it. I finally had to have the client put a macro in their spreadsheet and create the invoice number we needed.


  • 12.  RE: Ok stumped on this, I have an import to AR invoic

    Posted 09-08-2016 18:03
    Yeah. I would swear the older versions of VI did not do this.


  • 13.  RE: Ok stumped on this, I have an import to AR invoic

    Posted 09-08-2016 18:08
    doesn't matter order,I get 0000000 as invoice number. If I assign temp 3 or str(temp3) to invoice # I get failed, need valid invoice #


  • 14.  RE: Ok stumped on this, I have an import to AR invoic

    Posted 09-08-2016 18:15
    Bummer :( But thanks for being the guinea pig for us all on this one and verifying our fears. I would be willing to be perform logic could fix this... but that is a whole other can of worms!


  • 15.  RE: Ok stumped on this, I have an import to AR invoic

    Posted 09-08-2016 18:30
    My pleasure, at least I don't feel like I totally did not know what I was doing. Wish I could get that time back I spent on it though. lol


  • 16.  RE: Ok stumped on this, I have an import to AR invoic

    Posted 09-09-2016 04:30
      |   view attached
    Hey I'm late to the conversation, but I didn't see any reference to the ""Assign Temp on"" field in the temp variables. Since you are using these temp variables in the key field (invoiceno$) then you have to make sure that you set all 3 of those temp variables to ""Key Assigns Only"" see screen shot


  • 17.  RE: Ok stumped on this, I have an import to AR invoic

    Posted 09-09-2016 10:50
    @DavidOverholt that is exactly what I needed. I got it working!! Thanks all for the info and David you get the prize.


  • 18.  RE: Ok stumped on this, I have an import to AR invoic

    Posted 09-09-2016 11:27
    I am always puzzled on how to assign a temp on. Is there a primer somewhere that explains this?


  • 19.  RE: Ok stumped on this, I have an import to AR invoic

    Posted 09-11-2016 07:46
    There may be one somewhere, but conceptually if you need to use the temp variable as part of the key field the you set it to key assigns only. Key field being defined in the file layouts. if you are importing into a master file type table the default is ""standard record"" and you can leave the temp variable at that setting as long as you are not using it to assign part of the key field. If your importing into a header/detail type of table such as Sales Order data entry tables then you have three option for the temp variable. Key assigns only Header Record Line Record Same concept applies here; set this based on what part of the import you need to use the temp variable on. I hope this is helpful to some.