Quantcast
Channel: SCN : Discussion List - SAP Business Workflow
Viewing all 1026 articles
Browse latest View live

Event to trigger workflow mismatches in development and quality server

$
0
0


Hi Gurus,

 

A workflow gets triggered on "CHANGED" event. In development server it works fine as the changed event of the business object triggers after changes in the transaction. Wherelse in quality doing the similar transactional changes it triggers "INPROCESS" event of the business object. Please let me know what need to be done.

 

Thanks.


How to enable GOS at sales order item

$
0
0


Hi Experts,

 

I have a requirement where I have to provide the customer an option to see the workflow overview at sales order item level (using Generic Object Services).

I have developed a class based custom workflow for sales order approval and wish to intergrate GOS in VA02/VA03 at item level and not header level. I know that this is possible at header level using Business Object 2032. But I wish to know if this is possible at item level and that too in a class based workflow approach.

 

Please provide your valuable suggestions.

 

Thanks,

Ajay

Trace the workflow Item id/Instance from the employee personnel no

$
0
0

Hello Team,

 

A user has submitted her travel expense claim to the organisation  and the request has been submitted to her manager via a workflow, However she claims that  the manager has still not received the work item in his inbox. Upon Initial investigation in PA20/PO13, I noticed that a Manager position  has not yet been assigned to the employee in the first place. I am not sure if this is the reason the workflow was not able to determine the agent and is stuck. Nonetheless, I need to check the workflow log/work item. The issue is I have only her personnel number

 

My question is:

 

I there a way i can trace back the workitem id/WF instance of the user? All i have right now is her personnel number.

LSO workflow: How to stop booking from being made before request is approved?

$
0
0

Hi experts,

 

We are implementing LSO and have a requirement for course bookings to be approved by Managers in MSS.

 

I have activated the standard booking workflow WS12000003. The standard behaviour for classroom training delivery method is that when the employee submits the booking request, the system will immediate update a booking in the backend (relationship 025) even BEFORE the manager has made the approval.

 

We want the booking in the system to be made only AFTER the manager has approved the request. Has anyone encountered this issue before?

Is there anyway to do this via config? I know we can probably customise the workflow but we will encounter complications later (e.g. what if there are 10 requests submitted for approval but only 5 spaces left? Will the system allow managers to approve if the seats run out?

 

YOur help is much appreciated! Thank you!

how to access BO Type attribute inside workflow steps

$
0
0

Hi Experts,

I have created one BO Type ZBO1 which having the Key_field1, Key_field2 and Method M1 and 1 attribute Atr1 defined.

From within the Workflow Template, I have used first Activity step which uses the single step Task which in turn uses the BO Type SYSTEM method GENERICINSTANTIATE. I am passing the BO Type and Key fields Key_Field1 and Key_Field2 in input and getting the reference of the generated BO Type Object into the Workflow container Element lets say GO_1(this is of type ZBO1).This step is working fine, I can see in Workflow Technical log SWIA.

Now using this GO_1 workflow container element, in next Activity step, I have called the ZBO1 method M1.this is also working fine, I can see in Log that same Reference variable GO_1 is being used with the same key fields values. NO issue till this point.

My requirement is to set the ZBO1 attribute Atr1 inside the method M1, so that after calling the ZBO1 method M1 from workflow, I would be able to use the Atr1 using the GO_1 ( I mean I want to use Atr1 value inside the workflow using the GO_1).

in nutshell, using the GO_1(of Type ZBO1) workflow container element inside the workflow, I would be able to access all the ZBO1 attributes. (In Technical log of workflow, I should see all the attributes values gets populated for GO_1).

I have already gone through the existing Threads in this regards but not getting the idea.

please suggest me some steps to follow.

 

Regards,

Jagesh

Workflows - viewing a work item as an attachment!

$
0
0

Hello team,

 

Everytime the user tries to view a work item  attachment (PDF)  via an SAP document viewer in her workflow inbox , it prompts her to save the file first rather than instantly displaying it. Apparently this strange behavior has only  occurred only now.

 

Does anyone have insights on why this may be happening? Could this possible be an SAP issue or a browser issue? the user currently uses the chrome browser to access her inbox.

Extended notification for single user

$
0
0

 

Hi All,

 

I am supposed to trigger workflow email notification for PARTICULAR user only.

 

Can anybody guide me how this requirement can be achieved using extended notifications?

 

workitem forward not working from UWL

$
0
0

Hi ,

 

User is trying to forward item from UWL, it is not removed from his worklist .

it is sent to new user but not removed it from user who forwarded it .

 

below is the screenshot

 

 

as you can see from above screeshot that Lyinzi forwarded item to Michael on 21/10/2015-13:43:49 .

It was moved to Michael but not removed from Lyinzi

 

did not find any DUMP or application logs .

compared roles with user where it is working but no difference.

 

Please help


PR Approval Workflow

$
0
0

Dear Experts,

 

We have to design a PR approval workflow for our client. I would like to share our WF structure & get your suggestions.

All our PR's will be cost centre based (K) and we will be creating a Z table wherein we will have:

 

1) Cost centre 2) Cost centre owner 3) Position ID (OM)   4) Email 5) Approval limit

 

