cancel
Showing results for 
Search instead for 
Did you mean: 

Print Out should not be processed more than once

Former Member
0 Kudos

Dear Friends,

My client has given a requirement that when they take PO print outs, it should not allow more than 1 time processing. in case if PO gets amended, Printout for the same PO number should be taken out once the related authorized person has released it.

thanks

nandu

Accepted Solutions (1)

Accepted Solutions (1)

eduardo_hinojosa
Active Contributor
0 Kudos

Hi Nandu.

I think that you need an VOFM subroutine and set it in the definition of message schema for PO (tcode SM34 for VVC_T683_XX_EF).

You can create a suroutine and check if in table NAST you have an entry for the document, ie:

SELECT * FROM nast

WHERE kschl = komt1-kschl

AND objky = msg_objky "the number of PO

and ......

IF sy-subrc = 0. "a message for this PO exists

sy-subrc = 4. "dont create the output

ENDIF.

I hope this helps you

Regards,

Eduardo

PD: be careful with performance

Former Member
0 Kudos

thank you ! I will work with my technical team with your inputs ..

thnks

nandu

Answers (0)