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: 

VOFM requirement creation help

Former Member
0 Kudos

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,

Mo

1 REPLY 1

Former Member
0 Kudos

Hi

You need to add (by append structure) the document date in the structure KOMKBV3

Max

Edited by: max bianchi on Jan 11, 2011 4:04 PM