Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Dynamic change in Background Picture for Smartform

Hi,

I need to keep a background Image in smartform only in specific condition.

I have done like this :

I have taken one variable in the intialization and I am filling with the image name for a specific condition.

This variable , I am giving it in the Background Picture Tab.

But I am getting run time error as Graphic cannot be displayed.

Here I am giving the code In the initialization:

Here p_obnam is my variable of type TDOBNAME

SAMPLE is my image name which is in SE78

CASE p_biltyp.

WHEN 'ZRE' OR

'G2'.

p_obnam = space.

WHEN 'ZF5'.

p_obnam = 'SAMPLE'.

WHEN OTHERS.

p_obnam = 'SAMPLE'.

ENDCASE.

Please let me know...how can I do this.

Regards

Sandeep

Former Member
replied

The issue is coming as in your case ZRE / G2, the field for Image is BLANK and SAP is not able to find Image object to be displayed.

Either you go with the answer suggested by "Suvendu"

OR

Upload a blank Image and in case of ZRE/G2 assign that Image to the Work field.

Regards,

Aj

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question