Skip to Content
author's profile photo Former Member
Former Member

pass value from 1 webtemplate and run webtemplate2

Hi,

i have a web template1 that has query1 with characteristic "CUSTO" which gives results as follows when is run.

custO value

===========

custA 100

custB 200

custC 300

I have webtempalte2 that has query2 which also has characteristic "CUSTO". webtemplate2 default prints the output whenever it is run.

what am trying to achieve is, pass / filter each value of CUSTO from webtemplate1 to webtemplate2 and print outputs for each value.

simply this is what am trying to achieve.

I've a button in webtemplate1. if i click that button, webtemplate1 should first pass value 'custA' to webtempalte2 and run webtemplate2. secondly, 'custB' value should b passed from webtempalte1 to webtemplate2 and run webtemplate2. again, value 'custC' should b passed to webtemplate2 and should run webtemplate2. this has to repeat as many times as total number of customer numbers in webtemplate1 output.

I appreciate any kind of ideas.

hope it is clear.

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 25, 2004 at 06:28 AM

    Hi,

    here's my idea:

    As long as you don't use BW 3.5 you don't get so much information in your browser frontend. With BW 3.5 you could use the XML web item.

    With BW < 3.5 you should use the table interface.

    In the table Interface create a javascript function (method finished is most suited here) call WebTemplate 2 with the respective filter. To create the javascript array you will need to read the axis_data attribute

    docu to axis_data

    http://help.sap.com/saphelp_nw04/helpdata/en/52/4ea73ad9ccf101e10000000a11402f/frameset.htm

    docu to creating a javascript function in tableinterface

    http://help.sap.com/saphelp_nw04/helpdata/en/5f/e7393c0fc8486ce10000000a11402f/frameset.htm

    Heike

    Add comment
    10|10000 characters needed characters exceeded