on 03-18-2015 6:37 AM
Hello to all,
We are implementing HR Renewal 2.0 FP2 on a Gateway Hub setup.
The TASKPROCESSING IW_PGW component was configured and the workflow from the Backend are showing up and when clicked the approval task is displaying the new UI5 approval screen (which is nice :-).
The only issue so far is the Missing image / icon for the Workflow system as shown in the screen shot.
Using Httwatch, there are no error. Anyone experienced this similar issue?
I've implement BADI and employee photo display properly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Thanet Siriwetwarawut,
Greetings!
Could you please help us with the solution?
I tried with many different logics, but it didnt work.
1. Problem is with creating filters. in the link, it asks us to Select the PROVIDER_ID and the TASK_DEF_ID rows, but i could see only PROVIDER_ID.
2. in the method, i am not able to pass the image value to the parameter.
Please help me.
Regards,
Shankar
Dear Thanet Siriwetwarawut,,
Greetings!
Thanks a ton for your reply. Finally we could resolve the issue. and now i am able to see the Employee photo in My Approval lane.
Regards,
Shankar
Could you please let me know how to call function HR_IMAGE_EXISTS through Gateway using BADI /IWPGW/BADI_TGW_USER_DETAIL? I cannot find this function inside Gateway. If you can, please share the parameters to call as well.
Thanks a lot
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Li Jing,
Please find the code for your query.
Revert if there is any clarification.
DATA: l_pernr TYPE persno,
l_exists TYPE c,
ls_connect_info TYPE toav0,
lt_binarchivobject TYPE STANDARD TABLE OF tbl1024,
ls_binarchivobject TYPE tbl1024,
l_xstring TYPE string,
l_xstring_temp TYPE string,
ls_key_tab TYPE /iwbep/s_mgw_name_value_pair,
l_doc_type TYPE saedoktyp.
READ TABLE it_key_tab INTO ls_key_tab INDEX 1.
IF sy-subrc EQ 0.
SELECT SINGLE pernr
INTO l_pernr
FROM pa0105
WHERE subty = '0001' AND
begda LE sy-datum AND
endda GE sy-datum AND
usrid = ls_key_tab-value.
ENDIF.
CALL FUNCTION 'HR_IMAGE_EXISTS'
EXPORTING
p_pernr = l_pernr
p_begda = sy-datum
p_endda = sy-datum
IMPORTING
p_exists = l_exists
p_connect_info = ls_connect_info
EXCEPTIONS
error_connectiontable = 1
OTHERS = 2.
IF sy-subrc <> 0.
* Implement suitable error handling here
ELSE.
IF l_exists EQ '1' AND ls_connect_info IS NOT INITIAL.
l_doc_type = ls_connect_info-ar_object.
CALL FUNCTION 'ARCHIVOBJECT_GET_TABLE'
EXPORTING
archiv_id = ls_connect_info-archiv_id
document_type = l_doc_type "ls_connect_info-ar_object
archiv_doc_id = ls_connect_info-arc_doc_id
TABLES
binarchivobject = lt_binarchivobject
EXCEPTIONS
error_archiv = 1
error_communicationtable = 2
error_kernel = 3
OTHERS = 4.
IF sy-subrc <> 0.
* Implement suitable error handling here
ELSE.
LOOP AT lt_binarchivobject INTO ls_binarchivobject.
l_xstring_temp = ls_binarchivobject-line.
CONCATENATE l_xstring l_xstring_temp INTO l_xstring.
ENDLOOP.
ENDIF.
ENDIF.
ENDIF.
cs_user_picture_stream-value = l_xstring.
Regards
CRANGV
Thanks a lot CRANGV. Yes, this part works fine.
Another question, In the Gateway side, the BADI /IWPGW/IF_TGW_USER_DETAIL~GET_USER_PICTURE_STREAM has been called only once. Inside it_key_tab, there is only 1 line with WF-BATCH as user name . I think we should apply OSS note 2108489 - Replacing WF-BATCH as work item initiator with user?
I will try and let you know.
Thanks again.
CRANGV,
OSS note 2108489 has been
applied, but it does not resolve our issue. I'm always seeing WF-BATCH in table
it_key_tab on the side of Gateway.
If I have 3 employees, I
should display 3 different photos, but BADI
/IWPGW/IF_TGW_USER_DETAIL~GET_USER_PICTURE_STREAM has been called only once.
How could I display
different photos for each employee?
Thanks a lot
Dear Li JING,
Greetings!
After SNOTE Implementation, did you perform the manual activity? Below given are the steps to be performed after SNOTE implementation.
after SNOTE implementation:
Since the workflow system cannot know who the initiator of a work item should be, you must model this, if necessary.
When you create or change a workflow definition, you can set a value for "sap.bc.bmt .wfm .initiator" for dialog steps in the "Properties" tab page. This can be an expression that refers to a field in the workflow container. An F4 input help is available. A user name (without US) is expected at runtime. This is stored in the field WI_CRUSER of the work item header. The value is displayed as "Created by" in the log, for example.
When you use the container element _WF_INITIATOR, you can delete the "US" prefix as follows:
After this manual activity (post SNOTE implementation) and having implemented the BADI /IWPGW/BADI_TGW_USER_DETAIL (as per code given above by CRANGV), i hope you should be able to see your employee photo.
Hope this solves your issue.
This is an ANSWERED post. Please take reference from this post and if you have any other issues, please open a different post with your issue with all the details.
Regards,
Shankar
We raisend an incident to SAP, and they also came up with the same BADI suggested by Siddharth above. The correction will be released in upcoming SP levels.
Regards,
Devender.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey did u found the solution to image issue...i m facing the same issue ..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
We are also facing the exact same issue. working on the note "2108489 - Replacing WF-BATCH as work item initiator with user" as suggested by Rosa. will keep you posted if it helps.
Regards,
Devender.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can use developer tools and inspect element, but note above reply is correct ie, You need to use this as below there is a BADI available which allows you to provide user details e.g. picture. The name of the BADI is /IWPGW/BADI_TGW_USER_DETAIL. Please check the online help for mor information http://help.sap.com/saphelp_gateway20sp09/helpdata/en/8b/6574533924e547e10000000a441470/content.htm .
HI Kelvin,
Regarding image issue ,Try this
If you have admin rights than right click on the page and in technical details you can find path of the image stored.Also you find the image/icon path from component configuration se80.
Could you please share me configuration steps /screenshot for TASKPROCESSING IW_PGW component. workflow from the Backend are showing up and getting No Data error.
Regards
CRANGV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi CRANGV,
In my case the source for the image is src="/sap/opu/odata/IWPGW/TASKPROCESSING;mo;v=2/UserInfoCollection(SAP__Origin='ECC_200_BWF',UniqueName='WF-BATCH')/$value"
With this source i can't tell where to find the path in se80 mime repository.
Here are some print if you need more info please don´t hesitate to ask.
Thank you for helping us to solve this issue.
Regards,
Nuno Vilar
Same here...looks like the image source is returned via the odata call.
"/sap/opu/odata/IWPGW/TASKPROCESSING;mo;v=2/UserInfoCollection(SAP__Origin='ERD_WF',UniqueName='WF-BATCH')/$value"
We are the process of reviewing the following notes for both ECC and Gateway to also resolve the attachment in leave request being corrupted.
I have highlighted the notes that is closely related to the issue and hopefully fixed the issue...stay tuned.
ECC (Backend Notes)
2056158 URL generation for UI5 applications (BSP)
2058479 Missing API for determination of step texts
2065766 New WAPI for reading properties of attachments
2080458 TASKPROCESSING Service support for $inlinecount - IW_BEP
2083503 API for reading tasks/workflows of a system
2089740 The service /IWPGW/TASKPROCESSING does not show Committed ta
2097867 Task Gateway: User info returns empty data
2098752 Task GW: Task and attachment supports - IW_BEP
2099539 Task Gateway: Enhancement for TaskDefinitionCollection to us
2100804 Task Gateway: PotentialOwnerCollection - use Workflow API
2106504 Task Gateway: Check if work item is accessible
2108482 Task Gateway: Approve with comment greater than 255 characte
2110084 Task Gateway: Use formatted telephone number in User details
Gateway 2.0 Notes
2081706 TASKPROCESSING Service support for $inlinecount - IW_PGW
2082481 Data element /IWWRK/RT_GUI_LINK_URL too
2089740 The service /IWPGW/TASKPROCESSING does not show Committed ta
2098740 Task GW: Task and attachment supports - IW_PGW
2100728 Task Gateway: Incorrect date on creation of Substitution Rul
2106428 Task Gateway: Mode adoption for BWF provider
Just to share the reply from SAP.
"This problem is related to the workflow backend system. The workflow backend is not able to provide the expected value of the property "CreatedBy" for TaskCollection. The workflow system fills the field "CreatedBy" with the system field SY-UNAME. This means the value depends on the implementation of the workflow. Therefore the current implementation is not able to deliver the value which is expected from the UI. We are planning to enrich the workflow backend with a configuration which would provide the customer/application to define the value which should be used. This is alraedy on the backlog and it's planned to deliver this feature in one of the next SP's.
Please check the attached note 1574568 which describes this contraint.
There is a BADI available which allows you to provide user details e.g. picture. The name of the BADI is /IWPGW/BADI_TGW_USER_DETAIL. Please check the online help fore mor information, http://help.sap.com/saphelp_gateway20sp09/helpdata/en/8b/6574533924e547e10000000a441470/content.htm .' Please be aware that there is the BADI name "/IWPGW/BADI_TGW_USER_DETAIL" and the Enhacement Spot name "/IWPGW/ES_TGW_USER_DETAIL'. Kindly implement the BADI to retrieve the image. Please let me know if you have any further queries.
We are looking at note "2108489 - Replacing WF-BATCH as work item initiator with user" for the possible solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
104 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.