Skip to Content
0
Former Member
Mar 07, 2006 at 06:31 AM

Webdynpro: Gets only one record in Table from Model after mapping

14 Views

Hi,

I am using FPM in webdynpro and mapped a table with model elements. I can always see only one record even though i can see 5 record in Backend R3 system. Mapping of elements seems to be fine.

Find below is the code which i uses in onInit method in Fc. Can any of you help me to fix this problem so that i can see all the 5 records in the table as it is in R3 screen.

public void onInit( com.sap.pcuigp.xssfpm.java.IFPM fpm )

{

//@@begin onInit()

this.fpm = fpm;

fpm.attachComponentToUsage(wdThis.wdGetAPI(), wdThis.wdGetFcEmployeeServicesComponentUsage());

fpm.attachComponentToUsage(wdThis.wdGetAPI(), wdThis.wdGetFcNavigationComponentUsage());

Z_HRXSS_PREMP model = (Z_HRXSS_PREMP) WDModelFactory.getModelInstance(Z_HRXSS_PREMP.class, WDModelScopeType.APPLICATION_SCOPE);

fpm.connectModel(model);

Z_Hrxss_Premp_Read_Input input = (Z_Hrxss_Premp_Read_Input) model.createModelObject(Z_Hrxss_Premp_Read_Input.class);

wdContext.nodeZ_Hrxss_Premp_Read_Input().bind(input);

input.setPerno(wdThis.wdGetFcEmployeeServicesInterface().getEmployeenumber());

try {

wdContext.currentZ_Hrxss_Premp_Read_InputElement().modelObject().execute();

} catch (WDDynamicRFCExecuteException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

wdContext.nodeOutput().invalidate();

//@@end

}

Thanks in Advance.

Regards,

Muthu