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…

Upload File from Application Server into ABAP Internal Table in SAP

The following code helps in uploading the data from flat file on Application Server to ABAP Internal Table.

Upload To Itab

Continue Reading…

ABAP Automailer program for sending output of SAP TCodes in Background

There has been requirement from users to get output of some report(s), mailed to them in excel format(so that they can adjust/formulate the data as they want). And mostly such reports have fixed periodicity, such as weekly, fortnight or monthly.

schedule

Continue Reading…

SAP ABAP Transferring Internal Table Contents to a file on the Application Server

In SAP ABAP you can transfer the contents of the internal table to a file. This is required when you wish to extract data from SAP tables into a flat file.

This file can then be used to transfer data to another SAP or NON SAP system. This can also be used for an interfacing when you wish to transfer data on a daily or a weekly basis from R/3 to NON R/3 or SAP.

download

 

 

 

The command used to create a file on the application server is as follows.

Continue Reading…

Mass Maintenance of Tcode Variants

Many a times there are business scenarios wherein there is a possibility of migration to a new entity, for example if your organization decides to go for the implementation of a standard chart of account for the existing company codes, new company codes might be created. In such cases when the company code changes we also have to ensure that in all the Report variants the new company code needs to be updated. In case the report numbers cross hundreds it would be a painstaking process to change each and every variant. (Same case for background jobs too)

Example Scenario

Now?  There was a business change and company code IN01 would no longer be used and will be replaced with IN02. The ABAP and BASIS teams are entrusted with the responsibility of creating new variants/change the existing variants.

variant

 

 

Continue Reading…

Page 2 of 1512345...Last »