cancel
Showing results for 
Search instead for 
Did you mean: 

Data is not retrieved from BAPI.

smruti_moharana
Participant
0 Kudos

Dear Experts,

Please note that in nwds7.3 when i am trying to retrieve data from BAPI to populate into table (BAPI_EMPLOYEE_GETDATA)data is not populating in table. please guide me to proceed.

PeopleModel peopleModel = new PeopleModel();
Bapi_Employee_Getdata_Input emp1 = new Bapi_Employee_Getdata_Input(peopleModel); 

wdContext.nodeBapi_Employee_Getdata_Input().bind(emp1);

Bapip0001B b1=new Bapip0001B(peopleModel);

Bapip0002B b2=new Bapip0002B(peopleModel);

Bapip0032B b3=new Bapip0032B(peopleModel);

Bapip0105B b4=new Bapip0105B(peopleModel);

b2.setFstname_M(wdContext.nodeOrg_Assignment().createAndAddOrg_AssignmentElement().getOrg_Unit());

IWDMessageManager msgMgr =wdComponentAPI.getMessageManager();

// msgMgr.reportSuccess("2"+wdContext.currentBapip0002BElement().getFirstname());

msgMgr.reportSuccess("12"+wdContext.nodeBapi_Employee_Getdata_Input().createBapi_Employee_Getdata_InputElement(emp1).getFstname_M());

public void onActionSearch(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

  {

//@@begin onActionSearch(ServerEvent)

try {

wdContext.currentBapi_Employee_Getdata_InputElement().modelObject().execute();

wdContext.nodeOutput().invalidate();

wdContext.nodeOrg_Assignment().invalidate();

wdContext.nodeOrg_Assignment_1().invalidate();

wdContext.nodeOrg_Assignment_2().invalidate();

wdContext.nodePersonal_Data().invalidate();

wdContext.nodePersonal_Data_1().invalidate();

wdContext.nodePersonal_Data_2().invalidate();

}

catch (ARFC2ModelExecuteException e) {

// TODO Auto-generated catch block

e.printStackTrace();


}

please guide me to proceed .

Thanks & Regards,

Smruti Ranjna Moharana

Accepted Solutions (1)

Accepted Solutions (1)

vijay_kumar49
Active Contributor
0 Kudos

Smruti,

Please go through this link,

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a00f7103-6790-2a10-ac9c-fcac7c5b1...

Hope this help full !!!

Regards

Vijay K

smruti_moharana
Participant
0 Kudos

Dear Vijay,

Thanks a lot for u r valuable reply,but i am facing issue in nwds7.3 not in nwds7.0, kindly provide some source related to nwds7.3 where i am using adaptiverfc2 model.

Thanks & Regards,

Smruti Ranjan Moharana

Answers (5)

Answers (5)

smruti_moharana
Participant
0 Kudos

Dear Experts ,

Now i am able to connect to backend.

Regards,

Smruti Ranjan Moharana

Sharathmg
Active Contributor
0 Kudos

If the issue is resolved, then you could close the thread.

Regards,

Sharath

former_member182372
Active Contributor
0 Kudos

Make sure Output node has correct Suppling Relation Role property. Sometimes NWDS wipes out that property which makes the model node "non working" with no errors on build time and design time.

Sharathmg
Active Contributor
0 Kudos

Invalidate the node first and then execute the model.

Regards,

Sharath

junwu
Active Contributor
0 Kudos

use the wizard to generate the model initialization and execution code, never do it manually

Former Member
0 Kudos

Hi Smruti,

For ARFC2, kindly refer the link below:

http://scn.sap.com/docs/DOC-2594.

Also, maybe yoy would find the below thread useful

http://scn.sap.com/thread/3428690

Let know if you are facing any specifc error.

Regards,

Archana