Quantcast
Channel: SCN : All Content - SAP Business Workflow
Viewing all 995 articles
Browse latest View live

Find out technical information related to SAP workflow

$
0
0

Hi Experts,

I have faced the below error during the workflow release in SAP. For closing purpose i have deleted the document & posted it successfully.

However i would like to know the reason behind of this error which i can able to see in Workflow overview. Please find below snap:-

Screen1.jpg

So could you please guide me how can i get to know the reason behind of this above error which i have highligted above & same please let me know the way to find out that error.

Your prompt response will be highly appreciated.

 

Thanks & Regards,

Rajkumar


Advice on Deadline Escalation

$
0
0

Hi All,

 

I have requirement to develop deadline escalation for Agents which is maintained in Agent table. in agent table with Level there is extra field Flag which will define Escalator Agent. Agent Determination logic and workflow design is implemented and it is working fine.

 

i have doubt on workflow design where i have created a condition step if it is true then process control step to obsolete work item and redirect to workflow form step. if condition false then no workflow step kept to keep work item as it is.

 

is it correct for false condition to do nothing or shall i put any other workflow step to keep it normal..

 

Please advice........

 

 

Thanks,

Idris Ahmed.

User decision xxxxxxxxxx has no alternative to index 0000

$
0
0

Hello Team,

 

I would like to request some help.

My background is mainly core ABAP

I have just begun learning SAP business workflows as a part of my project requirement , and below is the first one I tried ( by referring to an online blog) , a really simple one containing just a single  user decisions and and a mail send block.

but I got the below error.

 

User decision xxxxxxxxxx has no alternative to index 0000.

 

I am not able to diagnose the error as I have little background knowledge in this context. When I checked the error detail in Transaction SWI1, there seems to be a breakage in the user decision block.

And when I execute transaction swi2_daig, I get the above error.

 

I have attached details of the entire workflow structure cycle and the errors  for your reference.

Any help will be highly appreciated.

Entry SYNCH does not exist in SWN_DELSCHED

$
0
0

Hello,

