Alignment of body for work item via SWNCONFIG

Hi All,
As per my present client scenario, every work item will be sent to UWL and external mail also. It means, user wants to execute the work item from external mail (Gmail or outlook)through SWNCONFIG transaction. Here my issue is as follows.
I am getting the below issue when work item goes to external mail.
Body sequence is out of alignment as you can see it in Red color below(You can observe the placement of the symbol u2018:u2019 is out of alignment).
Actual Output Required:
Item #                         : &MATNR&
Description                    : &WA_MARA.MAKTX&
Item type                      : &WA_MARA.ITEMTYPE&
Project ID                     : &WA_MARA.LPID&
Product Group                  : &WA_MARA.PRODUCTGRP&
Purchase / Manufacture value   : &WA_MARA.PUR_MAN_VALUE&
PDM Status                     : &WA_MARA.PDMSTATUS&
Life Cycle Status              : &WA_MARA.LCSTATUS&
Task sent by                   : &WA_MARA.ZUSER&
Actual Output Obtained At Present:
Item # : 1111
Description : PDM Data
Item type : PHysical Item
Project ID : Local Project ID
Product Group : Product Group
Purchase / Manufacture value : P
PDM Status : PDM Status
Life Cycle Status : Life cycle
Task sent by :
Please let me know the solution for this asap.I would really appreciate you for your help in this.
Thanks in advance..

Hi!
You can try playing around with mail formats in SWNCONFIG, provided work item text is formatted using tabs, however I do not think that will help. You should format task description using SAPscript formatting symbols - SWN_SELSEN should convert it to correct output format.
Or you can create work item description in HTML - that should keep formatting everywhere. Use tab "Work item display" in your WF step, there is a demo f-n module SWL0_PREVIEW_DEMO_HTML that can be used as example.
WBR -
Pauls

