Skip to Content
0
Former Member
Mar 26, 2009 at 06:05 AM

Invoice split/ZUK

1283 Views

Hi,

I am trying to split invoices based on SH (ship-to-party)

I have a couple of questions regarding this:

1. I am planning to create a routine that will set the split criteria. Should the structure that is to be passed to VBRK-ZUKRI should always be named as ZUK? What is the significance of this name ZUK?

Can I also use any other name to this structure other than ZUK to pass to VBRK-ZUKRI?

2. Since VBRK-ZUKRI is just a 40 char string, how does the system recognise what is the value that is passed to ZUKRI correspond to?

To elaborate:

My intension is to split on SH

So I create,

DATA: BEGIN OF ZUK,

MODUL(3) VALUE '601',

KUNNR LIKE LIKP-KUNNR,

END OF ZUK.

VBRK-ZUKRI = ZUK ---> assign ZUK to VBRK-ZUKRI

At run time VBRK-ZUKRI contains only the 10-digit kunnr value of sh. (vbrk-zukri = 110000002)

How does the system know that it is only SH number and not some other kunnr like SP or BP or PY?

Thanks,

Anitha