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

Insert data to table Z

Hi!!

I have a table Z, to which I need to insert data to him, which I have stored in an internal table, but when I apply to the LOOP to the inserted single internal table in table Z 1 registry. and I want all data.

I have tried this and nothing.

Example 1:

loop at wa_digi1 into wa_tt.

MODIFY zedi_facturadigi FROM wa_tt.

endloop.

Example2:

loop at wa_digi1 into wa_tt.

update zedi_facturadigi set

zlinea_cadena = wa_tt-zlinea_cadena

zcadena_original = wa_tt-zcadena_original

where bukrs = wa_tt-bukrs and

zclase_factura = wa_tt-zclase_factura and

belnr = wa_tt-belnr and

zserie = wa_tt-zserie.

commit work.

endloop.

thanks and regards.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jan 18, 2008 at 03:57 PM

    hi,

    try like this:

    INSERT zedi_facturadigi FROM TABLE wa_digi1.

    hope this helps

    ec

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 18, 2008 at 04:03 PM

    Hello Ashly,

    Only use

    MODIFY zedi_facturadigi FROM wa_digi1.

    This will make it what you want.

    Cheers,

    Vasanth

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 18, 2008 at 04:06 PM

    HI,

    Try using Insert statement,

    INSERT zedi_facturadigi FROM wa_tt..

    Thanks,

    Sriram POnna.

    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.