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

Table Regup

waqar_ahmed
Contributor
0 Likes
2,634

Hi all,

I want to create query on  BKPF, BSAK and Regup table, can someone please tell me the relations. Actually I need LAUFD field from REGUP table, as this table is cluster so cannot be used in joins. I know join between BKPF and BSAK but how will I pick this field from REGUP, as far I know REGUH is header table of REGUP. Please suggest.

regards,

1 ACCEPTED SOLUTION
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,797

in REGUP you have accounting document number BUKRS BELNR GJAHR BUZEI. You can items from BKPF and then fetch LAUFD

4 REPLIES 4
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,798

in REGUP you have accounting document number BUKRS BELNR GJAHR BUZEI. You can items from BKPF and then fetch LAUFD

Read only

arindam_m
Active Contributor
0 Likes
1,797

Hi,

BKPF- Header data of the documents

BSAK- Cleared Items of the Vendor

REGUH & REGUP are the posting run related tables and you can find the data related to that in them along with the details.

So based on what you want to pick. If you want to pick items after posting then BKPF and BSEG, BSAK and BSIK(Open Items of the Vendor) might be of interest. If you are doing your stuff in posting runs (F110 and F110n etc ) you might want to do it from REGUH and REGUP.

Posting runs related tables are used in cases where you might have to pass or print data to Sapscripts. If in other situations BKPF, BSEG, BSAK, BSIK might be useful.

Cheers,

Arindam

Read only

0 Likes
1,797

Hi,

I am getting Invoice date and reference from BKPF and PO number vendor and payment date, amount from Table BSAK. There is LAUFD field the is actual payment date to vendor, I need to pick this field from REGUP table. So kindly tell me how to join these tables.

Below fields I have to pick in query.

Please Suggest,

regards,

VENDOR NumberBSAKLIFNRCHAR10
PO ReferenceBSAKEBELNCHAR10
Invoice ReferenceBKPFBELNRCHAR10
Invoice DateBKPFBLDATDATS8
Payment DateBSAKAUGDTDATS8
Due DateBSAKZFBDTDATS8
Value DateREGUPLAUFDDATS8
Payment Document NumberBSAKAUGBLCHAR10
DPR NumberBSAKBELNRCHAR10
Item Number of Purchasing DocumentBSAKEBELPNUMC5
Payment AmountBSAKWRBTRCURR13
Payment CurrencyBSAKWAERSCUKY5
Read only

0 Likes
1,797

Bases on BKPF-BELNR BKPF-BUKRS and BKPF-GJAHR you can pick value from REGUP table