I have a requirement to get the header text of a sales order. Normally I would use an include statement in a SAPScript/SmartForm or the FM Read_Text. However we just had our sales order numbers cross into the 500,000 range and we have ITOs (Intercompany Transfer Orders or POs) in that number range. So when I use an include statement using tdname (the Sales Order number) I get the header info of the ITO/PO that has the same number. Basically somehow I need to differentiate between order types (regular orders verses ITO).
Do you have any tips that will allow me to do this?