Is it possible to use a Java command to RRI and then Drill Down?

I am trying to build a Java command to jump from Report "A" to Report "B" through an RRI and then apply the same drill downs to report B as the user had entered in Report A. I want to use an RRI as this saves the user re-entering the selection criteria.
I can get the characteristics that have been drilled down through the command SAPBWGetDataProviderDimensions so all I need to do is complete the RRI and then reapply the same drill downs.
I've set the code to do an RRI and a simple drill down (see below) but it isn't working,it simply rebuilds the screen (IE no RRI nor expand).If I remove the EXPAND command the RRI works.
function sheptest() {
/* Get the optionnode */
myhtml = '<form name="MyShep" method="post" action="<SAP_BW_URL>">';
myhtml = myhtml + '<input type="hidden" name="DATA_PROVIDER" value="DATAPROVIDER_1">';
myhtml = myhtml + '<input type="hidden" name="CMD" value="RRI">';
myhtml = myhtml + '<input type="hidden" name="RRI_RECEIVER" value="QURY0001">';
myhtml = myhtml + '<input type="hidden" name="CMD_2" value="CMD=EXPAND&IOBJNM=0MAT_PLANT__0MATL_GROUP">';
myhtml = myhtml + '</form>';
alert(myhtml);
document.getElementById('MyForm').innerHTML = myhtml;
I also tried changing the dataprovider through the command RESET_DATA_PROVIDER, instead of using the RRI, but when I did this I am forced into the selection criteria screen, which the users want to avoid (as the variables are all the same).
Is what I'm trying to do possible?
Any advise will be greatly appreciated.
Cheers Shep.

Hi,
this is only possible with BW 3.5. There you have the possibility to add the parameter &rri=X to the RESET_DATA_PROVIDER command. This will result in transfering filters and variables to the new Query / View.
With RESET_DATA_PROVIDER you can create a command sequence.
It is not possible to have a command sequence influencing the result of the command RRI.
Heike

Similar Messages

Maybe you are looking for

  • ABAP IMPORT

    ERROR 2009-05-28 10:44:29 CJS-30022  Program 'Migration Monitor' exits with error code 103. For details see log file(s) import_monitor.java.log, import_monitor.log. ERROR 2009-05-28 10:44:29 FCO-00011  The step runMigrationMonitor with step key |NW_A

  • Is spec type customization possible?

    Between PLM4P's customization and extensibility capabilities, I know it can do a lot but this is probably a stretch. Is it possible to take a specification type, such as Material, and base a new "type" off of it? Where the Material spec type would re

  • Deselecting albums or songs from participating in shuffle mode

    I would like the ability to deselect certain albums or songs from participating in shuffle mode. I currently don't see a way to do that. How do you contact Apple with this type of a suggestion for a future release of iPod software?

  • Installing photoshop cs5 to second computer

    It's my understanding that the photoshop CS5 program I purchased a couple years ago can be used on two computers & I have only ever used it (rarely) on my macbook pro where it is currently installed - I have recently purchased an iMac and would like

  • Delivery Qty and OPEN Qty Field in SALES Order Delivery Reports.

    Dear All Experts. Please Help me for which field put for Delivery QTY. and it is necessary to calculate OPEN QTY. or we can put directly from field. i used this field for Order Qty : WMENG. Please Guide me. Thnks With Regards : Bhavesh Panchal.