Skip to Content
author's profile photo Former Member
Former Member

Data Dic??

Hi

Plz tell me how to delete the any particular record of an data dic or ztable through report.

what shd i use to delete the record at 10 place in table as an example.

plz tell me?

regds...

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Dec 31, 2007 at 01:27 PM

    Hi Vipin,

    We Can use DELETE Keyword For Deleting the Record From Table.

    Check this Example.

    TABLES:MARA.

    SELECT-OPTIONS:S_MATNR FOR MARA-MATNR.

    DATA:ITAB LIKE MARA OCCURS 0 WITH HEADER LINE.

    START-OF-SELECTION.

    SELECT * FROM MARA INTO TABLE ITAB WHERE MATNR IN S_MATNR.

    LOOP AT ITAB.

    DELETE MARA FROM TABLE ITAB.

    ENDLOOP.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2008 at 09:01 AM

    Hi,

    Use this code this will surely work..

    DELETE ADJACENT DUPLICATES FROM (table name)COMPARING (field name).

    eg:

    DELETE ADJACENT DUPLICATES FROM t_tot_wegh COMPARING vpobjkey.

    Regards,

    Ari

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2008 at 08:23 AM

    Hi ,

    Can u please try this code.

    loop at itab into wa_itab.

    on change of itab-matnr.

    clear l_index.

    endon.

    l_index = l_index + 1.

    if l_index > 2.

    delete dbname from wa_itab.

    endif.

    endloop.

    Regards

    DV

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2008 at 10:38 AM

    Hi, This may help you.

    select * from z-table into itab.

    loop at itab into wa.

    if sy-tabix = 10.

    DELETE FROM Z-Plant where plant = wa-plant.

    endif.

    Endloop.

    With Regards

    Madhu

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.