Application Development and Automation 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: 
Read only

SAPScript - Hiding a graphic with dynamic code from ABAB

Former Member
0 Likes
688

Hello,

I want to lay a picture in the background of my sapscript form. This picture should be shown/hided if a condition is fullfilled in the ABAP-Programm.

1. One way is to include a tiff file as a text element, but I have problems generating a compatible baseline tiff-file format. Does anybody know a tool for generating compatible baseline tifffiles?

2. The second way is possibly hiding a graphic window dynamically. Does anybody know how this works?

3. Is there a way to print a graphic to a SAPScript-Form only with ABAP-Code?

Thanks for your help. Regards, Lars.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
555

Hello,

1. Yes using ABODE Photo shop you will be able to convert in whichever format you require. from gif to tiff to anything with all resolution.

2. In the script define a new window in which you put the image. In your calling program specify the condition.

eg.

if condition

CALL FUNCTION 'WRITE_FORM'

EXPORTING

window = 'WINDOW'

EXCEPTIONS

element = 1

window = 2.

else.

do something else.

endif.

Hope this helps.

Regards,

Shekhar Kulkarni

4 REPLIES 4
Read only

Former Member
0 Likes
556

Hello,

1. Yes using ABODE Photo shop you will be able to convert in whichever format you require. from gif to tiff to anything with all resolution.

2. In the script define a new window in which you put the image. In your calling program specify the condition.

eg.

if condition

CALL FUNCTION 'WRITE_FORM'

EXPORTING

window = 'WINDOW'

EXCEPTIONS

element = 1

window = 2.

else.

do something else.

endif.

Hope this helps.

Regards,

Shekhar Kulkarni

Read only

0 Likes
554

Hello Shekhar Kulkarni,

thank you for your advice. Your code helped me a lot solving my problem. Regards, Lars.

Read only

Vinod_Chandran
Active Contributor
0 Likes
554

1. Save the tiff file as uncompressed. Then you will not have problems.

2. I think you can use variable for the picture name in the INCLUDE or BITMAP command. Populate this variable in your IF condition accordingly.

Read only

Former Member
0 Likes
554

Hello Vinod C,

thanks for the hint with the uncompressed tiff. This helped me a lot. Regards, Lars.