Welcome, Guest
Username: Password: Remember me

TOPIC: Label Control File - IF THEN ELSE ???

Label Control File - IF THEN ELSE ??? 1 year 2 months ago #665

Have looked through the documentation and so far have not found a direction or solution. Have a ASN lable that needs to print a UPC code if the pack is not mixed and nothing if it is mixed. Using the ALTKEY1 tag for the UPC code. When mixing a pack it generates the data for the first item in the pack. Is there a way to handle this within the label control file?
The administrator has disabled public write access.

Label Control File - IF THEN ELSE ??? 1 year 2 months ago #666

  • rfosberg
  • OFFLINE
  • Junior Boarder
  • Posts: 37
  • Karma: 0
[IF] {1STMIXED} = "MIXED"
[VAR] LBLSEL = "M"
[ELSE]
[VAR] LBLSEL = "S"
[ENDIF]

Then I had to select the customer so I added this set
[IF] {CUSTOMER:3} = "CAT"
[VAR] LBLSEL2 = {LBLSEL}-CAT
[ENDIF]

Then this is the one I use to print the Mixed label format
[IF] {LBLSEL2} = "M-CAT"
%BTW% /AF="C:\SysproEDI\Labels\CatShipAddrM.btw" /R=4 /P /D="%Trigger File Name%"
[ENDIF]

I use the above to determine if the Label is a mixed label or not.

Then I determine which customer is and then finally I combine the 2 variables together and use that to then select which label format to print.

I do not know if there has been better functionality added since the time I did this or not but this is how I solved the issue.
The administrator has disabled public write access.

Label Control File - IF THEN ELSE ??? 2 weeks 4 days ago #688

Dear Friends at BTPartners,

I solved this problem. I'm producing MIXED load labels without the UPC codes. Feel free to reach out to me and I can send you a sample of what environment I'm working in and what my solution was. I would be happy to share the knowledge.

I do not use the {1STMIXED} token. I had to rely of on a different method.

Alex Armstrong
This email address is being protected from spambots. You need JavaScript enabled to view it.
Last Edit: 2 weeks 4 days ago by alexander.armstrong@atlascopco.com. Reason: Missed a line.
The administrator has disabled public write access.
Moderators: JohnMc, Don, elasner
Time to create page: 0.436 seconds
Powered by Kunena Forum

Why CADACUS SOLUTIONS FOR SYSPRO?

Since 1991, as developer of the standard EDI, Shipping, and Freight Calculator Solutions for SYSPRO, our products are fully integrated with SYSPRO and drive efficiencies for hundreds of users worldwide.

Why SYSPRO?

For 35 years, SYSPRO has had a single product focus resulting in an award-winning ERP system with a track record of success for over 14,000 customers worldwide.