因為Server不給力,數據量一大,程式就經常掛掉了。所以最近想修改下前輩們寫的在ABAP裡讀Cube/Query數據的程式。在網上搜了下相關內容,有篇英文blog:http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/2772。參照並在DEV環境裡實現時報錯:cl_rsr_query_variables 找不到。所以就用就用RRW3_GET_QUERY_VIEW_DATA 這個Function Model.但在SE37裡測試時一直有問題:I_T_PARAMETER,這個table裡對變量參數輸入有問題。查找變量相關內容:http://help.sap.com/saphelp_nw04/helpdata/en/07/ff413a3ace7022e10000000a11402f/frameset.htm。需要根據相對應的變量類型輸入。比如類型為selection option,則需在I_T_PARAMETER時輸入如下5條數據。
parameter |
Description |
VAR_NAME_I |
Technical name of the variables |
VAR_OPERATOR_I |
An operator 'EQ' = Individual value 'BT' = Interval 'LT' = Less than 'LE' = Less than or equal to 'GT' = Greater than 'GE' = Greater than or equal to |
VAR_VALUE_LOW_EXT_I |
“From” characteristic value in external display Key for characteristic value in external display |
VAR_VALUE_HIGH_EXT_I |
“To” characteristic value in external display Key for characteristic value in external display This value must only be specified with VAR_OPERATOR='BT'. |
VAR_SIGN_I |
Row properties 'I' found values are added, 'E' found values are removed. |
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22792542/viewspace-704498/,如需转载,请注明出处,否则将追究法律责任。