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: 

VF01/VF04 Custom enhancement

Former Member
0 Kudos

Dear Experts,

We got requirement where in we have to copy VF04 selection screen (<b>SCREEN #1</b>), add additional fields and filter output based on the selection criteria. Out put of this selection will be ALV out put <b>SCREEN #2</b>) where all line of sales order displayed only Quantity fields open for modification by user if they want to modify before creating billing document. In out put screen (<b>SCREEN #2</b>) user got 2 options ‘SAVE’ and ‘PRINT’. If Print then using VF31 report need to be outputted. If SAVE then I have to call either VF01 or VF04 to create billing document.

My issue is if I call any of <b>VF01/VF04</b> input parameters will be sales order no/Billing type/Billing due date. But if I pass this, values (<b>quantity</b>) changed by user in <b>SCREEN # 2</b> will not reflect in billing document it will pick all again from sales order and do as standard functionality does. So my question is how can I make VF01/VF04 pick up details from <b>SCREEN #2</b> and process accordingly. I know it’s bit confusing, but this is enhancement customer want. Thanks in advance. Any idea or directions if you can think how I can handle this requirement will be of great help.

Regards,

Tim

2 REPLIES 2

Former Member
0 Kudos

Hi

If the user makes some change on sales order they should be saved before making the billing.

It seem not to make sense to use some modifications aren't stored, in this way the bill can some informations aren't in the original documents (the orders).

Max

0 Kudos

Hi Max,

User makes changes to Billing quantity, not sales order quantity. You can do partial billing, so you can bill up to total quantity of sales order in different billing document. I got the solution I should be using “BAPI_BILLINGDOC_CREATEMULTIPLE” to create billing document. Thanks for your reply.

Regards,

Tim