How to set Back ground job & get my desired output layout in sm36 & sm37 ?

Hai SAP ABAP/BASIS Gurus,
I am currently taking ME2N PO Pending value Report by setting variant in input screen & setting my own output layout  ie only four field ie.Plant, Material,Currency,Still to be delivered value will be visible in output screen
I set Back ground in sm36 using my variant & i saw my output in sm37.. But I cant get output as my desired field..
This is my problem..
1) I Cant Get the Same output in shedule job [sm36 & sm37] like When i run in foreground for ME2n.
    I am using ALV Scope of list..
2) If I use BEST Layout in Scope of list means i get the desired Output field layout as same as my foreground output field..
I want to get the output layout as desired & also in ALV format[ Useful for excel work]
Kindly guide me.
Thanks in advance..
swetha
Edited by: Swetha SAP Girl on Jul 2, 2009 5:06 PM

Hi Swetha,
To get the missed fields in the spool, while creating the background job(execute in background option) you can see the printer setting block at the end of the background job settings window, in that check the 'Spool Request Max. Width 255 char' check box and then continue. It will generate the spool list with maximum width and you can see all the fields in the spool output.
Thanks,
Muthu
Edited by: Muthu Prabakaran Selvam on Jul 3, 2009 2:35 PM

Similar Messages

  • How to analyse Back Ground Jobs in BI

    Hi,
    How to analyse Back Ground Jobs in BI
    RSDB2MA1 and RSDB2MA2
    My requirment is to check the error logs for these job
    How to navigate there
    Thanks

    Dear BW user,
    Sm37 and sm50/51
    1)Go to Sm37
    2) Give the job name and in user give as *
    3)press execute or f8
    4) Press job log in the screen..keep refreshing it for update
    5)Press job detaisl..get pid no and wp no..in it
    6) go to sm50/51
    check for given wp no... and pid no..job is running or waiting or not
    sm66
    1)go to sm66
    2)in sm66 you can see only the central instance job running in
    3)You cant find any application server in it
    Hope it helps you,Revert me back if you have any queries
    Assign points if helpful
    Regards
    Bala

  • The back ground job gets cancelled which feds the delta queue?

    Hi all,
    I can see the delta is empty for the 2lis_11_vahdr ( sales order header datasource) when i happened to check the background job name which feds the delta queue, all the background job gets failed for the same!!
    Can anyone let me know what needs to be carried out ?
    Thanks

    hi,
    when i happened to check the logs for that back ground job i got the below message
    Extraction queue processing started MCEX11 with 54,331 LUWs
    ABAP/4 processor: CALL_FUNCTION_NOT_FOUND''
    Thanks

  • How run the back ground jobs

    Hi Experts,
    I have one scenario .
    I have scheduled on program in back ground.
    now that in back . when i excute that back job program.
    I need to  tranfer that data to application server.
    please suggest me how to do this.
    Ramesh.
    thanks in advanice.

    there is a system variable sy-batch which recognises if the job is running in background or not..
    OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc NE 0.
    MESSAGE e001(zsd_mes).
    EXIT.
    ELSE.
    *---Data is downloaded to the application server file path
    LOOP AT it_tab2 INTO wa_tab2.
    TRANSFER wa_tab2 TO p_file.
    ENDLOOP.
    ENDIF.
    *--Close the Application server file (Mandatory).
    CLOSE DATASET p_file.

  • SAP  Back ground Jobs getting cancel automatically

    Hi All,
    All schedule Background jobs getting cancel  automatically in ECC 5 server. Also not getting any job log in respective schedule job. please help me out with expert suggestions.
    Regards
    Gyan

    1)Are the bgd workprocess free in the system currently?Check if there are any long running jobs holding them.
    Bgd Work process are free but with error code 373,223,007 etc for all 5 bg wp
    error reports from work directory as per work process:---
    wp 22 :Fri Sep 25 15:07:04 2009

    A  ABAP/4 Program SAPLSYDB                                .
    A  Source LSYDBU27                                 Line 7.
    A  Error Code DBIF_DSQL2_DEFAULT_CR_ERROR.
    A  Module  $Id: //bas/640_REL/src/krn/runt/abexsql.c#5 $ SAP.
    A  Function DsqlErrorHandler Line 1986.
    A  COMMIT/ROLLBACK error on "DEFAULT" database connection..

    M  ***LOG R68=> ThIRollBack, roll back () [thxxhead.c   12289]
    C  Rollback Work (0)
    M  *** ERROR => ThCallHooks: event handler rsts_before_commit for event BEFORE_COMMIT failed [thxxtool3.c  252]
    B  ComRolHook(BEFORE_COMMIT, free_all) failed
    B  db_con_commit received an error return code in before-commit action
    M  ***LOG R38=> ThICommit3, db_commit98 ( 001024) [thxxhead.c   12036]
    WP23: Fri Sep 25 15:06:05 2009
    B  dbtran INFO (init_connection '<DEFAULT>' [MSSQL:640.00]):
    B   max_blocking_factor =  50,  max_in_blocking_factor      = 255,
    B   min_blocking_factor =   5,  min_in_blocking_factor      =  10,
    B   prefer_union_all    =   1,  prefer_union_for_select_all =   0,
    B   prefer_fix_blocking =   0,  prefer_in_itab_opt          =   0,
    B   convert AVG         =   1,  alias table FUPD            =   0,
    B   escape_as_literal   =   0,  opt GE LE to BETWEEN        =   0,
    B   select *            =0x00,  character encoding          = STD / []:X,
    B   use_hints           = abap->1, dbif->0x1, upto->0, rule_in->0,
    B                         rule_fae->0, concat_fae->0, concat_fae_or->0
    M  ***LOG R68=> ThIRollBack, roll back () [thxxhead.c   12289]
    C  Rollback Work (0)
    M  *** ERROR => ThCallHooks: event handler rsts_before_commit for event BEFORE_COMMIT failed [thxxtool3.c  252]
    B  ComRolHook(BEFORE_COMMIT, free_all) failed
    B  db_con_commit received an error return code in before-commit action
    M  ***LOG R38=> ThICommit3, db_commit98 ( 001024) [thxxhead.c   12036]
    wp 24:Fri Sep 25 14:33:10 2009
    M  *** ERROR => ThCallHooks: event handler rsts_before_commit for event BEFORE_COMMIT failed [thxxtool3.c  252]
    B  ComRolHook(BEFORE_COMMIT, free_all) failed
    B  db_con_commit received an error return code in before-commit action
    B  ***LOG BZY=> unexpected return code 32768      calling DBACDS     [dbacds#2 @ 1225] [dbacds  1225 ]

    *WP25: *** ERROR => BtcCleanUp: BtcLgAp-call failed (rc = 4) [btcjcntl.c   1308]*
    M  ThCallHooks: call hook >ITSP: EndOfSession< for event BEFORE_SESSION_CANCEL
    M  ThCallHooks: call hook >RtmClearSession< for event BEFORE_SESSION_CANCEL
    M  ThCallHooks: call hook >HttpClearSession< for event BEFORE_SESSION_CANCEL
    M  ThCallHooks: call hook >SpoolHandleHook< for event BEFORE_SESSION_CANCEL
    M  ***LOG R47=> ThResFree, delete (001009) [thxxmode.c   1284]
    M  ThCallHooks: call hook >ASTAT-collect commit handling< for event BEFORE_COMMIT
    M  ThCallHooks: call hook >rsts_before_commit< for event BEFORE_COMMIT
    M  ThCallHooks: call hook >rsts_after_commit< for event AFTER_COMMIT
    M  ThCallHooks: call hook >ThNoClearPrevErr< for event AFTER_COMMIT
    M  ThCallHooks: call hook >SpoolHandleHook< for event AFTER_COMMIT
    M  ThCallHooks: call hook >SAP-Trace buffer write< for event BEFORE_TASK_SWITCH
    M  ThCallHooks: call hook >ImcResetPtr< for event BEFORE_TASK_SWITCH
    M  ThCallHooks: call hook >DbgBeforeTaskSwitch< for event BEFORE_TASK_SWITCH
    M  ThCallHooks: call hook >HttpResetPtr< for event BEFORE_TASK_SWITCH

    B Fri Sep 25 14:47:04 2009
    B  Disconnected from connection con_da={R/3*WORKFLOWTRACE,26000006,1}
    please let me know where i can send log file if req.
    2)Check for the sm21/sm50 bgd wp traces.
    Getting so may Tem se management errors.
    Some TemSe objects are stored in files. To do this, a path name is set up from the TemSe object name. To be able to use this path, TemSe management requires a directory. It attempted to create it itself. However, this did not succeed.
    3)Check if the filesystem is full as you suggest no logs are being written.
    File system having free space
    4)Check if the user who has scheduled the job is locked ?
    user unlocked
    please help me to resolv this issue.
    thanks
    Gyan
    Edited by: Gyan Prakash on Oct 9, 2009 10:02 AM

  • Setting Back ground job

    Hi Friends,
    I wnat to set the background job with following conditions:
    Monday to Friday
    From 9AM to 6 PM
    To run on every half an hour.
    Can any one guide for the same.
    Regards,
    Sai Krishna

    Hi Friends,
    In our Organization PR is created by user dept. & PR release is completed accordingly. In this process Purchase dept. is not in the release strategy. Now PR is completly released & while converting to make PR to PO, purchase dept. found there is some problem in PR. Is there any way Purchase dept. can reject PR & send to user dept. for correcting it.
    One method is to have Purchase dept. also in release strategy loop. We are having nearly 400 release strategies. To change all these will take much time. Is there any other way.
    Thanks & Regards
    Sai Krishna

  • How to run program without set back ground Job in production Server?

    Hi,
    I have developed 1smart forms which is takes so much time for execution and sometimes its time out.
    I have used BSEG, BKPF, BSET, KONV, VBRK, VBAP, LIPS, LIKP these tables in smartform.
    So give me proper solution for this issue?
    Thanks
    Yatin Mahetaliya.

    Hi,
    You could call from your program the function module called SXPG_COMMAND_EXECUTE where you will call a command already defined in SM59 transaction code. You will maybe control the return code with sy-subrc. Then it will possible for you to extract data...
    Don't forget that every time you call GUI_UPLOAD or any method or function from the frontend function group or ABAP object by classes like cl_gui_frontend_services, it will be impossible to run in background.
    Try it..
    pherasath

  • How to Schedule Back Ground job For every 30 Min...

    Hi friends,
    Please Tell me the steps...
    How to schedule BACKGROUND Job for every 30 Min.
    Please Help me ..its urgent.
    Thanks & Regards,
    Vasu.

    Hi Vasu,
       Goto SM36, here you can create your own jobs and schedule them accordingly.
    Hope this is helpful to you. If you need further information, revert back.
    Reward all the helpful answers.
    Regards
    Nagaraj T

  • How to set back ground

    I have a jMenu Frame, and i am trying to set its background to black, but it seems like I am missing something here:
    jMenu.setSize( 300, 300 );
    jMenu.setLocation( 500, 500 );
    jMenu.getContentPane().setLayout( new FlowLayout() );
    jMenu.addWindowListener( new MyWindowListener() );
    // Create button for the menu frame
    JButton jbStart = new JButton("Start");
    jbStart.setActionCommand("Start");
    JButton jbExit = new JButton("Exit");
    jbExit.setActionCommand("Exit");
    JButton jbCredit = new JButton("Credit");
    jbCredit.setActionCommand("Credit");
    //Add TextField for player to enter their name
    JTextField jtPlayer1 = new JTextField( 15 );
    JTextField jtPlayer2 = new JTextField( 15 );
    // Add listener to button and text field
    jbStart.addActionListener( new MyActionListener() );
    jbExit.addActionListener( new MyActionListener() );
    jbCredit.addActionListener( new MyActionListener() );
    jtPlayer1.addKeyListener( new MyKeyListener() );
    jtPlayer2.addKeyListener( new MyKeyListener() );
    // Add button into the Menu frame
    jMenu.getContentPane().add( jbStart );
    jMenu.getContentPane().add( jbCredit );
    jMenu.getContentPane().add( jbExit );
    jMenu.getContentPane().add( jtPlayer1 );
    jMenu.getContentPane().add( jtPlayer2 );
    // make the Menu visible
    jMenu.setBackground( Color.blue );
    jMenu.setVisible( true );
    Could anyone tell me what I need to add in order to make it work?
    thanks

    One thing i would do is add all my components (buttons, textfields, and whatnot) to a JPanel and then set the JPanel as the content instead of having all those getContentPane ().add (); parts...

  • How to modify this query to get the desired output format

    I hv written a Query to display all the parent table names and their primary key columns(relevant to this foreign key of the child table).The query is given below...
    SELECT DISTINCT(TABLE_NAME) AS PARENT_TABLE,COLUMN_NAME AS PARENT_COLUMN
    FROM ALL_CONS_COLUMNS
    WHERE CONSTRAINT_NAME IN (SELECT AC.R_CONSTRAINT_NAME
    FROM ALL_CONSTRAINTS AC
    WHERE AC.TABLE_NAME=TABLE_NAME
    AND AC.TABLE_NAME='&TABLE'
    AND AC.R_CONSTRAINT_NAME IS NOT NULL);
    This query will display all the parent tables and their primary key columns.Now my problem is that how to modify this query to also display the foreign key column name of the child table.
    I want the query result in the following format.The query should display the following columns.1)child table's name,2)child table's foreign key column name,3)the corresponding parent table's name,4)the parent table's primary key column name(which is the foreign key in the child table).
    For Example I want the output as follows...
    TAKE THE CASE OF SCOTT.EMP(AS INPUT TO YOUR QUERY)
    CHILD_TABLE CHILD_COLUMN PARENT_TABLE PARENT_COLUMN
    EMP DEPTNO DEPT DEPTNO
    In this result I hv used alias name for the columns.The query should display this only for the foreign keys in the child table.In the query which I sent to you earlier will give the parent table and the parent column names,But I also want to append the child table and child column names there.
    any help on how to tackle would be appreciated.

    Try this query
    SELECT c.table_name child_table,
         c.column_name child_column,
         p.table_name parent_table,
         p.column_name parent_column
    FROM user_constraints a,user_constraints b,user_cons_columns c,
         user_cons_columns p
    WHERE a.r_constraint_name=b.constraint_name and
          a.constraint_name=c.constraint_name and
          b.constraint_name=p.constraint_name and
          c.position=p.position
    ORDER BY c.constraint_name,c.position
    Anwar

  • Back Ground Job Issue

    Hi,
    My report program was executing successfully in the Foreground but not in the back ground.. Can any one help me on this?
    My report program has a selection screen..I entered the data for it at and through menu option Program->execute in background..I executed it..As it asked for output device i gave LP01 and No of copies to 1. and checked Radio button Print all. and clicked ok.
    It asked me for start time and i selected Immediate and clicked on save.
    It gave a status message "Back ground Job Scheduled".
    Now when i look through SM37 under my name the job is always active and Never finished.
    Can any one help me on this?
    Thank in advance..

    Just check whether the job is running in the background or not
    Double Click on the job name and take the Server & Process Id.
    Go back to the SM37 Screen.
    Click on Application Servers or directly Open the transaction SM51.
    Select the Server and find the process Id with the help of the things you found already
    Now, you can see the database level.
    Check if the values or moving or not. This way you could track the details
    If not, Ask BASIS guys to check whether the job is reading from rollback or not.
    If it is, cancel and rerun the job...or else..leave the job..it will finish off in some time.
    Hope everything is clear

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

  • How to download the application file to local file by back ground job?

    hi:
      can any one tell me how to download the application file to local file by back ground job? thanks in advance..
    Monson

    Hi,
    In order to download a file from application layer to a local file in background,
    first write a report(ZREPORT1) in which do the following steps:
    OPEN DATASET g_file_1 FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    loop the g_file and append all the data into another internal table.
    end of this report you shd have all the data in the application layer file into your internal table.
    Now create another report(ZREPORT2) and submit this report in background.
    that is,
    JOB_OPEN
    JOB_SUBMIT and
    JOB_CLOSE
    and in job_submit submit ZREPORT1 which downloads the file in application layer.
    Please reward points if helpful.
    Regards,
    Arul.

  • How to reschedule a Back ground job in Normal ABAP from Web Dyn Pro abap application??

    Hi Experts,
    How to reschedule a Back ground job in Normal ABAP from Web Dyn Pro abap application??

    Can you give us some more information? Background jobs primarily don't have anything to do with Webdynpro.

