on 11-07-2013 9:22 AM
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
Smruti,
Please go through this link,
Hope this help full !!!
Regards
Vijay K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Experts ,
Now i am able to connect to backend.
Regards,
Smruti Ranjan Moharana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Invalidate the node first and then execute the model.
Regards,
Sharath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use the wizard to generate the model initialization and execution code, never do it manually
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.