AW: Showing attributes of the leading object of a WF Item in theWFItem preview in the Business Workplace

Mintchev Alexander, Mag. Alexander.Mintchev at biac.at
Thu Feb 21 09:37:58 EST 2013


Hello Tiberiu Negreanu!

Thank you for your response!

Thank you the rest  for your help also!

I solved the problem by creating the following functional module:

FUNCTION /WSV/CM_RET_PAYM_ERR_DETAILS.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*"  IMPORTING
*"     REFERENCE(I_INFO) TYPE  SWR_WIPR_I
*"  EXPORTING
*"     REFERENCE(E_INFO) TYPE  SWR_WIPR_E
*"----------------------------------------------------------------------
include <cntn01>.

    DATA:   l_icl_act LIKE SWR_OBJECT,
            L_RUNTIME     TYPE SWC_OBJECT,
            L_OBJECT      LIKE SWOTOBJID.


      CALL FUNCTION 'SAP_WAPI_GET_OBJECTS'
           EXPORTING
                WORKITEM_ID    = i_info-WI_ID
           IMPORTING
                LEADING_OBJECT = l_icl_act
*               return_code    =
*          TABLES
*               OBJECTS        =
*               MESSAGE_LINES  =
*               MESSAGE_STRUCT =
       .

      MOVE l_icl_act TO L_OBJECT.
      SWC_OBJECT_FROM_PERSISTENT L_OBJECT L_RUNTIME.

      DATA: lv_claim type   ICLACTIVITY-claim,
            lv_subclaim type  ICLACTIVITY-subclaim,
            lv_activity type  ICLACTIVITY-ACTNUMBER,
            lv_subobject type ICL_SUBOBJECTA.

      SWC_GET_PROPERTY L_RUNTIME 'Claim'      lv_claim.
      SWC_GET_PROPERTY L_RUNTIME 'Subclaim'   lv_subclaim.
      SWC_GET_PROPERTY L_RUNTIME 'Activity'   lv_activity.

.......................CONTENTS SKIPPED .......................

   data: lv_stat_reason type c length 255,
            lv_error_message type c length 255.

      select  single STATUS_REASON ERROR_MESSAGE
        into (lv_stat_reason, lv_error_message)

        from /WSV/CM_RET_PAYM

        where claim = lv_claim
        and subclaim = lv_subclaim
        and SUBOBJECT = lv_subobject.

      if ( lv_stat_reason is not INITIAL ) OR ( lv_error_message is not INITIAL ).

         append '<html><head><title>Errors for the Leading Object</title>'
             "#EC NOTEXT
             to e_info-htmllines.

....................... REST OF THE CONTENTS SKIPPED .......................



This funciton module is called in the section "Adaption of work item preview in Business Workplace"  of the "Work Item Display" Tab page in the Workflow Builder, as shown in the screenshot "WF-Item_Display_Adaptation.PNG"

The WF Item display in the business workplace is shown in "WF_Item_Preview_in_Business_Workplace.PNG"



All the best!


Mit freundlichen Grüßen / Kind regards:

Alexander Mintchev

SAP Workflow Consultant

AM Services Team

______________________________________________

BIAC - Business Insurance Application Consulting GmbH

1020 Wien, Obere Donaustraße 63
Handelsgericht Wien, FN 268143d

Tel: +43 (0) 50 350 26495
Fax: +43 (0) 50 350 99 25613
mailto:alexander.mintchev at biac.at

http://www.biac.at<http://www.biac.at/>

Diese E-Mail (und ihre Anhänge) ist ausschließlich für die/den darin genannte/n Empfängerin/er bestimmt. Sie kann rechtlich geschützte und vertrauliche Informationen enthalten. Wenn Sie diese Nachricht irrtümlich erhalten oder aus anderen Gründen nicht die/der bestimmungsgemäße Empfängerin/er sind, vernichten Sie diese Nachricht (einschließlich ihrer Anhänge) und allfällige
Vervielfältigungen davon unverzüglich.



________________________________
Von: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] Im Auftrag von Negreanu, Tiberiu
Gesendet: Dienstag, 19. Februar 2013 13:08
An: SAP Workflow Users' Group
Betreff: RE: Showing attributes of the leading object of a WF Item in theWFItem preview in the Business Workplace

I've made the same mistake as Richa interpreting your problem, I hope I'm not doing it again :D

You can read a container element at runtime with a couple of function modules. One of those is SWW_WI_CONT_READ_SINGLE_OBJECT, best suited to your need as far as I can tell. You know the WI ID, you know the leading object's name (as a container element) so you can get its instance with this function module. You can then interrogate the attributes of the object with the usual BOR "swc" macros from <cntn01>.

I hope I was of some assistance.


Toate cele bune / Best regards / Mit freundlichen Grüssen / Cordialement,

Tiberiu Negreanu
Senior SAP Development Consultant
Near Shore Center Romania, SAP Consulting
11-15 Tipografilor,
A1/LA Building, 2nd Floor,
013714, 1 Bucharest
T   +40 374 116 874 | M +40 756 036 088 | F +40 312 285 909
E: tiberiu.negreanu at sap.com<mailto:tiberiu.negreanu at sap.com>
http://www.sap.ro<http://www.sap.ro/>
[Description: ESC_Banner_2013]



