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

Workflow not re-triggering

$
0
0

Hi All,

 

I have a workflow e.g. PO workflow.

 

Currently workflow triggering when it got created. But not re-triggerring when it changed.

 

 

Workflow will trigger once PO create and the same workflow should wait until if any one change the PO. If any one change the PO, I have to perform checking of some conditions.

 

 

I used "Wait for Event" but it is not re-triggerring. Provided as below:

Container Element = ZBUS2012

BOR = BUS2012

Event = Changed

 

 

Do I needs to make any entries in SWE2? If yes, kindly let me know what entries I have to make.

 

Thanks.


Passing an oo object as event parameter via structure

$
0
0

Hi,

 

I've got a custom class 'A' that fires an event to start a WF and it passes a single parameter which is a deep structure consisting of several data types eg Char and another custom object 'B'.

 

 

The WF fires fine and the parameter is passed, however only the char fields of the structure are passed, the 'B' custom object is not, even though I instantiated it and put it in the structure of the parameter when I fired the event.

 


As a work around I've been able to pass the 'B' custom object as its own parameter fine, but I want to have it as a component of a deep struc parameter.

 

Is this possible, from what I've read it should be...

 

'

Sending mails from outlook to SAP System

$
0
0

Hi ,

 

We want to develop offline approval Workflow with user login in sap .

Created new workflow and it will send mail to user in HTML format with Approve & Reject links.

When user Click on Apporve or Reject link then reply mail will be generated with sender address 'Test4@xyz.com'.

Configured Inbound processing with 'Test4@xyz.com'  with exit name as class with Process Inbound method

 

Currently we are not receiving any mails to sap system

 

Please help.

ME_CONFIRMATION_MAINTAIN_AVIS function module unable to trigger BO 2012

$
0
0

Hi,

 

We are passing I_IBTYP as 1 and passing tables parameter t_ekes, for creation of vendor confirmations for PO. Its configured in such a way that it triggers standard BO business object 2012 which in turn calls method for mail triggering.

 

I need to check where this BO business object is called, and need to check if the mail functionality.

 

Please suggest.

 

Thanks,

Bala Krishna T

Invoke class event Handler from an Event of a Workflow Instance

$
0
0

Hello Experts,

 

Please weigh in your suggestions/opinions on my below Question. Highly appreciated. 

 

1. I have Class ZCLTEST which has 2 events defined.  Event A and B.

2. I have a Workflow W1 which gets triggered based on event A. Event A is triggered from a custom program.

3. I have an Event handler (method M1) in the same class for Event B. The event handler is registered in the constructor method.

4. In the workflow W1, I have an "Event creator" Step for event B. I am binding the Class object (&ZCLTEST&) to the Event Object.

 

My understanding is that the Event handler should get invoked upon event B trigger from the Event creator step; but it does not.

I know that, unlike BOR events, Object events are confined to a given internal session.

 

My Question is - Can Event handler be triggered from an Event raised from a Workflow Instance?? Is this fundamentally viable??

 

I know that the event handler method can be called directly from the Workflow as a step; but just want to check if above is possible.

 

 

Thanks,

Fefe

forwards item from portal

$
0
0

Hi All,

 

I am forwarding work item from portal .When i click forward, i get a pop up to select user name to whom i have to forward.

suppose i Give ' a' in search field ,all users who have 'a' in their name will be listed . I want to restrict name based on our group name in client.

 

Problem is- when user wants to forward item  and gives 'a' in search field ,It gives all uses with 'a' in name.Now if there are multiple users with the same name,sometime it goes to wrong user by mistake while forwarding.Please suggest where to enhance this ,any FM or method or search help.

Workflow Custom Approver Rule

$
0
0

Hi All,

I am new to workflow development .

 

There is a requirement in my project to Have a custom approval logic in the workflow ( Finance accouting document approval) . For this I have already done the below :

1. Created a Z table

2. Created a function Module

3. Created a Rule through PFAC Transaction.

 

My question is:

How to assign this rule which has been created in the workflow definition ( Transaction - SWDD ) ?

How to get container value in Workflow WS14000133 - Approver List

$
0
0

Hi Friends

 

I am able to see approver values are coming from this container(ApproverList) in workflow.But I dont find any logic to fill this container in Business objects(BUS2121 or BUS4101).This workflow is used for shopping cart approval process.

 

Please help me to find the logic behind this shopping cart approvers list.I want to un  derstand, how the container values are getting filled for approver list.

 

Thanks

Gowrishankar


Clarifications on FIPP workflow

$
0
0

Hi friends,

 

