Display a Popup and Get Values from User

In some cases, we are needed to get some inputs from the user at run-time of an application based on certain dynamic conditions.

Function Module POPUP_GET_VALUES can be used to display a popup to get inputs from user. The specialty of this function module is we can add as many number of fields as we want. The fields can be of any data type.

popup

 

 

Continue Reading…

SAP addresses performance issues with cluster table BSEG

Many times we have seen many threads related to performance issues on BSEG table. It takes quite a lot of time when fetching data directly from BSEG if we do not have proper key fields. Here is the solution for this.

performance

Since it is not possible to create the secondary INDEX for cluster tables, SAP came up with new concept called INDEX tables.

Continue Reading…

Error while sending invoice automatically via email

There have been this case recently that, while sending invoice automatically via email, I got the following errors while seeing the error log for the output type. The configuration of communication strategy, SCOT and output types looks ok, but still the error persists.

print_error

The error says :

Please enter an address number
Communication type  cannot be used

Continue Reading…

Dynamically read fields, field names and field contents using field symbols

There has been requirements in ABAP to read the data from tables dynamically, based on specific field names. Those are the cases where we don’t know the field name to be read until run-time, and then we are have to read its data too.

The most efficient way to deal with such situations is Field Symbol. As we know, Field Symbols are like a placeholder or symbolic names for any object, variable or value.

placeholder

Continue Reading…

Embed a picture/image to body of an email in SAP

There have been requirements to embed an image/picture(company logo, product images, etc.) in the email generated from SAP.

Following code helps to embed the same in mail. Here, we are assuming that we are successful in sending a text based email via ABAP. All you really need to do is a little HTML.

Embed Image

 First, the image should be located on a server which can be hit threw the internet(if this email is to go outside your network). Next, use HTML to build your email body.

  Continue Reading…

Page 2 of 3012345...Last »