cancel
Showing results for 
Search instead for 
Did you mean: 

How can get the data from data base in hard coded table ?

Former Member
0 Kudos

Please help to get the data in get the data in hard coded table format.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hey Nutan,

Can you be specific?what exactly you want?

Thanks & Regards

Ajitabh

Former Member
0 Kudos

Hi,

I am developing one application in SAP web dynpro java. So I created one hard coded table,and now I want code to fetch the data from SAP R/3 in that table field.

For table creation I am using this code

public void wdDoInit()

{

//@@begin wdDoInit()

//wdThis.wdGetMARS_CompController().EmpPOEndDateReminder();

wdContext.currentContextElement().setED_visibility(WDVisibility.NONE);

wdContext.currentContextElement().setSD_visibility(WDVisibility.NONE); //CODE FOR TABLE VISIBILITY

// The array values to print the names of Enteg Utilization %

IPrivateEmpReportSearchView.IEnetgQuantityTableElement qele;

String quantity[] = {"Enteg Utilization ", "Enteg Utilization - Trainees",

"Utilization - Trainees - support", "Support Function"};

for(int i=0; i<=3; i++)

{

qele = wdContext.createAndAddEnetgQuantityTableElement();

// qele.setSNo(i+1);

qele.setEnetgUtilizName(quantity<i>);

}

// The array values to print the names of Enteg Utilization

IPrivateEmpReportSearchView.IEmpUtilizationTableElement uele;

String utiliz[] = {"Billable - deployed", "Non Billable - deployed",

"Bench - Available", "Bench - NonAvailable", "Suppot Function",

"Management","Total"};

for(int i=0; i<=6; i++)

{

uele = wdContext.createAndAddEmpUtilizationTableElement();

uele.setUtilizatn(utiliz<i>);

}

// The array values to print the names of Emp Available for Deployment

IPrivateEmpReportSearchView.IEmpAvailForDeployTableElement aele;

String avail[] = {"ABAP", "BI/BW", "FICO" ,"HR" , "Logistics", "NetWeaver", "Support Function",

"SAP HR","SD", "BI", "Grant Total"};

for(int i=0; i<=10; i++)

{

aele = wdContext.createAndAddEmpAvailForDeployTableElement();

aele.setPractice(avail<i>);

}

//@@end

}