My requirement is like there will be two workflows, both the workflow will be triggered when a document is parked. The first workflow just involves 2 steps, the initiator parks the document and his supervisor posts the document. There is no release or release from amount involved here. The second workflow gets triggered when a vendor invoice is parked, this will pass through all the release steps and then posted.

 

In SPRO, when we create a variant, there is a checkbox "Posting Release", the event CREATED of FIPP is only triggered if we mark this checkbox, else its not triggered ( in standard FM PP_WF_CREATED line no 109, "check not vbwf01-xwfbu is initial" ). So, only the second workflow can be triggered as per configuration.

 

Is there any enhancements where i can trigger the first workflow manually. As of now, I see one customer exit EXIT_SAPLF051_002 in function PP_WF_CREATED( just before the actual release workflow CREATED event is registered ) where I can register the event CREATED ( business object copy of FIPP to ZIPP ) for first workflow and stop the second workflow from triggering. I am skeptical about this because this customer exit is used only for stopping the workflow which is registered after this customer exit is called.

 

Do we have any BTE or customer exits which gets triggered after the document is parked. I didn't find any as of now

 

Provide your inputs on this approach.

 

 

Kesav

Offline approval for workflows in ECC4.7

$
0
0

Dear Gurus,

 

I am currently handling a workflow project for one of our clients who runs on ECC4.7. We recently activated the workflows from them. now they would like to have offline approval setup in their system. i my self did this few time but in ECC 6.0 systems.

 

Can we enable offline workflow approval in ECC 4.7. I dont see SAP inbox(SOIN) transaction in 4.7 system.

 

Can some body through some inputs on this ?.

 

 

Thanks,

rakesh.

SAP Workflow with Persistent class?

$
0
0

     Hi All,

 

     I am new to SAP Business workflow and am trying to create a small approval process flow.

 

     In workflow task, I am using ABAP Class instead of BOR object.

 

     Since IF_WORKFLOW has persistent interface, can we still use persistent class with workflow? Could anyone post any example?

 

     I found one example Using persistent objects in SAP workflows

    

     But, it is little confusing as there are 2 classes ZCL_PERSISTENT and ZCL_WORKFLOW and no link is mentioned between the 2.

 

     Any help would be of great use.

 

     Thanks,

     amruta

'SAP_WAPI_START_WORKFLOW'-not working

$
0
0

Hi,

 

I created a workflow with all background processing as in takss, and create a report to run this workflow as a backgroun scheduler and calling the created workflow using below.

CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'  EXPORTING    TASK            = 'WS91000051'    USER            = SY-UNAME    LANGUAGE        = SY-LANGU    DO_COMMIT       = 'X'  IMPORTING    RETURN_CODE     = wf_retcode    WORKITEM_ID     = wf_wi_id  TABLES    input_container = int_cont.

But workflow is not triggering above code. could you please le me know the solution for the same.

Thanks in advance,

Venkat

On Forward Work Item, its not displaying the Object

$
0
0

My query is as follows:

I created 03 users PS01, PS02 and PS03.

A workflow for the Notification was created such that: Notification was created for a specific type using tcode IW21  and saved.

 

The work item(WI) was visible in inbox. Upon clicking it, it gives three options i.e view, approve, cancel. Once approved in went to user PS02 as per organogram structure where PS02 is Chief of PS01.

Now PS02 receive in inbox and have three options i.e view, approve, cancel. On clicking View option, the notification open in display mode as BUS2038 display method was used with tcode IQS3 behind View button.

Now the issue:

PS02 decided not to approve it due to a reason, thus right clicked the WI in inbox and selected the Forward option from the context menu, gave the user PS03 and submitted it. Note: PS03 is a user not in the Workflow sequence

User PS03 received the WI in the inbox and upon clicking it saw the same three options that were visible to user PS02. Now when the user clicked the View option (though have IW23 and IQS3 authorizations), the workflow disappeared without showing the Notification and landed back in PS02 inbox.

At this stage the log shows no error and now the WI is residing in PS02 inbox.

Why did the Notification not appear for user PS03?

Also if PS03 approved or rejected then the workflow works fine with WI going to the next person upon approval or in rejection back with PS02. But here on clicking View, its not opening and on top of that going back to PS02.

Thanks

Faisal

Ways on transferring work items by bulk to a new user ID

$
0
0

Hi Experts,

 

     I've already read posts already, and then decided to ask personally here as so far the info i've collected is still not enough and I am still uncertain.

So i need your opinions on the matter.

 

Scenario:

     1. Employees has Identification Nos. -> Identification Nos also used as their user names for portal/R/3

     2. Foreign Employees are issued with identification nos. in a different format, to differentiate them from residents/locals.

     3. Sometimes foreign employees are offered permanent residency or they would apply themselves for permanent residency, now if they are granted permanent residency then their Identification number will change too.

 

     Now, upon the transition to permanent residency, we also want to transfer all the work items from the old user id to the new user id automatically.

 

