cancel
Showing results for 
Search instead for 
Did you mean: 

How to fill a table called CATSRECORDS_IN?

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

sid_sunny
Contributor
0 Kudos

Hi Brain,

Can you please post the error which you are getting.

Regards

Sid