cancel
Showing results for 
Search instead for 
Did you mean: 

Insertion, deletion and updation of data from R/3 table

Former Member
0 Kudos

Hi Experts,

I have to insert, update and delete some records from R/3 table CATSDB. In order to complete this exercise I am trying to use BAPI_CATIMESHEETMGR_INSERT, BAPI_CATIMESHEETMGR_DELETE and BAPI_CATIMESHEETMGR_UPDATE. Can you please guide me how to do it?

Regards,

Brian

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos
Former Member
0 Kudos

thank you vinodh,

i completed that application

Thanks,

Anu

Former Member
0 Kudos

<b>Hi Brain

Plz Refer this pdf at the page No : 116

<u>SAP R/3 Style Guide</u>

http://help.sap.com/saphelp_nw04/helpdata/en/3b/5deaed2b82ef488ddac3d43535f708/MiniSG.pdf

Regards

Chandran</b>

Former Member
0 Kudos

Click on Models&#61664;Create Model

Select import Adaptive RFC Model

&#61664;Provide Model Name

&#61664;Select any package name as per your standards

&#61664;Give logical system name for model instances (provided by Portal Administrator)

&#61664;Give logical system name for RFC metadata (provided by Portal Administrator)

&#61664; Provide host name of the R3 system where your BAPI resides.

&#61664; System number for the R3 System.

&#61664; Client Number

&#61664; Username and password

&#61664; language

Once you are done with the above steps, you have created a model successfully.

Now add this model in your component controller.

Now map the input and output parameters in the MVC framework

Finally map these parameters with the associated UI elements on the screen.

Then bind your input node of the BAPI in the webdynpro aaplication

wdContext.<BAPI input node>.bind(<BAPI input element>)

try

{

wdContext. .<BAPI input node>.execute();

wdContext.nodeOutput.invalidate();

}

catch(WDDynamicRFCExecuteException ce)

{

// Handle the exception

}

Former Member
0 Kudos

hi,

i am doing an application on by using two BAPIs which are "BAPI_CATIMESHEETMGR_INSERT" and "BAPI_CATIMESHEETRECORD_GETLIST".

I used Insert bapi for inserting the data and getlist bapi for output. but i am unable to insert the data into the R/3.

JCO connectivity i also done properly and also i executed these two bapis in custom controller and i called these execute methods in first and second views.

I need sample data to insert into to the R/3 system. and also i want to know where can i see this data after inserting into the R/3(in which table it will be stored) system.

Personnel Number, End time, start time, and work date are the fields binded to the input fields in First view and in the implementation part of this view, i wrote the code as

try{

wdThis.wdGetMobile_CustController().executeBapi_Catimesheetmgr_Insert_Input();

wdThis.wdGetMobile_CustController().executeBapi_Transaction_Commit_Input();

}

catch(Exception e){

}

please provide some solution for this problem.

thanks,

Anu

Former Member
0 Kudos

Hi Brian,

Check this link with the sample application:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d">tutorial [original link is broken] [original link is broken]

check Backend Access/ Model section.

regards

Sumit

former_member186016
Active Contributor
0 Kudos

For interaction will backend data Web Dynpro Model has to created.

In a Web Dynpro application import these BAPI in a ARFC Model. (BAPI should be remote call enabled)

In the model importer for ARFC Model select these BAPIs.

See following links:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7a16201d-0d01-0010-07a6-a3c56470...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0019b1a-775f-2910-beb8-d81f27d0...

Regards,

Ashwani Kr Sharma