Similar Messages

  • UWL - direct URL needed for work items

    We have NetWeaver Portal EP7 and use the UWL for work items from the ECC6 backend system. The work items appear as expected and users can process them correctly.
    I now have a requirement for a direct portal URL for each work item that appears in the UWL so that it can be accessed directly instead of via the UWL. However, I'm struggling in my attempts to find or construct such a URL.
    I would appreciate any help to resolve this.
    Trevor

    Hi,
    Why do you need this URL? If you want the recipient to be able to display a work item from within an e-mail, this can help you : [Executing or Displaying Work Items from Within a Message|http://help.sap.com/saphelp_nw70/helpdata/en/c7/009f405660f418e10000000a1550b0/frameset.htm].
    Regards,
    Pierre

  • Error handling for work item

    Dear All,
         When I trigger my workflow from SWUE,the workflow containers must be populated with agent name.But it is populated only with 'US'.Please suggest.
         On the other hand, when I trigger my workflow from ME21N,the workflow goes into error.The error statement is "Exception occurred - Error handling for work item 000000954797".What is the problem?
        Please suggest the solution for which I will be grateful.
    Thanks and regards,
    S.Suresh

    Dear ,
    I use bus2012 as BOR and event as created.
    When I create purchase order from ME21N,bus2012 is not triggering.Instead FREBUS2012 gets triggered which is a subtype of bus2012.
    At SWETYPV,event linkage is activated only for BUS2012 and there is no entry at SWETYPV for FREBUS2012.
    Though I configured the workflow with start events:BUS2012->created,why FREBUS2012 should trigger my workflow which is not seen in SWETYPV?How to override it?Please suggest.
    There is no start conditions for my workflow.Whenever purchase order is created,this workflow should trigger.
    So,the parameters passed between even to workflow are 
    &_EVT_OBJECT&    ->        &BUS2012&
    &_EVT_CREATOR&   ->     & WFINITIATOR&
    Thanks and regards,
    S.Suresh

  • How to deactivate *Schedule Background Job for Work Items with Errors* SWU3

    Hello Guys,
    Can any one tell me how do I DEACTIVATE Schedule Background Job for Work Items with Errors in sap workflow SWU3.
    Currently it is green which I don't want. I want to stop this service.
    Regards
    NK

    Hello,
    You could also just stop the job in tx SM37.
    But why would you want to do this? As a test?
    regards
    Rick Bakker
    hanabi technology

  • Repeats for work items with temporary errors for background WI

    Hi!
    I have a task that generates a temporary error method in order to activate the Repeats for work items with temporary errors. It currently has 5 repeats at intervals of 2 min. After running above the WI-status is 'Error'. When Restart by SWPR runs only once and sends the message 'Work item set to error following 05 failed attempts'.
    Please can tell me any way that when run again relaunch fixed repetitions.
    I welcome your comments.
    Thanks.
    Regards,
    Raisme Wilhelm

    Hi Raisme,
    Please show me since it is the design of the workflow. It is probable that you are inside a repetitive sequence that send several work items.
    Best Regards
    Victor Enzo
    Edited by: Victor Enzo Montenegro on Feb 23, 2011 3:34 PM

  • Master Table for Work Items from BSP Application

    hello guys,
    just want to ask if there is a master table for work items (and other details) from BSP application?

    Hi,
          Ya its true but i want to connect my customized application to UWL in Enterprise Portal and there after approval i want my workitems to be punched in R/3 system.Is there any source code available,so that my application directly contact UWL in sap enterprise Portal as a link or workitems where user should have an option to approve or reject.
    If u have any idea plz let me know.
    Thanks in Advance
    Regards
    Santosh Saraf

  • Enqueue for work item n deleted by called application

    Hi All
    We upgraded from 4.6C till ECC6.0 and from then we receive occasionaly messages in SM21: Enqueue for work item 000001198539 deleted by called application.
    This results in problems when 2 dialog task are executes after each other. Somethimes the second taks is not executed. I find in the log the following errors:
    - Temporary error in result processing of work item 000001199739
    - Error when loading component: Work item 000001198388 locked
    - Work item 000001198388 locked by user WF-BATCH (enqueue error)
    This is the head of the WF that's locked..
    We implemented all relevant OSS notes regarding the message, but still we receive those messages (notes 1040693 - 1050793 etc) We are on support package SAPKB70012.
    I have checked the code in our custom WF and in some background task we use a DEQUEUE_ALL. Can this be the problem? The WF worked perfectly in 4.6C.
      CALL FUNCTION 'ENQUEUE_EFBKPF'
       EXPORTING
    *   MODE_BKPF            = 'E'
    *   MANDT                = SY-MANDT
         bukrs                = i_bukrs
         belnr                = i_belnr
         gjahr                = i_gjahr
    *   X_BUKRS              = ' '
    *   X_BELNR              = ' '
    *   X_GJAHR              = ' '
    *   _SCOPE               = '2'
         _wait                = 'X'
    *   _COLLECT             = ' '
       EXCEPTIONS
         foreign_lock         = 1
         system_failure       = 2
         OTHERS               = 3
      IF sy-subrc <> 0.
        RAISE locked.
      ENDIF.
      UPDATE vbsegk SET zlspr = i_zlspr
                    WHERE ausbk = i_bukrs
                      AND belnr = i_belnr
                      AND gjahr = i_gjahr.
    *                and ( zlspr = 'A' or zlspr = 'Y' ) .
      COMMIT WORK AND WAIT.
      CALL FUNCTION 'DEQUEUE_ALL'
           EXPORTING
                _synchron = 'X'.
    Any help appriciated
    Kristof

    The entries we have solved by removing the DEQUEUE_ALL function in a method.
    Still we receive somethimes errors in the workflow log
    Temporary error in result processing of work item <n>
    Message no. SWP030
    Error when loading component: Work item <n> locked
    Message no. SWP034
    Work item <n> locked by user WF-BATCH (enqueue error)
    Message no. WL605

  • Lock particular warehouse for particular item via code

    hi all,
    i need particular warehouse locked for particular item via code.
    i designed one form   header have item code and warehouse.
    when i press the add button warehouse locked for that particular item.
    Thanks & Regards
    Sudhir.B

    The answer is:
    Using the Items Object of the DI, set yourself to the correct line and set the locked property.
    for(i=0;i<oItem.WhsInfo.Count;i++)
         oItem.WhsInfo.SetCurrentLine(i);
         if(oItem.WhsInfo.WarehouseCode == "CodeOnTheForm")
              oItem.WhsInfo.Locked = SAPbobsCOM.BoYesNoEnum.tYES;

  • How to generate the User-Input XML Body for executing workflows via REST APIs: The Solution

    I see that executing a workflow via REST APIs requires lot of work to be done just to prepare the right User-input XML body. Any mistake and you have some major debugging to do. Larger the number of User-Inputs, the bigger is the problem.Life is so much easier at the WFA GUI with Display names and tooltip help for User Inputs which are very easy for reading and providing the right values. I don't have any such privileges when manually preparing the User-Input XML body.It’s been asked numerous times how to provide User-Input values for type table, or Query (Multi-Select) etc. These are complex User-Input types and has lots of scope for user mistakes.I can have User-input dependency at WFA GUI which allows me to make the right selection, but while preparing my XML body I need to take care of it myself.An operator is allowed to execute workflows, but the same Display names which help him make the right user-inputs, makes it impossible for him to prepare the user-input body xml. Display names can't be used in in XML body and he can't know the exact parameter names by looking at the Display names. So he need to always contact the Admins/Architects for this. And Architects/Admins can't be expected to keep providing User-Input XML body to operators every operator. How about if I could enter all the User-Input values in my workflow execution at WFA GUI, I can do a preview which passed to my satisfaction and then I can magically get the XML body for it which I can use to execute my workflow from REST APIs from any client. It could be so very much easy for me than building my User-Input XML body manually. This is exactly what I'm going to give you right now. You open the WFA in browser, Go to your workflow, Start execution, you input values from GUI reading carefully the display names, preview it to your satisfaction and then get the XML body. Assume your workflow is called “Workflow to Print a given Message”. It’s a simple workflow with only 1 user-input Displayed as "Message to Print" Prerequisites:  The following are the one-time prerequisites. You need PowerShell 3.0 on your WFA server.Import the attached Generate_Workflow_User_Input_Body_in_XML.dar in your WFA. It’s our magical command called "Generate Workflow User Input Body in XML"Add credentials of a WFA Admin/Architect in you WFA itself with Name/IP: localhostMatch: ExactType: OtherName/IP: localhostUsername: <WFA Admin/Architect Username>Password: <User Password>   Steps: Suppose you have a workflow called "Workflow to Print a given Message". You want to execute it from REST apis and need to prepare the user input XML body.  Select this workflow and clone it. The workflow clone is the exact copy of your original workflow word by word, input-by-input. It will open in Edit mode with name "Workflow to Print a given Message - copy".Add the command "Generate Workflow User Input Body in XML" at the beginning of your workflow. This is a must. This command need to be the first command in your cloned workflow.This command requires no input. So for its Parameters just press okay and save the workflow.You are done.Now Execute the clone workflow. You'll see all the user-inputs available to you. Make your choices as you wish. Preview it to confirm that planning is passed and u have no errors.Execute it now.You'll see that the our magical command "Generate Workflow User Input Body in XML" has failed in our clone workflow execution. Don't worry, its fate was decided to be so. But it didn't fail before giving me what I really wanted. i.e. my XML body for my real workflow. It displayed it in the GUI as well as saved it in your WFA server @ C:\temp\<workflow_name_dd_MM_yyyy_hh_mm_ss_.xmlIt also deleted all the reservations of this particular failed job. So NO major residue left to be cleaned.To summarize: Clone Your workflow and Add the command "Generate Workflow User Input Body in XML" as your first command.    Start Execution, provide your User-inputs and preview it. Be satisfied and Press Okay.   Now Execute it.  After a few scconds this cloned workflow will fail with Error "All done. The Workflow will fail now."     See the command execution logs for this command. You'll see the User-Input XML body. It has also saved the XML file at C:\temp in your WFA server.   Have fun. sinhaa  

    Providing a new version 1.1.0 of the command "WFA Schedular" Changes made: Added conditional String Representation based on the Scheduling parameter provided. Provided check for the right number of parameters passed into the command.Added a new parameter "Expiry Date" to automatically stop the recurring execution upon expiry.Check for Posh3.0 version in code.Have Fun!! sinhaa Below example for:Schedule a workflow for recurring execution every alternate day i.e. once in 2 days at 10:30 PM starting 06-Jul-2015 (Today's date is 02-Jul-2015) . The recurring workflow execution  should expire on 31-Dec-2015 and stop.  

  • No cost on for stocked Item via return

    From time to time we stock in an Item to a Return Warehouse via a return and since there is no cost for that item it is stocked in with no associated cost.
    Are there others experience this problem?
    If so how do you do a work around?

    Check - Allow stock release without item cost is ticked in
    Administration -->System Intialization --> Company Details --> Basic Intiallization Tab,
    Simulate it in test database before doing it.
    If it is ticked, detick it
    Do Inventory Revaluation to a new price.
    Jeyakanthan

  • Show detailed screen for "WORK ITEMS"

    Hi
    We have configured POWL for showing Leave / Travel request. The requirement is ... we have to show detailed screen of respective item which are displaying under "Work Items", it's a combination of Leave / Travel etc.
    How do I show complete detail screen of selected item which are displaying under "Work Items "???
    Thanks

    Powl has multiples queries ie leave request and Timesheet you can all filter to see all tasks in one screen ALl the queries in the initial screen comes form POWL_COCKPIT

  • UWL: enabling the web GUI for html for work items

    Hi,
        We have configured UWL in portal. All the backend work items are appearing in the UWL iView in portal.
    But when we click on some of the work items SAP GUI opens instead of web GUI for html.
    Does any one have information what needs to be configured in UWL configuration xml file so as to enable the web GUI for html for rest of the work items?
    Regards
    Sk

    Hi,
        We have configured UWL in portal. All the backend work items are appearing in the UWL iView in portal.
    But when we click on some of the work items SAP GUI opens instead of web GUI for html.
    Does any one have information what needs to be configured in UWL configuration xml file so as to enable the web GUI for html for rest of the work items?
    Regards
    Sk

  • Error in WEB IC FOR WORK ITEM "Choose an assignment reason"

    We are getting an error in WEB IC where user is trying to resubmit the work item by giving the resubmission date, re submission reason , Status, and sub status
    but when users are trying to save  it they are getting an error i.e. "Choose an assignment reason" and they are not able to complete the process
    I know there is config for maintaining "Define Reasons for Assignment of Work Items" in SPRO under work items, but this config is not applicable since we are not assigning work item to a new unit and/or a new collection specialist, or removing any assignment.  we are just re submitting the work items
    Any help on this will be highly appreciated.

    Hi,
    Just a thought - on a couple of my previous projects we had some custom CRM Fron-end validation between Work Item Sub Status and either re-assignment reason and/or Closing result code.
    Perhaps check with your Development support team to ensure no such cross-validation exists upon saving.
    Regards,
    Ivor Martin

  • Table for Work Item

    Hi Experts,
    I am searching for tables that would give me work items that are un processed. Then find the responsible person who has to take action on that un processed work item.
    Thanks in advance.

    If I understood you correctly toposmotrite table REPOSRC
    but generally one most likely not be enough so that the search here 
    D010S    
    DD03L    
    FUPARAREF
    D010T    
    D020SINF 
    D021S    
    D022S    
    D023S    
    DD05S    
    D010INC  
    DD08L    
    DD08T    
    D010SINF 
    DD12L    
    DD12T    
    DD16S    
    DD17S    
    DD20T    
    DD21S    
    DD23L    
    DD23T    
    DD24S    
    DD25T    
    DD29T    
    D010TAB  
    D010TINF 
    D020S    
    D020T    
    D021T    
    D301T    
    D345T    
    D347T    
    DBDIFF   
    DBMAPS   
    DD01L    
    DD01T    
    DD02L    
    DD02T    
    DD03T    
    DD04L    
    DD04T    
    DD06L    
    DD06T    
    DD07L    
    DD07T    
    DD09L    
    DD20L    
    DD25L    
    DD26S    
    DD27S    
    DD28S    
    DD29L    
    DD30L    
    DD30T    
    DD31S    
    DD32S    
    DD33S    
    DD35L    
    DD36S    
    DD40L    
    DD40T    
    DD42S    
    DDTYPES  
    DDTYPET  
    DDXTF    
    DDXTT    
    DF03L    
    DF03T    
    DF04L    
    DF04T    
    DF06L    
    DF06T    
    DF07L    
    DF07T    
    DF08L    
    DF08T    
    DF10L    
    DF10T    
    DF11L    
    DF11T    
    DF12L    
    DF12T    
    DF13L    
    DF13T    
    DF14L    
    DF14T    
    DF15L    
    DF15T    
    DF16L    
    DF16T    
    DF30S    
    DF34S    
    DF40D    
    DF41S    
    DF42S    
    DF43S    
    DIAPAR   
    DM02L    
    DM02S    
    DM02T    
    DM03S    
    DM25L    
    DM26L    
    DM40L    
    DM40T    
    DM41S    
    DM42S    
    DM42T    
    DM43T    
    DM45L    
    DM45T    
    DM46S    
    DOKHL    
    DOKIL    
    DSYST    
    ENLFDIR  
    EUDB     
    EUGUITEXT
    EUOBJ    
    EUOBJEDIT
    EUOBJT   
    FUNCT    
    IADB2    
    IADB6    
    IAINF    
    IAMSS    
    IAORA    
    IASYB    
    IGDB2    
    IGORA    
    LDBA     
    LDBB     
    LDBD     
    LDBH     
    LDBN     
    LDBNT    
    LDBQUAN  
    LDBT     
    MACID    
    MACOB    
    MCUSREXITS
    NOTRA    
    RODIR    
    RSMPTEXTS
    SEOCLASS 
    SEOCLASSDF
    SEOCLASSEX
    SEOCLASSTX
    SEOCOMPO 
    SEOCOMPODF
    SEOCOMPOEX
    SEOCOMPOTX
    SEOFRIENDS
    SEOIMPLREL
    SEOMAPATT
    SEOMAPCLS
    SEOMETAREL
    SEOREDEF 
    SEOSUBCO 
    SEOSUBCODF
    SEOSUBCOTX
    SEOTYPEPLS
    T100     
    T100A    
    T100O    
    T100T    
    T100U    
    T100X    
    T512CLU  
    TCDCOUPLES
    TDCT     
    TERCL    
    TERCL2   
    TERCL3   
    TERM     
    TERM2    
    TERM3    
    TERM4    
    TERM6    
    TERM7    
    TFDIR    
    TFM18X   
    TFTIT    
    TGDB2    
    TGINF    
    TGORA    
    TITLE    
    TLDB     
    TLDBT    
    TLIBG    
    TLIBT    
    TMDIR    
    TPARA    
    TPARAT   
    TRBAT    
    TRDIRT   
    TRESC    
    TRMSG    
    TSDB6    
    TSINF    
    TSORA    
    TSPDD    
    TSTC     
    TSTCA    
    TSTCC    
    TSTCP    
    TSTCT    
    TSTC_SM  
    TSTC_SRT 
    TTREE    
    TTREEI   
    TTREEN   
    TTREEP   
    TTREET   
    TTREE_APPL
    TTREE_FLNK
    USOBT    
    WBACTIONS
    WBACTIONST
    WBEXTTYPES
    WBOBJTYPES
    WBOBJTYPT
    WBREGISTRY
    WBTOOLTYPE
    DOKCLU
    Edited by: DAV_999 on Oct 15, 2009 1:25 PM
    Edited by: DAV_999 on Oct 15, 2009 1:26 PM
    Edited by: DAV_999 on Oct 15, 2009 1:27 PM

  • How to set status for work items

    Hello Friend's,
    As per my client current  scenario  every work item will be sent to 3 useru2019s .If any one  of the  user click on work item  it will automatically call a  Ztransaction  for further action. Here if the user has viewed  the item and  back to sap inbox by clicking the back push button(in Ztransaction)  without any modification or taking the any action(SAVE)  then the rest of other user (2 users ) work items  are disappearing from  other user SAP inbox.
    But my client required that  whenever  the user click on back button it should be READY status to  all  the users  and it should not disappear  from other user SAP inbox.    
    Please provide me any advice to the above requirement.

    Hello Ranga,
    that requirement is solved here: Automatic put back workitem after execution
    But as it's quite an old one, it's hard to find here by the Forum's search option.
    A more advance way could also make use of the work item exits.
    Best wishes,
    Florin

Maybe you are looking for