WF will retrieve the relevant cost centre owner position ID from OM & based on the PR value will search the approval hierarchy in OM till the approval limit is reached.

 

Q1: How should the WF react in case the position ID is in Inactive/Withdrawn status in OM while creating a PR? In this case the WF will fail. We suggested that in this case the PR should automatically go higher in the hierarchy. This will be a temporary workaround but how will the HR come to know that there is an action to be taken by them for the WF to work. Any ideas how to automate this?

 

Q2: In case the position ID of the cost centre owner is not available in OM then what should the WF do?

 

Your valuable suggestions are highly appreciated. Thanks.

Question about adopting substitution

$
0
0

Hi,

 

I have a question about "adopting substitutions".

I know that I can see the maintained substitutions in HRUS_D2. Where can I see/check the adopted substitutions? Is there also a table for this?

 

Regards, Vanessa

Workflow getting deleted right after triggering itself

$
0
0

Dear All,

 

Whenever the event is created my workflow gets triggered, but logically deleted itself. It was working fine in sandbox server. But not in Development.

Exact error in step history:

 

Event ZBSPAYPOST->ZCREATED with ID 00000000000000000000 has already been sent

 

Thanks in advance,

Bikash Rout.

Executed workitems in ABAP WD Inbox are shown without attachments

$
0
0

hi guys,

 

I have customized the ABAP WD Inbox to show the workitems I'm generating (IBO_C_WF_TA_P_SC), with PDF attachments. It works fine in the normal view (todos). But once a workitem is completed, although it appears as expected in the executed items tab, it doesn't show the attachment. I have customized view IBO_C_WF_TAC to show the attachments with the indicator completed on and off and it didn't make a difference.

 

can you tell me where to make this setting? or is it a bug?

 

Thanks and kind regards,

Ioan.

Workflow Error : method RELEASE_PURCH_DOC cannot be executed

$
0
0

I am getting following errors in  single Workflow for PURCHASE ORDER RELEASE

1. User 01101685 already processing Purchase order 30 00938139

 

2. Work item 000017292981: Object PO#/User method RELEASE_PURCH_DOC cannot be executed

Inside the Method RELEASE_PURCH_DOC function module

 

'BAPI_PO_RELEASE' is called.

 

and I have checked in container values , I have found that PO Release code is not updated from BAPI_PO_RELEASE.

 

 

Please help on this.

 

Thanks,

Arpita

Standard rule for PO rejection Workflow WS65400030

$
0
0

Hi,

 

I have a requirement to send email notification to the one who rejects the PO and the subsequent below level agents.

Is there a default rule to determine the agents in the standard PO Reject Workflow WS65400030.

 

please guide me if i am going wrong.


Thanks for your help in advance.

FM to approve decision task

$
0
0

Dear Experts,

Good day . My business required a program that approve workflows so for that i am using FM SAP_WAPI_DECISION_COMPLETE . It is working quite good with almost every single workflow but I've been stuck at a point from past few weeks . We have a workflow that trigger when some one apply leave from portal instead of ECC so leave workflow land at ECC system now the workflow stuck at Decision Task I have used different FM like SAP_WAPI_DECISION_COMPLETE , SAP_WAPI_SET_WORKITEM_STATUS and SAP_WAPI_WORKITEM_COMPLETE and few others but still i am not able to approve Decision task screen shot is attached need your expert opinion and support as usual.

Capture.PNG

Thanks

Regards,

Hafiz


PR Released Notification E-mail Repeatly Recived Initiator own e-mail.

$
0
0

Hi friend,

 

I configure copy of the  PR Workflow WS20000077. Then i create PR and released it (So I am Workflow_Initiator).

My PR then received to next Released person and he also released.

Then "Purchase requisition xxxxxx released " Notification received  1 time in  My SAP Inbox but

My E-mail Inbox Show it N number of time.

 

Please any one Know about this Issues and How to Solve this Repeat E-mail.

Work order Notification work flow

$
0
0

Hello,

 

Looking for the best practice on work flow from the notification process.

 

Business Scenario;

 

Production supervisor enters notification of work needed from IW21.

 

Looking for the best way to communicate to maintenance the work that needs to be done, as well as is there an automated email system (or something) that can notify the original notification enterer of progress, status changes and work completed?

 

Thank you

Kim

Reference element missing for token

$
0
0

Hello experts,

 

I am new to workflow.

I work on EWM system 9.1, where I am trying to create workflow condition to schedule PPF for delivery.

Workflow container has method GET_MO_BO() which returns table of items; one of the column is another object "ITEM", which has method GET_STOCK(), which returns stock category value.

Below is expression string, where I want to access the first line of table ITEMS, to read the column ITEM and to use the method for reading stock category.

 

