Q
Problem solve Get help with specific problems with your technologies, process and projects.

Getting the A/c document number using company code, fiscal year, and AWKEY

I need to get the A/c document number (BKPF-BELNR) for which I have the value of company code (BKPF-BUKRS), fiscal year (BKPF-GJAHR), and BKPF-AWKEY. When I do this, there is a performance issue. Is there any other way to get the A/c document number using company code, fiscal year, and AWKEY?
Using the SQL Trace, find out which index (if any) is being used. Index 4 on BKPF is AWTYP, AWKEY, and AWSYS. If you specify all these values, then the database read may use this index. It seems likely, however, that it will be using the primary index. One way around this will be to use database hints, as suggested in OSS Note: 129385. This site gives excellent advice on the use of hints. http://www.intelligenterp.com/columns/archive/abap4.jhtml
This was last published in April 2004

Dig Deeper on SAP ABAP

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close