Back ground user

All,
How to trace back gorund user?

ST05 you can trace SQL-statements and get expainings how these statements are being worked upon by the database. this is more a tool for investigating the performance of abaps on your 'special' database.
since you posted your request in the security forum i will assume that you want to do an authority trace. use tx. ST01 instead of ST05. Set the filter options to the program and/or user you want to trace and flag the areas you want traced like 'authority check' 'database access' 'kernel commands' ...
activate the trace using the matchlight-icon. run the background job to be traced. stop the trace after a sufficient time (or until the job hits the error you want to investigate). then press 'evaluation' and check the boxes for the lines to be displayed again ...
if both my answers don't fit to your problem come back here and state a bit more precisely what your problem is, maybe we find another approach to it.

Similar Messages

  • Program with Back Ground User.

    Hi ,
    In my development we are sending data from MDM to R3 through XI.
    Here iam having the following issue:
    When sending IDOC's from XI to R3, some of the IDOC's are struck in Queue  with status 64 and, those not going to be processed at all. This is because of the unavailability of the work processes at that time. All this is done through the back ground user XIS_REMOTE.
    Iam trying to process the unprocessed IDOC's through a standard program, all the IDOC's are processed, but the data created under the Fore Ground user (i.e. my id).
    <b>I want to know is there any possibility to run or write the program using back ground user XIS_REMOTE</b> <b>so that all the unprocessed IDOC's will process and get the back ground user XIS_REMOTE.</b>
    Any inputs appriciated.
    Best Regards
    Shyam Reddy.

    ST05 you can trace SQL-statements and get expainings how these statements are being worked upon by the database. this is more a tool for investigating the performance of abaps on your 'special' database.
    since you posted your request in the security forum i will assume that you want to do an authority trace. use tx. ST01 instead of ST05. Set the filter options to the program and/or user you want to trace and flag the areas you want traced like 'authority check' 'database access' 'kernel commands' ...
    activate the trace using the matchlight-icon. run the background job to be traced. stop the trace after a sufficient time (or until the job hits the error you want to investigate). then press 'evaluation' and check the boxes for the lines to be displayed again ...
    if both my answers don't fit to your problem come back here and state a bit more precisely what your problem is, maybe we find another approach to it.

  • Restriction of back ground from end user

    Hi all, i am ABAPer, but i need  to work on authorization issue,
    I have to restrict our FI End users (8 users) from the back ground job,
    At present scenario is they can run others job also in SM35 including thier job, recently our company aduit found this given the below solution
    Excessive batch job authorisation was given to end users (End users should be restricted from the object S_BTCH_ADM and S_BTCH_NAM which allows them to release and schedule jobs using other usersu2019 ID)
    when i go thorugh i chenged the value S_BCTH_ADM as N and S_BCTH_NAM as *
    and S_BTCH_JOB as LIST,RELE,PROT.
    Kindly give me the solution <removed_by_moderator>
    Regards
    Chandra
    Edited by: Julius Bussche on Jun 16, 2008 6:02 AM

    > Is there any possiblity to restrict the naming convention of background job ie in the sm36 screen Jobname coloumn if i want to restrect with a particular naming convention is int possible example Z:XYZ is the first part of the job name.
    AFAIK you can only restrict this for JOBACTION 'SHOW' and this would only work if your JOBGROUP field was already populated with a value.
    The name of the job would not work. So I would say that you need to arrange that organizationally.
    I think way back a few years ago there was a thread here about this and the possibility of using the user's ID as the JOBGROUP value - but if I remember correctly it was disbanded as being impractical.
    So the answer is most likely: No.
    Cheers,
    Julius

  • How To Handle With Back Ground JOB From WEBUI When Click On "Appove"

    Hi
    How To Scheduled A Job Through ABAP Report In back end  Of CRM when i click on "Approve" Button in WEBUI  From result list.
    As per My requirement I have a Search View and Result View
    In Search View I have  Below Fields
    ITC Vendor ID    
    Claim Status
    User status (date status changed)
    Model
    Serial Number
    Date completed of Service Completion
    Based on Search Criteria I will get Result In Result View.(Suppose 10 Records I got In Result View)
    In the Result View I need to Add one Button As "Approve"
    When i Click On Approve button One Pop up Message Need to Open And In that popup window I need to Display Below Text
    "Approve  Claim Job Has Started In Background  
    Note: Only Claims Which are in Submitted  Status  Will be  Approved. you May Close This Window"
    In SAP CRM System  Back Ground Job Need To Start When Click On "Approve" Button In WEBUI .
    In the Back Ground ABAP Report which will validate based on Result List Records"
    In the Result List we may have all types of Claims which are status in "Submitted" "Pending" "Rejected" "Approve".
    I need to collect all records from Result list and validate Those Records who's Status in "Submitted
    1)Sort all the claims based on ITC Vendor ID.
    2)Grouped all the submitted claims against each ITC Vendor ID from the search result
    3)Change the status of the selected submitted claims to Approved.
    4)Displays information messages as mentioned whenever a claim is approved, the same message will be captured in the job log.
    ‘Claims <ClaimID 1>,…<ClaimID N> now approved for ITC Vendor ID’.
    5)Sending Email to each IRC.
    6)Capture all the approved claims in the below format (Format Attached "Screen Shot Attachment")
    7)Store the file in the Application Server AL11 in .csv format
    Please Find Attachement For Reference.
    1)ITC Claim Screen Shot
    2)Screen Shot For Attachment
    Thanks
    Raj

    Hi,
    You can add the following code in on approve method to show popup to the user,
    IF req_edit IS NOT BOUND. " gloabl attribute in impl class of the view
        REFRESH lt_buttons.
        lss_button-id  = 'btnyes'.
        lss_button-text = 'YES'.
        lss_button-on_click = 'YES'.
        APPEND lss_button TO lt_buttons.
        CLEAR lss_button.
        lss_button-id  = 'btnno'.
        lss_button-text = 'NO'.
        lss_button-on_click = 'NO'.
        APPEND lss_button TO lt_buttons.
        CLEAR lss_button.
        CALL METHOD comp_controller->window_manager->create_popup_2_confirm
          EXPORTING
            iv_title          = 'ATTENTION'
            iv_text           = 'Are you sure you want to edit this document?'
            iv_btncombination = '99'
            iv_custombuttons  = lt_buttons
          RECEIVING
            rv_result         = req_edit.
        req_edit->set_on_close_event( iv_event_name = 'EDIT' iv_view = me ). "#EC NOTEXT
        req_edit->open( ).
        RETURN.
      ELSE.
        lr_node ?= req_edit->get_context_node( 'OUTPUTNODE' ).
        lv_outbound = lr_node->get_event_name( ).
    *  CLEAR ptc_pricing_status.
    *    lv_outbound = req_edit->get_fired_outbound_plug( ).
        IF lv_outbound = 'YES'.
    you can use the submit report code here and you can al the validations here
        ELSE. " No
    if user clicks no nothing to do..
        ENDIF.
        CLEAR req_edit.
      ENDIF.
    Best Regards,
    Dharmakasi.

  • How to find the back ground job details

    Hi All,
       I have a back ground  job running from many days, now we would like to know when this job was created on what date this job actvlly created and schuduled.
               Please informe me how to check this.
    Thanks & Regards,
    Muralikrishna

    On SM37 screen there is plenty of options are there:
    This is what i got from SAP help
    Explanation for each selection field:                                                                               
    o   Jobname: Name of the job as an identifier.                                                                               
    o   Username: Name of the user who designed and planned the job.                                                                               
    o   Start date: The start condition of the job, which could be a time 
    frame or an event that the job is waiting for. Specifying both will   
    yield jobs whose starting condition is  either of the two             
    conditions.                                                                               
    ABAP program step: Name of an ABAP program that acts as a step in a   
    job.                                                                               
    Status selection: The current status of the job. By default, the      
    SCHEDULED option is not marked. To see the scheduled jobs, you must   
    explicitly check this.
    also give the proper values in Job Satus also.

  • Any restictions on back ground job when submit the session?

    Hello friends
    below is my code part. problem is when i execute this program in back ground the data is not picking from APQI. but in fore ground it is picking . for this SESSION submission in back ground am i missing any thing here. please suggest me , any restiction is their in back ground? if possible please send a sample code to submit SESSION automatically in background.
        SUBMIT rsbdcsub AND RETURN
                        USER sy-uname
                        WITH mappe    =  p_group
                        WITH von      =  sy-datum
                        WITH bis      =  sy-datum
                        WITH z_verarb =  'X' .
          SELECT userid credate groupid qstate FROM apqi
             INTO TABLE it_apqi
             WHERE userid  = sy-uname
             AND   credate = sy-datum
             AND   groupid = p_group
             AND   qstate  = 'E'.              "Only look for 'Error' status
       DESCRIBE TABLE it_apqi[] LINES temp.

    Codes for Submitting the session through RSBDCSUB (via Job)...
    " The function module JOB_OPEN is called to create the job.
        call function 'JOB_OPEN'
             exporting
                  delanfrep        = 'X'  "Delete job after execution
                  jobname        = fv_jobname  "Job name
             importing
                  jobcount         = fv_jobcount  "Internally generated
             exceptions
                  cant_create_job  = 1
                  invalid_job_data = 2
                  jobname_missing  = 3
                  others           = 4.
        if sy-subrc = 0.
          submit rsbdcsub
                 with       mappe = v_filec
                 with            von = sy-datum      "From
                 with            bis = sy-datum      "To
                 with     z_verarb = 'X'
                 with         fehler = ' '
                 with      batchsys = space
                 with         logall = ' '
                 via  job          fv_jobname
                      number       fv_jobcount
                 and return.
          call function 'JOB_CLOSE'
               exporting
                    jobcount             = fv_jobcount
                    jobname              = fv_jobname
                    strtimmed            = 'X'
               exceptions
                    cant_start_immediate = 1
                    invalid_startdate    = 2
                    jobname_missing      = 3
                    job_close_failed     = 4
                    job_nosteps          = 5
                    job_notex            = 6
                    lock_failed          = 7
                    others               = 8.
    Hope this helps!
    Edited by: Vin on Jun 4, 2009 10:58 AM

  • How to Run a Custom Transaction in Back Ground after give the Input?

    Hi,
        I have problem that how to execute a Custom Transaction in Back Ground after end user will save a variant for input. In my Transaction there is no menu to save a Variant & to Execute in Back Ground.
    Please suggest me how to do this in my Custom Transaction.

    Hi Ramana,
    what kind of report you want to  execute? the report is Executable Report or Modulepool prog. ??
    if it is a executable program so when u execute (F8) from SE38 when u find the selection-screen in the menu bar ->Program ->Execute in Background( F9) option exits there u can schedule your report in Background or else use toce SM36 ( Define Background Job).
    Why you want to run it in background with transaction code if you have this options?
    Regards,
    Sunil kairam.

  • ERROR IN BDC SESSION BACK GROUND ( USING PP03 T.CODE)

    Hi Experts,
    When i am executing the session ( pp03 T.Code) ,it is working fine in fore ground as well as in display errors mode. But it is not working in back ground mode.
    it is raising the exception ( cntl-system-error).
    I used flat file which is in the presentation server . I accessed it by gui_upload Function Module.
    <b> I am also getting the error using data sets . After upload the presentation server data into one internal table .I sent it to application server using open data set ( transfer ) , after that i read the application server data using open dataset ( read )
    into another internal table ( i declared with same structure of flat file ) .</b>
    But this time also it is giving same error ( runtime exception).
    Please tell me how can i handle using datasets .  Its Very urgentttttttt
    Please any body help meee ( If any one worked on this (pp03 T.code) ) .
    Send the code  or Inform the full detailsss as soon as possibleeee
    regards ,
    dattu malge.

    Hi,
    Go to the transaction SM35 and select your session and then click the Process Button.
    Here you select the Processing Mode as "Background".
    It is not possible to execute the same session by more than one user at a same time.
    RSBDCSUB is used to automate the processing of Batch input session.
    Cheers,
    Hakim

  • Error in Back Ground processing of a report.

    Hi All,
    I have a report wherein I need to schedule it in background. Its an ALV report and it has got user defined GUI status. But for one of the selection options, only output is being displayed. Can this be scheduled in Back Ground?

    Hi all,
    Thanks for your reply.
    I  got the solution. When a program is scheduled in background, if it is written in classes and ALV grid display is used, we get this error. I am able to schedule when I change the function module to LIST_DISPLAY.

  • Back ground job in abap

    Dear  abapers  i want to send an excel attachment from my computer to email and i do that using the following code it works correctly but now i want the program to run in back ground twice a month to some ones email address by giving default recipient email address.
    with best regards,
    Hahu D.
    REPORT  YEMAIL12.
    data method1 like sy-ucomm.
    data g_user like soudnamei1.
    data g_user_data like soudatai1.
    data g_owner like soud-usrnam.
    data g_receipients like soos1 occurs 0 with header line.
    data g_document like sood4 .
    data g_header like sood2.
    data g_folmam like sofm2.
    data g_objcnt like soli occurs 0 with header line.
    data g_objhead like soli occurs 0 with header line.
    data g_objpara  like selc occurs 0 with header line.
    data g_objparb  like soop1 occurs 0 with header line.
    data g_attachments like sood5 occurs 0 with header line.
    data g_references like soxrl occurs 0 with header line.
    data g_authority like sofa-usracc.
    data g_ref_document like sood4.
    data g_new_parent like soodk.
    data: begin of g_files occurs 10 ,
       text(4096) type c,
        end of g_files.
    data : fold_number(12) type c,
            fold_yr(2) type c,
            fold_type(3) type c.
    parameters ws_file type rlgrap-filename  default 'd:\files\file1.xlsx'.
    * Can me any file fromyour pc ....either xls or word or ppt etc ...
    g_user-sapname = sy-uname.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR ws_file.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
    * PROGRAM_NAME = SYST-CPROG
    * DYNPRO_NUMBER = SYST-DYNNR
    field_name = 'ws_file'
    IMPORTING
    file_name = ws_file.
    call function 'SO_USER_READ_API1'
    exporting
        user                            = g_user
    *    PREPARE_FOR_FOLDER_ACCESS       = ' '
    importing
        user_data                       = g_user_data
    *  EXCEPTIONS
    *    USER_NOT_EXIST                  = 1
    *    PARAMETER_ERROR                 = 2
    *    X_ERROR                         = 3
    *    OTHERS                          = 4
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    fold_type = g_user_data-outboxfol+0(3).
    fold_yr = g_user_data-outboxfol+3(2).
    fold_number =  g_user_data-outboxfol+5(12).
    clear g_files.
    refresh : g_objcnt,
       g_objhead,
       g_objpara,
       g_objparb,
       g_receipients,
       g_attachments,
       g_references,
       g_files.
    method1 = 'SAVE'.
    g_document-foltp  = fold_type.
    g_document-folyr   = fold_yr.
    g_document-folno   = fold_number.
    g_document-objtp   = g_user_data-object_typ.
    *g_document-OBJYR   = '27'.
    *g_document-OBJNO   = '000000002365'.
    *g_document-OBJNAM = 'MESSAGE'.
    g_document-objdes   = 'hahu daily test this'.
    g_document-folrg   = 'O'.
    *g_document-okcode   = 'CHNG'.
    g_document-objlen = '0'.
    g_document-file_ext = 'TXT'.
    g_header-objdes =  'hahu daily fishikta ameley'.
    g_header-file_ext = 'TXT'.
    call function 'SO_DOCUMENT_REPOSITORY_MANAGER'
       exporting
         method             = method1
        office_user        = sy-uname
        ref_document       = g_ref_document
        new_parent         =  g_new_parent
    importing
        authority          =  g_authority
    tables
        objcont            = g_objcnt
        objhead            = g_objhead
        objpara            = g_objpara
        objparb            = g_objparb
        recipients         = g_receipients
        attachments        = g_attachments
        references         = g_references
        files              = g_files
       changing
         document           = g_document
        header_data        = g_header
    *   FOLMEM_DATA        =
    *   RECEIVE_DATA       =
    * File from the pc to send...
    method1 = 'ATTCREATEFROMPC'.
    g_files-text = ws_file.
    append g_files.
    call function 'SO_DOCUMENT_REPOSITORY_MANAGER'
       exporting
         method             = method1
        office_user        = g_owner
        ref_document       = g_ref_document
        new_parent         =  g_new_parent
    importing
        authority          =  g_authority
    tables
        objcont            = g_objcnt
        objhead            = g_objhead
        objpara            = g_objpara
        objparb            = g_objparb
        recipients         = g_receipients
        attachments        = g_attachments
        references         = g_references
        files              = g_files
       changing
         document           = g_document
        header_data        = g_header
    method1 = 'SEND'.
    g_receipients-recnam = 'MK085'.
    g_receipients-recesc = 'B'.
    g_receipients-sndex = 'X'.
    append  g_receipients.
    call function 'SO_DOCUMENT_REPOSITORY_MANAGER'
       exporting
         method             = method1
        office_user        = g_owner
        ref_document       = g_ref_document
        new_parent         =  g_new_parent
    importing
        authority          =  g_authority
    tables
        objcont            = g_objcnt
        objhead            = g_objhead
        objpara            = g_objpara
        objparb            = g_objparb
        recipients         = g_receipients
        attachments        = g_attachments
        references         = g_references
        files              = g_files
       changing
         document           = g_document
        header_data        = g_header.
    *-- End of Program

    Hi,
    Will this help you.?
    http://scn.sap.com/community/netweaver-administrator/blog/2010/02/25/how-to-email-output-from-background-jobs
    Regards
    Purnand

  • ALV Grid in back ground

    Hi friends,  i got some problem in alv grid while i am running it in back ground.
      my report contains some currency(amount)  field in out put. when i am removing the amount field it is good result in back ground. but when it consist of amount field it is giving error. it indicating some string length problem. and error analysis as follows.
    Error analysis
    In statement
       "STRLEN( obj )..."
    the argument "obj" can only take a character-type data object.
    In this case, the operand "obj" has the non-character type "P".
      pls tell me can't we run amount field in back ground. if  s  how to solve my error. pls give me some ideas.
                                      Kumar.

    Hi
    Many a times there is a requirement to display ALV Grid (not ALV List) in the background Job. I have checked the SDN Forum for the same and it has been mentioned that ALV Grid cannot be displayed in Background, but the list output of ALV is possible. So user won’t have the actual Grid interface but the List interface.
    There is a workaround to display ALV Grid in Background Job. The only restriction is you can’t schedule the job through SM36. You need to execute the transaction of the report program, fill in the selection screen data and hit Execute.
    The job would be executed in background. User will be able to see the Job Log and Job Status after executing the program. User doesn’t have to go to SM37 to view the job status/log. Once the Job Status is changed to “COMPLETED”, user can click on “DISPLAY SPOOL” to view the ALV Grid.
    /people/prashant.patil12/blog/2007/02/20/displaying-alv-grid-in-background-job

  • Call transaction inside of call function in back ground task

    Hi,
        Is it possible to use call transaction statemement inside of call function in back ground task. I am getting error if i use the same. Any help will be highly appreciated.

    Hi,
    I don't think this is possible. The call goes into error in SM58, what you can try to do is after the function is called, you can submit the program RSARFCEX by setting the user name as sy-uname and other parameters as * and set all the checkboxes.
    regards,
    Advait

  • Submiting report in back ground with values

    Hello all abapers,
      I m working on one application where one module pool program will take input from user for user id and password. After verification, one back ground report will be scheduled by this program to change user pw and add some role in user's profile.
    when i schedule the prg in background i need to pass some values like user id and password entered on module pool screen...
    how do i pass it to background job when scheduling and how bg job prg will read these values..
    please advise me as its needed asap...
    thanks in advance,
    jigs.
    any helpful suggestions will be rewarded.

    Hi,
    Put the following code in user command:
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
        jobname                = 'ZSUBMIT'
    IMPORTING
       jobcount               = jbcnt
    EXCEPTIONS
       cant_create_job        = 1
       invalid_job_data       = 2
       jobname_missing        = 3
       OTHERS                 = 4
    IF sy-subrc <> 0.
    ENDIF.
    SUBMIT <program to be submitted> WITH P_user_id = user id  VIA JOB 'ZSUBMIT' NUMBER jbcnt AND RETURN.
    CALL FUNCTION 'JOB_CLOSE'
      EXPORTING
        jobcount                          = jbcnt
        jobname                           = 'ZSUBMIT'
        strtimmed                         = 'X'
    EXCEPTIONS
       CANT_START_IMMEDIATE              = 1
       INVALID_STARTDATE                 = 2
       JOBNAME_MISSING                   = 3
       JOB_CLOSE_FAILED                  = 4
       JOB_NOSTEPS                       = 5
       JOB_NOTEX                         = 6
       LOCK_FAILED                       = 7
       INVALID_TARGET                    = 8
       OTHERS                            = 9
    IF sy-subrc <> 0.
    ENDIF.
    A job called 'ZSUBMIT' will be released in background.
    Please try and award points if useful.
    Thanks and regards,
    S. Chandra Mouli.

  • Back ground job schduling

    hai  experts ,
    iam write report upload data from excell file and posting  tcode mb31 by useing bapi.
    but i schdule  back ground job   results come cancelled.
    error is like .
       job started                                                                00                     516       s
      step started001 (varient ,user id sapadmin)             00                    550      s
    error during import of clipboard content                   alsmex              037       a
    job cancelled                                                               00                   518       a
    thanks in advance.

    The dump suggests that your report use a clipboard GUI functionality in background, so i fear there are very few chance of success (Usage of ALSM_EXCEL_TO_INTERNAL_TABLE which call CLPB_IMPORT or CL_GUI_FRONTEND_SERVICES->CLIPBOARD_IMPORT in background ?)
    Perform some search at sdn with keywords Excel, upload and Background in [forums|http://forums.sdn.sap.com/search.jspa?threadID=&q=ExcelBackgroundupload&objID=&dateRange=last90days&numResults=15&rankBy=10001] and [wiki|http://wiki.sdn.sap.com/wiki/dosearchsite.action?searchQuery.queryString=ExcelBackgroundupload&searchQuery.spaceKey=conf_global].
    Regards,
    Raymond

  • Back ground job for automatic MRP run

    Hi pp guru,
    my client want for a particularly  material no XXXXXX ,there should be automatic MRP rum daily at 8:00 pm.
    kindly suggest me how i will map  back ground job in sap..
    regards
    Aqueel

    Dear Aqueel,
    1.Either make a copy of the MRP type say PD and assign the new MRP type to that paticular material.
    2.Or else assign one MRP controller sepecifically for this material.
    3.Activate the User Exit M61X0001 which allows to run the MRP in background based on MRP type or
    a MRP controller.
    4.Create the varaint for running MRP in MDBT.Schedule from here.
    or else use SM36 select the program RMMRP000 and select the variant and go to scehduling and
    select the time and execute.
    Regards
    Mangalraj.S

Maybe you are looking for

  • HT4108 iPad 2 and HDMI converter issues

    Does anyone have an ipad 2 and find that most mirroring works fine EXEPT video (sound, but no picture) and Keynote (I can see the slides up until I try to play my show, then TV goes black)? I have a presentation in a week; please help!

  • Regarding Excise Serials in CIN

    Hello Friends I am new to CIN, Can any body please give sugesstions based on in the following the issue. User Requirement: Please create the following Excise Serials for the FY 2010-2011. This new serial will effect from 01-04-2010.Please find the le

  • I get message:can't save library file not enough access privileges.Don't understand what this means?

    I get message:"Can't save library file.  Not enough access privileges" .Don't understand what this means. No visible effect that I can see now.

  • Getting Finder to add file's bytes together.

    I have an mp3 player which is limited to two GB. Is there any way I can highlight files [music files] in Finder and get them to add the bytes together instead of having to add them individually?

  • Searching Japanese Keywords using CGPDF

    Hi All, We have been working on an iPad application, which will render the PDFs with Japanese content and we need to provide a functionality for searching the Japanese keywords. We are using CGPDF APIs for scanning and the contents returned by the sc