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

How the Standard Workflow tables SWW_WIREGISTER / SWW_PROPERTIES are filled in SAP

$
0
0

Hi Experts,

 

    We have an issue between quality server and Production server regarding Workflow standard tables. For example, When I checked SWW_WIREGISTER table in Production I see so many entries more than 2 lakhs where as no entries are present in Quality. So does anyone having any idea that how the SWW_WIREGISTER table is filling/updating in SAP?. Thanks a lot.


SWE_EVENT_CREATE_FOR_UPD_TASK not triggering wf some times

$
0
0

Hi ALl,

Somebody has used function module SWE_EVENT_CREATE_FOR_UPD_TASK from MV45AFZZ.

This function module is not triggering WF some times.

Can somebody kindly guide what can be the reason behind this?

and what can be done?

 

Thanks,

SD

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

Convert Internal Table to Attachment in Workflow

$
0
0

Hello Workflow Gurus,

 

I have a workflow were business asked me to include a changelog in the workitem description of the approval workitem sent to the SAP inbox and to the user email. I have the data in an internal table in my Class Method (i am using a Class instead of a BOR for my custom enhancements to the Workflow), however, if i pass this data to the workitem description it will get truncated since the data is too long (fieldname, field old value (char256),filed new value (char256), date of change, time of change).

 

I decided to try to convert the internal table to a PDF document or any other document and pass it as attachment as follows:

 

  LOOP AT wc_changelog "This table has the data taht i need to display

    INTO ls_changelog.

 

"  I concatenate all the data to a text string separating each column by '|'.

 

    CONCATENATE ls_changelog-fldname ls_changelog-f_old ls_changelog-f_new ls_changelog-udate ls_changelog-utime INTO ls_text SEPARATED BY '|'.

    APPEND ls_text TO lt_text.

 

 

  ENDLOOP.

 

 

  CALL FUNCTION 'SCMS_TEXT_TO_BINARY'

    IMPORTING

      output_length = lv_length

    TABLES

      text_tab      = lt_text

      binary_tab    = lt_binary

    EXCEPTIONS

      failed        = 1

      OTHERS        = 2.

 

 

  IF sy-subrc <> 0.

* Implement suitable error handling here

  ENDIF. " IF sy-subrc <> 0

 

 

  CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'

    EXPORTING

      input_length = lv_length

    IMPORTING

      buffer       = lv_doc_string

    TABLES

      binary_tab   = lt_binary

    EXCEPTIONS

      failed       = 1

      OTHERS       = 2.

 

 

  IF sy-subrc EQ 0.

 

 

    ls_swr_att_header-file_type = 'B'.

    ls_swr_att_header-file_name = 'Changes Log'.

    ls_swr_att_header-file_extension = 'PDF'.

    ls_swr_att_header-language = sy-langu.

 

 

    CALL FUNCTION 'SAP_WAPI_ATTACHMENT_ADD'

      EXPORTING

        workitem_id    = wc_workitemid

        att_header     = ls_swr_att_header

*       ATT_TXT        =

        att_bin        = lv_doc_string

        document_owner = sy-uname

        language       = sy-langu

        do_commit      = 'X'.

 

 

  ENDIF. " IF sy-subrc EQ 0

 

I am creating a new attachment in my workflow and i am passing this attachment to the workitem that is sent to the users inbox, however i am getting a message saying that the fiel type has been damaged and i am not able to open it.

 

Please your help with any suggestions to correct the code and pass the internal table to any kind of attachment to the Workflow or to pass it displaying correctly to the workitem description. Any help will be greatly appreciated.

 

Regards,

 

Gustavo

SAP IT Declaration

$
0
0

Hi,

 

The customer requires IT declaration i.e. Section 80 & 80C.

The following has been done:

1. Approver Gruoup has been defined.

2. Badi HRPBSINNEWCLAIMS has been implemented to set approver/s

3. Workflow WS18900052 is used. (Tasks have been generalized)

4. The task TS18900034 used in standard workflow was not available and hence it is manually added with parameters maintained as shown below

TS VP.PNG

 

Test Flow:

  • Login as Employee. Navigate to "IT Declaration".
  • Choose "Create Section 80 Deductions"
  • Enter values in "Proposed Amount" column
  • Accept the "Terms & Conditions"
  • Click on "Send"

 

Observations:

In SWI1, Workflow WS18900052 is triggered and the workitem sent to the approver as maintained in the Badi mentioned above

 

Issue:

  • The workitem is sent to the initiator instead of the approver.
  • This workitem is available in ESS-> IT Declaration Approval, is this correct ?.
  • On Approval, the following errors are shown
    • Data was not saved
    • Requested value must not be zero or negative
    • Proper Customization is not maintained for Payment Mode in V_T77WWW_GACHR 
    • No Customizing data maintained in View V_T77WWW_GACHR for the request
  • However, view V_T77WWW_GACHR is maintained correctly


Reference:

PY-IN Income Tax Declaration on portal. ERROR :... | SCN

 

Please share solutions if you have faced same or similar issues

 

Thank you,

Pavan Maladkar

Decision step in Workflow directly from orderitem

$
0
0

Hello,

 

I remember there is a way for endusers to go to the pending decision steps in the workflow directly from the orderitem.
This avoids the lengthy process of loading the entire Business Workplace.

Does any one know how? Or is this documented somewhere?

 

Sincerely yours,

 

John

inside Task commit is getting dump

$
0
0

Hi experts.

 

I am facing issue when use BAPI BAPI_ALM_ORDER_MAINTAIN inside the workflow task with BAPI_TRANSACTION_COMMIT .

 

below is the step i am doing when CIS Notification save - triggering work flow which is creating PM WO and changing the work order.

 

1. Create PM work order using BAPI /***/BAPI_CUORDER_CREATE , this is the BAPI to create CU based PM WO. - this is seperate task in workflow.

2. Change the PM WO - Long text , Partner data with BAPI BAPI_ALM_ORDER_MAINTAIN - separate task in workflow

 

step 1st is correctly running, during 2nd step BAPI is running without any error , but when I am calling the BAPI_TRANSACTION_COMMIT it is causing the dump.

 

I have change the data manually it is working fine without any issue.

 

can you please help me to resolve the issue! thanks in advance

CVAPI_DOC_CREATE - no Workflow Event DRAW-CREATED in SWEL

$
0
0

Hello.

 

i am using fm CVAPI_DOC_CREATE to create a DIS.

 

DIS is created successfully but there is no event CREATED for BO DRAW triggered and shown in tx SWEL.

 

Do you have ideas why this event is not getting triggered ?

 

I am using SAP ECC 6.0 with EhP 7.

 

Thanks a lot for your ideas.

 

BR,

Sebastian


Issue with SWETYPV entries maintainance in quality and prod systems

$
0
0

Hi ,

 

I had created an entry in SWETYPV and assigned the event linkage active in dev system, now I want this entry to be moved to qualty and prod system .

How can I achieve that please suggest.

 

Thanks,

RG

How to read workflow history

$
0
0

hi there,

 

i have the following requirement: i have some workflows where user can e.g. approve purchase orders, recject purchase orders or forward the workitem to another user. this can happen often inside one workflow.

 

now my customer wants to see the history of the workflow in a list -> simply said "who has done what and when"-> for example:

 

User A has forwarded workflow to User B on date yyyy.mm.tt

User B has forwarded workflow to User C on date yyyy.mm.tt

User C has approved workflow on date yyyy.mm.tt

 

Is there any suitable FM for that ? I can't find anything

 

br Martin

Problem with SWUS transaction

$
0
0

Hi,

 

I am new to workflow, can any one please explain how to use SWUS transaction, which is basically used for testing workflow.

 

I had created a workflow for Quality notification is closed and asiigned in SWETYPV. I want to test this where can I give the QN number and test this .

 

I tried giving in input data tab and this is not allowing me to enter data.

 

Please suggest,

 

Thanks,

RG

FIPP Workflow

$
0
0


Hi gurus,

 

I need to manage a validation flow for FI incoming invoices. WS10000051 standard wf could be in the scope but there are some issues I'm not sure could be managed with:

1. The validator should be an specific SAP user at each incoming invoice, not a pool. And should be selectable at each invoice, thanks to a new field "Responsible" enhancing BKPF table.

2. The Responsible must get the notification of the new WI pending to be validated vía email, and be able to navigate through it to the invoice if possible.

 

These are several issues and I hope someone could help solving one of the at least.

 

Thanks in advance. Best regards,

 

Johan

Workflow triggering on FD32 when customer credit limit changes

$
0
0

