cancel
Showing results for 
Search instead for 
Did you mean: 

Error while parsing component.js file

Former Member
0 Kudos

Hi folks,

I have tried to extend a HCM standard Fiori App with Eclipse and the SAPUI5 toolkit, but when I try to submit the enhanced project to the SAP HR system, I get the following error:

Problems during synchronization Error when updating index for UI5 repository ZHCM_PEP_EXT Error while parsing component.js file Application component of SAPUI5 repository ZHCM_PEP_EXT could not be determined Error while parsing component.js file

I have done the following steps:

1. Create a SAPUI5 Project "HCM_PEP_PROFILE" and load the standard fiori app data from HCM_PEP_PROFILE to the WebContent folder.

2. Create another SAPUI5 Project "ZHCM_PEP_PROFILE" and create the javascript file Component.js with the following content:

JQuery.sap.declare("z.hcm.people.profile.Component");
sap.ui.component.load({ 
	name: "hcm.people.profile",
	url: JQuery.sap.getModulePath("z.hcm.people.profile") + 
		"/../HCM_PEP_PROFILE"
});


hcm.people.profile.Component.extend(
		"z.hcm.people.profile.Component",
		{
			metadata: {
				"customizing": { 
					"sap.ui.viewModifications": {
						"hcm.people.profile.view.Profile" : {
							"ctrlHeaderImage" : {
								"visible" : false
							}
						}
					}
				}
			}
		}
)

3. Try to upload the data to the HR system via the backend report & also with Eclipse. Both is giving the error.

Can anyone give me an advice what´s wrong here?

Thank you & best regards

Accepted Solutions (1)

Accepted Solutions (1)

thomas_arnesen
Explorer
0 Kudos

There's a semicolon (;) missing at the end, after the close-bracket ). Not sure if that's causing the issue though.

Answers (1)

Answers (1)

Former Member
0 Kudos

Nobody any idea?