Application Development 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: 

How to use FM to insert data in table T604F

Former Member
0 Kudos

Dear experts,

I want to insert data in table T604F in my program if it does not exist in table T640F.

I know there is a FM T604F_SINGLE_READ to identify whether

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor

Try to use FM VIEW_MAINTENANCE_SINGLE_ENTRY on view V_T604F (like a SM30) just set SUPPRESSDIALOG = 'X'.

Regards,

Raymond

6 REPLIES 6

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

Try with SM30 for view V_T604F

Regards

Eduardo

0 Kudos

Hi Eduardo,

Thanks for your quickly answer ..... but I want to insert it in the program .... any other suggestion?

Best Wishes.

Julie,

Former Member
0 Kudos

Hi ,

Try BDC - SM30 for view V_T604F and put it in your program.

Thanks!

reachdebopriya
Active Participant
0 Kudos

Hi Jie,

Try to use Update or Insert command to insert data in table T064F or in View.

Before updating do ENQUEUE to lock the table and after inserting do DEQUEUE to unlock the table.

UPDATE dbtab FROM TABLE itab.

INSERT dbtabI FROM TABLE itab ACCEPTING DUPLICATE KEYS.

Regards,

Debopriya Ghosh

Former Member
0 Kudos

Hi Jie,

The function module T604F_SINGLE_READ is only to read values from t604f.

In order to insert data into it use the statments :

insert dbtable from table itab accepting suplicate keys.

You can find in below link:

http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3a6d358411d1829f0000e829fbfe/content.htm

raymond_giuseppi
Active Contributor

Try to use FM VIEW_MAINTENANCE_SINGLE_ENTRY on view V_T604F (like a SM30) just set SUPPRESSDIALOG = 'X'.

Regards,

Raymond