05-23-2013 4:14 PM
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
05-29-2013 1:37 PM
Try to use FM VIEW_MAINTENANCE_SINGLE_ENTRY on view V_T604F (like a SM30) just set SUPPRESSDIALOG = 'X'.
Regards,
Raymond
05-23-2013 4:33 PM
05-23-2013 4:46 PM
Hi Eduardo,
Thanks for your quickly answer ..... but I want to insert it in the program .... any other suggestion?
Best Wishes.
Julie,
05-23-2013 9:31 PM
Hi ,
Try BDC - SM30 for view V_T604F and put it in your program.
Thanks!
05-24-2013 4:35 AM
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
05-24-2013 11:54 AM
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
05-29-2013 1:37 PM
Try to use FM VIEW_MAINTENANCE_SINGLE_ENTRY on view V_T604F (like a SM30) just set SUPPRESSDIALOG = 'X'.
Regards,
Raymond