Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

remove message from message determination in billing docs

paulo_sousa3
Explorer
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

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...

0 Kudos

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