For a given invoice,we have to issue ouput(Smartform) to Bill-to-party with BP Address.
Also we need to check the buying group(KNB1-EKVBD) of sold-to-party with that of Bill-to-party. If the buying group of SP and BP is different,then we need to issue output also to Payer with PY Address(instead of BP Address).So in this case we need to issue two outputs : one for SP and another for PY with different addresses.
How can we achieve this? All suggestions are welcome.