06-20-2007 7:39 PM
hi all,
can anyone tell me if there is any function module in which if i pass accounting document(belnr) i get the corresponding billing document(vbeln)..
06-20-2007 7:43 PM
06-20-2007 7:48 PM
hi rich,
though both the fields are there but belnr is not maintained in vbrk,
i checked that in my server all the belnrs are coming blank,
i know how to select from db tables
but some problems arer arising,
so i want a fm which does this work for me...Please tell me if u can find any
06-20-2007 7:54 PM
06-20-2007 7:48 PM
Hi,
Please check this FM SD_BILLING_DOCUMENT_DETERMINE.
Regards,
Ferry Lianto
06-20-2007 8:21 PM
You can also try:
DATA: v_reference TYPE bkpf-awtyp, "Reference procedure
v_objectkey TYPE bkpf-awkey. "Object key
v_objectkey = billing_doc.
v_reference = 'VBRK'.
SELECT SINGLE bukrs belnr gjahr "Accounting Doc Header
FROM bkpf
INTO doc_int
WHERE awtyp = v_reference
AND awkey = v_objectkey.
Rob