Extended Notification which will send email automatically to outlook (based on user's mail id in SU01D) whenever the approver receives new approval task and the email will have link to Approve/Reject (based on the underlying WF step). When approver clicks on the link, it will ask for user id/pwd and approver can take decision

While Subscription Basic data setup getting below error;

 

Entry SYNCH   does not exist in SWN_DELSCHED (check entry)

Message No. 00058

SWN_DELSCHED Table.png

 

Thanks

mahesh

Email to WF_BATCH

$
0
0

Hi Experts,

 

I am creating a workflow for a pm order creation. The workflow collects the list of orders created on a particular date and send the list to external email as well as sap inbox. While sending the email to sap inbox i am putting recipient as  'wf_initiator'. But what if the pm order is created via a background job ( ip30) then what would be the recipient? Thanks in advance.

 

Regards,

Pranav

How to use FM : SAP_WAPI_START_WORKFLOW

$
0
0

Hello Folks,

 

can you please explain how to use FM : SAP_WAPI_START_WORKFLOW to call the BOR object BUS2038 , method : EDIT.

Trigger Workflow Using GOS

$
0
0

BOR : CFC_PAYRUN.

 

I need to trigger a Workflow from tcode FPCPR.  On analysing the source code, found the Trigger is by GOS.

 

I have tried to create a workflow as a general task. But not able to trigger the Workflow.

 

Please advice.

Extended Notification for PR workflow

$
0
0

Hi,

 

 

We have configured the Extended Notification for PR workflow purpose .When PR created the first approver should get Notification of Workitem and Once First approvers released the PR and then same second approver should get Notification in his Outlook. But when i ran the Program # SWN_SELSEN,  I got Bunch of emails in outlook , That Notifications related Idoc, Delivery and Workflow also.

But I need only Notification for PR workflow.

 

Shall i make this configuration only specific to PR/PO Workflow,

 

These are the mails we got in outlook, when i ran program.

Entry in outbound table not found

Requisition release 10000268 00020

Delivery has failed to these recipients or groups:

 

ZALL_DELTA.png

ZALL_DELTA_FILETR.png

 

Thanks

sapman man


Wrong Agent at step Executing batch work item

$
0
0

Dear Experts,

 

I have a very weird error in my system pertaining to only one custom Workflow

 

Their are two issues, one "Work item set to error following 03 failed attempts" and other a user named "Ravi Ma****" "Executing batch work item" who is not either the admin nor the Batch user for the jobs SWW*.

 

Below are the screen shots, here I expect WF-BATCH in place of the user, also why it failed after 3 attempts as the Task is a standard one and no lock issues exists during processing.

 

2015-10-14_14-12-07.jpg

 

2015-10-14_14-13-04.jpg

 

Any further inputs, please shoot a reply to this thread.

Your assistance would be highly appreciated.

 

Best Regards,

Bharat R

Retriving workitem receivers from a executed workitem

$
0
0

Hi,

 

Can anyone please guide me to get workitem receivers after it gets executed.

 

Or

 

is there any badi or exit that is called just before or just after the workitem is executed so that I can fetch workitem receivers from table 'SWWUSERWI'

before it gets deleted after execution.

 

Please suggest asap.

 

 

Regards,

Soumya

Leave request WS12300111 "ITEMS_TAB"

$
0
0

Hi Friends

 

 

Could someone tell me how to   use data stored in "ITEMS_TAB" of oject "Req" into my workflow/ task container? I want to   retrieve u2018number of days of absenceu2019 to determine how many leaves of approval required.

 

Thanks

 

Nash

Reversal workflow triggered with WF-BATCH

$
0
0

Hi,

 

Automatic Reversal has happened for FI Document.

 

With “WF-Batch”  Document have been reversed using transaction FB08, Not able to find out how reversal workflow started.

 

Doc1.png

Reversal done by WF-BATCH but there is no background job executed to trigger the event REVERSED.


EventLinkage.png


SWWLOGHIST.png

Also I have checked for custom program to trigger workflow but I didn't get anything.


workflow.pngl

Clearing of items happened for the  vendor 7411100048, Then accounting document 4001000293 got reversed.

Clearing of Vendor also in same date.

 

FI Doc.png

 

Please help me to understand how Reversal happened in FB08 by WF-BATCH.

Usually Reversal Agent will be the user name who started the reversal process. But for this case, workflow Initiator is WF-BATCH.

 

Thanks & Regards,

Priya

Workflow Emails

$
0
0

Hi All

 

While running Workflow & releasing emails through RSWUWFML2 we are getting following error-

 

 

I have tried two different workflows & in both workflows the emails failed. It seems we are missing something on workflow side.

 

Even the emails are not showing in SOST.

 

a) SMTP node is in use.

 

b) The emails are releasing externally.

 

Pls advice how to resolve this issue with Tcode/path.

 

Regards

 

Pankaj

How to chnage work flow initiator

$
0
0

Dear All,

 

   I have an workflow which triggers on creation/ change of contract agreement tcode - ME31K or ME32K. Work flow is working fine. I am using class local class methods to get approvers etc.

 

I have created custom container I_LV_INITIATOR inside work flow.

 

Whenever user is changing the contract through ME32K , value of container I_LV_INITIATOR is filled with

user id of person who has created the contract .

 

But the requirement is if purchase document category (EKKO-BSTYP) = 'K' then I want this container I_LV_INITIATOR

to be filled with user id of person who has changed the contract not with the one who has created the contract. and If I manually test the work flow from SWUS , value of container I_LV_INITIATOR is filled with user id of person who is manually processing the work flow.

 

Kindly help or give any suggestion f we could achieve this in enhancement or exits.

 

Thanks,

Arpita

Not release document if level with no agents

$
0
0

Hi People!!


We are using standard workflows levels, (using RR_ROLE for example) and want to avoid reléase if some workflow level have no agents.


