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.

Similar Messages

  • How to run the program in back ground with out selection screen ?

    Hi,
    I want to run the program in back ground but don't have selection screen. How to run this program in back ground
    as program has no selection screen.
    Waiting for quick response.
    Best Regards,
    Padhy
    Moderator message: basic, please search for available information/documentation.
    Edited by: Thomas Zloch on Feb 21, 2011 12:43 PM

    Hi,
    Go to transaction SE38 --> Execute --> Background.
    If your program contains selection screen, you have to pass your input values as variants.

  • I need to run the program in back ground and then update two fields

    hi gurus
    i need to run the program in back ground and then update two fields in the z table by mm02 transaction by using bapis , can any one give me the code for this.
    Message was edited by:
            Rocky

    hi
    good
    go through this link
    http://www.sapdb.org/7.4/htmhelp/34/ee7fba293911d3a97d00a0c9449261/content.htm
    thanks
    mrutyun^

  • 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.

  • 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.

  • Problem with Back ground MRP Run (MDBT) or MD01

    Hello SAP Experts,
    Issue :- Material is not considering during Automatic back ground MRP run ( MDBT or MD01)
    But when we run MRP in forground (MD02) system is considering the material.
    we have checked both the selection parameter are same for MD01 and MD02 .
    can you help us on this issue ?
    Regards
    Mahesh

    Hi,
    Problem is due to entry in Planing File is missing for that Material.
    Go to MD21 and check whether Planing File entry is maintain for that Materiel.
    If not then maintain it by T.code MD20 (Manual) or you can do it by using back Ground JOB - OMDU.
    Regards,
    Dhaval

  • Unable to map the portal user with back end user through web dynpro coding

    Hi All,
    I 've a portal user which is mapped to back end user by  system in the portal.
    i 'm able to get the portal user from web dynpro application.
    But unable to get the mapped back end user
    this is my code
    String systemalias = "SAP_CRM_PROD";
    Map mapattr = new HashMap();
              //     IPrincipal principal = (IPrincipal) request.getUser();
    //   get user user mapping information
    IUserMappingData userMapping =
                   //(IUserMappingData) UMFactory.getUserMapping().getUserMappingData(systemalias, principal, mapattr);
                   (IUserMappingData) UMFactory.getUserMapping().getUserMappingData(systemalias,principal,mapattr );
    //                  For testing purposes only
                   //mappingData = userMapping;
                   HashMap map = new HashMap();
                   userMapping.enrich(map);
                   mappedPassword = map.get(UMAP_KEY_PASSWORD).toString(); //String "user"
                   mappedUserId = map.get(UMAP_KEY_USER).toString(); /
    following is the error reported .
    The project was not built since its classpath is incomplete. Cannot find the class file for javax.xml.soap.SOAPMessage. Fix the classpath then try rebuilding this project.
    please help.

    Hi Sanjay,
       request component need to be initialized before using it. Include these lines before ur code.
    IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
    String mappedPassword = null;
    String mappedUserId = null;
    Also check these threads for ur help.
    Accessing Mapped Username / Password
    How to access user id and password via UserMapping ?
    Reward points for helpful answers.
    Regards,
    Harini S

  • Problem with back ground job

    Hello experts,
    I have one background job which generates a text file and place it in a FTP folder.
    When one user runs this job its working fine. But,
    When two users run <b>the same background job at same time,</b> then i get trouble with my output file as the data is mixed up.
    How to avoid this!  Appreciate quick response.

    Have each run of the job create a unique file  OR  when a user starts a job, create a "marker" file that prevents all other runs of the same prg from executing until the marker file is deleted.
    The deletion of the marker file would need to be the last step of the prog then.  This would allow the second user to run the prog later (after the first user is done).

  • 'Z' program with trabstrip and user autorization for visualizing

    Hi
    There's a 'Z' program which contains tabstrip for user option, then an ALV is showed but not all the user must see all ALV, how can I do for this because  it's just one program.
    Thanks in advance.

    Hi,
    if u do not use authorization object, then u can do this think using z-table,
    create a Z-TABLE and enter the one fields 1.  block_user.
    then create table maintenance of the table and enter the user name witch u want to block .
    and in the program  check the value
    if sy-uname =  block_user.
    message ' u r not authorized'.
    else.
    display Report.
    endif.
    Regards,
    Abhilash

  • Procedure to run program in back ground and foreground.

    Hi  All,
    What is the procedure to execute for a report program to execute regulrly e.g daily as background job?
    Also it can be executed manually in foreground.
    Please help its urgent.
    Thanks in advance,
    Amruta

    Hi,
    Follow below steps.
    1. Goto SM36--Give Your first Job Job1, Choose Job class
    2. Click on Step, give the Program name and Variant. Come back to main screen.
    3. Click on start Condition then a Popup will be displayed. There click on Date/Time. below you can see Period values there choose Daily, hourly etc.
    4. then Save.
    <REMOVED BY MODERATOR>
    Regards,
    Ashok
    Edited by: Alvaro Tejada Galindo on Feb 18, 2008 1:59 PM

  • \Running program in back ground

    Hello,
       I want to run a program a particular time. how can i do it?. Please send me some doc's regarding this please to [email protected]
    regards
    SDN powered

    Hi,
           You can do this through SM36 transaction.
    SM36 -> specify job name ( any name ) ->
    Click the start condition -> select the option you require
    -> if you want the job periodic click the periodic job flag -> click the radio button periodic values and select frequency
    -> save the dialog screen
    ->click on step ->Provide the program name and if any variant ->check and save the screen
    -> Finally again save the main screen -> Your job will now be scheduled.
    To monitor just click on Job selection. or go directly through  SM37
    Regards,

  • Relating with back ground jobs

    hi gurus,
    i have 3 fields on sel-screen.one for date of creation of sales order in range and three radiobuttons for yearly, quartly and monthly display of sales order.
    i am creating this pgm  to run in background.
    pls, help me out to write a logic to break varint at run time.
    for eg. if i m inputin 1jan 2007 to 15 feb 2007 than on monthly selection it should give 2 steps:  1 for 1jan to 31 jan and 2nd
    for 1feb to 15 feb.
    similarly, on quartly selection it will retrieve for 1jan to 15 feb.
    pls, help me out to write a logic for this requirement.
    it is very urgent...
    pleeesee  reply it immediatly

    Hi,
    write a second report splittin dates as subscribed. SUBMIT the already existing report several times.
    Spool might be a problem - EXPORT spool to MEMORY and IMPORT might solve the problem.
    Better: plan differnt steps of the jopb for each period. If thsi must be done dynmically you may use function JOB_START to shedule jobs at runtime.
    have fun,
    HP

  • Back ground process using abap program

    Hi,
    How to create background process using job_open,Job_submit,job_close function modules

    DATA: lv_job_name         LIKE tbtco-jobname,
    lv_job_nr           LIKE tbtco-jobcount,
    lv_job_released     TYPE c,
    lv_job_start_sofort TYPE c,
    lv_print_parameters TYPE pri_params.
    lv_job_name = 'Z_BGPROGRAM'.
      CALL FUNCTION 'JOB_OPEN'
        EXPORTING
          jobname          = lv_job_name
        IMPORTING
          jobcount         = lv_job_nr
        EXCEPTIONS
          cant_create_job  = 1
          invalid_job_data = 2
          jobname_missing  = 3
          OTHERS           = 4.
      IF syst-subrc = 0.
    " submit job with all the selection screen params...
        SUBMIT (lv_job_name)
            WITH applfile = applfile " these are the parameters of the background program
            WITH p_lines = p_lines
            USER syst-uname " you must use this
           VIA JOB lv_job_name NUMBER lv_job_nr AND RETURN.
        IF sy-subrc = 0.
          CALL FUNCTION 'JOB_CLOSE'
            EXPORTING
              jobcount             = lv_job_nr
              jobname              = lv_job_name
              strtimmed            = 'X'
            IMPORTING
              job_was_released     = lv_job_released
            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.
          IF syst-subrc <> 0.
            MESSAGE i162(00) WITH
            'An error occured while closing the background job.'.
            STOP.
          ENDIF.
        ENDIF.
      ENDIF.
      SKIP 1.
      WRITE: / 'Background process', lv_job_name , 'called successfully' NO-GAP.
      WRITE: / 'You can check the job in transaction SM37'.

  • Submit Back ground job with error log

    Hi Gurus
    Can anyone help with Back ground job with error log. i want put all the error logs in to 1 internal table and submit the back ground .how can i do that .please help me

    Hi reddy ,
    i am not experienced this in real scenarion .. even though i would like to give my idea
    Put your logic inside the FM and execute in in background task mode on your action button .
    call function 'Function module name' in background task
    exporting
       parameter =
    importing
       ret =
    refer the below link for more detail on executing FM as  background task
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/8f/53b67ad30be445b0ccc968d69bc6ff/frameset.htm
    Regards
    Chinnaiya P

  • 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

Maybe you are looking for

  • What's wrong with my mix folder?

    I created my own mix folder wiht many songs and many artist and my Zen Mozaic EZ 300 want allow me to play this folder, what I have to do? I wanna play my favourite songs. ID3 tag won't help me

  • Everything keeps quitting on me! Help!

    Hi, my MacBook Pro seems to be having some issues. Software update - quitting unexpectantly every time. iPhoto - same Safari - quits occasionally when trying to attach something to email or upload a file on a site. Photoshop - same (but not as much)

  • Patch problems in Oracle 10g

    HI All, Recently a security patch was applied in our oracle 10g database. After that a strange problem has occurred, where in many correct data is wrongly rejected after validations. if the data are processed again then some data are correctly passed

  • Cant print web pages

    Print dialog box does not open. Print preview look ok, but cannot print from it either. Tried to reset with about:config, but print.print_printer does not show a file. Windows XP

  • [SOLVED] Screen resolution issue

    I've had an issue with screen resolution for awhile.  Basically, I have it set correctly, but a small portion of the screen is cut off on the right-hand side of the screen.  When using just the CLI, it's about a character that gets cut off, In X (reg