Author Archives: abapadmin

Appending tables with ABAP

Today’s tip is how to append tables with ABAP. This is simple to do and all it takes is just a simple modification to the INSERTING INTO TABLE syntax.

And that’s all you do to append records into an existing table when you do a select. Just remember, “APPENDING” is the key word but if you do this step, you should look for duplicates as well.

ABAP help is only an email away!

Do you need ABAP help ASAP?  Are you working on a computer problem you can’t solve?  Let me know what your ABAP problem is and I will let you know if I can help. Fill out the form to the right and I will get back to you as soon as I can. I will put your question on the website and if we solve the problem, I will put the answer here as well to help others.

Convert Internal Table to HTML

I had one request where I had to convert an internal table into HTML so that I could stream it to the client’s computer as an Excel download. There are various ways of doing this such as converting the file into a CSV file but the user wanted to have HTML.

So, the way to accomplish this is to use the following code:


ABAP Prompt User with Yes or No Dialog

There are several choices to do dialogs in ABAP. Here, I will be doing a simple Yes or No Dialog Box using the function POPUP_TO_CONFIRM. Confirmation dialog boxes are frequently needed in programs. You can control program flow with dialog boxes and it’s also a very nice way to communicate with your user what your program is doing.

There are other options you can add to the dialog prompt as well. I did not include all of the options below. However, if you go into T-code SE37, you can review some of the options the function can take. Here is the sample program that I wrote.

Then if you run the program, you will see the following user prompt dialog:

ABAP User Prompt Yes or No

And that’s how easy it is to create a user prompt. When you have the result of the user’s input, it is stored as an integer in their Yes or No response. In this example, “1” corresponds to a “Yes” and “2” corresponds to a “No”.  This can be a simple driver to your program. Please note the sy-subrc check which is performed after the function check to display the user response.