cancel
Showing results for 
Search instead for 
Did you mean: 

Standard text in Adobe form

Former Member
0 Kudos

Hello All,

I have modified a standard text and appended a logo in the text.

BITMAP 'LOGO ' OBJECT GRAPHICS ID BMAP TYPE BMON DPI 300

The standard text is being called in adobe form. Now the text is printing asusual but there is no logo printing.

Please advise the solution to print the logo along with standard text.

Thanks in advance.

Rgs,

Priya

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi All,

Have resolved it myself by modifying the Adobe form.

Solution: ( In Adobe form interface --Code initialization)

Create a mime object of logo in SE80.

Code:

  gv_logo_es01 = '/sap/public/images/LOGO'. ( Path used in SE80)


* Read Images
  CLEAR lr_api.
  lr_api = cl_mime_repository_api=>get_api( ).

  lr_api->get( EXPORTING i_url = gv_logo_es01
               IMPORTING e_content = gv_es01 ).

Call the gv_es01 in adobe form layout.

Former Member
0 Kudos

Hi Priya,

For the logo use the method GET_BDS_GRAPHIC_AS_BMP of class CL_SSF_XSF_UTILITIES. Code this in the code initialization part of the interface.

Then in the context of the form , create a graphic , select the graphic type as graphic content and give the values in field as 'the variable which contains the logo 'and MIME as 'BMP'.

Go to the form and bind this graphic to the image.

For example,

In the interface:

Declare the v_logo as xstring in global data.

CALL METHOD CL_SSF_XSF_UTILITIES=>GET_BDS_GRAPHIC_AS_BMP
     EXPORTING
       P_OBJECT       = 'GRAPHICS'
       P_NAME         =  'the image name'
       P_ID                = 'BMAP'
       P_BTYPE        = 'BCOL'
     RECEIVING
       P_BMP          = V_LOGO
     EXCEPTIONS
       NOT_FOUND      = 1
       INTERNAL_ERROR = 2
       OTHERS         = 3.

Hope this helps you.

If any issue let me know.

Thanks,

Namrata

Former Member
0 Kudos

Hi,

The requirement is not just adding a logo.

There is a standard text already printing based on some sales org. So for that sales org only, along with the standard text, the logo needs to be printed.

The functional guy, does nt want to change the FORM.

What's his idea is, just to append the logo to standard text and printed.

I have appended the logo to standard text and as I mentioned its not printing on the form.

My question is it possible to print the logo in that way on Adobe form?

Rgs,

Priya

Former Member
0 Kudos

Hi Priya,

I will do it like so:

1. read the text element content using ABAP and get the logo name,

2. pass the name of the logo to the form

3. use the image UI-element in adobe form.

Cheers,

Tao

Former Member
0 Kudos

Hi, Can anyone help in solving the issue.

http://scn.sap.com/thread/3302229

Former Member
0 Kudos

Hi Priya,

Why dont you use Image UI element in layout directly and embed image into it?

Regards,

Mahidhar.