on 07-15-2007 7:07 AM
Hi Experts,
I have to insert record in R/3 table using BAPI_CATIMESHEETMGR_INSERT. For this, I have to fill table called CATSRECORDS_IN. I have created "Insert Record" button on UI and trying to pass the values using following code:
public void onActionInsertRecord(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
{
//@@begin onActionInsertRecord(ServerEvent)
try {
wdContext.currentCatsrecords_InElement().setBonusvalue("s");
wdContext.currentCatsrecords_InElement().modelObject().setWbs_Element("");
wdThis.wdGetTimesheetCompController().executeBapi_Catimesheetmgr_Insert_Input();
wdThis.wdGetTimesheetCompController().executeBapi_Transaction_Commit_Input();
} catch (Exception ex)
{wdComponentAPI.getMessageManager().reportException(ex.getMessage(), false);
}
//@@end
}
The erring code is
wdContext.currentCatsrecords_InElement().setBonusvalue("s");
wdContext.currentCatsrecords_InElement().modelObject().setWbs_Element("");
Could you please let me know whether it is right approach to use above code for filling table called Catsrecords_In?
Regards,
Brian
Hi Brain,
Can you please post the error which you are getting.
Regards
Sid
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.