Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Function Module

Former Member
0 Likes
551

Hi all,

How to create function module to insert the records in table.

thanx,

krish

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
537

Dear Krishna,

Goto Se37

create an new function module

Set the importing parameters, all the attributes in a record.

Write the coding for insering to database based on the importing parameters.

test and activate

Regards

Sarath

6 REPLIES 6
Read only

Former Member
0 Likes
537

Hi all,

Can anyone suggest me in this.

Thanx,

krishna

Read only

Former Member
0 Likes
537

Hi,

try this

modify dbtable from table itab .

here itab is the table which you have created in the table tab

or u can use insert statement or update statement

depending on you requireremnt

reward points if helpful

regards,

venkatesh

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
537

Hi,

Create a function group and in that create a function module with TABLES parameter of TYPE your table.

Then in the FM write the below code.

IF tab_param is not initial.

MODIFY db_tab from TABLE tab_param.

ENDIF.

null

Read only

Former Member
0 Likes
538

Dear Krishna,

Goto Se37

create an new function module

Set the importing parameters, all the attributes in a record.

Write the coding for insering to database based on the importing parameters.

test and activate

Regards

Sarath

Read only

Former Member
0 Likes
537

Hi,

Its better u go for Insert Statement as u will create a field string as well as the body to keep the records that u have created.....Insert also acts like append statement .....if u give a condition it checks if the condition is right and then inserts the record where necessary....or else it will act as append statement.

if useful reward with points,

regards,

Madhuri.

Read only

Former Member
0 Likes
537

1. Go to se37

2. Create a FM

3. Declare the import and export parameters

4. write the source code.