Skip to Content
0
Apr 20, 2009 at 03:10 PM

VF04 - Create invoice - new item numbering

254 Views

Hello.

I want to create an invoice by/for a contract and a sales order finally.

I go through the following steps:

- Transaction VF04

- Change Billing Date to by adding a month

- Insert contract as SD Document (first the easy case with only a contract)

- Marking "Order-Related".

In the following screens I see the item numbering normally: 1, 2 , 3

But in the contract we have a so called sales bombs, a material that includes more positions in one.

Well... my problem is now, that I want the following item numbering

(1) 10 - sales bomb

(2) 11 - underling position 1

(3) 12 - underling position 2

(4) 20 - next normal material ....

I found different enhancements.

I am able to set the new item numbering ( in debugging mode in any enhancement).

All looks right, but only the document flow is incorrect. I get the error message "Document 9000xxx Item 00001 not available" when I try to follow the documt flow in VA43.

Can you give me an Enhancement or BADI to change the item numbering without destroying the document flow?

Then I think on the following solution:

1. Create Invoice

2. Change Invoice

I'm not able to find a BAPI to get the details or change an invoice.

I think on some like BAPI_SALESDOCUMENT_CHANGE and BAPI_CONTRACT_GETDETAIL.

I hope you can help me,

thanks,

Andrea

SYSTEM: SAP ECC 6.0