檢查LOGO是否存在
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部落格 ” ,連結:http://blog.itpub.net/11011430/viewspace-1029880/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 檢查是否存在truncate或者rebuild的索引Rebuild索引
- 檢查貨幣是否存在SAP系統中
- Python3檢查檔案是否存在的常用方法!Python
- 分享實用監控指令碼:使用Shell檢查程式是否存在指令碼
- 使用CHECKSYNTAX命令檢查RMAN指令碼是否存在語法錯誤指令碼
- SQL SERVER 建表table之前,檢查是否有同名的表存在SQLServer
- Android 檢查裝置是否存在 導航欄 NavigationBarAndroidNavigation
- Python3中如何檢查檔案是否存在?Python教程!Python
- Python3如何檢查檔案或資料夾是否存在?Python
- 查詢資料庫表是否存在資料庫
- JavaScript視窗功能指南之檢查一個視窗是否存在 (轉)JavaScript
- 檢測表中行記錄是否已存在
- SQL查詢是否”存在”的新方法SQL
- 用RMAN備份歸檔日誌時檢查歸檔日誌是否存在
- check whether the crystal report runtime is exists 檢查crystalreport執行時是否存在
- 檢查udp埠是否可用?UDP
- 檢查連線是否有效
- javascript如何檢測一個圖片是否存在JavaScript
- python檢測圖片是否存在指令碼Python指令碼
- 檢查網路是否連線
- js如何建立、刪除或者檢測cookie是否存在JSCookie
- 檢驗系統帳號是否存在的例項
- javascript,檢測object物件中是否存在某個屬性JavaScriptObject物件
- sql server 修改欄位名,檢視指定表是否存在SQLServer
- php檢查某個日期是否有效PHP
- 如何檢查域名解析是否生效?
- 如何檢查是否物理伺服器?伺服器
- shell指令碼死迴圈檢查是否有特定的路由,若不存在進行增加操作指令碼路由
- ORACLE 檢查資料庫表中是否存在不規範字 段的語句參考.sqlOracle資料庫SQL
- 如何檢查一個物件是否為空物件
- js檢查身份證號是否正確JS
- 檢查vector中是否包含給定元素
- React技巧之檢查元素是否可見React
- php檢查是否是數字和字母PHP
- 是否存在JSON物件JSON物件
- 怎麼檢查是否安裝了pythonPython
- 檢查PHP擴充套件是否安裝成功PHP套件
- 檢查使用者名稱是否使用介面