cancel
Showing results for 
Search instead for 
Did you mean: 

Item Numbering on Billing docs, goes out of line

Former Member
0 Kudos

Hi all,

A small question for you all...

This is my situation -

We have one sales order with 11 lines on it, some are from stock, some are drop ship and some are on PO's that come in to stock prior to shipping. There is also items that are on billing plans (service items) Currently i have item 10 to 110.

From this we have created two deliveries.

So for the creation of the billing doc i will have 1 sales order and two deliveries (all to go on one bill) Now this all works ok and the bill is created and this is all good, other than all the item number are all over the place.

On VF01 i sent in this order

Sales Order

Delivery 1

Delivery 2

But my number range on my Billing docs has no relevance to my items on the sales order, i understand that the billing plans will add a 1 to the number eg item, so i have the following items on the bill

20, 30, 50, 90, 91, 92, 93, 94, 95, 96, 97, 99, 100 & 110

This is the correct numbe rof items based on the billing plans also.

so the question is how do i ensure that item 10 on order show item 10 on bills and so, also if item 20 has a plan then how can i see 20 from sales order = 20, 21, 22, etc etc.

I have tried my bes tot explain this and please feel free to ask any questions....

all help and advice is welcome

Regards

Steve

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Go to VF03 & drag the Cursor to extreme right.Here you can have an idea that Item 10 in Invoice comes from Sale Document Line Item or Delivery Line Item.

Best Regards,

Ankur

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks for all the replies.

Former Member
0 Kudos

Hello Steve,

I would like to explain how the system determines the item number

The item number is set in the program LV60AA30

.../...

loop at avbap where fkrel ne con_fkrel_fplan.

if not xkomfk-posnr is initial.

check : avbap-posnr = xkomfk-posnr.

endif.

.../...

Therefore the system starts numbering from the first order related item

So In your case because of the Flag copy item number , the items 10, 40,

70 & 80 are created.

Then system reads item number 20 of the order. Since Item number 20 is

less than the already assigned item number(in this case 80), the

system adds the 'number increment(assume this is 1)' field from VOFA to

determine the next position number and overwrites the value taken from

VBAP.

This happens here:

Main Program SAPLV60A

Source code of LV60AB06

...

form XVBRK_VORHANDEN

...

IF SY-SUBRC = 0.

IF *TVCPF-POSVO = 'X' AND

KUMUL = SPACE AND

XPOSNR GT XVBRK-HIPOS.

XVBRK-HIPOS = XPOSNR.

ELSE.

ADD TVFK-INCPO TO XVBRK-HIPOS.

XPOSNR = XVBRK-HIPOS. >>>>>>>>>>>>>>>>>>>>>

This is the standard system behaviour.

Regards,

Raghavendra YN