cancel
Showing results for 
Search instead for 
Did you mean: 

Sending Multiple CMDs in a hidden form

0 Kudos

Because of the 256 character restriction of the browser URL I'm trying to submit a hidden form to apply filter values and multiple commands to my web application. In my example below, when I submit the form the first filter is applied (with the 2 filter values I have defined) but I can't figure out how to submit the CMDs after that. I need to be able to submit multiple commands (swapping the axes, applying drilldowns) in one sequence to the same data provider. Can anyone please help me with the syntax for doing that?

<span style="display:none; visibility:hidden">

<form name="MyCommand" method="POST" action="<SAP_BW_URL>">

<input type="hidden" name="DATA_PROVIDER" value="KPM">

<input type="hidden" name="FILTER_IOBJNM" value="0FISCPER">

<input type="hidden" name="FILTER_VALUE_1" value="H12004011">

<input type="hidden" name="FILTER_VALUE_2" value="H12004012">

<input type="hidden" name="CMD1" value="SWITCH_AXES">

<input type="hidden" name="CMD2" value="EXPAND">

<input type="hidden" name="IOBJNM" value="ZPLANT">

<input type="hidden" name="DATA_PROVIDER" value="KPM">

</form>

</span>

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

span style="display:none; visibility:hidden">

<form name="MyCommand" method="POST" action="<SAP_BW_URL>">

<input type="hidden" name="DATA_PROVIDER" value="KPM">

<input type="hidden" name="FILTER_IOBJNM" value="0FISCPER">

<input type="hidden" name="FILTER_VALUE_1" value="H12004011">

<input type="hidden" name="FILTER_VALUE_2" value="H12004012">

<input type="hidden" name="CMD1" value="CMD=SWITCH_AXES&DATA_PROVIDER=KPM">

<input type="hidden" name="CMD2" value="CMD=EXPAND&IOBJNM=ZPLANT&DATA_PROVIDER=KPM">

</form>

</span>

0 Kudos

Hi Heike,

I have implemented these 2 commands exactly as you have specified however they are not getting applied. When I call the form via "javascript:document.MyCommand.submit();" the web page will reload with the filter values applied for 0FISCPER but both CMD1 and CMD2 are not processed. Can you please provide further guidance?

Thanks!

Former Member
0 Kudos

Hi,

sorry a typo, as I just copied your code. It should read:

input type="hidden" name="CMD_1" value="CMD=SWITCH_AXES...

Heike

0 Kudos

Thank you; this now works perfectly!

Answers (0)