05-12-2008 12:40 PM
I want to generate an SD billing document ONLY if another message is not determined to the some document.
I'm determining the billing message type to be printed by Sales Organization.
I started to send Electronic Invoices to some partners, and I want to Not generate the ZRD0 message to the document if another message (ZRDI EDI document)exists (is determined) for that document.
Is there any easy way to do this? Is there any user-exit in SD billing document where I can test the existence of a message and delete other message from NAST?
Thank you
Best regards
05-26-2008 4:54 PM
Hi,
in the IMG, you can define a requirement in the access sequence related to your document (where your output type is determined). This requirement is in fact a piece of code where you define whether you want to generate the output or not.
It's a kind of user-exit during the output determination. As you have there access to fields of KOMKBV3, you should be able to check NAST with correct parameters.
I think you can try this...
06-05-2008 3:36 PM
Hi Olivier,
thank you by your clue. This solves my problem. It's easy to check in the determination routine if the previous message was sent and if so, return sy-subrc =4 to avoid "this" message to be created.
Thank you