Application Development and Automation 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: 
Read only

VOFM-data transfer-billing document

Former Member
0 Likes
1,461

Hi~all;

     May I get all of billing item in the routing?

     such as:

     I input two dn using vf01 to billing

     DN01 contain 4 items

     DN02 contain 2 items

     I would like to get 6 items in the invoice split routing.

6 REPLIES 6
Read only

Former Member
0 Likes
1,008

anyone help?

i using using field symbol get the dn header data, (SAPLV60A)XKOMFK[]

but how can i get the selected item?

Read only

atul_mohanty
Active Contributor
0 Likes
1,008

Hi Timothy - It seems you need a invoice split. Could explain your query in detail ?

Regards,

Atul Mohanty

Read only

0 Likes
1,008

Yes, Atul thanks.

invoce split through VBRP-SPART, and take 'FREE ITEM' into special consideration.

vbrp-spart from 00 to 20 means 'TV', from '20' to '30' means 'PHONE'

if a dn contain both TV & PHONE,

    if all PHONE is not free, split to 2 invoice

    if all PHONE is free, not split, 1 invoice

    if some PHONE is free, some not, they are different dn items. split to 2 invoice,

       TV and free PHONE as 1 invoice; PHONE not free as 1 invoice

if a dn contain only PHONE,

     no matter free or not free, donot split, just 1 invoice

and if i input a few dn when 'VF01', i have to take all the dn as a whole

so i have to konw all the items to do billing.

Read only

0 Likes
1,008

Hi Timothy -Thanks for your reply.

The field VBRK-ZUKRI takes care of invoice spilt.

Please follow the link below , where we have answered for some kind invoice split requirement.

http://scn.sap.com/message/14638048#14638048

In your case you need to check VBRP-SPART and the rule based PHONE is free / NOT free. You can combine this two info, to create a rule and based on that populate the VBRK-ZUKRI.

Example -  if ( VBRP-SPART = '00'or  VBRP-SPART = '01' or VBRP-SPART = '20' ) AND ' ( logic PHONE is free / NOT free)

VBRK-ZUKRI = '0001'.

ELSE.

VBRK-ZUKRI = '0002'.


ENDIF.


Hope it helps.

Let us know, in case any further issue.

Regards,

Atul Mohanty

Read only

0 Likes
1,008

Hi Atul, thank you so much .

i know VBRK-ZUKRI takes care of invoice spilt.

the standard is not only phone free or not

1st, only TV/PHONE, or TV with PHONE

2nd, PHONES are free, or not, or both

because every time the program going to the routing

VBRP contain only the current item, i can get the current item is phone or tv, free or not

but i donot know the other item

so my question is how can i get all the items info in the routing.

Read only

0 Likes
1,008

Hi Timothy -

I got your requirement. Unfortunately, I am not working on a system with SD module so unable to check the steps in detail.

However, could you check the global data XVBRP[] or XLIPS[] while you are in the data transfer routine. Otherwise check for the enhancements in Function module : RV_INVOICE_DOCUMENT_ADD before the billing number is genearated.