cancel
Showing results for 
Search instead for 
Did you mean: 

RFCModel

Former Member
0 Kudos

Hi All,

I am using RFC model in webdynpro.I am fetching all the

Employee details from functionmodule .Right now i have employee details in my view (tableformat).now i want to create another employee in the view.i created one button for ADDEmpin table.how can i create addemp in view and i have to send to backend and it should be added in my table.plzz suggest me aboput this issue.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

yes you can enter data to the Backend database using BAPI's.

Use these following BAPI's to add data to database directly:

use Business object : BUS1065, for using the required Bapi.

Regards,

Sharma.

Former Member
0 Kudos

hi anil

i have a similar situation where i need to get the employee Name and number , how do i get that in Web dynpro .

Also i need the functionality for submit the record which stores in a table.

PradeepBondla
Active Contributor
0 Kudos

Hi irsh / anil,

As said by all above, as you have RFC for populating table data, you need to have one RFC to which you will pass the employee details as input (import) parameters.

Ask your abap guys to create a FM to insert the record in r/3 table, and give the required fields to be stored.

Irsh: by following simple steps you can get the r/3 data in web dynpro table using Adaptive RFC.

check below threads and tutorials

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/11c3b051-0401-0010-fe9a-9ea...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/707f9632-74db-2910-9d95-e8d9fbbd...

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

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c8780...

PradeeP

former_member201361
Active Contributor
0 Kudos

Hi,

Please ensure that whether u have RFC model for create Employee.

In the list employee create a button for displaying a Another view where the user can enter the details about the employee and finally Bind the Model attributes to the ui elementys and finally save the data in the Backend System (Database).

for further information refer this link for RFC model.

[http://help.sap.com/saphelp_nw04/helpdata/en/2c/0e55405e68fc41a054a9c3af8aa6ce/frameset.htm]

Thanks and regards

Fistae

Former Member
0 Kudos

Hi Anil,

Just like Abappers have created a RFC for searching Employees, ask them to create an RFC for inserting a record in database. Then you have to use this RFC in your web dynpro application.

Regards,

Gopal

Former Member
0 Kudos

Hi Thanks for reply..

In my table i created ADD button for that addbutton i created popup window to insert values.In that popup i created save button.can u tell me the code that how to insert data to table and database.

Former Member
0 Kudos

Hi Anil,

You don't have to write much code if you do the bindings correctly. Just like how you have coded for searching the employees, you have to do coding for creating the record. The main thing is RFC which have to be created by ABAPPers to insert the record. In this RFC, Import parameter must be some structure corresponding to your table in which you want to add the record. In the RFC using structure values, code must insert record into the table.

There are some excellent articles and tutorials available in SDN specifying the code for how to use RFCs in Web Dynpro java.

Regards,

Gopal