Skip to Content
0
Dec 11, 2018 at 05:50 PM

Print Layout Designer (PLD) multi-condition

710 Views

I need to print text or a field value in a PLD in SAP B1 based on multiple conditions like this:

If FieldA begins with TextA then TextAA else

If FieldA begins with TextB then TextBB else

If FieldA begins with TextC then TextCC else

FieldB

Using linked variables I got this to work until I needed to add the logic for the second line. In reality, TextAA and TextBB are the same thing but there's no way to link a PLD field to more than one other PLD field. I couldn't combine the logic for the first two lines into one formula. Maybe you know how to do that?

FYI: The results of this logic all print in the exact same location in the document so they are all overlaying each other. Is there some magic to how you place overlaid items on the canvas that allows them to print correctly? Maybe that's why this isn't working.

Any assistance would be appreciated. Thanks.