ITPub博客

首页 > IT基础架构 > 网络安全 > 检查LOGO是否存在

检查LOGO是否存在

原创 网络安全 作者:kevinhaerbin 时间:2009-12-22 10:47:28 0 删除 编辑

If you need to include a (lot of) graphic(s) on a layout, you need to check first if the object exists or this will cause errors when the output is triggered.?
To do this : (example from smartforms)?
- Define a variable 'GV_GRAPHICS_EXIST' in the global variables

- Add the following code to your smartform

data: ls_stxbitmaps like stxbitmaps.

select single * from stxbitmaps

into ls_stxbitmaps

where tdobject = 'GRAPHICS'

and tdname = gv_logo_zpicprod

and tdid = 'BMAP'

and tdbtype = 'BCOL'.

if sy-subrc eq 0.

gv_graphics_exist = 'X'.

endif.

[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/11011430/viewspace-1029880/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: FM 获得外部单位
请登录后发表评论 登录
全部评论

注册时间:2009-02-20

  • 博文量
    27
  • 访问量
    34451