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

tabel control problen

iam trying to pack materials into HU's in my custom table contrls.

when i select a HU in tab cntrl 1 and the matnr's in TC2

and click on 'PACK' the rows in TC2 should be deleted.

iam able to do this but i see the empty lines in TC2.

can some one help me how to delete those empty rows?

am i doing a very basic mistake?

right now iam doing:

loop at itab1 with control xxxxx.

module fill_screen1.

endloop.

loop at itab2 with control xxxx.

module fill_screen2.

endloop.

and inside the module fill_screen2 iam moving contents of another itab which has the updated contents.

am i supposed to say 'delete itab2' inside the second loop instead? and thats going to take care of the empty rows automatically..

thanks a lot..

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 29, 2005 at 02:38 PM

    hi,

    in PAI add like module like

    module delete_mat ( this one not necessary inside the

    loop)

    then in the module delete_mat

    you need to delete all the entries from the itab

    delete table itab.

    cheers,

    sasi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 29, 2005 at 02:47 PM

    Hi,

    You are doing it right untill the last step.You can mive the contents into another internal table for your reference.

    But finally you need to <b>delete the internal table 2</b> in the PAI of the 'PACK' button.

    i.e in the <b>PAI</b> check of the <b>PACK</b> button code as

    <b>delete itab2.</b>

    This will automatically get effected when the PBO getss called.

    Please reward points if this explanation useful.

    regards,

    Siva

    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.