From what I read there are two ways: 

     1. Substitution Rule
     2. forward workitems via FM - SAP_WAPI_FORWARD_WORKITEM

 

 

1. Substitution rule - i think it fits well on the scenario but from what I read so far, this is done manually, can we do this on code?if so how? say a background program or an enhancement that will be triggered upon maintaining the PERNR to the new Identification.

I saw this FM rh_substitution_maintain being mentioned on one the posts, but when i checked it, it's quite confusing on how to use it.

 

2. FM SAP_WAPI_FORWARD_WORKITEM - this seems a direct answer, create a program to retrieve entries from Table SWWUSERWI, but still I am not sure. Basically it is just the same person, same roles, position and org, so can i assume that he will still be a possible agent for this workitem? and so no problem when forwarding via this solution? or am i still missing/forgot variables that i need to consider?

 

Anyways - I'm leaning on using option 1, my question is to how.

 

So guys, would like to have your opinions on this topic.

 

Thanks!~

How to accept workflow trigger from SAP portal ESS

$
0
0

Hi experts,

I am using FM: SAP_WAPI_DECISION_COMPLETE to approve Leaves trigger from ESS (SAP Portal) but i get response like.

 

Work item 000000498976 is not a user decision

 

I've searched this issue and then i have tried following FM modules:

SAP_WAPI_DECISION_COMPLETE

SAP_WAPI_SET_WORKITEM_STATUS

SWW_WI_EXECUTE_NEW

SAP_WAPI_EXECUTE_WORKITEM

POPUP_TO_CONFIRM

CATS_WF_APPROVAL

 

Most of them are not working but some FM change the status of workitem/workflow from ready to complete, as i want to approve leaves initiated from ESS .

i am approving leaves for ECC workflows using FM: SAP_WAPI_DECISION_COMPLETE and it is working quite good.

 

Regards:

Hafiz usman


PR Workflow ( Item Level Release )

$
0
0

Hi All,

 

 

I have client requirement which I have to sent work flow for the cumulative mail communication pass to next level approver as single mail. It means If PR has 6 line item, Initially 3 line items is approved here one single mail has to trigger for this approved three items to next level. Remaining Three line items if next day approved again one more mail has to trigger to next level approver.

 

Can you please help me how will fulfill this requirement.

 

 

Thanks

is it possible to control udfs And Process with workflow?

$
0
0

Our company is now on implementation phase of sap b1 project.

We have different steps and process for each form and a form is ready when all of its process completes.

For example our purchase has these processes.

  1. 1- Registering proforma
  2. 2- Different type of internal approval.
  3. 3- Importation
  4. 4- Pricing.

All the steps are related to each other for example we can’t fill importation information(step 3) before registering proforma information (step 1).

Also we can’t go to next step before finishing this step. For example we can’t GRPO before finishing PO process.

Our consultant now suggested us lots of UDFs without any control on process also prevent us from using workflow because he has no good opinion about using workflow in the first year of implementation.

We can’t use approval procedure cause during approval, form fields are lock and we can’t fill out them.

Using work flow can be useful for us?

Is there any different solution?

FI Scenario of workflow

$
0
0

Hi experts,

 

I am new to Workflow. Never created a worflow scenario before.

Ihave the below requiremen. Could you please help me with it.

 

 

 

Creation of a workflow at the time of FI document posting.

Scenario:-

When total value in the document exceeds $1000, then automatically a
payment block ‘T’ should be applied to the vendor Invoice & through the
workflow the information should be sent to all the key users whose ID is
maintained in the authorization group, to approve it for payment .

Once the Invoice is approved then only the payment can be done.

 

Thanks

Rimjhim

Decision step in WF - Justification of the decision

$
0
0

Hello Experts,

 

With regards to the option of "Justify your decision" for the user decision in the WF builder - when this work item in the user's inbox and the user selects the option that needs a justification (defined as mandatory in the WF builder), there appears a pop up (which is fine), however, the Title of this popup has the defaulted text starting with "Reason for alternative:" (see the screenshot).

 

justifcation__work item.png

My query is - is there any way to get rid off this defaulted text and have a custom one, if needed?

 

Thanks in advance.

Asif

Rule not returning agents

$
0
0

Hi Experts,

 

When I am testing rule it's returning  Agent ID but when I am using this rule in workflow workitem not going to the correct agent. I am sharing screen shot. Please go through it and help me.

 

Regards,

Saquib

Viewing all 1026 articles
Browse latest View live


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