The function SetDocumentFrameFrameTradingPartnerByGLN () implements the trading partner in the source document.
The transfer parameter is the GLN of the partner to be set.
SetDocumentFrameTradingPartnerByGLN(PartnerILN)
caution: This does not affect which partner is involved in the target message.
This means that you cannot influence the partner for the EntityMessageCreator in mapping.
SetTargetDocumentFrameTradingPartnerByGLN($GLN))