Need to trigger workflow based on change to one field in Warranty Claim

Hi All,
I have defined a workflow for the Warranty Claim system with triggering event as CHANGE in BO BUS2222. The workflow is triggerred and everything goes on smoothly. The only thing I need to address is this workflow should be triggerred ONLY when one particular field(CLERK) of the Warranty is changed. I have tried using the field restrictions in transaction SWEC for the Change Object but that doesnt seem to work and my workflow is triggerred on any change I make to the Warranty. Any pointers regarding this issue?
Regards,
Karthik

You will have to fetch the value based on your objectkey. I don't know what is your object key.
Declare: OBJTYPE like OBJTYPE
OBJKEY LIKE SWEINSTCOU-OBJKEY
EVENT   LIKE   SWETYPECOU-EVENT   
RECTYPE  LIKE SWETYPECOU-RECTYPE  in the import parameter of your func module.
EVENT_CONTAINER    like SWCONT       in tables of func module.
In source code do these declarations apart from your other declarations which is required  DATA: lv_object_key  LIKE sww_contob-objkey ,
        lv_event       like SWETYPECOU-EVENT,
        lv_objtype     like SWETYPECOU-OBJTYPE,
Now say for an example your object key is sales order and you want only those orders for which order type is OR (standard sales order).
Then you can  fetch the order type from any of the sales table and check if it is OR or not. Here your input will be lv_object_key.
eg: select order type from vbap where sales order =l v_object_key. Some logic like this.
If it is not OR then raise an error.
In this case when the required condtion is not satisfied the workflow won't be triggered.
Get back to me if you are facing problems
Thanks and Regards,
Shweta Verma

