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

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.

Please create a username to comment.

-ADS BY GOOGLE

SearchERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchContentManagement

SearchHRSoftware

Close