Skip to Content
author's profile photo Former Member
Former Member

Change trip in Travel request workflow

Hi Gurus,

I have two problems in change trip travel request

problem 1.

i have given three options to super visor

1. approve

2. reject

3. Change Trip ( EDIT trip)

above two oprtions are working fine approve and reject but when i exute work item from super visor inbox its going PR05 screen

then i added some comments after saving trip work item is not exuting still it showing super visor inbox .

Please can one give me idea how to do Change trip .

Problem 2.

when i save change trip in super visor inbox travel expenses work flow is triggering . How do i restict this ?

it should not trigger in change trip .

Thanks in advance

Ramesh G

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Nov 13, 2009 at 06:11 AM

    Problem 1 is not clear..

    Plz explain in detail

    for Problem 2....

    Please check in SWE2 whether you are having any entry for Bo BUS2089 against CHANGED event.

    Due to this expense workflow is gettin triggered.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Swaminathan PJ

      Hi,

      Go to SWIA transaction and here you can execute by date and time. Just execute and see whether the particular is in error or what is the exact flow.

      From this transaction, you can find out all the workflow related flows and errors. Double click the work item and then click the LOG. And once you go to the LOG, then you can click the Details button at the top.

  • author's profile photo Former Member
    Former Member
    Posted on Nov 13, 2009 at 06:10 AM

    Hi,

    For your problem 2, i have done like this:

    In the Event Linkages of the Workflow, give a start condition, that is create a new function module.

    Import Parameter:

    OBJTYPE LIKE SWETYPECOU-OBJTYPE

    OBJKEY LIKE SWEINSTCOU-OBJKEY

    EVENT LIKE SWETYPECOU-EVENT

    RECTYPE LIKE SWETYPECOU-RECTYPE

    Tables Parameters:

    EVENT_CONTAINER LIKE SWCONT

    And in that check like this,

    data: wf_uname like ptrv_head-uname,

    wf_schem like ptrv_head-schem.

    select single uname schem into (wf_uname, wf_schem)

    from ptrv_head

    where pernr = objkey+0(8)

    and reinr = objkey+8(10).

    if wf_uname <> sy-uname.

    raise not_triggered.

    endif.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.