Similar Messages

  • Trigger email based on change in sharepoint list

    Hello,
    i have uploaded an access web database to SharePoint. i need to trigger an email whenever there is a change in the table of the database. kindly help how do i go ahead doing it.
    Thanks in advance.
    William

    Hi William,
    How did you upload the Access web database to SharePoint? I am wondering whether you import the Access web database table into SharePoint by creating a list.
    If yes, you can create a workflow(using SharePoint 2013 Designer) based on the list which hosts the table of the Access web database, and in the workflow, add an action "Send Email", you can set the receiver and the email body. Then in the workflow
    Start Options, set "Start workflow automatically when an item is created" and "Start workflow automatically when an item is changed".
    After the above, publish the workflow.
    Thanks,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Trigger workflow when PR changed and copmlete activ workflow for same PR

    Hi,
    i am triggering the workflow for all line item of PR when PR is created. now i want to create workflow when PR change also.
    but before triggering the workflow i have to check the any in process workflow for the same and if then complete is and delete all its work item.
    for Ex.
    PR -4500000001 created with item 10 workflow triggerd ,
    suppose i changed it and agan save next workflow trigged now before triggerin this workflow we have to complete the 1 instance of workflow , delete all workitem of that instant
    Please suggest how can i achive this .
    Thanks in Advance
    Deepanker Dwivedi

    Hello,
    We have already implemented this in our old  project.Please find below the solution.
    No config change is required.
    1.Go to tcode SWETYPV
    2. Double click on your linkage.
    3. You will see there check function module.
    4. MAke a custom custom function module of yours and it will have CDPOS and CDHDR as its component.
    5. When so pr is changed or created this function module will be triggered there you can identify whether pr is changed or not using cdpos and cdhdr.
    6. If it is change raise two events one for completeion of old worklfows which are in process second for creation of new workflow instance.
    7. Create a wait step in your workflow which will wait for the completion event to be raised.
    Hope it helps.
    Regards,
    Nabheet Madan

  • Workflow based up Account Manager/Owner field

    We are trying to create a workflow based upon the Account Manager/Owner of a record.
    This is what I have set up for an opportunity
    PRE('<Status>') <> [<Status>] AND [<Status>] = 'Won' AND [<Revenue>] >= 100 AND DivisionName()= "NA"
    I believe that DivisionName() "NA" pulls the Division field from the user who is currently signed in, although I cannot get the workflow to fire with the 'AND DivisionName() = "NA"'
    Is there a way to pull the division field from the user record of the account manager/owner of the record?

    Perfect. This is what I have and it works
    PRE('<Status>') <> [<Status>] AND [<Status>] = 'Won' AND [<Revenue>] >= 100 AND UserValue('<Division>') = “NA”
    Is it possible to do this but look at the account mgr/owner to get their value in the division field instead of the current user's value?

  • Need to trigger workflow after g/l document posted in FB50

    Hi all
    When a user posts a document in FB50 (G/L journal entry), I need it to trigger a workflow.  I can find BTE's that come in to play before the document number is assigned, but I need it triggered after the document number is assigned.  I tried BTE processes 1120 and 1140 but they're too early.  I also looked at many function modules and user exits suggested by various SDN threads but nothing seems to be triggering.
    I already have a workflow created using BO BKPF and can trigger it manually, but not through FB50.  There's lots of info on BO FIPP, but I'm looking at posted documents, not parked documents.  Tracing FB50 with SWELS/SWEL doesn't show anything.
    Any help would be greatly appreciated.
    Ron

    Hi Ronald,
    If you are using ECC 6.0 try to look explicit enhancement, that is kernel BADI (key words: GET BADI and ENHANCEMENT). If there is none also then use implicit enhancement. Implicit enhancement is always available at the beginning and the end of Function Module, Routines, Program, Methods, etc.
    Regards,
    Lim...

  • Custom table needs to be updated based on changes in Info type P0000

    Hi All,
       I have a requirement wherein when we make changes to info type P0000 this should be reflected to a custom table.
    If i create a new record, delete an existing record or make changes to a record in INFOTYPE P0000 this should also be reflected in my custom table.
       My custom table has 5 fields from info type p0000 and some custom fieds.
       please can you let me know exactly which user exit to use to acchieve the solution. and where exactly i can put the logic.
    Thanks,
    Mars

    Hi Venkat,
      I tried to code in the method AFTER_INPUT and executed but there are few thing which i have come across.
    1. when ever i create a new record in PA40 and each time i save the screens of PA40 this method is called and based on check it tries to update the table taht many times.
    2. The logic which i have used in the BADI implementations is as below:
      DATA: l_text TYPE string,
                 l_answer TYPE string,
                 lw_split TYPE XXXX.  (custom table)
      IF old_innnn NE new_innnn.
        lw_split-mandt = sy-mandt.
        lw_split-pernr = new_innnn-pernr.
        lw_split-begda = new_innnn-begda.
        lw_split-endda = new_innnn-endda.
        l_text = 'Does this employee need a split STIP?'.
            Display a pop up message to the user.
        CALL FUNCTION 'POPUP_TO_CONFIRM'
          EXPORTING
            titlebar                    = 'Choose'
            text_question               = l_text
            text_button_1               = 'Yes'
            text_button_2               = 'No'
            default_button              = '1'
            display_cancel_button       = space
         IMPORTING
            answer                      = l_answer
         EXCEPTIONS
            text_not_found              = 1
            OTHERS                      = 2.
        IF sy-subrc EQ 0.
          IF l_answer EQ '1'.
            lw_split-stflg = 'Yes'.
          ELSE.
            lw_split-stflg = 'No'.
          ENDIF.
        ENDIF.
        MODIFY TABLE  XXXX FROM lw_split.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait = 'X'.
      ENDIF.
    3. when i try to activate this chunk of code it gives me error  saying "XXXX" is unknown. i tried to declare it under TABLES but in Vain.
    4 I have also tried to use the modify statement in IN_UPDATE instead of updating custom table in same method but its giving me same error "XXXX" is unknown. i tried to declare it under TABLES but in Vain.
    can you let me know your view on this. The above chunk of code is in case of creating a new record in P0000 info type.
    Thanks,
    Mars
    Edited by: Mars878 on Oct 13, 2009 9:18 AM

  • Update a field in view, based on change in one of it's tables.

    Hi,
    I have created a Maintenance view based on three DB tables.
    My requirement is if i change data in one the database tables the view should get automatically updated with the new data.
    Could anyone please soleve my issue, points are definite.
    Thanks and regards,
    raghavendra goutham p.

    Hi,
       any changes to the database field value will
       automatically gets reflected in view .
       please check it.
    Regards
    Amole

  • Sum Fields based on change in another field

    I have data that looks like this
    <Records>
    <VBLEN>123</VBLEN>
    <MATNR>012356</MATNR>
    <ZSPR>1.02</VBLEN>
    </Records>
    <Records>
    <VBLEN>123</VBLEN>
    <MATNR>568954</MATNR>
    <ZSPR>2.05</ZSPR>
    </Records>
    <Records>
    <VBLEN>856</VBLEN>
    <MATNR>259865</MATNR>
    <ZSPR>5.98</ZSPR>
    </Records>
    <Records>
    <VBLEN>856</VBLEN>
    <MATNR>359874</MATNR>
    <ZSPR>4.12</ZPSR>
    </Records>
    <Records>
    <VBLEN>856</VBLEN>
    <MATNR>985698</MATNR>
    <ZSPR>1.06</ZSPR>
    </Records>
    In my output, I have a field on every line that is a total. So My output needs to look like this.
    <Records>
    <VBLEN>123</VBLEN>
    <MATNR>012356<MATNR>
    <ZSPR_TOTAL>3.07</ZSPR_TOTAL>
    </Records>
    <Records>
    <VBELN>123</VBLEN>
    <MATNR>568954</MATNR>
    <ZSPR_TOTAL>3.07<ZSPR_TOTAL>
    </Records>
    <Records>
    <VBLEN>856</VBLEN>
    <MATNR>259865</MATNR>
    <ZSPR_TOTAL>11.16</ZPSR_TOTAL>
    </Records>
    <VBLEN>856</VBLEN>
    <MATNR>359874</MATNR>
    <ZSPR_TOTAL>11.16</ZSPR_TOTAL>
    </Records>
    <Records>
    <VBLEN>856</VBLEN>
    <MATNR985698</MATNR>
    <ZSPR_TOTAL>11.16</ZSPR_TOTAL>
    So I need the sum of ZSPR on each line, but it has to be the sum of ZSPR for each instance of VBLEN.

    Hi Dave,
    If you are using below graphical mapping logic , you have to apply some logic (shown below ) for remaining fields of output.
    For getting Total sum  value based on VBLEN :
    For arranging remaining fields of output xml :
    Note : ZSPR_TOTAL is mentioned as Total.
    Thanks
    Hari.

  • How to print same layout twice changing only one field dynamically

    I have a report which prints three pages invoice in Dollar currency, I want that same report to print those three pages again but the currency will be changed dynamically based on certain criteria. It means I three pages for Dollar and next three pages for other currency.
    Or if you can help me printing the same report twice(do not want # of copies to be set to 2).
    Please it's urgent.
    Thanks
    Kailash.

    Hi
    Distribution.
    and the pass different currency in distribution.
    Regards
    chaluve

  • Query - Remove duplicate records based on value of  one field

    Hi,
    Pleae see the data below,
    how to remove records when its count 0
    AND those records (name ) repeat with count > 0
    existing data
    name                       loc                            count
    aaa          a1          10
    aaa          a1          0
    bbb          b1          0
    ccc          c1          0
    dcc          d1          11
    dcc          d1          0
    required output
    name                       loc                            count
    aaa          a1          10
    bbb          b1          0
    ccc          c1          0
    dcc          d1          11
    remove these records -
    aaa          a1          0
    dcc          d1          0Thanks.

    i assume that loc always corresponds to name. So to find the rows to remain is just a simple group by
    with data as(
    select 'aaa' name,'a1' loc,10 count from dual union all
    select 'aaa','a1',0 from dual union all
    select 'bbb','b1',0 from dual union all
    select 'ccc','c1',0 from dual union all
    select 'dcc','d1',11 from dual union all
    select 'dcc','d1',0 from dual )
    select
      name
    , loc
    , max(count) cnt
    from data
    group by
      name
    , loc
    order by
      name
    , loc
    NAME     LOC     CNT
    aaa     a1     10
    bbb     b1     0
    ccc     c1     0
    dcc     d1     11to find the other is just a minus
    with data as(
    select 'aaa' name,'a1' loc,10 count from dual union all
    select 'aaa','a1',0 from dual union all
    select 'bbb','b1',0 from dual union all
    select 'ccc','c1',0 from dual union all
    select 'dcc','d1',11 from dual union all
    select 'dcc','d1',0 from dual )
    select name,loc,count from data
    minus
    select
      name
    , loc
    , max(count) cnt
    from data
    group by
      name
    , loc
    order by
      name
    , loc
    NAME     LOC     COUNT
    aaa     a1     0
    dcc     d1     0so a delete would be
    delete from data
    where
    (name,loc,count)
    in
    (select name,loc,count from data
    minus ..regards

  • Workflow - based on idoc status workflow have to trigger

    hi,  i generating IDOC using abap program, when i generated IDOC workflow triggering, my recruiment is based on IDOC status
    workflow have to trigger, eg success status 30 means mail have to go one person, if fail means mail as to go another person. I trying for last two days any one can help me.

    Hi Rajendra,
    You need to trigger workflow only if u require any approval/Rejection.
    If you just need to send a mail on idoc status 30 or fail status, u need not to trigger workflow.
    You can do it with the help of standard FM also. Just search by putting Mail or sendmail* in t-code SE37, you will surely get an relevant FM which you can use in Condition of Status of idoc.
    Hope it will help u.
    Regards
    Nitin

  • Need to trigger change pointers for a change in std text

    I need to trigger an idoc via change pointers when any change in a std text occurs. I am doing this for changes in Customer Master. For example, if the std text obtained via tcode XD02 is changed, then I need to trigger an idoc. Is this possible? What is the object class used?
    Thanks,
    Keerthi

    Hi,
    All Standard text views are stored in V_E071.
    Use the View for V_E071 for checking standard text transport
    Give Object Filed Name = TEXT and check
    And search the standard object
    Go to se09 create workbench request and
    Double Click the request and go to program give R3TR and Object: TEXT and object Name: TEXT, Nike_FT_AB_4700, ZEPC, D
    Object: TEXT
    Where   Nike_FT_AB_4700 is Customized Name of Standard Text
    Text Id: ZEPC (Default: ST)
    Language: D (DE)
    Go to SE03  double click the Search for Objects in Requests/Tasks in the
    R3TR Object ; TEXT and do search.. with respective to that you will get change request.
    Do rewards points.

  • Workflow based on Account Manager

    Is it possible to create a workflow based on the Account Manager field?
    I currently have this is the code
    FieldValue('<Owner>') = "Joe Smith"
    I also tried
    [<Owner>] = "Joe Smith"
    Neither of them worked. Anyone have suggestions?

    I believe Owner field maps to Alias field in User.
    If the trigger event is When New Record Saved, then try it with OwnerId.

  • Creation of change document to trigger workflow.

    Hi,
    I need to trigger a workflow when there is a change in the PO line item (EKPO). For this, I can use the standard change object EINKBELEG, but this only bears the purchasing document number as the key. hence when ever a change event is triggered in the custom BO, the key is just the PO#. This should be not the case.
    The key field should be a combination of the purchasing document number and the line item number, hence I created a custom change object ZEINKBELEG refering to EKPO and generated it too. The steps in SCDO, SWED, SWEC has already been handled. But the custom event in the business object does not get triggered. I need some help regarding this.
    Precisely speaking, if there is a change in the line item value (in ME22N). The business object event should trigger.
    Thanks,
    Sukumar.

    Hey Sukumar,
    Do one thing  instead of creating  custom change document. create a new  event in bus2012 using condition editor of SWEC only create a event only when there is a change in EKPO. that resolves your issue..  just a suggestion

  • How to trigger workflow from changes in Sales Order in CRM?

    Hi Experts,
    I want to trigger event at the time of saving the changes in sales order (TCODE- CRMD_ORDER).
    I have found one BO - BUS2000115 but it is getting triggered only after new creation of sales order.And there is no BO available when we change the sales order.For this reason I have created one customize event in BO(BUS2000115).
    Now my question is How should I link this customize event so that it will trigger after saving the changes ?
    I have seen SWEC transaction but was not able to find anything to link this customize event.
    Please help ....!!!
    Good response will be rewarded.
    Thanks
    Snehasish Das
    Edited by: Snehasish Das on Feb 14, 2008 2:31 PM

    In SWEC, actually you link the change document object to a Business object and its corresponding event , to which workflow should react to.
    If yo udo not find the entry then, yo unedd to create one with finding out the respective chage documnet object.
    Hope that helps.
    Regds,
    Akshay

Maybe you are looking for

  • R3trans error with code 0012 and its Solution

    After system refresh i got following error from Quality system while running R3trans -d This is R3trans version 6.14 (release 700 - 18.09.06 - 09:35:00). unicode enabled version 2EETW169 no connect possible: "DBMS = ORACLE --- dbs_ora_tnsname = 'QUA'

  • Import Server - Error in connecting Import Server

    hi Team, One of our business application integrated with MDM getting error as "Error in connection Import Server". As i checked all the repositories and they are all active/online. Please advise what all the place/items to cross very and take necessa

  • Multiple selection ranges reversed when I append on storyline

    When I append multiple selection ranges in a clip to the storyline, the order is reversed on the storyline.  I've found others with similar issues and no solution aside from deleting FCP preferences in the library and/or reinstalling, both of which i

  • How can I see who is hosting the group call before...

    I want to see who's in the call before answering. Is there anyway to do this?

  • Need a signed JAR that lasts longer than a year

    We need to sign JARs but we can't use the standard Thawte or Verisign root CA. Both of them expire in a year. Since my company does not own the servers on which our application is installed, we can't revisit our customer's servers just because the si