11-15-2007 6:47 PM
Hi all
I writing a user exit. I have access to REGUH and REGUP (payment run).
Can any tell me like which tables i have to join to get invoice number ( RBKP table) using the tables REGUH and REGUP.
OR
I have document number from BKPF, vendor number ,payment document number and reference field for the invoice Now can any one tell me how to get invoice number from table RBKP.
appreciate your help
11-15-2007 6:59 PM
Hi,
You can use table BKPF to link table RBKP and REGUP.
Please check these joins.
CONCATENATE RBKP-BELNR RBKP-GJAHR INTO WA_AWKEY.
BKPF-AWTYP = 'RMRP'
BKPF-AWKEY = WA_AWKEY.
REGUP-BUKRS = BKPF-BUKRS
REGUP-BELNR = BKPF-BELNR
REGUP-GJAHR = BKPF-GJAHR.
Regards,
Ferry Lianto
11-15-2007 6:59 PM
Hi,
You can use table BKPF to link table RBKP and REGUP.
Please check these joins.
CONCATENATE RBKP-BELNR RBKP-GJAHR INTO WA_AWKEY.
BKPF-AWTYP = 'RMRP'
BKPF-AWKEY = WA_AWKEY.
REGUP-BUKRS = BKPF-BUKRS
REGUP-BELNR = BKPF-BELNR
REGUP-GJAHR = BKPF-GJAHR.
Regards,
Ferry Lianto
11-15-2007 8:27 PM
11-15-2007 8:35 PM
11-15-2007 8:39 PM
Hi,
It is used to find the invoice based on reference procedure.
Regards,
Ferry Lianto