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

Troubleshooting HR BAPIs

A reader wonders how to circumvent the problem of required fields for which information is unavailable.

I have started working with BAPIs using JCo and Java. I've encountered a problem which has left me without an answer. With BAPIs like BAPI_PERSDATA_CHANGE, there are required fields that must be passed into the Import Parameters. The problem is that some of these fields are empty/blank, like the Subtype, for example. Within the Java codes, I have attempted to pass in "null," empty Strings, empty Object, and the corresponding value from Get BAPIs. (Like BAPI_EMPLOYEE_GETDATA for BAPI_PERSDATA_CHANGE Subtype fields.) All to no avail. I am commonly returned the message: "Make an entry in all required fields." Though I have managed, previously, to get No Data for the selected fields (when I have verified that data does exist) and similar messages. How do I approach changing data? Or specific to BAPI_PERSDATA_CHANGE, how can I make it work? Please advise.
Using the HR BAPIs, it seems to be impossible to overwrite a value with an empty string. If that is not your situation (I am not totally sure that I have understood your problem correctly), the most likely answer is that you have omitted data for a mandatory field. But if the former applies, there is not much you can do, other than report this as a bug to the HR people.
This was last published in October 2004

Dig Deeper on SAP Java and J2EE



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.