cancel
Showing results for 
Search instead for 
Did you mean: 

Test if Graphic exist

Former Member
0 Kudos

How can I test wether a dynamic graphic exist or not, befor I call the Smartform??

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Can anyone help me??

There must be a Funktion! Any idea were I can search?

naimesh_patel
Active Contributor
0 Kudos

You can check with this FM : SAPSCRIPT_ATTRIB_GRAPHIC_BDS

Pass the parameters like this:

 i_object  = 'GRAPHICS'.
 i_name  = 'LOGO'  . " << name of logo
 i_id = 'BMAP'. " << BMP 
 i_btype = 'BCOL' .  " << COLOR
 read_only = 'X'

Check the exception:

       exceptions
            bds_info_failed = 1
            not_found       = 2  " << Triggers when you don't have logo
            others          = 3. 

Regards,

Naimesh Patel

Answers (0)