Dear all,

 

I have a requirement to trigger workflow for approvals when credit limit(KNKK- KLIMK) changes in FD32 transaction code. I have created custom business object ZBUS1010 by copying BUS1010 and delegated. defined custom event for credit changes and did the configuration in SWUE and SWETYPV.

 

But somehow event is not getting triggered fro credit limit changes, tried all options  and trying for some user exit/BADI but no luck. Please suggest any ideas.TIA.

 

 

Venkat

current agent field inside a loop

$
0
0

Hi All,

 

i am using user decision step inside a loop. now I want to put a condition inside my loop that if current agent = 'ABC', then exit the loop.

 

What is the field for current agent inside a loop ?

Unable to Open Inbox in SBWP - runtime error

$
0
0

Hi Gurus,

 

I have a problem with my inbox - I'm experiencing runtime error (time_out) when opening it. It says 'Time limit exceeded', and 'The program 'SAPFSSO0' has exceeded the maximum permitted runtime without interruption and has therefore been terminated.

 

Can anyone of the Workflow experts tell me what is the probable cause, and what do you sugggest to solve this and prevent from happening again?

 

Thanks!

 

 

Regards,

Joyreen


Determination of Workflow Initiator's Manager

$
0
0

Hello,

 

I am using the standard accounting document park/release functionality for posting parked accounting documents, everything is working well and as expected, however is there a way to have the Release task sent to the Document Creator's direct manager? I can't seem to find anything relevant in the configuration, only that it can be assigned to a certain position/job...etc., but nothing that includes a relationship between positions.

 

Thanks.

SAP WorkFlow - Dead Line Monitring

$
0
0

Dears

            Good  Day ,

          

I implemented my first work flow for vacation request

 

the workflow contain 2 line of approval

 

if the first manger approved the work item transferred to the next manager

 

so i want if the approver doesn't approve the leave within specified time is should be escalated to the next approver


i used dead line monitoring (Latest End) but i can't capture the agent correctly for rule 00000168


for more clarification kindly find the below screen shot


1.JPG


in the branch of approving , i set the agent as below


2.JPG

       

in the branch of processing obsolete how can get the responsible manger .

 

Thanks and best regards

ECM Workflow ECM_SUBMIT not triggering, Event SUBMITTED itself not getting raised

$
0
0

Hi All,

 

May be a same old discussion, but even after following every solution, not able to fix the issue since long. Kindly help.

The event CREATED is getting raised &  ECM_CREATE is also fine where the UWL goes to planning manager, but once the PM submits the planning nothing else gets proceeded. SUBMITTED event is not getting raised which is expected to happen post SUMBIT PLANNING, so ECM_SUBMIT also not triggering. The status in 759 is still in 'IN PLANNING' not changing to 'SUBMITTED'.

 

All basic groundwork for workflow, its setting, linkages everything seems perfect. Deleting old entries in process tables, employee history tables & all other related tables are also done, but no joy:(

 

Kindly someone help. Its on the top priority to fix..

 

Many thanks in advance.

Workflows triggering one after another

$
0
0

HI ALl,

Ia m working on a support project.

A a flex workflow is triggering from MV45AFZZ.After flex workflow a Customer workflow is triggering from MV45AFZZ only without manual intervention.

When i verified flex workflow, there is no subworkflow exists niether there is direct call from one of the method in flex workflow nor there exist SWE_EVENT_CREATE or BDC.

Cab anybody explain how is it possible that MV45AFZZ getting called again for Customer workflow?

 

 

Thanks,

SD

Need info on workflow version ?

$
0
0

Hi All,

 

I have an urgent issue in PRD. I have transported a workflow to PRD , but there mail text is missing for 2 tasks in PRD. I have doubt here.

 

1- In DEV, I need to generate new version and provide text for those 2 tasks and capture in TR. If i move this TR to PRD, Old version tasks will be added to newly generated TR along with 2 tasks.    (or)

 

2- Without generating new version, if i made changes to those tasks and capture in TR. Then these changes will reflect without effecting previous transported tasks in PRD.

 

And Please clarify this- If i select older version of workflow, Then is showing "runtime exists" in PRD . What does it mean and How to activate it.

 

 

Please suggest me, which procedure i need to follow or is there any other solution for this.

 

 

Reagards,

Raj.

Viewing all 1026 articles
Browse latest View live


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