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

delete ztable structure

Frns,

Previously i write a program for delete table entries from ztable,

but they asking me to delete even ztable structure also.

pls suggest me.

thanx

Rams

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2008 at 04:48 AM

    Hi,

    Create a BDC recording using TCode "SHDB" and Enter the table name to delete. See the parameters you have to pass in the recording and replicate the same in your report program.

    Hope this helps.

    Murthy

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2008 at 03:13 AM

    Hi Rams,

    Check with different variants for the Delete .

    I believe the one you are looking is

    Delete ITab

    Effect

    Deletes one or more lines from an internal table.

    Note

    If you delete lines within a LOOP ... ENDLOOP block, the deletion affects subsequent loop passes.

    Variant 1

    DELETE itab.

    Effect

    Deletes the current entry from an internal table in a LOOP. You can only use this variant with index tables (standard or sorted tables).

    return code is set to 0.

    Once you have deleted the current entry of an internal table in a LOOP, the effect of subsequent changes to the current entry without specifying the INDEX cannot be guaranteed, and the behavior may change in future releases.

    This is the first delete, use the delete according to the requirement and do check the same while debugging, I guess during the runtime they want you to delete all entries for a specific key.

    Mohinder

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi ...

      actually my requirement is to write a program to delete ztable ( entire structure from Database ) through exicutable report.

      once i delete the ztable , it should no more under Data dictanory.

      Pls suggest me with relavant clues.

      Thanx

      Rams

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.