cancel
Showing results for 
Search instead for 
Did you mean: 

ESS Error: Country/Structure do not match aplication country

Former Member
0 Kudos

Hi all,

We are making a custom WD Java application for update of infotype 22 with portal (Actually this infotype is not mantained with portal).

It's an FPM application and we made it similar to the family one (infotype 21).

We developed it for Spain only, all user settings are set to ES. We are using ERP2005.

We created our custom RFCs function module ZHRXSS_PER_P0022_ES for processing of intotype 0022 as a copy of HRXSS_PER_P0021_ES one, using our custom type ZHCMT_BSP_PA_ES_R0022_TAB defined as a table of lines of type ZHCMT_BSP_PA_ES_R0022.

We have customized the V_T588UICONVCLAS view as SAP notes 936179 and 835625 says:

SNAME = ZHCMT_BSP_PA_ES_R0022

INFTY = 0022

STYPE = MAIN (Main Infotype)

VERSIONID = 04 (Spain)

CLSNAME = ZCL_HRPA_UI_CONVERT_0022_ES

ZCL_HRPA_UI_CONVERT_0022_ES is a copy of CL_HRPA_UI_CONVERT_0022_XX leaving only fields of spanish structure.

In SAP/R3 backend when we execute the method READ of the CL_HRPA_PERNR_INFTY_XSS class we are getting no error, the read is done correctly.

Althought, when we execute the application from the portal just at the start of the application, when FPM executes the read method of our Fc we are getting the "Country/Structure do not match aplication country" error (To be exact, we receive this message in spanish "Pais/Estructura no coincide con pais de aplicacion")

Any idea why this is happening? Are we missing any setup?

The start of the error trace is this:

"País/Estructura no concuerda con país de aplicación:

com.sap.pcuigp.xssfpm.java.FPMRuntimeException: País/Estructura no concuerda con país de aplicación

at com.sap.pcuigp.xssfpm.java.MessageManager.raiseException(MessageManager.java:111)

at com.sap.pcuigp.xssfpm.java.MessageManager.raiseException(MessageManager.java:121)

at com.sap.xss.per.helpers.MessageHelper.raiseException(MessageHelper.java:43)

at com.sap.home.ess.es.zpafor.fc.FcFormation.readRecord(FcFormation.java:334)

at com.sap.home.ess.es.zpafor.fc.wdp.InternalFcFormation.readRecord(InternalFcFormation.java:589)

at com.sap.home.ess.es.zpafor.fc.FcFormationInterface.readRecord(FcFormationInterface.java:183)

at com.sap.home.ess.es.zpafor.fc.wdp.InternalFcFormationInterface.readRecord(InternalFcFormationInterface.java:197)

at com.sap.home.ess.es.zpafor.fc.wdp.InternalFcFormationInterface$External.readRecord(InternalFcFormationInterface.java:273)

at com.sap.home.ess.es.zpafor.overview.VcFormationOverview.onBeforeOutput(VcFormationOverview.java:258)

at com.sap.home.ess.es.zpafor.overview.wdp.InternalVcFormationOverview.onBeforeOutput(InternalVcFormationOverview.java:234)

at com.sap.home.ess.es.zpafor.overview.VcFormationOverviewInterface.onBeforeOutput(VcFormationOverviewInterface.java:135)

at com.sap.home.ess.es.zpafor.overview.wdp.InternalVcFormationOverviewInterface.onBeforeOutput(InternalVcFormationOverviewInterface.java:132)

at com.sap.home.ess.es.zpafor.overview.wdp.InternalVcFormationOverviewInterface$External.onBeforeOutput(InternalVcFormationOverviewInterface.java:208)

at com.sap.pcuigp.xssfpm.wd.FPMComponent.callOnBeforeOutput(FPMComponent.java:602)

at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:568)

at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:437)

at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:195)

..."

Thanks for your answers, points will be rewarded.

Gabriel.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

This error is there when one tries to uses a contry specific service for another employee. all these checks are ther in the RFC you have used. my advise is either debug by creating session breakpoint in the application or create custom rfc without copying.

I have done this for few customers and it has worked well.

Former Member
0 Kudos

Debug the RFC was the solution.

This was just a fool error, I was missing an infotype setup in my WD application.

Thanks to all of you guys.

Answers (5)

Answers (5)

ChrisSolomon
Active Contributor
0 Kudos

My thread from yesterday.....

former_member246893
Active Participant
0 Kudos

Hi,

You are using Spain application.

Please change the back end user - R/3 user to a Spanish employee (Molga 04)

This will surley solve the issue.

Reward points if useful

BR, Abdul

Former Member
0 Kudos

Abdul,

Backend user is already spanish.

Molga 04 for sure.

former_member246893
Active Participant
0 Kudos

Check the VIKEN in table PA0003 it must be same as molga

Former Member
0 Kudos

Checked. It's the same, 04.

Former Member
0 Kudos

there is a note on how to resuse country specific service. please check 936179.

I understand that you are using a custom RFC but make sure you have required entries made fist to reuse the application.

.

Former Member
0 Kudos

Hi Barin,

I already checked this note. I understand that I don't have to reuse any application, that's when an application for your country does not exists and you use the application from other existant country to make it work for your country. This note explains the limitations of the V_T588UICONVCLAS customization that you cannot define the same structure for two different countries, this limitation is fixed by customizing the V_T7XSSREUSEUISN view which allows to reuse the structure of a country for other one.

In this case I have created a custom application, custom RFC and custom structure for a infotype which is not maintained from portal for any country. That's a totally different scenario.

Former Member
0 Kudos

have you fixed this problem?. Have you tried to prview the webdynpro application from webdynpro content administrator?

Message was edited by:

Arul Raja

Message was edited by:

Arul Raja

Former Member
0 Kudos

Arul,

Not fixed yet.

I have not tried the preview, I only launch the application with NWDS but any other FPM application (i.e. family) works properly from NWDS, so I guess this one will not work in preview.

Sharadha1
Active Contributor
0 Kudos

Hi,

Please check the country of the employee which is connected to the EP user which you are using for testing .

Regards,

sharadha

Former Member
0 Kudos

Thanks Sharadha,

It's ES.