Calling a BSP (4.7 Backend) from a UWL WI in a EP6.0 (NW04 SP16)

Markus Klein Klein at abs-team.de
Thu Apr 20 07:27:03 EDT 2006


Hello Natasha,
 
one final question (i hope) :)
 
Useing your solution works great! Just, how does it work when you use a
View in your BSP appl. A View doesnt have an "auto" checkbox?
 
 
regards,
Markus
 

______________________________________

ABS Team GmbH
SAP-Consulting, Human Capital Management
Muehlenweg 65
37120 Bovenden

Markus Klein
SAP Consultant
eMail:   klein at abs-team.de
Tel.:      +49 551 820 33 0
Mobil:   +49 151 126 23 047
Fax:      +49 551 820 33 99
            www.abs-team.com <http://www.abs-team.com/> 

 

________________________________

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Baunach, Natasha R
Sent: Wednesday, April 12, 2006 4:55 PM
To: SAP Workflow Users' Group
Subject: RE: Calling a BSP (4.7 Backend) from a UWL WI in a EP6.0 (NW04
SP16)



Markus,

 

No, you do not need to explicitly pass work item id to BSP application
from URL.  

 

The code I provided you will get you your work item id.  However, you
cannot put it in the OnCreate event since sapwfcburl has not bee
populated yet.  You can use it in the OnInitialization though.

 

________________________________

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Markus Klein
Sent: Wednesday, April 12, 2006 12:14 AM
To: SAP Workflow Users' Group
Subject: RE: Calling a BSP (4.7 Backend) from a UWL WI in a EP6.0 (NW04
SP16)

 

Hello Natasha,

 

thx again for you valuable reply :) I see using BSP is a bit different
from using Web Dynpros in interacting with the UWL....

 

So i do not need to pass the WI-ID from the UWL to the BSP application,
like i have to when useing Web Dynpro?

I can just us the code you provided to get the WI-ID, by just passing
the callback_url to the static method you posted? What url has to be
passed then? Just using the callback handler doest seem to work as the
relationship to the WI in question doesnt exists..

 

looking forward to your reply :)

 

best regards

Markus

 

______________________________________

ABS Team GmbH
SAP-Consulting, Human Capital Management
Muehlenweg 65
37120 Bovenden

Markus Klein
SAP Consultant
eMail:   klein at abs-team.de
Tel.:      +49 551 820 33 0
Mobil:   +49 151 126 23 047
Fax:      +49 551 820 33 99
            www.abs-team.com <http://www.abs-team.com/> 

 

 

________________________________

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Baunach, Natasha R
Sent: Tuesday, April 11, 2006 6:02 PM
To: SAP Workflow Users' Group
Subject: RE: Calling a BSP (4.7 Backend) from a UWL WI in a EP6.0 (NW04
SP16)

In your BSP page, on page attributes tab, create a parameter called
sapwfcburl with type string.  Be sure to check auto box.  The use the
following code in the OnInitialization event, or wherever you need it to
get WI_ID.  You can use that workitem id to call terminating event, if
needed.

 

DATA:  lv_wi_id TYPE sww_wiid.

 

CLEAR lv_wi_id.

 

CALL METHOD cl_swf_ifs_ws_export=>get_callback_ctx_params

  EXPORTING

    callback_url = sapwfcburl

  IMPORTING

    wi_id        = lv_wi_id.

 

________________________________

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Markus Klein
Sent: Tuesday, April 11, 2006 8:21 AM
To: SAP Workflow Users' Group
Subject: RE: Calling a BSP (4.7 Backend) from a UWL WI in a EP6.0 (NW04
SP16)

 

Hello Natasha,

 

thx for the hint, worked great :) Just how can i pass the WI-ID from the
UWL to the BSP? Using Web Dynpro (swfvisu) i can use the dynparam
parameter WI_ID=${item.externalid}.

 

regards

Markus

 

______________________________________

ABS Team GmbH
SAP-Consulting, Human Capital Management
Muehlenweg 65
37120 Bovenden

Markus Klein
SAP Consultant
eMail:   klein at abs-team.de
Tel.:      +49 551 820 33 0
Mobil:   +49 151 126 23 047
Fax:      +49 551 820 33 99
            www.abs-team.com <http://www.abs-team.com/> 

 

 

________________________________

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Baunach, Natasha R
Sent: Tuesday, April 11, 2006 5:12 PM
To: SAP Workflow Users' Group
Subject: RE: Calling a BSP (4.7 Backend) from a UWL WI in a EP6.0 (NW04
SP16)

Markus,

 

Have you configured transaction WF_HANDCUST in your backend?  Usually,
you would have something like this:

Log: either http or https

Host: YourSystemServer

Port: 8000 (whatever actual port you use)

Path: /sap/bc/webflow/

Handler name: wshandler

 

Save, generate URL and test.

 

Fill out similar info for Launch Handler, Callback Handler, Callback
Dialog.

 

Then go back to your Portal UWL config and re-register the items.  The
value for your webservice_url will be
http(s)://YourSystermServer:8000/sap/bc/webflow/wshandler

 

This should work for you.

 

Natasha

 

________________________________

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Markus Klein
Sent: Tuesday, April 11, 2006 1:39 AM
To: sap-wug at mit.edu
Subject: Calling a BSP (4.7 Backend) from a UWL WI in a EP6.0 (NW04
SP16)

 

Im new to this user group, so hello everbody :)

 

I have a question about calling a BSP from the UWL. I have uploaded a
XML configuration for the UWL

 

    <ItemType connector="WebFlowConnector"
defaultAction="launchWSHandler" defaultView="webflowView"
executionMode="pessimistic"
name="uwl.task.webflow.TS99500001.XXX_XXX_CLNTXXX">
      <ItemTypeCriteria connector="WebFlowConnector"
externalType="TS99500001" systemId="XXX_XXX_CLNTXXX"></ItemTypeCriteria>
      <Actions>
        <Action groupAction="no" handler="XhandlerLauncher"
launchInNewWindow="no" name="launchWSHandler"
returnToDetailViewAllowed="yes">
          <Properties>
            <Property name="webservice_url"
value="testtesttest"></Property>
            <Property name="display_order_priority"
value="5"></Property>
          </Properties>
          <Descriptions default=""></Descriptions>
        </Action>
      </Actions>
    </ItemType>

 

As webservice_url i have added a test value, just to see what will
happening when executing a WI in the UWL. 

 

I get the following error:

Portal-Runtimeerror:

...

iView not found: testtesttest

 

So the question i have is. What parameter do i have to enter for
"webserver" at the XML Config. The address of an iView in the pdc which
calls the BSP, or the address to the BSP itself? And if its an iView,
how is the parameter mapping working, as i have to pass the WI-ID to the
BSP application?

 

best regards,

Markus

______________________________________

ABS Team GmbH
SAP-Consulting, Human Capital Management
Muehlenweg 65
37120 Bovenden

Markus Klein
SAP Consultant
eMail:   klein at abs-team.de
Tel.:      +49 551 820 33 0
Mobil:   +49 151 126 23 047
Fax:      +49 551 820 33 99
            www.abs-team.com <http://www.abs-team.com/> 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20060420/3efde9b4/attachment.htm


More information about the SAP-WUG mailing list