From: Mintchev Alexander, Mag. [mailto:Alexander.Mintchev at biac.at]
Sent: 19 February 2013 10:15
To: 'SAP Workflow Users' Group'
Subject: AW: Showing attributes of the leading object of a WF Item in the WFItem preview in the Business Workplace

Hello Richa!

Thank you for you response.

Your suggestion does not address my question.

I meant how to get the leading object of a WF Item in a function module that can be later used in the section "Adaption of work item preview in Business Workplace"  of the "Work Item Display" Tab page in the Workflow Builder, as shown in the screenshot

Anny help would be welcome




Mit freundlichen Grüßen / Kind regards:

Alexander Mintchev

SAP Workflow Consultant

AM Services Team

______________________________________________

BIAC - Business Insurance Application Consulting GmbH

1020 Wien, Obere Donaustraße 63
Handelsgericht Wien, FN 268143d

Tel: +43 (0) 50 350 26495
Fax: +43 (0) 50 350 99 25613
mailto:alexander.mintchev at biac.at

http://www.biac.at<http://www.biac.at/>

Diese E-Mail (und ihre Anhänge) ist ausschließlich für die/den darin genannte/n Empfängerin/er bestimmt. Sie kann rechtlich geschützte und vertrauliche Informationen enthalten. Wenn Sie diese Nachricht irrtümlich erhalten oder aus anderen Gründen nicht die/der bestimmungsgemäße Empfängerin/er sind, vernichten Sie diese Nachricht (einschließlich ihrer Anhänge) und allfällige
Vervielfältigungen davon unverzüglich.


________________________________
Von: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] Im Auftrag von Richa Gupta
Gesendet: Dienstag, 19. Februar 2013 04:52
An: SAP Workflow Users' Group
Betreff: Re: Showing attributes of the leading object of a WF Item in the WFItem preview in the Business Workplace
Hi Alexander,

If i have understood your requirement correctly, then I would suggest the following solution :

To get the leading object attributes in workitem preview in Business Workplace, you just copy the standard task if you were using so or create your custom task and create the containers in this task with the same type as that for leading object attributes.

Now, change the description of the task and use the task containers in its description wherever you want to display the leading object attributes.

Now, in the binding of workflow to task, map the leading object attributes with the task containers.

Trigger your workflow so that you get the values in leading object and then you will get the attributes in workitem preview in your business workplace.

Warm Regards,
Richa Gupta
On Mon, Feb 18, 2013 at 9:53 PM, Mintchev Alexander, Mag. <Alexander.Mintchev at biac.at<mailto:Alexander.Mintchev at biac.at>> wrote:

Dear SAP WUGGERS!

Do you know whether (and how) it is possible to show some of the attributes of the leading object of a workflow item in its preview in the Business Workplace?

I found some information about showing the attributes of the leading object of a workflow item in a step-specific tab page for the worfklow item display

http://help.sap.com/saphelp_nw04/helpdata/EN/ca/be82c4ef2311d195280000e82dec10/content.htm


And I wonder whether (and how) this could work for its preview in the Business Workplace.

Thank you!



Mit freundlichen Grüßen / Kind regards:

Alexander Mintchev
SAP Workflow Consultant
AM Services Team
______________________________________________

BIAC - Business Insurance Application Consulting GmbH
1020 Wien, Obere Donaustraße 63
Handelsgericht Wien, FN 268143d
Tel: +43 (0) 50 350 26495<tel:%2B43%20%280%29%2050%20350%2026495>
Fax: +43 (0) 50 350 99 25613<tel:%2B43%20%280%29%2050%20350%2099%2025613>
mailto:alexander.mintchev at biac.at
http://www.biac.at

Diese E-Mail (und ihre Anhänge) ist ausschließlich für die/den darin genannte/n Empfängerin/er bestimmt. Sie kann rechtlich geschützte und vertrauliche Informationen enthalten. Wenn Sie diese Nachricht irrtümlich erhalten oder aus anderen Gründen nicht die/der bestimmungsgemäße Empfängerin/er sind, vernichten Sie diese Nachricht (einschließlich ihrer Anhänge) und allfällige
Vervielfältigungen davon unverzüglich.




_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu<mailto:SAP-WUG at mit.edu>
http://mailman.mit.edu/mailman/listinfo/sap-wug


*** eSafe scanned this email for malicious content ***
*** IMPORTANT: Do not open attachments from unrecognized senders  ***

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20130221/b2ca46ee/attachment-0001.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 36875 bytes
Desc: image001.jpg
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20130221/b2ca46ee/attachment-0001.jpg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WF-Item_Display_Adaptation.PNG
Type: image/png
Size: 37210 bytes
Desc: WF-Item_Display_Adaptation.PNG
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20130221/b2ca46ee/attachment-0002.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WF_Item_Preview_in_Business_Workplace.PNG
Type: image/png
Size: 95608 bytes
Desc: WF_Item_Preview_in_Business_Workplace.PNG
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20130221/b2ca46ee/attachment-0003.png


More information about the SAP-WUG mailing list