Delete Entry from UDO
Hi All,
I am using one UDO which has 1 paraent and 1 child table. When I remove record from menu it removes. Even it doesn't come in chosefromlist object too.... But when I check this entry from backend it exist. how can I delete this entry.
Manish,
It shouldn't be needed, but try clearing the DBDataSource and using a FlushToDataSource, on the BaforaAction=True of Add button click event.
if pVal.EventType = Click AND pVal.BeforeAction = True AND pVal.ItemUID = "1" Then
oForm = oApplication.Forms.GetForm(pVal.FormTypeEx, pVal.FormTypeCount)
oMatrix = oForm.Items.Item("MATRIX_ID").Specific
oForm.DataSources.DBDataSources.Item("TABLE_NAME").Clear()
oMatrix.FlushToDataSource()
End If
Regards,
Vítor Vieira
Similar Messages
-
Hi folks,
I have delete program to delete entries from a custom table and has only one feld in it.
tables: ZABC
selection-screen begin of block B1 with frame title text-110.
select-options: P_KOSTL for ZABC-KOSTL.
selection-screen end of block B1.
delete from ZABC where KOSTL in P_KOSTL.
Upon executing I am entering certain cost center ids on the selection screen to delete them from the table.It did not work.
what is it I am missing?
Thanks,
SKHi,
Try this sample code..Replace ZABC with your table..
TABLES: ZABC.
selection-screen begin of block B1 with frame title text-110.
select-options: P_KOSTL for ZABC-KOSTL.
selection-screen end of block B1.
START-OF-SELECTION.
* Delete the records from the table.
DELETE FROM ZABC where KOSTL IN P_KOSTL[ ]. " [] for the select-options.
IF sy-subrc <> 0.
ROLLBACK WORK.
ELSE.
COMMIT WORK.
ENDIF.
Thanks,
Naren -
Unable to delete entries from queue (SMQ2)
Hi
I am unable to delete entries from inbound queue due to number of entries are too high (Approximately 160,000). Deletion in dialog mode producing timeout error...Is there any way to delete these entris in background mode or any other idea about this situation..
Your valuable time & annswer appreciated.
Thanks
RakeshHi Rakesh,
Check these threads on SMQ2. It may give some help to you:
Queue issue
deleting the inbound queue tc smq2
Also check this file:
http://help.sap.com/saphelp_nw04s/helpdata/en/d9/b9f2407b937e7fe10000000a1550b0/frameset.htm
Regards,
Subhasha Ranjan -
Is there any BAPI or function module to delete entries from a table (VBAK)
Hi Everybody,
this is my first thread in SDN...
my problem follows...
A report is be created that selects all sales orders created by e-Sales that are more than 20 minutes old and still have a delivery block:
tables:
VBAK sales document: header data
selection fields:
VBAK-LIFSK ≠ <BLANK>
VBAK-ERNAM = userID used by e-Sales / IVE
(EP-BATCH / EAI-BATCH)
VBAK-ERDAT <= Current system Date
VBAK-ERZET <= Current system Time - 20 minutes
These orders should be deleted from SAP system.
This report should be scheduled to run regularly every 10 minutes.
my doubt : is ther any BAPI or Function module to delete entries from a standard table...if no what is the way to delete the enteries from a std table...
best replies will be rewarded....
regards
ReddyHi Vasanth ,
thanks for your reply.
i tried in the same manner what u mentioned.
but how to pass only one parameter to the functionmodule..
here in this case we have to pass only update flag as 'D'..
i did the same it giving dump..
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was
not caught and
therefore caused a runtime error.
The reason for the exception is:
The call to the function module "BAPI_SALESORDER_CHANGE" is incorrect:
In the function module interface, you can specify only
fields of a specific type and length under "ORDER_HEADER_INX".
Although the currently specified field
"INT_ORDER_HEADER_INX" is the correct type, its length is incorrect.
my pgm :
*& Report YNEW_ORDER_DELETION
REPORT ynew_order_deletion.
TABLES:vbak.
PARAMETERS:
p_lifsk LIKE vbak-lifsk DEFAULT '02'.
SELECT-OPTIONS:
s_lifsk FOR vbak-lifsk DEFAULT '10',
s_ernam FOR vbak-ernam,
s_erdat FOR vbak-erdat,"DEFAULT sy-datum.
s_erzet FOR sy-uzeit.
*PARAMETERS:
p_erzet LIKE sy-uzeit.
s_erdat like vbak-erdat,
s_erzet like vbak-erzet.
DATA:
BEGIN OF int_final OCCURS 0,
w_vbeln TYPE vbak-vbeln,
END OF int_final.
DATA:
int_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
DATA: int_order_header_inx LIKE bapisditmx OCCURS 0 WITH HEADER LINE.
DATA:
wf_time TYPE sy-uzeit.
INITIALIZATION.
s_ernam-low = 'KULKARMA'.
s_ernam-sign = 'I'.
s_ernam-option = 'EQ'.
APPEND s_ernam.
s_ernam-low = 'EAI-BATCH'.
s_ernam-sign = 'I'.
s_ernam-option = 'EQ'.
APPEND s_ernam.
wf_time = sy-uzeit - 1200.
p_erzet = sy-uzeit - 1200.
p_erzet-low = wf_time.
APPEND s_erzet.
int_order_header_inx-updateflag = 'D'.
APPEND int_order_header_inx.
START-OF-SELECTION.
SELECT vbeln FROM vbak
INTO TABLE int_final
WHERE lifsk EQ p_lifsk
AND ernam IN s_ernam
AND erdat IN s_erdat
AND erzet IN s_erzet.
IF sy-subrc = 0.
LOOP AT int_final.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = int_final-w_vbeln
ORDER_HEADER_IN =
order_header_inx = int_order_header_inx
SIMULATION =
BEHAVE_WHEN_ERROR = ' '
INT_NUMBER_ASSIGNMENT = ' '
LOGIC_SWITCH =
NO_STATUS_BUF_INIT = ' '
TABLES
return = int_return
ORDER_ITEM_IN =
ORDER_ITEM_INX =
PARTNERS =
PARTNERCHANGES =
PARTNERADDRESSES =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CFGS_BLOB =
ORDER_CFGS_VK =
ORDER_CFGS_REFINST =
SCHEDULE_LINES =
SCHEDULE_LINESX =
ORDER_TEXT =
ORDER_KEYS =
CONDITIONS_IN =
CONDITIONS_INX =
EXTENSIONIN =
ENDLOOP.
LOOP AT int_return.
WRITE:/ int_return-type,
int_return-id,
int_return-number,
int_return-message.
ENDLOOP.
ENDIF.
please help me ..its a very urgent issue to be solved...
am waiting for ur reply...
regards
gangareddy -
Delete entries from Database table t71inp1
Hi,
I want to Delete entries from Database table t71inp1. Its a H R Table. I want to know the exact code.
i saw the cide delete bkpf where usnam = p_name.
Will it work the same here. Also.
Please let me know.
I hope to get reply from you soon.
where should i write the code. i.e. Tcode SE38 and directly deeleting write the code.
Please give me some inputs. I am new to H R ABAp
Shivakumar K B
919886920258hi
You can write a program in se38.
create a program.
use delete from t71inp1 where<condition> command in it. -
Recover deleted entries from ztable
Hi
is there any best method to recover the deleted entries from ztable?Hi Vahi,
1. Find out the exact time when the data has been deleted.
2. Restore THE WHOLE DATABASE on any other server with MSSQL server
running on that. You should not restore the database completely,
rather using "Point-in-time" recovery method. Appoint the time from
the p.1 minus 5 minutes as the end point of the database recovery.
Please refer to the note 193816 for more information.
3. Now the old content of the table ZRATE is there. You can
export the data and then import them into the produtive system.
Afterwards you can delete the restored database, it is not needed
anymore.
Thanks!
Anusha -
How to delete entries from a itab using values in another itab?
Hi All,
I am having two internal tables itab1, itab2 with one common field. Also two tables contains some records, what i want is to delete the entries from itab1 which are not in itab2.
Example:
itab1
A B C
1 a b
2 z a
3 e t
4 d r
itab2
A D E
1 s d
3 f g
After the deletion itab1 should only contain records 1 & 3.
I know we can do this using loop and read, but i want to know if there is someother better way to do this...
Thanks in advance...
Regards
Karthik DHi Karthik,
this code should do it.
data : temp type sy-tabix.
clear temp.
loop at itab1. "if internal table with header line
temp = sy-tabix.
read table itab2 with key A = itab1-A.
if sy-subrc = 4.
delete itab index temp.
endif.
endloop.
*else if without header line
data : temp type sy-tabix.
clear temp.
loop at itab1 into wa_itab1. "if internal table is without header line
temp = sy-tabix.
read table itab2 with key A = itab1_wa-A into wa_itab2.
if sy-subrc = 4.
delete itab index temp.
endif.
endloop. -
How to delete entries from search help for a field
hi guys
how r u all doing.
i have some questions for u.
1. How can i delete some entries(from a list of many) from search help of a field with out (writing)going to a program.
2.in PA10 (Personnel File),when i try to display data for a pernr,i am getting an error saying that infotype 122 doesnot exist.
3.Again in Pa20,when i try to display data for a custom infotype,it leads me to short dump saying that load program does not exist.
any help in this regard,wud be appreciated.
thanksFollow this
What to do before selling or giving away your iPhone, iPad, or iPod touch - Apple Support -
Deleting entries from a Standard View
Hi,
How do I delete duplicate entries from an Standard View in an Abap Code?
Thanks,
PravsThen it becomes complicated. Are you trying to delete the duplicates from a view? Then look at your view definition and see if you can avoid duplicates by changing its selection criteria. Also take note of Rob's comment.
If you are trying to delete from a database table as opposed to a view, then I don't know how you achieved the feat of having duplicate entries as any duplicate inserts with same key fields would have resulted in dump. Can you please clarify? -
Problem in deleting entries from internal table
i am selecting
vrgar
perio
paobjnr
belnr
gjahr
perde
budat
kndnr
artnr
frwae
kursf
rec_waers
kaufn
kdpos
bukrs
kokrs
werks
gsber
vkorg
vtweg
spart
rbeln
rposn
prctr
pprctr
kunnr
land1
regio
kunwe
kvgr1
wwpmg
zterm
wwcst
wwrst
mvgr3
wwseg
wwcls
wwesa
prdha
wwbun
wwexd
wwph1
wwph2
wwph3
wwph4
prat1
prat2
vrprs
vv510
vv508
vv509
vvqt2
vv515
INTO TABLE ct_ce11000 FROM ce11000
WHERE paledger EQ gv_ledbo AND
vrgar EQ lc_vrgar AND
belnr GT uv_belnr AND
gjahr EQ pa_gjahr AND
perde EQ pa_perd AND
bukrs EQ pa_bukrs.
now i awant to delete all those entries from my internal table ct_ce11000 where my plant (WEKRS) and company code (BUKRS)
i am writting
loop at ct_ce11000 into wa_ce11000.
if wa_ce11000-werks ne wa_ce11000-bukrs.
now how can i delete all the entries from nmy internal table (ct_ce11000) when plant and company code is not same
pls help me with logic.
thank you for helping meHello Guys,
It is not advisable to delete the entries from the internal table you are looping upon. See this thread: [Sy-tabix in loop : Doubt|Sy-tabix in loop : Doubt]
And to answer the OP's question select data into some local internal table & based on the condition populate your final table. Creating a local table of the same type as the final table will not create too much performance overhead
Cheers,
Suhas -
Deleting entry from internal table
Hi Experts,
i have the following internal table:
data : it_result1 TYPE crmt_object_guid_tab
and work area
data : wa_result1 type crmt_object_guid.
i have to delete a guid from internal table based on some condition.
loop at it_resul1 into wa_result1
if lv_priority eq priority.
delete this entry from internal table.
endif.
endloop..
i tried using delete table it_result with table key CRMT_OBJECT_GUID = wa_result. but this is giving syntax error.
what should be done to delete the entry?
Thanks and regards
ShilpiHi
Check Syntax for DELETE operator on pressing F1
1. DELETE itab.
2. DELETE TABLE itab WITH TABLE KEY k1 = v1 ... kn = vn.
3. DELETE TABLE itab [FROM wa].
4. DELETE itab INDEX idx.
5. DELETE itab FROM idx1 TO idx2.
6. DELETE itab WHERE logexp.
7. DELETE ADJACENT DUPLICATES FROM itab.
delete table it_result with table key CRMT_OBJECT_GUID = wa_result
this is wrong
delete it_result where CRMT_OBJECT_GUID = wa_result
Edited by: Lavanya K on Apr 22, 2009 10:20 AM -
Delete entry from Database table
Hi,
I configured one PCR scenerio in SPRO node -> business Packakes/ funtional packages-> Manager self service-> Personal Change request -> Group Change request scenerio.
later I deleted that entry in backend, but still the same entry exist in db table "TWPC_PCR_Groups" .
How can we delete that entry?
thanksHi,
If you just want to delete a single entry from database table then you have to it in debug mode .
go to se11->Give table name->Press F7( ie: display table entries)-> Goto the table contents (CTRLSHIFTF10)->Select the entry you want to delete->Give /H in the command bar ->enter into debug mode-> Give code as DELE -> save it. and press enter. Your entry will be deleted from database.
Hope this helps.. -
Deleting entries from custom tables....
Hello,
I have a custom table ZCUST (client dependent) from where I want to delete all entries. How do I achieve this ? There are two key fields in this table key1 and key2.
Regards,
Rajesh.Hi Rajesh,
try this one...
DATA: lt_add TYPE zadd OCCURS 0 WITH HEADER LINE.
SELECT *
FROM zadd
INTO TABLE lt_add.
DELETE zadd FROM TABLE lt_add.
IF sy-subrc = 0.
ULINE.
ENDIF.
Best regards,
raam -
Delete entries from internal table
Hello friends,
I have a screen on which im displaying a table, now i have also provided an delete button which deletes the selected record.
the record which i have written is
GET CURSOR FIELD FLD LINE IND.
READ TABLE ITAB2 INDEX IND.
DELETE ZCTA_STONE_DET FROM ITAb2.
IF IND IS NOT INITIAL.
DELETE ITAB2 INDEX IND.
ENDIF.
but there is problem with this code,when ever the user scrolls the wrong data gets deleted.
so wat is the proper code to delete the record from the display tableHi,
This maybe possible B'coz the Line Number is taken considering the Headers so you should subtract 1 or 2 depending on the no. of lines in Header and then delete the record.
so write the Code as
GET CURSOR FIELD FLD LINE IND.
READ TABLE ITAB2 INDEX IND.
DELETE ZCTA_STONE_DET FROM ITAb2.
SUBTRACT 1 FROM IND.
IF IND IS NOT INITIAL.
DELETE ITAB2 INDEX IND.
ENDIF.
Regards,
Sunil -
Cannot delete entries from custom Infostructure using OLIX
Hi,
I have created a custom info structure S970 for MRP. The data is being populated to this info structure using an ABAP program which reads from an excel file input by the user. Insert / Modify are used to write from itab to S970 in the program. The data is being read in file and written to S970 correctly. Version is specified by the user using a parameter like S970-VRSIO.
However, when I try to delete these entries using transaction OLIX, it does not show version or delete data. E.g., version is 002. In F4 help for field source version in OLIX, it is not showing version 002, only 000 - Actual data and A00, active version. If I input 002 manually and try to delete it gives me a message saying that deletion is successful. However, when viewing in SE11/SE16, S970 still shows all entries with version 002. Help is greatly appreciated, thanks.
RegardsFacing same issue here.. please some one help me how to solve this issue?
Maybe you are looking for
-
Sent items on yahoo Imap not synchronising with sent items on yahoo mail outlook 2011
I had a problem where the my yahoo imap which I set up with Outlook 2011 was not synchronizing with Yahoo from the web. I found the solution today by switching from Sent items( Server) to Sent( Server). 1. Go to tools 2. Accounts 3.Advance options 4
-
Computer reboots when i launch iTunes
Almost every time i run iTunes (70-80%) my computer imediately reboots, just like presing the reset button. Aparently something causes a Windows Stop Error witch reboots the system to protect it. After the reboot a get a Microsoft Crash Analisys wind
-
I'm using Flash Pro 8. My main website page has buttons all throughout. When a page loads on top of the main page, using loadMovie, all of the links underneath (on the main page) are still live. How can I prevent those links from being live when the
-
Hi, Once after connecting to the portal and connecting to the mapped r3 system,i'm trying to search for BAPIs it was throwing the error Search returned an error. Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: Bad attribute lis
-
TOAD giving error 'NO Oracle Client installed'
Hi, I have a peculiar problem. I have installed Oracle 11gr2 64bit enterprise edition and then installed Toad 10.5 Trial. All the installations were successfull and I am able to login to the DB using SQL* PLUS as well as Oracle Propitery tool SQL Dev