It´s strange that it was not standard, because WF finish in error after that, but without error or warning at release time.


Any customizing to do this? I´m looking for but not found anything yet.


Thanks and best regards!

 



Required Tables which needs to be maintained for Release Configuring(Purchase order)

$
0
0

Hi Expert,

 

By Referring my previous discussion regarding the configuring PO to show in Fiori apps and thread is as below.

 

Re: Configuration steps for Approve Purchase order with standard workflow to bring the data on Fiori apps

 

 

I was configuring in release procedure for purchase order (SPRO) by taking help of (Setting up Purchase Order Release Strategy), but i am missing maintenance auth for table T16F*. as i came across for few table like T16FW, T16FC, T16FH.

 

Now i am stuck with authorization for maintenance table, Do I need maintenance authorization for all T16F* table for this. can any one please confirm this.


If it is not, then please suggest me which are tables for this.

 

Thanks in Advance !!

 

Thanks & Regards,

Brajesh Kumar

Pass values from program to workflow - Pass values from workflow to program

$
0
0

This document explains how to get values from a program (BADI in our case), pass the values from the program to the workflow and then pass the values from the workflow to a program (BAPI in our case).

 

I am myself a beginner in workflow. With some help in SCN, we have been able to set up a workflow to meet the requirements.

 

Special thanks toModak Gupta.

 

Original Discussion thread: Re: How to get values from workflow to program

 

 

1. Creation of a workflow to execute MIGO

This document explains how to get values from a program (BADI in our case), pass the values from the program to the workflow and then pass the values from the workflow to a program (BAPI in our case).

 

1.1 Requirement:

Once MIGO is done, the client wishes to do another MIGO. For him to know that the first MIGO has been done, he needs to get it in his SAP Inbox (Workflow). From there, he can just execute the workflow and he will do the second MIGO.


1.1 Steps

 

1.1.1 BAPI

 

Create a BAPI in SE37 to get the purchase order (we need it because we will open the second MIGO with the purchase order of the first MIGO). We will also call the transaction MIGO in the BAPI (For our requirement, it is ZMIGO, but very similar to MIGO, just some different customizing).

 

In the BAPI, use the function module BAPI_GOODSMVT_GETDETAILto get the purchase order.

 

A BDC is also done in the BAPI to open ZMIGO with the purchase order.

 

Code:

FUNCTION zbapi_call_transaction.
*"----------------------------------------------------------------------
*"*"Interface locale :
*"  IMPORTING
*"     VALUE(MATERIALDOCUMENT) TYPE  MBLNR
*"     VALUE(MATDOCUMENTYEAR) TYPE  MJAHR
*"  EXPORTING
*"     VALUE(RETURN) TYPE  BAPIRETURN
*"----------------------------------------------------------------------


DATA: gt_items TYPE STANDARD TABLE OF bapi2017_gm_item_show,
gs_items
TYPE bapi2017_gm_item_show,
gt_return
TYPE STANDARD TABLE OF bapiret2,
gs_header
TYPE bapi2017_gm_head_02,
l_materialdocument 
TYPE  bapi2017_gm_head_02-mat_doc,
l_matdocumentyear
TYPE  bapi2017_gm_head_02-doc_year.

DATA: gs_bdcdata  TYPE bdcdata,
gt_bdcdata 
TYPE TABLE OF bdcdata,
l_opt
TYPE ctu_params.

l_materialdocument      
= materialdocument.
l_matdocumentyear       
= matdocumentyear.

CALL FUNCTION 'BAPI_GOODSMVT_GETDETAIL'
EXPORTING
materialdocument
= l_materialdocument
matdocumentyear 
= l_matdocumentyear
IMPORTING
goodsmvt_header 
= gs_header
TABLES
goodsmvt_items  
= gt_items
return           = gt_return.

READ TABLE gt_items INTO gs_items INDEX 1.
IF sy-subrc EQ 0.

