Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Images and SAPScripting

Former Member
0 Kudos

Good Morning,

I need to show one image in a sapscript form. The image will be shown depending on values from EKKO-EKGRP.

I need to know the steps i need to perform in order to show the image in my sapscript form.

I also need to know if i can show the image in diagonal.

Best Regards,

Pedro Gaspar

1 ACCEPTED SOLUTION

former_member632991
Active Contributor
0 Kudos

Hi,

upload the images in .tif or .bmp format and then create a window in which ur image will be displayed.

Now depending on the value of EKKO-EKGRP, show that image in the window.

now go to window-> textcode-> insert graphics and mention ur image.

Regards,

Sonika

Message was edited by:

Sonika Ahuja

5 REPLIES 5

Former Member
0 Kudos

Hi,

I got some idea for that. But am not sure about that. Basically this type of logic is used in Java. Put the images field to the internal table and store the values in that images field corresponding to EKGRP. While calling the image object in layout place this field in that.

Thanks

Ravi

former_member632991
Active Contributor
0 Kudos

Hi,

upload the images in .tif or .bmp format and then create a window in which ur image will be displayed.

Now depending on the value of EKKO-EKGRP, show that image in the window.

now go to window-> textcode-> insert graphics and mention ur image.

Regards,

Sonika

Message was edited by:

Sonika Ahuja

Former Member
0 Kudos

Hi,

First you need to upload that Image to SAP, you can so this by using RSTXLDMC or SE78 transaction code. then in the SE71, In the LOGO winodw, press the Line editor button there then to include the logo INSERT --> GRAPHCS, then select the name of your logo

/: IF &EKKO-EKGRP& EQ '123'.
/: INCLUDE '123 text'     " You need to insert the logo here using INSERT --> GRAPHCS
/: ELSEIF &EKKO-EKGRP& EQ '234'.
/: INCLUDE '234 text' .   " You need to insert the logo here using INSERT --> GRAPHCS

ENDIF.

Regards

Sudheer

0 Kudos

First of all, thank you for your answers, i'm going to try your sugestions and i'll give you feedback (translated in points... ).

I also have another question... Is it possible to use this BMP like a watermark?

Can i write text over this image?

Regards,

Pedro Gaspar

former_member15255
Active Participant
0 Kudos

/: IF &EKKO-EKGRP& EQ '123'.

/: INCLUDE ZHEX-LOGO OBJECT TEXT ID ST LANGUAGE EN.

/: ELSEIF &EKKO-EKGRP& EQ '234'.

/: INCLUDE ZHEX-LOGO OBJECT TEXT ID ST LANGUAGE EN.

/: ENDIF.