Skip to Content
avatar image
Former Member

Error while parsing component.js file

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Nov 18, 2016 at 11:50 AM

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 17, 2016 at 07:44 AM

    Nobody any idea?

    Add comment
    10|10000 characters needed characters exceeded