T&E Task TS20000130 (Set trip status to approved) - pernr locked errors

We are using a delivered task (TS20000130 - Set trip status to approved) in our T&E approval workflow.  Since moving this to production, weu2019ve experienced intermittent cases where the workflow step completes with an error because the pernr is locked.  Does anyone know what causes the pernr to be locked?  Based on when this is happening, it appears that it may be being caused by payroll being locked.  Also, Iu2019ve noticed that it executes the step multiple times prior to returning the error.  Does anyone know if itu2019s possible to increase the number of times the step is executed before returning an error?  Is there a way to change the time period between executions of the step?

Hello All,
It might be due to auto locking settings which will lock the user if he/she does not log into SAP for some considerable period of time. At least this is the case at my client.  Re-check the Profile Mapping settings and see the difference after unlocking.
Let me know if anyone has more on this or disagrees with my comment.
Rgds
CONMJI

Similar Messages

  • Set required status for all subtypes first error

    Hello,
    While implementing OSS note 1744002 for Application Control Workflow i had the following error.
    In fact, i added a new attribute for BOR bus2201.
    When i wanted to change the status to implemented, i got the following error 'Set required status for all subtypes first'.
    Thanks,
    Meriem.

    Hi Meriem,
    Any new attribute should be added to the newly created custom SubType of the Object type BUS2201, but not Object BUS2201 itself.
    Revert the BOR BUS2201 to its original state and add the new attribute to your z<subtype>. You will no more get the error.
    Regards,
    Kiran

  • BAPI to set user status for PS

    Hi,
    I need to set the status as approved "E0002" from BAPI ( from workflow) for Project definition (BUS2001)
    I got BAPI " BAPI_BUS2001_SET_STATUS" and gave import parameter for  project definition but i couldnt able to give value for  set_user_status as it takes only 4 char but my status(JEST) is 5 char (E0002).
    Please help me how to use this bapi and what are all other bapi's i need to call to work correct.
    Ashu

    Use this FM I_CHANGE_STATUS for changing status.
    CALL FUNCTION 'I_CHANGE_STATUS'
    EXPORTING
    OBJNR = v_objnr
    ESTAT_INACTIVE = 'I0001'
    ESTAT_ACTIVE = 'I0002'

  • How to set the status when Idoc fails

    Hai ,
    I created Idoc extension & created a segment under that(Delivery related).
    My requirement is,
    if certain data not found,
    Idoc should fail with text"Shipemnt for delivery <del. No> not found.
    Could you please help me how to do this?
    I checked the table EDIDC table but the above mentioned status is  not there.
    Thanks & Best Regards,
    Bhaskar.

    you need to set the status using IDOC_STATUS
    where ever error occurs populate the status table.
    IDOC_STATUS-DOCNUM = IDOC_CONTRL-DOCNUM.
       IDOC_STATUS-STATUS = '51' ." if it is inbound
       IDOC_STATUS-MSGTY  = Message-type.
       IDOC_STATUS-MSGID  = message-id.
       IDOC_STATUS-MSGNO  = message-MSGNR.
       IDOC_STATUS-MSGV1  = message-MSGV1.
       IDOC_STATUS-MSGV2  = message-MSGV2.
       IDOC_STATUS-MSGV3  = message-MSGV3.
       IDOC_STATUS-MSGV4  = message-MSGV4.
    *  IDOC_STATUS-SEGNUM = ?????????????????
    *  IDOC_STATUS-SEGFLD = ?????????????????
    *  IDOC_STATUS-UNAME  = ?????????????????
       IDOC_STATUS-REPID  = SY-REPID
    *  IDOC_STATUS-ROUTID = ?????????????????
       APPEND IDOC_STATUS.

  • Travel Advance, Posting behaviour when change in Trip Status

    Hello,
    An issue arose with SAP Travel Expenses - Advances.  An advance was entered, then the request approved and settled. 
    No expenses were entered against the trip, but the status was then changed to "Trip Approved, To be setted".  This resulted in a reversing entry for the advance in the posting run.  No changes are displayed in PR05 (other than the statuses in the history tab) but when expenses are then entered against this trip, they are reiumbursed instead of being off-set against the trip advances.
    Has anyone run into this issue? 
    Thank you,
    Tammy Wilkinson

    Hi Tammy,
    It appears that the Settled status of the Advance was cancelled which resulted the posting run to reverse the original posting for advance.
    Entering a separate travel expense will only do the posting without taking the advance into account.  Two options to fix this.
    1) Delete the original advance and amend the approved travel expense and add 'advance' within the trip with expenses.  If the trip for expense is already attained 'Transferred to FI' status, you may need to cancel the original posting and apply the amendment.
    2) Delete the trip with expense transactions and re-submit the advance trip and once approved and settled, convert the travel request(advance) to travel expense trip by adding transaction.
    Let me know how it goes................
    Rgds
    CONMJI

  • BAPI_BUS2173_SET_STATUS should be able to set user status profile.

    Hi,
    I need use a workflow to setup user status profile for PHASE and TASK, but I found that the unique easy way to setup the user status profile for PHASE or TASK is manual operation.  I have created a user status profile of the BUS2173 and BUS2175. I can't use BAPI_BUS2173_SET_STATUS function to setup user status profile, but it can be used to setup a user status after the user status profiel has been setup by manuay.
    Why?
    Best regards,
    Arrow Yang.

    Hi,
    Try calling BAPI_BUS2173_SET_STATUS first time for setting the status profile by passing the status profile in iv_status_profile parameter and the phase guid but not passing the user status to the bapi.
    Now after this again call the same bapi, this time just passing the user status and phase guid and not passing anything in the status profile.
    We have used this bapi to set the status profile.
    Regards,
    Simmi

  • Set pf status in alv oops concept

    Hi all,
    can any one pls tell me  by using which method or class  i can set the
    pf status......?  
    regards
    cnu

    Fast and Easy way
    As you are using OO ALV, remove any function not needed from the ALV via parameter IT_TOOLBAR_EXCLUDING of method set_table_for_first_display and put your own function in the menu of your dynpro PBO via SET PF-STATUS.
    Nethertheless you can use a more complew way using :
    <b>Changing Standard Functions</b>
    Purpose
    The standard functions are not designed for specific applications. As a result, special knowledge of the data displayed cannot be considered. In individual cases, you may design a standard function - such as sorting by a specific column - more effectively in a specific application.
    Process Flow
    1. Define an event handler method for event before_user_command [Page 108]. This event is triggered after the user has selected a function. This means that the ALV Grid Control passes control to the application before the function is executed. Using event parameter I_UCOMM you can restrict the function code to the function you want to modify.
    2. Implement your own algorithm for the function within the event handler method. In this context, you can call methods of the ALV Grid Control.
    3. Reset the function code to ensure that the standard function is no longer executed:
    CALL METHOD <Instance of the ALV Ccntrol>->set_user_command exporting I_UCOMM = SPACE.
    If you never need specific functions of the tool bar, you can hide them for the entire life-cycle of the control. To do this, you use parameter IT_TOOLBAR_EXCLUDING of method set_table_for_first_display  to pass a table that contains the function codes to be hidden.
    <b>Defining GUI Elements in the Toolbar</b>
    Process Flow
    1. Define an event handler method for event TOOLBAR.
    2. Declare a structure for defining a toolbar element:
    data: ls_toolbar TYPE stb_button.
    3. For a pushbutton, for example, you would fill the following fields:
    CLEAR ls_toolbar. MOVE 0 TO ls_toolbar-butn_type.
    MOVE 'BOOKINGS' TO ls_toolbar-function.
    MOVE icon_employee TO ls_toolbar-icon.
    MOVE 'Show Bookings'(111) TO ls_toolbar-quickinfo. MOVE SPACE TO ls_toolbar-disabled.
    In the butn_type field, you specify the type of the GUI element for the ALV Grid Control. For possible values, see the value range of domain TB_BTYPE.
    4. Use event parameter E_OBJECT to append the new definition to table mt_toolbar:
    APPEND ls_toolbar TO e_object->mt_toolbar.
    5. If you want to define additional elements, go back to step 3.
    6. Call method set_toolbar_interactive, if you want to rebuild the toolbar.
    Result
    In the event handler method of event USER_COMMAND, you can query the function code you specified in field function to implement the associated function.
    See also report BCALV_GRID_05 in development class SLIS.
    Look at this documentation too : <a href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf">ALV Gird Control (BC-SRV-ALV)</a>
    Regards

  • Set PF status in popup screen

    Hi ,
    I m creating a ALV report ,in that using set PF status i created push button , in alv output list if i click the push button pop up screen will come in that popup screen it displays the previous PF status, how to add my own PF status in that popup screen
    thanks

    Hi,
    You must have created other screen for the pop up say suppose 9002.
    then we need to write the code in 9002 PBO.
    *&      Module  STATUS_9002  OUTPUT
    *       text
    MODULE status_9002 OUTPUT.
      SET PF-STATUS 'ZNOT3'.
      SET TITLEBAR 'ZTNOT3'.
    ENDMODULE.                 " STATUS_9002  OUTPUT
    Here 'ZNOT3' is is the PF STATUS that ius made according to our need.
    It is recommend that you copy standard status'STANDARD' from function group SALV and modify it accordingly. ALV standard function codes always start with '&'.
    Hope this will help you.
    Thanks,
    Dhanashri.

  • In Standard Report Of ALV How Can Set PF Status.

    In Standard Report Of ALV How Can Set PF Status.
    Thanking in anticipation.

    in the call function module, you pass the PF status parameter.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program       = pgm
       <i> <u>  i_callback_pf_status_set = 'SET_PF_STATUS'</u></i>
          it_fieldcat              = fieldcat
          is_variant               = disvariant
          is_layout                = layout
          is_print                 = print
          i_save                   = 'A'
          it_events                = eventcat
          it_sort                  = sortcat
          i_callback_user_command  = 'USER_COMMAND'
        TABLES
          t_outtab                 = a_output
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
    ENDFORM.                    "LIST_DISPLAY
    FORM SET_PF_STATUS *
    FORM set_pf_status USING extab TYPE slis_t_extab.
      SET PF-STATUS 'ZZSTD'.
    ENDFORM.                    "set_pf_status
    Here double Click on ZZSTD. IT will take you to a different screen and you have to set it.
    Ster.

  • How to call set pf-status in 4.6C system ALV report

    Hi All,
    Am calling set pf-status as
    form MAIN using rt_extab type slis_t_extab
    set pf-status 'MAIN' excluding rt_extab.
    ENDFORM.
    and giving that PF-STATUS name in FM
    "REUSE_ALV_GRID_DISPLAY"
    but in out put my pf-status is not calling.
    Its working fine in ECC 6.0 systems.
    Can any one help me regarding the same
    Thanks in Advance
    Regards
    SAI

    Post relevant portion of your code to analyse. No point in shooting arrows in the dark.

  • Set PF-STATUS and use SY-UCOMM in an Exit FM

    Hi,
    I am working on an Exit function, and I am trying to read the screen status and then the user's actions, so that I could code for the SY-UCOMM. For some reason, my program is not working. Is it possible to add the PF-STATUS and SY-UCOMM to the Exit function to process the user's actions? Please advise.
    Thanks,
    RT

    Hi Ravikumar,
    I was able to use the parameters in the Exit provided in the Exit FM to process the necessary data. I have other requirements where I would have to code in the Exit FM to detect the user's actions and process them within the Exit to manipulate the tables. I added some code specified in the previous post, but it doesn't seem to get the OK_CODE; therefore, no processing of the data was happening when I tested by clicking on the yellow arrow to exit. I am able to determine the OK_CODE though.
    Would you have any sample code suggestions when using the Exit for SET PF-STATUS and SY-UCOMM?
    Thanks so much.
    RT

  • ODS Problem - Could not forcefully set the status of the request

    Hello GURUS!
      We encountered an error while activating an ods object:
    <i>"Request REQU_41H61CY8SUS7IX4787ARFXLOM (activation request ODSR_41I8ZUA35YKRALSBFPBB0GWZQ) is marked as incorrect for data package 000000 (DP 0 is the entry for the entire request, which is the only one to remain in the control table after successful activation)."</i>
    We tried to forcefully set the status to <b>green</b> as what we normally do when this happens but it still stays <b>red</b>.
    Need your help on this!
    Thanks,
    Jeffrey

    Hello JeFFreY,
    how r u ?
    You can delete that failed request, then check the PSA for errors, if errors are there delete the PSA data.
    Carry on a new data load with the option in the Scheduling screen -> PROCESSING tab as ONLY PSA. Now check the data for the errors and change it if error exists. Then give context menu on the request and select Start the Update Immediately. Now see in the ODS. what happens ?
    Best Regards....
    Sankar Kumar

  • Unable to set header status - VBUK-UVALL in USEREXIT_SAVE_DOCUMENT_PREPARE

    Hi,
    I need some advice in setting header status in table VBUK field UVALL in user exit MV45AFZZ - USEREXIT_SAVE_DOCUMENT_PREPARE. I am unable to set this field in this userexit.
    I create an enhancement implementation in user exit USEREXIT_SAVE_DOCUMENT_PREPARE in MV45AFZZ. In my enhancement code, I have a perform statement which is in a Z include program. In my perform statement, I check a condition, if the line item text is not populated, then  I would like to set XVBUK-UVALS to B. In the code, I set the fields as follow :
    XVBUK-UVALS = 'B'
    XVBUK-UPDKZ = 'U'.
    After the sales order is saved, when I checked in table VBUK-UVALS, the field is not updated.
    Could anyone please provide me with some advice on how I could set the status in VBUK-UVALS in the user exit ? Should I be using another user exit ?
    Any advice would be much appreciated.
    Thanks,
    Virginia

    Hi,
    Similiar to the statements given by you add following statements.
    VBUK-UVALS = 'B'
    VBUK-UPDKZ = 'U'.
    Regards
    Vinod

  • 'SET PF-STATUS EXCLUDING fcode' not working in Selection Screen event

    Hi all,
    I am trying to set PF-Status dynamically in Selection Screen based on Radio button.
    For that i have inserted following code under event --> AT SELECTION-SCREEN OUTPUT
    * SELECTION SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP 1.
    PARAMETERS: s_inc  RADIOBUTTON GROUP rad DEFAULT 'X'
                       USER-COMMAND inc MODIF ID mod,
                p_inc(10) MODIF ID m1,
                s_lbr  RADIOBUTTON GROUP rad,
                p_lbr(10) MODIF ID m2.
    SELECTION-SCREEN END OF BLOCK b1.
    *  AT SELECTION-SCREEN OUTPUT
    AT SELECTION-SCREEN OUTPUT.
      REFRESH fcode.
      IF s_inc IS INITIAL.
        APPEND 'CRTE' TO fcode.
        APPEND 'CHNG' TO fcode.
        APPEND 'DISP' TO fcode.
        APPEND 'PRNI' TO fcode.
        APPEND 'CRTL' TO fcode.
        SET PF-STATUS 'STATUS_IN' EXCLUDING fcode.
      ELSE.
        SET PF-STATUS 'STATUS_IN'.
      ENDIF.
    Though s_inc is initial, i can see all the buttons from Status 'STATUS_IN' after execution of above code. EXCLUDING statement is not taking any effect which we normally get in Module pool program.
    Please tell me what went wrong in above code?

    Problem solved ......Thanks Keshav,
    Giving code correction -->
    * SELECTION SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP 1.
    PARAMETERS: s_inc  RADIOBUTTON GROUP rad DEFAULT 'X'
                       USER-COMMAND inc MODIF ID mod,
                p_inc(10) MODIF ID m1,
                s_lbr  RADIOBUTTON GROUP rad,
                p_lbr(10) MODIF ID m2.
    SELECTION-SCREEN END OF BLOCK b1.
    *  AT SELECTION-SCREEN OUTPUT
    AT SELECTION-SCREEN OUTPUT.
      REFRESH fcode.
      IF s_inc IS INITIAL.
        APPEND 'CRTI' TO fcode.
        APPEND 'CHGI' TO fcode.
        APPEND 'DISI' TO fcode.
        APPEND 'DELI' TO fcode.
        APPEND 'PRNI' TO fcode.
        APPEND 'CRTL' TO fcode.
        APPEND 'DATA' TO fcode.
      ELSE.
        APPEND 'CHGL' TO fcode.
        APPEND 'DISL' TO fcode.
        APPEND 'PRNL' TO fcode.
      ENDIF.
      CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
        EXPORTING
          p_status        = 'STATUS_IN'
          P_PROGRAM       = sy-repid
        TABLES
          p_exclude       = fcode

  • How to set window.status when returning to a page with back button/list?

    It is easy enough to set window.status to application-oriented information when loading a page: do it in a function which is the onload handler for the page's body element. But, when returning to this window from another window with the second window's back button, or selecting the first window from the second window's back list, window.status gets set to browser-oriented information, usually the string "Done". Is there any means by which I can set window.status to application-oriented information when returning to the window via another window's back button/list? What would be really great is if there is an event handler like this:
    window.onreturnviaback = onreturn_via_backhandler;
    Any ideas?

    How about:
    - (void)viewWillAppear:(BOOL)animated
    I use that a lot.

Maybe you are looking for