&BUSINESSOBJECT.GET_MO_BO().ITEMS[1].ITEM.GET_STOCK().STOCK_CATEGORY&

 

However system returns an error message:

Reference element missing for token with index '10'

SWF_EXP_001 221

 

What is please the correct syntax for using multiple methods in one expression?

I would like to avoid programming.

Any help appreciated.

 

Thanks.

Petr

Event enable is uncheked but still event is going to event queue

$
0
0

Hello Experts,

 

During PR release activity, release event (BUS2105) is going to event queue and was processed via event queue in transaction - SWEQADM but I have removed the check in SWE2 for object type - BUS2105. But still events are going to queue . I want to process the event immediately , not via SWEQADM. Kindly suggest me how can I do this.

 

Thanks & Regards,

  Sandipan Saha

regarding the change status of leave workflow.

$
0
0

hi friends,

 

i have copied the standard leave worklfow "WS12300111" and customized it just to meet our requirement means for multiple approvers.

 

everything is working fine in production  means if user ID "AIHR01' raise a leave request the workitem will go to "AIHR02" after his approving the workitem will go to the final approver means "AIHR03" after his approval the leave request will be completed and the status in the TC - PTARQ is coming as "APPROVED" means only after the approving of "AIHR03" the status is coming "APPROVED" but in some cases when user id "AIHR02" is approved instead of coming status "SENT" it is coming "APPROVED"  in TC-PTARQ and because of this status the workitem is coming blank in UWL of "AIHR03".

 

 

I have already incorporated the given below method in the "WORKFLOW" just to change the status from "APPROVED"  to "SENT" after the approval of user ID "AIHR02" but in some cases it is not working fine it is giving BUG.

 

 

-


 

 

begin_method changestatus changing container.

DATA:request TYPE ptreq_header-request_id,

          wi_id TYPE swwwihead-wi_id.

 

DATA: request_instance TYPE REF TO if_pt_req_request,

           event   TYPE tim_req_xfer_event VALUE

           cl_pt_req_const=>c_reqtrans_send,

           ex_status TYPE tim_req_status,

           container_wi TYPE swcont OCCURS 0,

           agents TYPE STANDARD TABLE OF swhactor WITH HEADER LINE.

          swc_get_element container 'REQUEST' request.

          swc_get_element container 'Wi_id' wi_id.

 

DO.

  CALL FUNCTION 'ENQUEUE_EPTREQ'

   EXPORTING

  •     MODE_PTREQ_HEADER       = 'S'

  •     MANDT                   = SY-MANDT

     request_id              = request

  •     X_REQUEST_ID            = ' '

  •     _SCOPE                  = '2'

  •     _WAIT                   = ' '

  •     _COLLECT                = ' '

   EXCEPTIONS

     foreign_lock            = 1

      system_failure          = 2

      OTHERS                  = 3

              .

    IF sy-subrc = 0.

      EXIT.

    ENDIF.

    WAIT UP TO 60 SECONDS.

  ENDDO.

  IF sy-subrc = 0.

    CALL METHOD ca_pt_req_header=>agent->get_request

      EXPORTING

        im_request_id     = request

      IMPORTING

        ex_request        = request_instance

      EXCEPTIONS

        request_not_found = 1

        OTHERS            = 2.

    IF sy-subrc = 0.

      CALL METHOD request_instance->initiate_state_trans

        EXPORTING

          im_transfer_event = event

           im_external_call  = 'X'

   

  •    im_ret_value      = 0

                 ex_new_status     = ex_status

   

  •    ex_ret_code       =

          .

      swc_set_element container 'Ex_Status' ex_status.

    ENDIF.

    CALL FUNCTION 'DEQUEUE_EPTREQ'

     EXPORTING

   

  •   MODE_PTREQ_HEADER       = 'S'

   

  •   MANDT                   = SY-MANDT

       request_id              = request

   

  •   X_REQUEST_ID            = ' '

   

  •   _SCOPE                  = '3'

   

  •   _SYNCHRON               = ' '

   

  •   _COLLECT                = ' '

              .

  ENDIF.

  swc_create_container container_wi.

  swc_set_element container_wi 'WI_ID' wi_id.

  agents-otype = 'US'.

  agents-objid = sy-uname.

  APPEND agents.

 

  CALL FUNCTION 'SWW_WI_START_SIMPLE'

    EXPORTING

      task                         = 'TS90000089'

      called_in_background         = 'X'

    TABLES

      agents                       = agents

      wi_container                 = container_wi

    EXCEPTIONS

      id_not_created               = 1

      read_failed                  = 2

      immediate_start_not_possible = 3

      execution_failed             = 4

      invalid_status               = 5

      OTHERS                       = 6.

  end_method.

 

 

-


 

 

Request you to plesase help me to solve this issue .why in some cases instead of coming status "SENT" it is coming "APPROVED"  after the approval of user id "AIHR02".

 

BECAUSE of the  "APPROVED" staus the same workitem is coming blank in the UWL OF "AIHR03".

Viewing all 1026 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>