Trigger a workflow for some condition

Hi
   When the status of the costing sheet has been changed to ‘Waiting for Approval’, system should trigger a workflow. The BOR which is being used is BUS2031. The events which can be used for triggering the workflow are CREATE & CHANGE. How do we maintain this starting condition for this events ?
Regards
Anik

SWB_COND is used to add restrictions, i.e. to check additional conditions when a triggering event has been created and prevent the workflow from starting unless the conditions are met. My guess is that this is why Karri responded as (s)he did.
So in your case, you must first find out which event is created when the approval status of your costing sheet is changed to "Waiting for approval". If an event is created, and this same event is used for other status changes, you add a condition in SWB_COND.
If no event is created, you have some other options. One is to use change documents, if change documents are created for the business document change. If this subject is new to you, search SDN and other sources for information about SWEC for a start.
Other options would be Business Transaction Events (BTE) or user exits of any kind (including BAdIs of course) which can be used to create an event when the approval status is changed.

Similar Messages

  • Condition recordscoz for some condition type4s

    hi all,
    how can we maintain condition records for some condition types,For eg...
    MWST
    SKTO
    FRA1
    ZA01
    RA01
    HB01
    RB00..etc..apart from MEK1..coz for some condition types this t.code dose`nt work
    Edited by: MANI ROOPA SD/MM on Feb 28, 2008 12:06 PM

    Hi,
    The condition types you have mentioned are supplimentary conditon types and they afre dependent on the main conditons ( Like PB00 ), so they don not have any access sequence.
    Regards
    Reward Points if useful

  • Issue regarding condition pricing date as system date for some condition types in sales order

    Hi
    I have already created a sales order on 30.04.2014. Today I am adding new line item to sales order in VA02 transaction. in this order new line items condition pricing date for conditions JEX2,JECX should show as 12.06.2014. But currently it is showing as 30.04.2014. I need condition pricing date as system date for above conditions.
    Regards
    prashant

    Hi
    When I am changing pricing date VBKD-PRSDT in sales order header . It is changing the condition pricing date for all. Sales order is created on 04.06.2014. I have added line item 150 on 14.06.2014.
    After adding line item 150 , there I have changed the pricing date as 14.06.2014. in sales A tab of item 150. But still it is taking from Sales order header date as 04.06.2014 for all conditions. But my requirement is for line item it should take as system date for some conditions like JEX2,JECX& JA1Y but for other conditions it will take as Order creation date. Please suggest. I have also attached screen shot below. please go through it.
    Regards
    PK
    Sales order header change mode VA02
    Here pricing date VBKD-PRSDT = 04.06.2016
    Item change mode
    I have added new line item 150 on 14.06.2014
    Changed the condition pricing date to 14.06.2014 & saved
    After saving I have gone to Va02 screen of line item 150
    & there I have gone to condition pricing date field from item condition tab
    for JEX2 condition type but still here condition pricing date is showing as
    04.06.2014 as below.
    Condition pricing date
    My requirement is like this
    For some particular conditions like JEX2  condition pricing date will take as system
    date instead sales order creation date when I will add a new item 150 on
    14.06.2014.but for other conditions it will show as order creation date for the
    same line item 150 .

  • Rais the event to trigger the Workflow for promotion/demotion

    I am not able to rais the event to trigger the Workflow for promotion/demotion. Is there any standard Object type for promotion/demotion.
            Please repaly.

    Hello Sudheendra,
    Pls visit to following URLs.
    [http://help.sap.com/saphelp_mdm550/helpdata/en/42/f1a957ebfb1a61e10000000a422035/frameset.htm]
    [http://help.sap.com/saphelp_mdm550/helpdata/en/45/0068570b0c0487e10000000a155369/frameset.htm]
    [http://help.sap.com/saphelp_mdm550/helpdata/en/45/efdc5bb7b404a9e10000000a114a6b/frameset.htm]
    [http://help.sap.com/saphelp_mdm550/helpdata/en/45/0068570b0c0487e10000000a155369/frameset.htm]
    Hope it will be helpful to you.
    With regards,
    Krutarth

  • Trigger the workflow for a minimum amount.

    Hi all,
    I would like to trigger the workflow if only the PO amount meet the minimum of 50 euros or more.  Is there any config settings for these. i have checked the release strategies in SPRO..but cant find the amount field..
    Thanks,
    Neslin.

    Hi Neslin,
    Please refer this [link|https://wiki.sdn.sap.com/wiki/display/CRM/Actionprofilesin+SAP-CRM] for help on Action profiles.
    Please note that in case of action profiles also you would have to maintain start condition for the workflow.
    Regards,
    Saumya

  • Make server stop accepting connections for some condition

    I have a server accepting connections from clients. We don't know in advance how many clients to accept so the server just keeps accepting connections in an infinite loop:
    for( int i = 0; ; ++i)
      server.accept();What needs to happen is some condition has occurred and the server should stop accepting connections. i.e.
    for( int i = 0; stop_accepting_connections == false; ++i)
      server.accept();
    System.out.println( "No longer accepting connection.");Essentially some external event (actually the first accepted client thread) will set stop_accepting_connections to true and break the loop.
    Problem is even when I break out of the loop clients are still accepted. I'm thinking this is caused by server.accept() being a blocking call and even though we've jumped out of the loop the last server.accept() call is still blocking and listening for a single client. I've tried 2 clients connecting when we've broken out of the loop and only the 1st one is accepted, the second just waits.
    1. Is there any way to really stop listening when the condition is set (i.e. how to kill the last blocking accept())? I don't want 1 last trailing client.
    2. For the rejected clients, how do I stop it from just waiting i.e. print some error msg and let it end?

    Problem is even when I break out of the loop clients are still accepted. I'm thinking this is caused by server.accept() being a blocking call and even though we've jumped out of the loop the last server.accept() call is still blocking and listening for a single client.No, it's caused by the TCP 'backlog' queue, which pre-accepts connections even before you call accept().
    1. Is there any way to really stop listening when the condition is set (i.e. how to kill the last blocking accept())?Close the ServerSocket. The thread blocked in accept() will get a SocketException: socket closed, which you should trap and proceed acordingly on. At this point you probably just want to exit the accept() thread.
    2. For the rejected clients, how do I stop it from just waiting i.e. print some error msg and let it end?See above. Any clients which are in the backlog queue will get some kind of SocketException or IOException, probably 'connection reset'.

  • Question about index for some condition

    Hello expert,
    I have following condition in the where subclause, will you please tell if it will use index for transaction_log_fk ?
    pp.transaction_log_fk < p_transaction_log_fk
    Many Thanks,

    You'll have to check out the execution plan if you want to know if Oracle's Optimizer will use the index.
    It depends on the selectivity of your data, table statistics etc.
    If your query returns a lot of records then a FTS would be obvious, for example.
    Here's some more:
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:9422487749968
    And you should read these links from the SQL and PL/SQL FAQ:
    SQL and PL/SQL FAQ
    Read the following threads from there:
    - When your query takes too long...
    - How to post a SQL statement tuning request
    They explain it all.
    Edited by: hoek on Jun 24, 2011 4:48 PM

  • How to Avoid Grouping for some conditions?

    Hi,
    I am facing a problem in Sales_commission Report. In this report I am grouping data Based upon first by
    salesman and then by customer. And also some sorting conditions. I designed all grouping by using report wizard.
    The problem is: If sort_by Parameter =customer then only need to group data based customer.
    Else ie if sort_by= 'order_no' or 'Inv_no' then no need of grouping the data by customer. Display data
    as per sorting condition.
    Is there any solution for this problem?

    Hi,
    I am facing a problem in Sales_commission Report. In this report I am grouping data Based upon first by
    salesman and then by customer. And also some sorting conditions. I designed all grouping by using report wizard.
    The problem is: If sort_by Parameter =customer then only need to group data based customer.
    Else ie if sort_by= 'order_no' or 'Inv_no' then no need of grouping the data by customer. Display data
    as per sorting condition.
    Is there any solution for this problem?There is no way to remove the grouping based on customer, so sorting based on customer will be retained.
    Way to hide the customer group fields in the customer repeating frame is by using format triggers based on sort_by_parameter,
    and place the customer fields in the last group repeating frame also and show or hide this fields depending on sort_by_parameter.
    Hope this helps.
    Best Regards
    Arif Khadas

  • Getting a error when workflow for some users

    Hi, 
    I'm getting this weird error when some users run this workflow. I'm not sure what the problem is how you can help. ALso how woul I enable some of these logging items.
    RequestorId: 2184e724-ab10-839d-4bda-e8175db97de3. Details: System.ApplicationException: HTTP 401 {"error_description":"The server was unable to process
    the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception
    information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs."} {"x-ms-diagnostics":["3001000;reason=\"There has been an error authenticating the request.\";category=\"invalid_client\""],"SPRequestGuid":["95c54cfd-7287-4eca-90a5-cb562caca261"],"request-id":["95c54cfd-7287-4eca-90a5-cb562caca261"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"SPRequestDuration":["57"],"SPIisLatency":["0"],"Server":["Microsoft-IIS\/8.0"],"WWW-Authenticate":["Bearer
    realm=\"c7a65b41-dec2-476c-a601-e711474abe56\",client_id=\"00000003-0000-0ff1-ce00-000000000000\",trusted_issuers=\"00000005-0000-0000-c000-000000000000@*,[email protected]474abe56\"","NTLM"],"X-Powered-By":["ASP.NET"],"MicrosoftSharePointTeamServices":["15.0.0.4496"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1;
    RequireReadOnly"],"Date":["Thu, 04 Dec 2014 02:42:23 GMT"]} at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance
    instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

    Hi,
    Check if User Profile Synchronization service is running and Full Synchronization is done, check all the users that are getting
    error available and sync properly. If user is not available in the User Profile List run Full Synchronization manually or add manually new User Profile to User Profile List.
    Check this for more details
     http://chrisdomino.com/Blog/Post/SharePoint-2013-Quick-Tips-Workflow-And-The-User-Profile-Service
    Krishana Kumar http://www.mosstechnet-kk.com

  • How to trigger a workflow for DESADV when the IDOC reaches status 51

    Hi,
    A notification to the a user should be sent when DESADV goes to a error status 51.
    I'm in SAP6.0 :
    Basic type: DELVRY05
    Message type: DESADV
    Idoc: IDOCDESADV
    Event: inputErrorOccurred
    Task to be linked for the event : TS00008178
    In SWETYPV the event is active, still this event is not getting triggered when the Idoc goes to 51 status.
    What am I missing? Is there any configurations that I'm missing?
    Can anyone please help me to fix this?
    Thank you,
    Renu

    Hi Renu
    There is two way to find the task and workflow....
    In pftc tcode, you can check the task and where it is used by giving the task type as standard and task as 00008178.Display the task,then check where it is used.
    Another way is:
    1.Goto swdm tcode.
    2.Select the Object tab.
    3.Choose catagory as BOR object type and give the Object type as IDOCDESADV.
    4.Then it'll display the task which is refering the method of the IDOCDESADV object.
    5.Click on that task.It'll come to right window.Now select the where used icon...
    6.If there is any workflow,then It'll display the workflow template number,name,step, and client.
    Regards,
    Hemalatha

  • Spool not generated for some conditions

    <b>Requirement :</b>Developing a data transfer program. Approach used is Call Transaction in S mode.
    In some cases(if Receiving Storage Location is PKGX) I need to load only MB11 and other cases I need to load 3 transaction sequentially – MB11 creates Mat. Doc. No.  which in turn passed to the LT06 to create TO(Transfer Order) and the TO passed to LT12 to confirm TO.
    <b>Problem –</b> When I run it in background(it generates report in foreground), job finished successfully, data is loaded into system and spool status shown as error ONLY IF ALL THE 3 TRANSACTIONS CALLED AND LOADED.
    <u>I debugged the Batch Job(using t-code JDBG) line by line output,contents are writen to output but at the end spool goes into error and report is not visible.</u>
    In all other cases like messages/outputs due to record not correct  or/and  only MB11 is to be processed, spool is generated with status Waiting and report is visible.
    <b>Statement at top –</b>
    REPORT  ZL6C_LOAD_INVENTORY_WM_SLOC
            NO STANDARD PAGE HEADING
            MESSAGE-ID ZOLSC_AS
            LINE-COUNT 65
            LINE-SIZE  148.
    <u>It works if I set line-size as 132 .</u>
    To overcome this I used FM GET_PRINT_PARAMETER with various cominations of parameter passed but it doesn’t work –
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
    EXPORTING
    COPIES                 = L_C_ONE
           DEPARTMENT             = L_C_SYSTEM
           DESTINATION            = L_C_LOCL
           EXPIRATION             = L_C_2
           LAYOUT                 = L_C_X_65_255
           LINE_COUNT             = L_C_65
           LINE_SIZE              = L_C_255
           LIST_NAME              = L_LIST_NAME
           LIST_TEXT              = L_LIST_TEXT
           MODE                   = 'BATCH'
           NEW_LIST_ID            = G_C_X
           NO_DIALOG              = G_C_X
           RECEIVER               = L_C_SAP
           RELEASE                = G_C_X
           SAP_COVER_PAGE         = G_C_X
           REPORT                 = SY-REPID
           USER                   = SY-UNAME
    IMPORTING
           OUT_PARAMETERS         = L_PARAMS
    EXCEPTIONS
           ARCHIVE_INFO_NOT_FOUND = 1
           INVALID_PRINT_PARAMS   = 2
           INVALID_ARCHIVE_PARAMS = 3
           OTHERS                 = 4
       IF SY-SUBRC = 0 AND NOT L_PARAMS IS INITIAL.
         NEW-PAGE PRINT ON PARAMETERS L_PARAMS  NO DIALOG NEW-SECTION.
         G_SPOOL = 'X'.
       ENDIF.
    Also when I use this FM under INITIALIZATION then it generates the spool but content written at TOP_OF_PAGE not displayed. When I use it under START-OF-SELECTION, problem still remain same.
    Please Suggest
    thanks
    Sonal

    Hi,
      All spool requests will be stored in TSP01 table
    TSP01 - Spool Requests
    field name for Spool request number is RQIDENT
    Hi,
    Take a look at OSS Note 422136 which states:
    "2. You can only store one spool request even if a step generates several spool requests during processing. The application is responsible for a "spool overview" in this case. If a step generates several spool requests during processing, only one request can be stored. In this case, the application report should issue the number with a message when writing a spool request so that it is then displayed in the job log."
    Also take a look at OSS Note 519059 which further supports the case that you must capture the individual spool numbers as they are being created (i.e. within the job step's program). The note contains the following:
    8] Question: How are the spool requests assigned?
    Answer: The step information is stored in table TBTCP. This has space for exactly one spool request (field LISTIDENT). If a step generates several spool requests during the processing, only one can be stored. In this case the application is responsible for a "spool overview
    <b>Reward points</b>
    Regards

  • Zero value appears in 0sd_c03 from 2lis_13_vditm for some conditions

    Hi friends,
    I am executing the DTP of 2lis_13_vditm to cube 0sd_c03. This is standard and i have not made any changes.
    while loading i am getting values of some values as Zero.
    To be more specific, i have the customer group has a value equal to "EX". and in the PSA for the Customer group ="EX" if the Document currency is same as Statistic currency the net value is comming properly as is found in PSA.
    But if the Document currency and statistics currency are Different. i.e. if Doc. Curr = "INR" and Stat.Curr ="USD", than the value appears in the netvalue of 0sd_c03 as 0.
    Has anyone faced this issue before.
    Is there any solution for this issue.
    Regards,
    Mariadas

    Hi
    Is there any routine in the transformation. Plz once check whether there exists any routine or not.
    Thanx & Regards,
    RavIChandra

  • Hide field of the dynamic line for some conditions

    Hello,
    I have a dynamic table filled like that :
    material  |   qty    |   unit    |    button  
    123455   |    489      |    PC    |     
    987654   |    376      |    PC    |     
    765432   |    534      |    PC    |     
    On the last column I have a button. When I click on it, I would like to show 2 more fields but only for the line where I clicked the field.
    material  |   qty    |   unit    |    button  
    123455   |    489      |    PC    |     
    987654   |    376      |    PC    |__X__        |      here        |       here        |
    765432   |    534      |    PC    |
    I think that I can define my table with 6 columns, hide the header of the last 2 ones, but I can't find any instruction to hide and make visible only fields of the line.
    Could you help me ?
    thanks

    I wrote this in the click method but I get an error :
    var cnt = data.form.TABLE.line.instanceManager.count;
    cnt = cnt;  //zero-based index
    for ( var i = 0; i < cnt; i++) {
    if ( i == this.parent.index )
    if ( data.form.TABLE.line.BUTTON == "X" )
    data.form.TABLE.line(i).new_field = "visible" ;
    else{
    data.form.TABLE.line(i).new_field = "invisible"

  • Trigger workflow for MIRO invoice creation

    Hello,
    In standard functionning it is not possible to trigger the workflow for documents coming from MM.
    When using transaction MIRO and selecting invoice creation the created document has following value :
    BKPF-AWTYP = 'RMRP'. whereas creating it from FB60 results to BKPF-AWTYP = 'BKPF'.
    The problem is standard code checks AWTYP is not equal to 'RMRP' before creating event to start the standard workflow for invoice validation.
    Question : why sap doesn't allow workflow creation for invoices from MIRO?
    Thanks for your answers.
    Best regards,
    Laurent.

    Hi,
    here they are...
    WS20000397 MMIVBlockedP Treatment of inv. blkd for price, Log.IV
    WS20001004 MMIVToRel Release the Completed Log. IV Document
    WS00400026 MMIVquantity Treatment inv.blocked f.quantity reasons
    WS20001003 MMIVToCompl Complete the Parked Log. IV Document
    WS00400027 MMIVprice Treatment invoic.blocked f.price reasons
    All of these workflows are a one-step / one-level of approval and needs some workflow configuration at least for the agent assignments. For a full-blown workflow you should take these workflows as an example, how you could work with it.
    The last two workflows work with preliminary posting on the miro (transaction MIR7).
    Best regards,
    Florin

  • How to trigger a workflow when a info record is changed?

    Hello All,
    I would like to trigger a workflow when the conditions from a info record are changed?
    What business object should be used?
    Thanks in Advance
    Rui

    Hi,
    for these kinds of issues,
    foirst check if a uefull event already exists in the system
    for this you first actiave the event trace: SWELS.
    Then you change the info record.
    And then you read the event log with SWEL.
    If there's no event, you may eventually have to create it in an exit with SAP_WAPI_CREATE_EVENT fm
    Kind regards, Rob Dielemans

Maybe you are looking for