Maybe you are looking for

  • Unable to generate trace file

    Hi, I have written the stored procedure for starting sql trace on a given session for say n number of seconds. create or replace procedure start_trace v_sid in number, v_serial# in number, seconds in number) IS v_user varchar2 (32); duration number;

  • Anyone own Mac Mini and MacBook Air?

    Looking for shopping advice from people owning a particular configuration of Apple devices. I currently have a white MacBook and iPad. Thinking of upgrading/shifting to one of these configurations: 1. 15" MacBook Pro, iPad 2. 15" MacBook Pro, iPhone

  • FaceTime resolution

    After upgrade to Lion OS, the FaseTime app opens in a very low resolution and out of focus.  However this issue gets resolved only when iChat is opened and the switched to preferences for video, the resolution and auto focus gets corrected in FaceTim

  • Trip Expenses

    Dear Friends, How to configure the following issues in Travel Mangement :- 1. Boarding & Lodging Expenses :- If the employee goes on Business Trip he will be reimbursed according to his eligibility (Grade Wise) and location wise (India A class city ,

  • Audio over HDMI w/ 2.6.33 + radeon

    Hey, this thread is about how to get sound over HDMI with an ATI Radeon R600+ First: Till now, I got no solution! As most people recognized, HDMI audio support was added [1] to 2.6.33-rc1. The last two days I gave it a try, but I didn't succeded: No