troubleshooting Question

inserting a row into an internal table

Avatar of Pemberley1
Pemberley1 asked on
Enterprise Software
2 Comments1 Solution461 ViewsLast Modified:
What is the syntax for appending a row to an internal table.  I'm getting an error trying to do this and I can't find anything out there that will tell me how to do it.  I've seen how to move one internal table to another but not how to append certain values.  
Thanks.

Here is my code:

SELECT LIFNR into (vendor_num) FROM BSEG
  WHERE ZLSCH = 'Z' AND AUGDT between beg_clearing_date AND
  end_clearing_date.

      SELECT SINGLE ADRNR into (addr_num)
      FROM LFA1
      WHERE LIFNR = vendor_num.


      SELECT SINGLE SMTP_ADDR into (email_recipient)
      FROM ADR6
      WHERE ADDRNUMBER = addr_num AND SMTP_ADDR IS NOT NULL.

      INSERT INTO w_vendor_info ( vendor_num  email )
      VALUES ( vendor_num email_recipient ).
     
 ENDSELECT.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros