Regarding back ground processing for excel.

Hi,
i want to create the Excel sheet and i want to save in Back ground Processing....
give me some suggestionss.......................

This can create any file (spreadsheet/plain text/ dat files). but to add workbooks to the sheet you need to use OLE Object concepts.
PARAMETERS:    p_terms(256) TYPE c OBLIGATORY,
            p_del(1)     TYPE c OBLIGATORY DEFAULT cl_abap_char_utilities=>horizontal_tab.
DATA:       lv_str       TYPE string,
      lv_char(256) TYPE c,
      lr_descrref  TYPE REF TO cl_abap_typedescr.
FIELD-SYMBOLS: <comp> TYPE ANY.
  IF itab IS NOT INITIAL.
    OPEN DATASET p_terms FOR OUTPUT IN LEGACY TEXT MODE .
    IF sy-subrc EQ 0.
      CLEAR : lv_str.
Header of the file
      CONCATENATE
        'Action'
        'Name'
        'EE User ID'
        'Termination Date'
        'Last Day Worked'
        'End Of Notice'
        'Employee Type'
        'Department'
        'Department_type'
        'Office Location'
        'Manager Name'
        'Has Cellphone'
        'Has Home Office'
        'VP and Above'
       cl_abap_char_utilities=>cr_lf
      INTO lv_str SEPARATED BY p_del.
      LOOP AT itab INTO ls_terms.
        WHILE sy-subrc EQ 0.
          ASSIGN COMPONENT sy-index  OF STRUCTURE ls_terms TO <comp>.
          IF sy-subrc NE 0.
            EXIT.
          ENDIF.
          lr_descrref = cl_abap_typedescr=>describe_by_data( <comp> ).
          IF lr_descrref->type_kind = 'P'.
            WRITE <comp> TO lv_char DECIMALS 2.
          ELSE.
            WRITE <comp> TO lv_char.
          ENDIF.
          SHIFT lv_char LEFT DELETING LEADING space.
          IF sy-index NE 1.
            CONCATENATE lv_str lv_char INTO lv_str SEPARATED BY p_del.
          ELSE.
            CONCATENATE lv_str lv_char INTO lv_str.
          ENDIF.
          CLEAR: lv_char.
        ENDWHILE.
        TRY.
This statement passes the content of data object to the file specified
            TRANSFER lv_str TO p_terms.
          CATCH cx_sy_file_authority .
            FORMAT COLOR 6 ON.
            WRITE:/ 'No authorization to access the Term file'.
        ENDTRY.
        CLEAR lv_str.
      ENDLOOP.
      CLOSE DATASET p_terms.
    ENDIF.
  ENDIF.

