Command sequence Tips and Tricks:
1. Only the first command can have & , = characters within command.
E.G. the first command could look like this: CMD=RESET_ITEM&ITEM=TABLE_1&ITEM_CLASS=CL_RSR_WWW_ITEM_GRID
Note that name of the command is “RESET_ITEM” followed by couple of parameters (ITEM & ITEM_CLASS).
2. All subsequent command must have escape sequence as follows:
%26 for &
%3D for =
The second command could look like this:
(This command can be used to remove drill down from characteristic “Char1”.)
Note: Watch the use of %26CMD%3DCollapse in above command (VERY IMPORTANT):
In case of long command sequences and for drill down and collapse command you need to explicitly mention %26CMD%3D before the command though you have &CMD_1.
If you do not mention %26CMD%3D, these commands do not execute.
3. While using Data provider commands such as filter, drilldown, remove drilldown, exchange, do not forget to mention parameter DATA_PROVIDER.
4. Use of filter command:
We do not need to explicitly mention any command for filter. It goes like this:
You can attach multiple filter values by adding count as FILTER_IOBJNM_2, FILTER_IOBJNM_3 and so on. Correspondingly change the counts for values as FILTER_VALUE_2, FILTER_VALUE_3 and so on.
Note the use of FILTER_COLLAPSE parameter:
If “FILTER_COLLAPSE=“is not mentioned, then this filtering command removes filtered characteristics by default.
The counter for commands in command sequence need not be in perfect sequence. Sometimes depending on loop counter it can have breaks.
e.g. CMD_1, CMD_2, CMD_3, CMD_5, CMD_9 etc.
5. Use of PERSONALIZE command
Prerequisites for PERSONALIZE command to work:
a. Check template level parameter (User Personalized template if available)
b. Enable BW server to user personalization –IMG Configuration – IMG => SAP NetWeaver => Business Intelligence => Setting for Reporting and Analysis=> General settings for reporting & analysis=> Activate Personalization in BEx
Check Web Report Personalization and save.
Note: If you do not activate personalization in IMG, BW server simply rejects all URLs having command PERSONALIZE resulting blank HTML. You will see the web template disappearing as soon as command is fired due to blank HTML response.
SAPBWOpenURL(SAP_BW_URL_Get() + “append your sequence here”);
Rest of the help should be useful at this link.