Step type Web Activity and Web Dynpro (Mike Pokraka)

John Varughese johnchittazhath at gmail.com
Mon Dec 18 10:12:01 EST 2006


Hi,

If you are working with SAP system ECC 6.0.Following thread should help you
to resolve the issue.
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2778

 <https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3783>

If you are working with SAP system below ECC 6.0. Following thread should
help to resolve the issue.
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3783

Following is a scenario I did in sandbox which is working fine.
System Version EP 7.0 SP8, NW2004s, R/3 4.6C.


Since (transaction SWFVISU) does not exist in R/3 4.6C. I need to manually
create XML and load into the portal. When using an action handler, at
runtime work items appear in my UWL and have a link to start my Java
webdynpro.

<?xml version="1.0" encoding="utf-8"?>

<!DOCTYPE UWLConfiguration PUBLIC '-//SAP//UWL1.0//EN'
'uwl_configuration.dtd' [
  ]>
<UWLConfiguration version="1.0">
  <ItemTypes>
    <ItemType name="uwl.task.webflow.TS90100219.SHD012"
connector="WebFlowConnector" defaultView="DefaultView"
defaultAction="launchWebDynPro" executionMode="default">
      <ItemTypeCriteria systemId="SHD012" externalType="TS90100219"
connector="WebFlowConnector"/>
      <CustomAttributes>
        <CustomAttributeSource id="WEBFLOW_CONTAINER"
objectIdHolder="externalId" objectType="WebFlowContainer"
cacheValidity="default">
          <Attribute name="PathNumber" type="string" displayName="Path
Number"/>
          <Attribute name="ApproverLevel" type="string"
displayName="Approver  Level"/>
        </CustomAttributeSource>
        <CustomAttributeSource id="ABAP_BOR"
objectIdHolder="externalObjectId" objectType="ZPMT_GRID"
cacheValidity="default">
          <Attribute name="SalesOffice" type="string" displayName="Sales
Office"/>
          <Attribute name="ProductType" type="string" displayName="Product
Type"/>
          <Attribute name="User" type="string" displayName="Owner"/>
          <Attribute name="DocumentNumber" type="string"
displayName="Document  Number"/>
        </CustomAttributeSource>
      </CustomAttributes>
      <Actions>
        <Action name="launchWebDynPro" groupAction=""
handler="SAPWebDynproLauncher" returnToDetailViewAllowed="yes"
launchInNewWindow="yes"
launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
          <Properties>
            <Property name="WebDynproApplication" value="CompInfoApp"/>
            <Property name="WebDynproDeployableObject" value="sap.com/test
"/>
            <Property name="DynamicParameter" value="wi_id=${item.externalId
}&amp;SALESOFFICE=${item.SalesOffice}&amp;producttype=${item.ProductType
}&amp;documentnumber=${item.DocumentNumber}&amp;User=${item.User
}&amp;PathNumber=${item.PathNumber}&amp;ApproverLevel=${item.ApproverLevel
}"/>
            <Property name="System" value="SAP_LocalSystem"/>
          </Properties>
          <Descriptions default=""/>
        </Action>
      </Actions>
    </ItemType>
  </ItemTypes>
</UWLConfiguration>

You can use following coding in the dynpro app which is getting launched
from UWL to capture the work item Id.
Capturing the URL request parameter in the Webdynpro Application. Usually
this is the sample code to capture the Request parameter in Webdynpro for
java.

WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("Your
Request ID");
Want more help let me know.
Regards,
John.


On 12/14/06, sap-wug-request at mit.edu <sap-wug-request at mit.edu> wrote:
>
> Send SAP-WUG mailing list submissions to
>        sap-wug at mit.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://mailman.mit.edu/mailman/listinfo/sap-wug
> or, via email, send a message with subject or body 'help' to
>        sap-wug-request at mit.edu
>
> You can reach the person managing the list at
>        sap-wug-owner at mit.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of SAP-WUG digest..."
>
>
> Today's Topics:
>
>   1. RE: ERP2005: step type Web Activity and Web Dynpro (Markus Klein)
>   2. RE: ERP2005: step type Web Activity and Web Dynpro (Mike Pokraka)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 14 Dec 2006 10:42:06 +0100
> From: "Markus Klein" <Klein at abs-team.de>
> Subject: RE: ERP2005: step type Web Activity and Web Dynpro
> To: "SAP Workflow Users' Group" <sap-wug at mit.edu>
> Message-ID:
>        <8806DB63E3516243A433BC49E0ECF676354E85 at abs-sbs.abs-team.de>
> Content-Type: text/plain; charset="us-ascii"
>
> Hello Kjetil,
>
> if you are talking about passing parameters from the workflow to the Web
> Dynpro Application via the Workflow-Definition you are right, you cant
> pass them. But thats not a problem at all, as the Workitem ID is
> passed.. Thats all you need... In your WD Application get the url
> parameter wi_id and retrieve the current WI ID. Then use FM
> SAP_WAPI_READ_CONTAINER to access any container element you need....
>
> cheers,
> Markus
>
>
> _________________
>
> Markus Klein
> SAP Senior Consultant
>
> ABS Team GmbH
> Muehlenweg 65
> 37120 Bovenden
>
> Tel +49 551 820 33 0
> Mobil +49 151 126 23 047
> Email klein at abs-team.de
>
> 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 Kjetil Kilhavn
> Sent: Thursday, December 14, 2006 9:37 AM
> To: SAP Workflow Users' Group
> Subject: RE: ERP2005: step type Web Activity and Web Dynpro
>
>
> Ahhh... e-mails crossing each other here.
>
> My main concern is now parameters, and it worries me a bit that you say
> a dummy method will do. I hope that doesn't mean that there is no
> possibility to pass parameters. This may turn into an opportunity to
> create an ABAP Objects based workflow! That's a piece of good news among
> the bad news :-)
>
> I'll have to look into things.
> --
> Kjetil Kilhavn, Statoil OFT GBS BAS DEV SAP
>
>
>
> ________________________________
>
>        From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu]
> On Behalf Of Markus Klein
>        Sent: Thursday, December 14, 2006 9:23 AM
>        To: SAP Workflow Users' Group
>        Subject: RE: ERP2005: step type Web Activity and Web Dynpro
>
>
>        Hello Kjetil,
>
>        actually you dont need a own business object. All you need is
> for your Workfow-task which calls a WebDynpro Application a dummy method
> which does do anything. You could use a simple abap class which
> implements the interface if_workflow. Very easy to design. Take the
> standard task 12300097, which the absence request workflow uses for the
> Approveal activity (its a WebDynpro application). The rest of config is
> done, as Jocely already stated, with transaction swfvisu.
>
>        cheers,
>        Markus
>
>
>        _________________
>
>        Markus Klein
>        SAP Senior Consultant
>
>        ABS Team GmbH
>        Muehlenweg 65
>        37120 Bovenden
>
>        Tel +49 551 820 33 0
>        Mobil +49 151 126 23 047
>        Email klein at abs-team.de
>
>        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 Kjetil Kilhavn
>        Sent: Thursday, December 14, 2006 9:07 AM
>        To: SAP Workflow Users' Group
>        Subject: RE: ERP2005: step type Web Activity and Web Dynpro
>
>
>        Bijay, I forgot to inform about our reason for trying this
> approach: our Guided Procedure system won't be available until it is too
> late for the first release cycle. You know how managers sometimes like
> to brag about things they don't have a clue about? This is one of these
> cases, where someone high above us working ants has promised delivery in
> February.
>
>        And sometimes (workflow) developers like to brag that "anything
> can be done" in workflow. That's me in this case :-(
>
>        Jocelyn, you just ruined my day... and probably next week. But
> thanks anyway ;-)
>        Not good news at all, as it seems I will have to create my own
> business object if we are going down this road. At least I can't seem to
> find anything relevant in SWO1.
>
>        --
>        Kjetil Kilhavn, Statoil OFT GBS BAS DEV SAP
>
>
>
>
> ________________________________
>
>                From: sap-wug-bounces at mit.edu
> [mailto:sap-wug-bounces at mit.edu] On Behalf Of Dart, Jocelyn
>                Sent: Thursday, December 14, 2006 12:04 AM
>                To: SAP Workflow Users' Group
>                Subject: RE: ERP2005: step type Web Activity and Web
> Dynpro
>
>
>                Actually you don't need Guided Procedures to call a
> WebDynpro application.
>
>                You can do that easily enough from transaction SWFVISU,
> UWL XML configuration of the launch mechanism for that task, or
> transaction WF_EXTSRV.
>
>                The "web activity" step is to do with WF-XML - and is
> not relevant to simply calling a WebDynpro application.
>
>
>                Regards,
>                Jocelyn Dart
>                Senior Consultant
>                SAP Australia Pty Ltd.
>
>
>
>
> ________________________________
>
>                From: sap-wug-bounces at mit.edu
> [mailto:sap-wug-bounces at mit.edu] On Behalf Of Shrestha, Bijay
>                Sent: Thursday, 14 December 2006 5:57 AM
>                To: SAP Workflow Users' Group
>                Subject: RE: ERP2005: step type Web Activity and Web
> Dynpro
>
>
>                Hi Kjetil,
>
>                If you're going to make a new workflow by calling a Web
> Dynpro application, I think it's better to design in Guided Procedure.
> The prerequisite is Netweaver Portal.
>
>                It's lot easier to design a Guided Procedure which will
> give you possiblility to call any webie program e.g. Webdynpro ABAP,
> WebDynpro Java, iView, iView from Visual composer etc.
>
>                Bijay
>
>
>                        -----Original Message-----
>                        From: sap-wug-bounces at mit.edu on behalf of
> Kjetil Kilhavn
>                        Sent: Wed 12/13/2006 11:59 AM
>                        To: SAP Workflow User's Group
>                        Cc:
>                        Subject: ERP2005: step type Web Activity and Web
> Dynpro
>
>
>                        My intuition tells me it should be possible to
> call a Web DynPro screen from a web activity step - and preferrably even
> a Web DynPro for ABAP and not just the Java version.
>
>                        However, during my attempt in our sandbox system
> I have become quite depressed. I can't even get a simple workflow where
> the URL is fixed (http://www.google.com/) working. The single-test of
> the step works, but not the workflow.
>
>                        When I try to test it fails with error message
> SWP135 (Unable to determine work item type for step at node 0000000004).
> That message looks just plain stupid in my eyes, I thought I pretty much
> defined the step type when I selected the "Web activity" icon, but
> perhaps there is something I have missed.
>
>                        Our config seems OK, transaction SWU3 shows
> green lights everywhere it should matter (definition environment and
> runtime environment).
>
>                        The OSS search doesn't help me, nothing is
> returned for <SWP135>, nothing was returned for <"determine work item
> type">. When searching for <determine work item type> a lot of messages
> about other items and types were found. So I restricted it to area
> BC-BMT and got it reduced to 16 messages, of which zero were relevant
> when we don't consider "Analysis for workflow problems" (322526) and
> other generic notes relevant.
>
>                        I have also tried SWUD with the trace on.
> Unfortunately, I can't really say I felt enlightened after looking at
> the trace.
>
>                        Anyone care to help a clueless beginner? Not
> that I think this WWW thing is here to stay anyway...
>
>                        --
>                        Kjetil Kilhavn, Statoil OFT GBS BAS DEV SAP
>
>
>
>
> -------------------------------------------------------------------
>        The information contained in this message may be CONFIDENTIAL
> and is
>        intended for the addressee only. Any unauthorised use,
> dissemination of the
>        information or copying of this message is prohibited. If you are
> not the
>        addressee, please notify the sender immediately by return e-mail
> and delete
>        this message.
>        Thank you.
>
> -------------------------------------------------------------------
> The information contained in this message may be CONFIDENTIAL and is
> intended for the addressee only. Any unauthorised use, dissemination of
> the
> information or copying of this message is prohibited. If you are not the
> addressee, please notify the sender immediately by return e-mail and
> delete
> this message.
> Thank you.
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://mailman.mit.edu/pipermail/sap-wug/attachments/20061214/f08367d3/attachment-0001.htm
>
> ------------------------------
>
> Message: 2
> Date: Thu, 14 Dec 2006 09:47:35 -0000 (UTC)
> From: "Mike Pokraka" <asap at workflowconnections.com>
> Subject: RE: ERP2005: step type Web Activity and Web Dynpro
> To: "SAP Workflow Users' Group" <sap-wug at mit.edu>
> Message-ID:
>        <
> 59451.199.4.27.122.1166089655.squirrel at secure.workflowconnections.com>
>
> Content-Type: text/plain;charset=iso-8859-1
>
> Hi Kjetil,
>
> You're on the right track. WF_EXTSRV does the job for you. Enter your URL
> and all the details and hit 'Generate Task'. It will generate a task based
> on e.g. WEBSERVICE.PROCESSDIALOG for a dialog call mode. Create a few and
> test away.
>
> The only annoying thing on my current system (620) is that it's
> client-dependent, meaning the wizard creates some customising table
> entries which need to be coppied manually to other clients (name slips my
> mind at the mo, there's info in the archives). Not sure if that's changed
> in NW04/s.
>
> Cheers,
> Mike
>
>
>
> On Thu, December 14, 2006 08:33, Kjetil Kilhavn wrote:
> > Hmmm... I may not have to create my own business object. I thought that
> > without UWL the options Jocelyn mentioned were irrelevant. We don't use
> > Universal Worklist. I know.... I've been trying for a year to get that
> > going, but the business won't request it - not until shortly before they
> > want it available, anyway.
> >
> > Perhaps the SWFVISU features can give me what I need. I see that e.g.
> > task TS40007901 (configured in SWFVISU) has some parameters, so binding
> > should also be possible. So the next question is: are the SWFVISU
> > settings relevant irrespective of "mode of engagement", i.e. no matter
> > how you execute the work item? Our idea is to use the notification
> > (RSWUWFML2 *or* extended notifications if we find the time to learn how
> > this works) for work items and send notifications with the attachment
> > which lets you execute the work item directly.
> >
> > WF_EXTSRV looks promising too. Guess it is time to do some reading.
> > --
> > Kjetil Kilhavn, Statoil OFT GBS BAS DEV SAP
> >
> >
> >
> >
> > ________________________________
> >
> >       From: Kjetil Kilhavn
> >       Sent: Thursday, December 14, 2006 9:07 AM
> >       To: 'SAP Workflow Users' Group'
> >       Subject: RE: ERP2005: step type Web Activity and Web Dynpro
> >
> >
> >       Bijay, I forgot to inform about our reason for trying this
> > approach: our Guided Procedure system won't be available until it is too
> > late for the first release cycle. You know how managers sometimes like
> > to brag about things they don't have a clue about? This is one of these
> > cases, where someone high above us working ants has promised delivery in
> > February.
> >
> >       And sometimes (workflow) developers like to brag that "anything
> > can be done" in workflow. That's me in this case :-(
> >
> >       Jocelyn, you just ruined my day... and probably next week. But
> > thanks anyway ;-)
> >       Not good news at all, as it seems I will have to create my own
> > business object if we are going down this road. At least I can't seem to
> > find anything relevant in SWO1.
> >
> >       --
> >       Kjetil Kilhavn, Statoil OFT GBS BAS DEV SAP
> >
> >
> >
> >
> > ________________________________
> >
> >               From: sap-wug-bounces at mit.edu
> > [mailto:sap-wug-bounces at mit.edu] On Behalf Of Dart, Jocelyn
> >               Sent: Thursday, December 14, 2006 12:04 AM
> >               To: SAP Workflow Users' Group
> >               Subject: RE: ERP2005: step type Web Activity and Web
> > Dynpro
> >
> >
> >               Actually you don't need Guided Procedures to call a
> > WebDynpro application.
> >
> >               You can do that easily enough from transaction SWFVISU,
> > UWL XML configuration of the launch mechanism for that task, or
> > transaction WF_EXTSRV.
> >
> >               The "web activity" step is to do with WF-XML - and is
> > not relevant to simply calling a WebDynpro application.
> >
> >
> >               Regards,
> >               Jocelyn Dart
> >               Senior Consultant
> >               SAP Australia Pty Ltd.
> >
> >
> >
> >
> > ________________________________
> >
> >               From: sap-wug-bounces at mit.edu
> > [mailto:sap-wug-bounces at mit.edu] On Behalf Of Shrestha, Bijay
> >               Sent: Thursday, 14 December 2006 5:57 AM
> >               To: SAP Workflow Users' Group
> >               Subject: RE: ERP2005: step type Web Activity and Web
> > Dynpro
> >
> >
> >               Hi Kjetil,
> >
> >               If you're going to make a new workflow by calling a Web
> > Dynpro application, I think it's better to design in Guided Procedure.
> > The prerequisite is Netweaver Portal.
> >
> >               It's lot easier to design a Guided Procedure which will
> > give you possiblility to call any webie program e.g. Webdynpro ABAP,
> > WebDynpro Java, iView, iView from Visual composer etc.
> >
> >               Bijay
> >
> >
> >                       -----Original Message-----
> >                       From: sap-wug-bounces at mit.edu on behalf of
> > Kjetil Kilhavn
> >                       Sent: Wed 12/13/2006 11:59 AM
> >                       To: SAP Workflow User's Group
> >                       Cc:
> >                       Subject: ERP2005: step type Web Activity and Web
> > Dynpro
> >
> >
> >                       My intuition tells me it should be possible to
> > call a Web DynPro screen from a web activity step - and preferrably even
> > a Web DynPro for ABAP and not just the Java version.
> >
> >                       However, during my attempt in our sandbox system
> > I have become quite depressed. I can't even get a simple workflow where
> > the URL is fixed (http://www.google.com/) working. The single-test of
> > the step works, but not the workflow.
> >
> >                       When I try to test it fails with error message
> > SWP135 (Unable to determine work item type for step at node 0000000004).
> > That message looks just plain stupid in my eyes, I thought I pretty much
> > defined the step type when I selected the "Web activity" icon, but
> > perhaps there is something I have missed.
> >
> >                       Our config seems OK, transaction SWU3 shows
> > green lights everywhere it should matter (definition environment and
> > runtime environment).
> >
> >                       The OSS search doesn't help me, nothing is
> > returned for <SWP135>, nothing was returned for <"determine work item
> > type">. When searching for <determine work item type> a lot of messages
> > about other items and types were found. So I restricted it to area
> > BC-BMT and got it reduced to 16 messages, of which zero were relevant
> > when we don't consider "Analysis for workflow problems" (322526) and
> > other generic notes relevant.
> >
> >                       I have also tried SWUD with the trace on.
> > Unfortunately, I can't really say I felt enlightened after looking at
> > the trace.
> >
> >                       Anyone care to help a clueless beginner? Not
> > that I think this WWW thing is here to stay anyway...
> >
> >                       --
> >                       Kjetil Kilhavn, Statoil OFT GBS BAS DEV SAP
> >
> >
> >
> > -------------------------------------------------------------------
> > The information contained in this message may be CONFIDENTIAL and is
> > intended for the addressee only. Any unauthorised use, dissemination of
> > the
> > information or copying of this message is prohibited. If you are not the
> > addressee, please notify the sender immediately by return e-mail and
> > delete
> > this message.
> > Thank you.
> > _______________________________________________
> > SAP-WUG mailing list
> > SAP-WUG at mit.edu
> > http://mailman.mit.edu/mailman/listinfo/sap-wug
> >
>
>
>
>
> ------------------------------
>
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>
>
> End of SAP-WUG Digest, Vol 25, Issue 34
> ***************************************
>



-- 
1 Thessalonians 4:11, 12
Make it your ambition to lead a quiet life, to mind your own business and to
work with your hands, just as we told you, so that your daily life may win
the respect of outsiders and so that you will not be dependent on anybody.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20061218/4ad4581c/attachment.htm


More information about the SAP-WUG mailing list