Similar Messages

  • Back ground job for dtp

    hi,
    is there any possibility to do back ground job for dtp.
    if possible can u tell me the necessary settings?

    Hi Venkat,
    The way to schedule a DTP in BI in NW 2004s is by putting it inside a process chain. The process chain can be scheduled.
    See the following link on process chains.
    http://help.sap.com/saphelp_nw04s/helpdata/en/d5/e80d3dbd82f72ce10000000a114084/frameset.htm
    Hope this helps,
    Regards
    Karthik
    Assign points if helpful.

  • Back Ground Process In OOABAP

    Hi all,
    How can i process Back ground process on Object oriented
    Thanks Rayeez,

    Hi Rayeez,
    I had a requirement wherein I had to call ALV Grid display in background, here I used OO ABAP and just before creating the custom container I checked IF cl_gui_alv_grid=>offline( ) IS INITIAL.
    You can find similar methods for your OO Class and check if it is initial.
    <b>Please reward points if it helps.</b>
    Regards,
    Amit Mishra

  • WorkFlow Back Ground Process Running More Time

    Hi all,
    I have very Big problem it is occured in production i need help vary urgent for this .
    Work flow Back Ground Process Running More than 5 hrs,actualy Daily it is running only below 2 min .but yesterday onwords it is running more than 5 hrs.but this workflow back ground process running long time only one item_type='REQAPPRV' REMAING item_types running normaly.
    i did have any root cause for this performance issue plz let me know any one for this problem what is the root cause.
    Thank's

    Reddy,
    Go through the following documents, it should be helpful in troubleshooting the issue.
    Note: 186361.1 - WF 2.x: Workflow Background Process Performance Troubleshooting Guide
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=186361.1
    Note: 298550.1 - Troubleshooting Workflow Data Growth Issues
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=298550.1
    Note: 566577.1 - Workflow Background Process Has Significant Performance Issues
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=566577.1
    Note: 743338.1 - Performance Degradation when the Workflow Background Process is Running
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=743338.1
    Note: 734425.1 - How To Generate Performance Trace for Workflow Background Process?
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=734425.1
    If this is your production instance and the issue is urgent, I would suggest you log a SR.
    Regards,
    Hussein

  • Back ground processes, dialogue processes and Process chains

    Hai all,
               I am going through making process chains and I am struck with one thing:
    "How many background process chains and dialogue processes you have during run time"
    This is the problem. I understood everything else except this.The concept says that I have to know what is the capacity of the system, how many background and dialogue processes it could accomodate, how many are left and how many you can use for your process chain.How do we find out this? and could somebody please explain me or refer to documentation about the Back ground processes, dialogue processes and Process chains.
    Thanks.

    Hi Visu,
      You can see the number of dialog and background processes by using transaction SM51 and then double clicking on the server (we only have one but it may be different for each). Our BASIS folks take care of the number of processes as well. And, for us we have a schedule that changes the number at a certain time of day because you tend to need more dialog during the day but more batch at night.
      The transaction to look at and change the settings is RZ03. Then use the menu path Edit->Operation Modes you can select either Configuration or Timetable here. Both give information in different ways. I tend to double click around to see what it might tell me.
      I hope this helps a bit,
    Diane

  • Back ground processing of the LDAP

    Hi,
    We are on XI3.1, SP2.
    We are using LDAP authentication.
    We wants to know the  back ground processing when a using login to the deski using LDAP authentication.
    Any one please help on this.
    Thanks in advance.
    Thanks & regards,
    Collin Powell.

    When logging with client tools the LDAP logon will be sent from the client, then the username will be authorized by the CMS which will in turn send a number of queries to the LDAP server to verify group membership. The variables include, graphtimeout (set or not) version/patch of BO (this behavior is different in 3.x vs XIR2 and even different in XIR2 SP2 vs SP4.
    If you are not using SSL then all the traffic can be packet scanned using a tool like Micr4osoft netmon or wireshark.
    Regards,
    Tim

  • Error in BDC Back Ground Processing

    Dear All,
    I am facing problem on while executing BDC program. First i am executing in Foreground method there it displaying errors occured,
    means it showing full discription or error.
    But when i used Back ground processing its displayig the full error discription like "No posting object defined for 1230/ / / " here i need full error discription.
    please do the need full.
    Regrads,
    Srinivas.

    Hi
    In background processing you cannot see the error message, for that you have to write logic for capturing messages.
    Use 'Format_Message' function module so that you can get the complete message and then you can display that on the screen.
    Hope it helps...

  • Create back ground processes

    Hi all,
    I want to create back ground processes in BI to trigger my process chain variant.
    Please tell me the steps to create this.
    Please suggest the step by step doc.
    Regards,
    Macwan James.

    hi,
    When you try to schedule and activate a process chain , it will directly create a background job "BI_PROCESS_TRIGGER" which will start the process chain .
    So directly it will assign the process chain to background job.
    If you want to run PC once job finishes then -->, you will find an option while scheduling the process chain. Right click on Start variant and select "maintain variant" --> Select "Change Selections" --> Click on "After Event/After Job". Give the event name in the provided area in that screen. Now your process chain will execute after an event/job which runs in the background.
    Hope it helps
    Lavanya

  • Error while using Back ground Job for Planning function in BPS

    I have created FM and Program for scdualing  Back ground Job for Planning function.
    I have created Planning function with exit option and passed parameter  Global seqence name.
    Error is lot of Jobs are creating while exe in BPS0
    Kindly help me the same
    Regards
    GR

    Hi Rama,
    It seems there are two diff. functional modules (UPC_BUNDLE_EXECUTE AND UPC_BUNDLE_EXECUTE_STEP). The second one divides the planning sequesces on the basis of something you specify (e.g. company code). Just make sure that you are using correct FM.
    just a thought.......
    Regards,
    SK

  • Define back ground job for Maintenance Order Settlement through KO8G

    Hi Experts,
    I need to define back ground job for Maintenance Order Settlement through KO8G transaction code.
    Here are the requirements
    1. The job should run on weekly basis automatically.
    2. The settlement period and posting period should be taken care by the job dynamically. i.e. if the job runs in July, the job should pick up Settlement period and posting period as 7 automatically.
    Kindly let me know the steps to define the back ground job as per above requirement.
    Sanjeev

    To run the KO8G  each week, the a RECURRING job has to be created.  At my job, Basis/Ops department would create and schedule the job.
    To have the posting periods, dates etc dynamically determined at the time the job runs:
    Create the variant and save.
    In 5.0, KO8G does not save a variant, therefore, go to SE38 and create a variant for program: RKO7KO8G
    When you go to the ATTRIBUTES screen, to add a name and description, you will see a list of all the fields that are part of the selection criteria. 
    For an example, I frequently use the Posting Date. To the right of the screen is a field called Selection Variable, click on the drop box and select D - Dynamic Date Calculation.
    Go to field NAme of variable, click on drop box and select the variable you want.
    Each field has its own list of selection variable and name of variable depending on how it works in the progra.
    If you look at Posting period you will see:
         T: Table Variable from TVARVC
         B: User-defined variables
    I do not know about User defined variables, but for TVARC there is thread that leads to a "how to" blog
    [How create a variable in the TVARVC that calculate the last week]
    do some more searching and you should find more answers
    Good luck
    Althea

  • Trying to make a back ground transparent for a web site

    Trying to make a back ground transparent for a web site on a logo image

    There is no picture? Did you try sending it by email? You'll have to sign into the forum and use the camera icon to upload. Thank you.
    Benjamin

  • What is back ground processing

    what is difference between background and fore ground processing of a report. what are the various methods to execute a report in back ground.  and when we need schedule a report in back ground how shall we handle selection screen parameters.
    thanx in advance.

    Hi,
    <u><i>Background Processing</i></u>
    There are two ways for you to handle,
    one manually setting up the job through SM36 which is better and convinient,
    secondly through program using FM's JOB_OPEN, SUBMIT, JOB_CLOSE.
      Find below steps in doing both:
    Procedure 1:
      1. Goto Trans -> SM36
      2. Define a job with the program and variant if any
      3. Click on start condition in application tool bar
      4. In the pop-up window, click on Date/Time
      5. Below you can see a check box "Periodic Job"
      6. Next click on Period Values
      7. Select "Other Period"
      8. Now give '15' for Minutes
      9. Save the job
    In SM37 u can check the status of the jobs that u have assigned to background...
    Here u mention the job name or the report name to check the status of the job...
    After mentioning the job name or program name u just execute it.. ( without any name also u can execute then it gives u all the jobs set by your user name..
    the status colud be released,active,finished etc..
    Procedure 2 via Program:
    Below is a sample code for the same. Note the ZTEMP2 is the program i am scheduling with 15mins frequency.
    DATA: P_JOBCNT LIKE TBTCJOB-JOBCOUNT,
          L_RELEASE(1) TYPE c.
       CALL FUNCTION 'JOB_OPEN'
         EXPORTING
           JOBNAME                = 'ZTEMP2'
        IMPORTING
          JOBCOUNT               = P_JOBCNT
        EXCEPTIONS
          CANT_CREATE_JOB        = 1
          INVALID_JOB_DATA       = 2
          JOBNAME_MISSING        = 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.
       SUBMIT ZTEMP2 VIA JOB 'ZTEMP2' NUMBER P_JOBCNT
              TO SAP-SPOOL WITHOUT SPOOL DYNPRO
              WITH DESTINATION = 'HPMISPRT'
              WITH IMMEDIATELY = SPACE
              WITH KEEP_IN_SPOOL = 'X' AND RETURN.
       CALL FUNCTION 'JOB_CLOSE'
         EXPORTING
           JOBCOUNT                          = P_JOBCNT
           JOBNAME                           = 'ZTEMP2'
           STRTIMMED                         = 'X'
           PRDMINS                          = 15
        IMPORTING
          JOB_WAS_RELEASED                  = L_RELEASE
        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.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.
    Hope the above helps you.
    Regards
    Reshma

  • 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

  • Hi regarding back ground jobs

    I have a report which is scheduled to run 2 times in the background.
    here i am using OO ALV when to display output when run in back ground.
    but i am getting an error when the same report is run in the back ground, stating there is a problem with the object references.
    but one of my friend tried it and is successful to run in the background but another problem, when run in foreground 10 records are displayed and when run in background only 2 records are displayed for the same criteria.in both the cases i am sending the output to the file on appl server.
    pls help me its urgent.
    pionts are assured.

    Ravi,
    I have faced the same problem when I schedule the job in background.
    When the report was run in forground, it gives expected results, and when it run in background, it will supress some fields and disply the report output.
    This problem, I have debugged it and corrected, and its application specific I can say, cant conclude it  by seeing the problem, needs to do much research and fix it up.
    Regards,
    Sujatha.

  • Back Ground Jobs for ESS/MSS

    Hi,
    I would like to know all the back ground jobs to be scheduled for ESS/MSS.
    As all the data updated in the portal as to reflect in r/3 system and all the data updated in r/3 system to portal.
    Regards
    Vish

    You need to set the background jobs depending on the functionality which is being implemented and what the data ?
    for eg: if it's leave request there background jos which needs to scheduled
    RPTARQEMAIL (Leave Requests: Send E-Mails)
    RPTARQPOST (Leave Requests: Post)
    RPTARQSTOPWF (Leave Requests: Complete Current Workflows)
    hope this would help you..

Maybe you are looking for

  • Can't add song to library

    I have an mp3 song in my music library on the PC, all the songs in the folder are in the Itunes list but one. I cannot get that song to appear in the itunes library list so I can get it on the ipod.  I've tried adding to the library, dragging and dro

  • Advice needed - multiple monitors, what software is right for this?

    I have an Intel Mac Pro (10.6) at work with 4 monitors, with screen sharing activated. I have an Intel mac Pro (10.6) at home with 2 monitors. I'd like to be able to do screen sharing, and the clients I've tested so far are driving me nuts - I can't

  • Jar files are not read from HDD

    Hi, we are facing a problem while trying to read jar files from Hard disk using CVM. we could able to read the file and the number of bytes read exactely matches with the file size. but while trying to use JNI (*env)->FindClass it is returns 0. Some

  • Error while previewing Smartform

    hi experts,               I have a PO smartforms. After executing the input values in selection screen, it shows error in status Bar as follws.......... TEXT 6200000180 ID F29 Language EN not found. Plz send me the reson why this is happening and wat

  • Get data from Sharepoint site in different farm using webservice, and current site using claims mode authentication.

    Hi ,  I have a site that runs on   Claims Mode (  NTLM) . That site has a web part that needs to show the data from any  sharepoint farm, SharePoitn  2010 , or 2007 or 2003. I am getting 401 unauthorized when I   try to get data from webservice runni