Skip to Content

need to delete the data from table

call function 'ZCPD_POPUP_FOR_INPUT'

exporting

i_vbeln = vbap-vbeln

i_posnr = vbap-posnr

tables

t_curr = it_temp.

1)need to move from it_temp into it_currinp

it_currinp[] = it_temp[].

2) need to delete from temp where record exist in posnr and also

delete from it_currinp not exits in posnr .

Edited by: anil kumar on Jan 30, 2008 10:30 AM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 05:04 AM

    HI,

    loop at it_temp where posnr is not initial.

    delete it_temp index sy-tabix.

    endloop.

    loop at it_currinp where posnr is initial.

    delete it_currinp index sy-tabix.

    endloop.

    Cheers,

    Will.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 05:04 AM

    Here, u r using Z FM, u have to check the code of that FM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 05:14 AM

    Anil,

    This is the correct way of coding.

    SORT : it_temp BY posnr.

    it_currinp[] = it_temp[].

    DELETE it_temp WHERE POSNT NE ''.

    DELETE it_currinp WHERE POSNT EQ ''.

    LOOP may reduce the performance of the program.

    Don't forget to reward if useful...

    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.