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

How to determine the primary keys of a table

I'm having a little bit of a problem with JCo. In order to be able to write an XML file efficiently into SAP, I need to be able to determine the primary keys of any table. JDBC has functions that I can use to determine this, but I cannot seem to find anything in JCo that does the same thing, making a writeback either extremely inefficient or impossible. Is there a way around this, or am I missing something really obvious?
You can use the RFM DDIF_FIELDINFO_GET (field KEYFLAG) to check whether a field in a database table is a key field or not.
This was last published in November 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