AW: WebFlow service user

Wegert, Volker volker.wegert at helios-kliniken.de
Tue Aug 5 02:52:34 EDT 2014


Hello all,

just a (late) follow-up: SAP_WAPI_CREATE_EVENT_EXTENDED works, I’ve just had to work around two issues:

I needed to pass event parameters that contain a table. This is not possible using the parameter INPUT_CONTAINER, you have to prepare an IFS_XML_CONTAINER XSTRING. Is it common knowledge how to do this or something  worth blogging about? ☺

The second issue – which I still do not understand – is a problem with the RFC call:
This works:
  CALL FUNCTION 'SAP_WAPI_CREATE_EVENT_EXTENDED' DESTINATION l_rfcdest
    EXPORTING
      catid           = ls_lpor-catid
      typeid          = ls_lpor-typeid
      instid          = ls_lpor-instid
      event           = `MY_EVENT` " STRING!
    TABLES
      input_container = lt_container.
This does NOT work:
  CALL FUNCTION 'SAP_WAPI_CREATE_EVENT_EXTENDED' DESTINATION l_rfcdest
    EXPORTING
      catid           = ls_lpor-catid
      typeid          = ls_lpor-typeid
      instid          = ls_lpor-instid
      event           = 'MY_EVENT' " C
    TABLES
      input_container = lt_container.
Note the difference of backticks for a string literal (``) versus ‘common’ character. If you use a C literal, only the first character of the event name is transferred.

Best regards
  Volker

Von: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] Im Auftrag von Andy Curtis
Gesendet: Freitag, 9. Mai 2014 11:41
An: SAP Workflow Users' Group
Betreff: RE: WebFlow service user

Good to hear I've been of some help :)

If your 'remote' Wf Errors then just like any other Wf in Error, it will appear in the remote system in SWPR and Wf Admin should be monitoring this.  If your calling Wf is using 'dynamic parallel processing' then you could build something into this to deadline each leg (each leg I suggest could be the remote system id/Object Key), then each leg could have it's own deadlining .... and I imagine now you could get creative and imagine allsorts of things to do, but probably best to keep it simple.

Good luck, sounds like an interesting piece of work.

Andy Curtis



---------- Forwarded message ----------
From: "Wegert, Volker" <volker.wegert at helios-kliniken.de<mailto:volker.wegert at helios-kliniken.de>>
To: "SAP Workflow Users' Group" <sap-wug at mit.edu<mailto:sap-wug at mit.edu>>
Cc:
Date: Fri, 9 May 2014 06:46:25 +0000
Subject: AW: WebFlow service user
Andy,

Thanks for that hint, I’ll give this a try. The only thing I’m concerned about is what will happen if the sub-workflow aborts with some obscure error and no event will be transmitted back, but I think I can handle this. I will need to start the sub-workflow in multiple systems and await all of the results, which sounds like a use case for the table driven dynamic parallel processing described in the PW book. I’m unsure on how to match the request and response events, but that may simply be a case of “haven’t tried it yet”…

Best regards
  Volker Wegert

Von: sap-wug-bounces at mit.edu<mailto:sap-wug-bounces at mit.edu> [mailto:sap-wug-bounces at mit.edu<mailto:sap-wug-bounces at mit.edu>] Im Auftrag von Andy Curtis
Gesendet: Donnerstag, 8. Mai 2014 10:34
An: SAP Workflow Users' Group
Betreff: RE: WebFlow service user

I am doing something like this between SRM and ECC.  I found that the SAP_WAPI_CREATE_EVENT & SAP_WAPI_CREATE_EVENT_EXTENDED FM's are RFC enabled, so my SRM Wf has a task to call SAP_WAPI_CREATE_EVENT_EXTENDED in ECC to raise an Event in ECC and start a Wf there.  The next step in my SRM flow is a Wait for an Event which is triggered in a similar manner from ECC, and the SRM process continues

Andy Curtis

On Thu, May 8, 2014 at 9:06 AM, <sap-wug-request at mit.edu<mailto:sap-wug-request at mit.edu>> wrote:
Send SAP-WUG mailing list submissions to
        sap-wug at mit.edu<mailto: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<mailto:sap-wug-request at mit.edu>

You can reach the person managing the list at
        sap-wug-owner at mit.edu<mailto: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. WebFlow service user (Wegert, Volker)
   2. RE: WebFlow service user (Dart, Jocelyn)


---------- Forwarded message ----------
From: "Wegert, Volker" <volker.wegert at helios-kliniken.de<mailto:volker.wegert at helios-kliniken.de>>
To: "SAP Workflow Users' Group" <sap-wug at mit.edu<mailto:sap-wug at mit.edu>>
Cc:
Date: Thu, 8 May 2014 07:51:13 +0000
Subject: WebFlow service user
Hello,