CLEAR gs_bdcdata.
gs_bdcdata
-program  = 'SAPLMIGO'.
gs_bdcdata
-dynpro   = '0001'.
gs_bdcdata
-dynbegin = 'X'.
APPEND gs_bdcdata TO gt_bdcdata.

CLEAR gs_bdcdata.
gs_bdcdata
-fnam = 'BDC_CURSOR'.
gs_bdcdata
-fval = 'GODYNPRO-PO_NUMBER'.
APPEND gs_bdcdata TO gt_bdcdata.

CLEAR gs_bdcdata.
gs_bdcdata
-fnam = 'GODYNPRO-PO_NUMBER'.
gs_bdcdata
-fval = gs_items-po_number.
APPEND gs_bdcdata TO gt_bdcdata.

CLEAR gs_bdcdata.
gs_bdcdata
-fnam = 'BDC_CURSOR'.
gs_bdcdata
-fval = 'GODEFAULT_TV-BWART'.
APPEND gs_bdcdata TO gt_bdcdata.

CLEAR gs_bdcdata.
gs_bdcdata
-fnam = 'GODEFAULT_TV-BWART'.
gs_bdcdata
-fval = '101'.
APPEND gs_bdcdata TO gt_bdcdata.

CLEAR gs_bdcdata.
gs_bdcdata
-fnam = 'BDC_CURSOR'.
gs_bdcdata
-fval = 'GODYNPRO-PO_NUMBER'.
APPEND gs_bdcdata TO gt_bdcdata.

CLEAR gs_bdcdata.
gs_bdcdata
-fnam = 'BDC_OKCODE'.
gs_bdcdata
-fval = '=OK_GO'.
APPEND gs_bdcdata TO gt_bdcdata.

l_opt
-dismode = 'E'.
l_opt
-defsize = 'X'.

CALL TRANSACTION 'ZMIGO' USING gt_bdcdata OPTIONS FROM l_opt.

ENDIF.

ENDFUNCTION.

 

 

1.1.2 Business Object

Create a Business Object in SWO1.

It is a copy of BUS2017, we have added our BAPI and an event. We also modified the program.



1.png


 

Modify the program by clicking on Program above:


2.png


3.png



Add the parameters in the new method (BAPI)


4.png


5.png



Add the parameters in the new Event.


6.png




1.1.3 BADI

 

Implement the BADI in SE18 / SE19

BADI: MB_DOCUMENT_BADI -

Method: MB_DOCUMENT_BEFORE_UPDATE

 

Get the purchase order

Use the function module SAP_WAPI_CREATE_EVENT to pass values from program to workflow.

 

 

Code:

method IF_EX_MB_DOCUMENT_BADI~MB_DOCUMENT_BEFORE_UPDATE.

DATA : BEGIN OF key,
mblnr
TYPE mkpf-mblnr,
mjahr
TYPE mkpf-mjahr,
END OF key.
DATA : event_container TYPE TABLE OF swcont.
DATA : objkey TYPE sweinstcou-objkey.
DATA : s_xmkpf TYPE mkpf.
DATA: l_RETURN_CODE TYPE sy-subrc,
l_event_id
TYPE SWR_STRUCT-EVENT_ID,
lt_container
TYPE STANDARD TABLE OF SWR_CONT,
ls_container
TYPE SWR_CONT.

data :INPUT_CONTAINE type table of SWR_CONT ,
x_cont
type swr_cont.

 

" numéro commande d'achat
DATA ls_xmseg TYPE mseg.
CLEAR ls_xmseg.
READ TABLE xmseg INTO ls_xmseg INDEX 1.

x_cont
-ELEMENT = 'MATERIALDOCUMENT'.
x_cont
-VALUE = ls_xmseg-mblnr.
APPEND x_cont to INPUT_CONTAINE.

x_cont
-ELEMENT = 'MATERIALDOCYEAR'.
x_cont
-VALUE = ls_xmseg-mjahr.
APPEND x_cont to INPUT_CONTAINE.

 

CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
EXPORTING
object_type            
= 'ZYBI'
object_key             
= objkey
event                   = 'EVENT2'
COMMIT_WORK            
= space

IMPORTING
RETURN_CODE            
= l_RETURN_CODE
EVENT_ID               
= l_event_id
TABLES
INPUT_CONTAINER        
= INPUT_CONTAINE.

endmethod.

 

1.1.4 Workflow

Create the workflow in SWDD

Add the Business Object in the container and tick Import.

 

7.png



Create a task with the following details.


8.png




Click on Binding in the above screen:


9.png


10.png



Create an Activity and attach the task to it.



11.png



12.png


 

Affect Agents


13.png



Add a starting event in Basic Data.


14.png


15.png


 

Add a Process Control to end the workflow.

 

1.png



Workflow Final should look like this:


17.jpg


 

1.2         Tests

MIGO:


5.png


6.png


 

Verify in SAP Inbox (Transaction SBWP)


7.png

 

 


Execute the workflow by double-clicking


21.png




Tick OK and Save.


9.png


 

 

Best Regards,

Feenaz

Extended Notification - Subject & HTML link Issue

$
0
0

Hi All,

 

Configured the extended notification for the workflows. Emails are getting triggered but with below issues.

 

1) Subject of the mail shows "New work items in your Workflow inbox" instead of Task description. Subscription Basic Data has Granularity as One      Message Per Notification.General setting has SUBJECT_WF_INDIV = NASWN071. Verified the message - 071 in class SWN.

Even after all these settings subject is not picked as the task description. Is there any other setting I have missed?

 

2) Maintain Subscription Settings SHOW_ACTION_DECISION_AS = LINK so Approve/Reject options of Decision task are shown as in the mail. After clicking it opens the BRF application but after clicking on CONFIRM on the application nothing happens and it stays on the same screen without taking the action. Service SWN_WIEXECUTE & SWN_MESSAGE1 are also activated in SICF.

Do we need to activate any other service to make this work.

 

3) Maintained Subscription Settings - SHOW_ACTION_EXECUTE_AS as LINK1.After clicking on this link it opens below link. Server is not selected in below link and it comes as untitled.

   http://untitled/?TASKTYPE=TSXXXXXXX&~transaction=SWNWIEX&P_WI_ID=000000005134&P_ACTION=EXECUTE&P_APPL=NOTIF&~OKCODE=ONLI

  

4) Want to check if someone has used below parameters

   Subscription Settings - REMINDER_DAYS. Does it automatically sends the reminder mails to agent till agent acts on it?

   What is the use of WI_FORWARD_VIA_MAIL = X. Does it gives option to user to Forward the workitem from the mail received.

 

While I debug on this wanted to check if someone has already faced this issues and has the answer

Your assistance would be highly appreciated.

 

Thanks,

Pawan

IDOCs - download of line amounts

$
0
0

Hi, in SAP Workflow, FIDCC1 input error, I'm trying to download a list of all outstanding unresolved IDOCs which includes the amounts of each line. By clicking on "Print List" I can download a list but I can see no way to bring in the amounts. Someone has mentioned either EDIDS or TEDS1 tables but it looks like I should be able to download this from the FIDCC1 page? Any help on this would be greatly appreciated.

 

Thanks

James Byrne

Task description alignment

$
0
0

I have some text in task description and it is sent as an email, when i see the task description in workflow log or tcode SOST it is fine but when i get the mail in outlook the mail body is not properly formatted

i am using SELFTITEM.SENDTASKDESCRIPTION to send mails.

 

This is my mail content :

it should be continuous right but the words are moving to next line

 

A Business and Travel Expense Report with all required receipts must be submitted and approved no later than

90 days from

the date the expense was incurred. If these charges are not submitted and approved within 90 days, your VISA Business &

Travel Card

 

Edited by: sapient on Aug 8, 2008 5:46 PM

Viewing all 995 articles
Browse latest View live


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