sap- how to upload logo in se78
Consign Graphics from SE78 SAP Grade Graphics Administration using ABAP Plan
ABAP developers can consign graphics from SAP Class Graphics administration SE78 transaction using ABAP written report whose source codes are shared in this ABAP tutorial. Unfortunately in that location is not a single click solution on SE78 SAP transaction screen to export graphics, logos or export images from SAP BDS arrangement. This ABAP tutorial provides an easy program to extract bitmap images from SAP BDS (Concern Certificate Service) and save on a local folder as a bitmap .bmp paradigm file.
Besides as uploading bitmap images or graphics to SAP images document server, it is sometimes a requirement to download and export images from SAP document server where ABAP developers and SAP customization specialists manage using SE78 tcode.
In this SAP tutorial, I will show and demonstrate how y'all tin can export images (for this tutorial SAP LOGO BMP). This is a color bitmap image every bit shown in below SE78 transaction UI screenshot.
Export images and graphics from SAP SE78 transaction
Let's commencement out tutorial by creating a new ABAP report using ABAP Workbench.
Kickoff, nosotros will start past building the selection-screen codes.
Here as you run across below, the ABAP report requests a file proper noun in an input text area.
An other parameter that the user volition provide is if the epitome is black and white bitmap image or a color bitmap image.
This parameter is displayed using a radiobutton group in the selection screen.
Higher up provided ABAP source codes of the SAP option screen generates the below screen for the user interface. This option screen enables the user to enter the proper name of the bitmap image which is desired to export from SAP system.
To get the stored images in SAP BDS (Business Document Service), ABAP developers can call function module SAPSCRIPT_GET_GRAPHIC_BDS.
ABAP SAPSCRIPT_GET_GRAPHIC_BDS function module gets the binary data from SAP for a given specific bitmap paradigm uploaded to BDS (SE78 tcode).
The next step in our sample ABAP code is to call part module "SAPSCRIPT_CONVERT_BITMAP" to convert the returned binary data into bitmap file.
ABAP function module SAPSCRIPT_CONVERT_BITMAP converts graphics in BDS file format into BMP bitmap image format. Here is how ABAP developers can use SAPSCRIPT_CONVERT_BITMAP office module.
After BDS file in lv_content is converted to bitmap epitome and returned within graphic_table internal table variable, we are at present ready to export bmp image to a predefined file folder. In order to export SAP BDS graphics file to a arrangement folder, ABAP developers can use WS_DOWNLOAD function module.
ABAP developers should prepare the filename parameter of the WS_DOWNLOAD ABAP function module in the format including the total file path.
In this ABAP tutorial sample case, I used a constant file folder to shop exported BDS images.
Mayhap information technology is a improve idea to use ABAP binder selector or Display File Dialog control using cl_gui_frontend_services=>FILE_SAVE_DIALOG method. But this is a topic of an other ABAP tutorial.
After recognizing the ABAP function modules that the developers tin use in their ABAP programs to export SE78 images from Business Document Service (BDS), I can share the all source codes of the sample ABAP report Z_EXPORT_GRAPHICS created for this tutorial.
After you activate your ABAP report, you tin now export SAP logo from SAP BDS arrangement. If you lot run the ABAP program z_export_graphics and enter "SAP LOGO BMP" every bit the name of the bitmap epitome and choose Color Bitmap Paradigm option and execute the report, a graphics file volition be created in the target binder with the aforementioned prototype name.
Source: https://www.kodyaz.com/sap-abap/export-graphics-se78-using-abap-code.aspx
0 Response to "sap- how to upload logo in se78"
Post a Comment