2016 Mar 18 4:14 PM
Hello,
I am trying to figure out how I can write a logic for getting the invoice number from DFKKP-XBLNR but the XBLNR is not a key in the table. I try to get the data from the table but it takes a long time to retrieve the data. I found that this might be an option.
ERDK-OPBEL ===> ERDB-OPBEL => ERDB-INVOPEL ===> DFKKOP-OPBEL
2016 Mar 18 5:33 PM
Hi,
whenever you get such kind of issue use transaction SQVI. Create a new quickview as a table join and star adding tables, you will automatically get the conditions.
2016 Mar 18 5:33 PM
Hi,
whenever you get such kind of issue use transaction SQVI. Create a new quickview as a table join and star adding tables, you will automatically get the conditions.
2016 Mar 18 6:02 PM
Hello,
So I would need to use SQVI and create a query then add that to the ABAP program? The users wants to be able to select from the Invoice Number but when I add the XBLNR to the program it takes a very long time and doesn't select it by the Invoice Number. So the transaction SQVI will help me with this problem? Thanks for you response.
2016 Mar 18 6:09 PM
Hello,
Well, this gives a graphical representation of table joins, which in many cases is very helpful.
2016 Mar 19 1:56 PM
Hi Shawn Reed,
I don't know what you got and what you want. If you know the ERDK data, why don't you just select XBLNR from DFKKOP where OPBEL = ERDK-OPBEL?
Otherwise you can reduce runtime by joining (selecting first) from DFKKKO with a known HERKF value.
I would like to help you but the information given is like nothing. Just say what you are doing or what you are asked for (process!)
Regards Clemens
2016 Mar 20 7:40 AM
There is already a custom report in place and the report runs fast when I select from the BP and CA but when I added the "Invoice Number" the report takes a very long time in the aging report to return with the selection. I used SE11 to see what the Primary Key is for the tables. XBLNR isn't the primary key in the DFKKOP table so it'll take too long to run the report so I cam trying to see how I can speed up the selection process. When I am in DFKKOP in SE11 using the invoice number "XBLNR" in the table it takes a long time to get the data but when I input the BP "GPART" it returns the data very quick. The end users wants to be able to select from the Invoice Number because when the customer is paying for their utility bill they only use the Invoice Number and it takes the cashier longer trying to look for their account.
2016 Mar 20 7:47 AM
DFKKP is not a database table in SE11. Is it a structure that gets filled during a transaction.
In which document are you running your code? Can you explain the requirement?
2016 Mar 20 8:10 AM
ERDK-OPBEL ===> ERDB-OPBEL => ERDB-INVOPEL ===> DFKKOP-OPBEL and I need to be able to select from XBLNR (Reference Document Number) in DFKKOP. I am trying to get the "Invoice Doc" from CIC0
2016 Mar 20 3:04 PM
did you ask the functional consultant to provide you with the table keys and join conditions?
2016 Mar 21 2:48 PM
2016 Mar 21 3:39 PM
Who has written the functional specification document?
Who has given the requirement?
2016 Mar 21 5:53 PM
It is a custom report that was created a very long time ago and the person is no longer employed here. As for me, I am going on 9 months with this company. So I am new to SAP.