Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
Showing results for 
Search instead for 
Did you mean: 

How to Compare the internal table column to table output column

0 Kudos

Hi All,

I am new to the SAP, How to Compare internal table column to table output column.

If table contains same values as output means it should be updated (updated by, on, at). If table does not contain the output values means it should be created.(updated by, on, at).

How should I compare the values.

Kindly please help me ASAP.

Thank you!


Community Manager
Community Manager
0 Kudos

Welcome to the SAP Community. Thank you for visiting us to get answers to your questions.

Since you're asking a question here for the first time, I'd like to offer some friendly advice on how to get the most out of your community membership and experience.

First, please see, as this resource page provides tips for preparing questions that draw responses from our members. Second, feel free to take our Q&A tutorial at, as that will help you when submitting questions to the community.

I also recommend that you include a profile picture. By personalizing your profile, you encourage readers to respond:

Now for some specific suggestions on how you might improve your question:

* Outline what steps you took to find answers (and why they weren't helpful) -- so members don't make suggestions that you've already tried.

Should you wish, you can revise your question by selecting Actions, then Edit.

The more details you provide (in questions tagged correctly), the more likely it is that members will be able to respond. As it stands, I don't know if there is enough information here for members to understand your issue. So please consider revising your question because I'd really like to see you get a solution to your problem!

I hope you find this advice useful, and we're happy to have you as part of SAP Community!

Active Contributor
0 Kudos

Check transaction ABAPDOCU and search for keywork INSERT

Active Participant
0 Kudos


please check the following programs:










0 Kudos

Tried But not worked.

Again I updated my question. Kindly try to do needful or else fine.


Active Contributor

Where are you stuck, and what did you already perform?

  • Create a table in SE11? which was already created?
  • Get some fields from some tables (SELECT, JOIN)
  • Insert records in new table (INSERT)

Active Contributor
0 Kudos

Are you asking for the algorithm? Like this one:

  1. Loop at each line of the first internal table
  2. If the line exists in the second internal table, then it's an update
  3. Else it's an insert

Is it about internal table? Is it about database table?

Sorry but your question is too much general.