I’m trying to configure a set of ABAP systems so that I can let a “master workflow” in one system start a “sub-workflow” in another system and wait for its completion. As far as I can see, http://help.sap.com/saphelp_470/helpdata/en/9b/9f9138d380f50fe10000009b38f8cf/content.htm (section “Sending a Wf-XML document to another SAP system and starting a workflow with feedback”) is the function I’m looking for. I’m trying to follow the steps outlined in http://help.sap.com/saphelp_470/helpdata/EN/cc/9f9138d380f50fe10000009b38f8cf/content.htm to configure the web server, and I’m unsure about two issues:

•         Is there a pre-defined role or profile that can be assigned to the service user? If not, is there a recommendation about the permissions required for the service user? Somehow I don’t think that opening an anonymous service with SAP_ALL is a good idea…

•         Since both user/password and client have to be entered in the service data – am I correct in assuming that if I need to connect to multiple clients in one system, I will have to create several copies of the SICF service that each point to a different client?

Thanks a lot
  Volker

________________________________________________
HELIOS IT Service GmbH
IT

Volker Wegert
Teamleiter SAP i.s.h.med - Entwicklung Konzern

Telefon:
Mobil:
E-Mail:


+49 30 9401-17338<tel:%2B49%2030%209401-17338>
+49 152 54777467<tel:%2B49%20152%2054777467>
volker.wegert at helios-kliniken.de<mailto:volker.wegert at helios-kliniken.de>


Schwanebecker Chaussee 50 - 13125 Berlin
Haus 211


Geschäftsführer: Dirk Herzberger
Sitz der Gesellschaft: Berlin
Handelsregister: AG Berlin Charlottenburg, HRB 101458 B



---------- Forwarded message ----------
From: "Dart, Jocelyn" <jocelyn.dart at sap.com<mailto:jocelyn.dart at sap.com>>
To: "SAP Workflow Users' Group" <sap-wug at mit.edu<mailto:sap-wug at mit.edu>>
Cc:
Date: Thu, 8 May 2014 08:05:48 +0000
Subject: RE: WebFlow service user
Hi Volker,
Just querying whether you wouldn’t rather try that in SAP NetWeaver BPM? Sounds like a better fit.
Rgds,
Jocelyn

From: sap-wug-bounces at mit.edu<mailto:sap-wug-bounces at mit.edu> [mailto:sap-wug-bounces at mit.edu<mailto:sap-wug-bounces at mit.edu>] On Behalf Of Wegert, Volker
Sent: Thursday, 8 May 2014 5:51 PM
To: SAP Workflow Users' Group
Subject: WebFlow service user

Hello,

I’m trying to configure a set of ABAP systems so that I can let a “master workflow” in one system start a “sub-workflow” in another system and wait for its completion. As far as I can see, http://help.sap.com/saphelp_470/helpdata/en/9b/9f9138d380f50fe10000009b38f8cf/content.htm (section “Sending a Wf-XML document to another SAP system and starting a workflow with feedback”) is the function I’m looking for. I’m trying to follow the steps outlined in http://help.sap.com/saphelp_470/helpdata/EN/cc/9f9138d380f50fe10000009b38f8cf/content.htm to configure the web server, and I’m unsure about two issues:

•         Is there a pre-defined role or profile that can be assigned to the service user? If not, is there a recommendation about the permissions required for the service user? Somehow I don’t think that opening an anonymous service with SAP_ALL is a good idea…

•         Since both user/password and client have to be entered in the service data – am I correct in assuming that if I need to connect to multiple clients in one system, I will have to create several copies of the SICF service that each point to a different client?

Thanks a lot
  Volker

________________________________________________
HELIOS IT Service GmbH
IT

Volker Wegert
Teamleiter SAP i.s.h.med - Entwicklung Konzern

Telefon:
Mobil:
E-Mail:


+49 30 9401-17338<tel:%2B49%2030%209401-17338>
+49 152 54777467<tel:%2B49%20152%2054777467>
volker.wegert at helios-kliniken.de<mailto:volker.wegert at helios-kliniken.de>


Schwanebecker Chaussee 50 - 13125 Berlin
Haus 211


Geschäftsführer: Dirk Herzberger
Sitz der Gesellschaft: Berlin
Handelsregister: AG Berlin Charlottenburg, HRB 101458 B

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20140805/45533f8a/attachment-0001.htm


More information about the SAP-WUG mailing list