Skip to Content
Former Member
Jan 11, 2011 at 02:57 PM

VOFM requirement creation help


I'm trying to create a new requirement to be used for billing document output. The requirement is, only invoices 1 day older than current date is to be outputted. Using transaction VOFM output control, I've created a new requirement for application type V3.

I needed some guidance into coding this. My plan is to assign this new requirement to the access sequence I've created, so this requirement must always be met.

Very simple psuedo code:

if ( current date - document date != 1 )

then sy-subrc = 4

The problem I'm facing is that I don't know how to get the document date, since this program is running separately. If I could somehow get the invoice number that is currently being processed for output, then all is well.

please advise,

thanks in advance,