cancel
Showing results for 
Search instead for 
Did you mean: 

How to Insert Record in an R/3 dataModel

Former Member
0 Kudos

Hi all,

I have a model which gives records of flightDetails .Now i want to insert a new FlightDetails .

How to insert Record

Regards

Padma

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Padma,

Can u explain the senario clearly.

1.Generally u hav to pass some mode for Ex:INS(For inserting a record)

to the backend.

2.In the conttroller,

Create a table object.If(mode is INS):Set all the attributes to that table.

Table1 tabObj = new Table1();

tabObj.setAttribute1(......);

3.Finally set all the values to tht perticular structure

wdContext.XX_InputElement().modelObject().setXX_Structure(tabObj);

4.Execute the RFC.

Regards,

lavanya.G

Former Member
0 Kudos

Hi Padma,

You need to have a BAPI that would take your parameters from WebDynpro and would add it in R/3.

As you imported the BAPI for getting the details of the flight in the same way you can import the other BAPI and then you can set the input parameters from webdynpro itself.

Warm Regards,

Murtuza

Former Member
0 Kudos

Hi,

Is it that i have to import the same model for 2 times..Why because i am having a model and i wnat to add some more records to an existing data in the same module...

Regards

Padma

Former Member
0 Kudos

Hi Padma,

If your same BAPI accepts the input parameters and your logic for inserting data in the TABLE is written in the same BAPI itself then you don't have to import it again.

Just want to know your display and insert operations are done by the same BAPI or different BAPI.

If different then you need to import that BAPI too.

Regards,

Murtuza