Pre-processing job for Transactions

Hi Archiving Forum,
In SAP help it is mentioned that pre-processing job is optional job. I am trying to run Write job for few of the transactions where the status is completed without pre-processing job.
But when i debugged the write program for - CRM_SERORD archiving object, the program internally checking the I1100 status for each Service ticket/ Order.
Here, all Service tickets were marked completed status on 24/03/2009.
Residency time for all transaction types is 1 day.
I am running the Write job for Service Ticket and Service order on 24/03/2009. - but job is not able to write the data into Archive files.
Should i wait for One day ( where it completes the Residency time) to run the Write job?
If i wait for one day, then the write program is internally checking the status I100 (Archival status). Is this status is updated by default in the CRM_JEST table after completing Residency period ?
Please need concrete answers.
Thanks in Advance,
Kishore

Hi Kishore,
Pre-processing job should be scheduled for archiving objects before runing write program because it will help in basic archivability check and makes the basement for write program.
Without executing pre-processing program write program will fails to archive data. For example: CO_ORDER, MM_EKKO, MM_EBAN and so on... in R/3 system.
Similarly in CRM system Pre-processing program will help
In check, the following database changes for CRM_SERORD:
1) The date of the archivability check is updated.
2) For the archivable data, the status is changed to 'Archivable'. Then the
data is no longer changeable.
3) For the archivable data, the system sends a deletion BDoc type with
message type 'A' (for archiving) via the CRM Middleware so that the other
components involved in mySAP CRM solutions are informed about an archiving
of the data in the CRM server. The system sends deletion BDoc types at this
time because the change to an unchangeable status is the status change
which is relevant from a business point of view.
In CRM 3.0 version
The check occurs in an archiving object-specific preprocessing program
entered for the archiving object in transaction AOBJ.
As of mySAP CRM5.0 it is controlled using transaction SARA check/delete
In your case:
Even after passing of 1 day of residence time service order or service ticket will not be archive since write program will not set the status for archive I1100. Preprocessing program calling functional module and setting the status as archivable (I1100) after all the pre-requisites are met and write program will archive those data.
The status in ST / SO will not be automatically changed after meeting residence time.
Please also read OSS note no 500551.
-Thanks,
Ajay
Edited by: Ajay Kumar on Mar 25, 2009 2:17 AM

Similar Messages

  • How to schedule a job for transaction CG36, incl. variant?

    Hi all,
    When you enter transaction CG36, you need to select a User Exist (EHS_DXSDB). After that you need to define a file path.
    I would like to schedule a job for transaction: CG36 > Define User Exit: EHS_DXSDB (Import Dok-X material Safety Data Sheets) > and define a path. With transaction SE93, I found program name: RC1RIMPS (program is allowed to be job scheduled), only I can't create a Variant (to define the user exit and file path, no selectionscreen), how to create a variant?
    The following programs can't be scheduled either (as they are not of type 1 or J):
    SAPLC131
    SAPLC1EO
    SAPLC3G
    Thank you in advance!
    Kind regards,
    Roy Derks

    Hello Roy
    I am sorry. To my knowledge up to ECC 6.0 Enhancement Pack 4 there is no SAP EH&S process available there you can do what you are requesting. The "problem" is that you need to "answer" the user dialog. Therefore you can not generate/prepare a variant which could be processed as a job according to my knowledge.
    Therefore in my opinion you have this option only: prepare a copy of the transaction (or only the report) using either "Z" or "Y (customer reports). Then you need to exclude some line in the code (which gives rise to the user dialog) and prepare some customer specific coding so that the resulting report can be used in such a way that a variant is possible, but you must make sure that the process later (the real upload process) is processed too in this "job" queue. IN any case: you need to check the log of the report and this must be done by an user. Therefore an automatic process does have some "risks"
    The topic of import of reports is used in most cases during a set up of EH&S, because of mergers/acustions but not in the daily work with EH&S and there I believe that SAP does not support this demand.
    With best regards
    C.B.

  • Job for transaction PBA6

    Hi,
    I'm trying to create a job for transaction PBA6 (program RPAPRT02) but once I get the list of all the activities I should complete I don't know how to select them all and execute de program SAPMSSY0.
    Any idea?
    Thanks

    Hi,
    Did you try to make a Parallel Processing referred to RFC?
    Maybe this link can help you.
    [http://help.sap.com/saphelp_nw04/helpdata/en/22/0425c6488911d189490000e829fbbd/content.htm]

  • BackGround Job for Transaction VF06

    Hi Experts,
    We are having problems with the background Job for transaction VF06. We run this job every day except weekends but this job runs and takes only 0 sec without creating Invoices.
    Allthough running this transaction Manually creates Invoice with same variant.
    Kindly help me on this.
    Thanks and Regards,
    Neha Kapoor

    Hi,
    I have the seen the Log it tells:
    Date       Time     Message text                                                                 Message class Message no. Message type
    29.06.2008 22:00:48 Job started                                                                       00           516          S
    29.06.2008 22:00:48 Step 001 started (program RV60SBAT, variant SOIE AUTO BILL, user ID GGBATCH)      00           550          S
    29.06.2008 22:00:48 Job finished                                                                      00           517          S
    But Invoices are not getting created.
    Thanks and Regards,
    Neha Kapoor

  • How to create a batch job for transaction SM13 or SM37

    How to create a batch job for transaction SM13 or SM37?
    I want to create a batch job for t-code SM13/SM37, the jobs will send a email to my inbox when the errors occurred in SM13/SM37.
    How to do this? thanks in advance.

    Hi,
    Check the link:
    http://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/30237989-0901-0010-70a4-944691eb5e52 [original link is broken]
    Make sure the CCMS agent installation is in place as per the Monitoring setup guide.
    Follow the link Central auto reactions for configuring alert mails.
    Regards,
    Srikishan

  • Custom Pre Process Handler for middle name generation

    Hi,
    I am working on Custom Pre Process Event Handler for generation of middle name from the First Name by following the Meta link ID :[ID 1262803.1]. I have followed all the steps successfully as mentioned in meta link. But I am not able to trigger the middle name in OIM admin console. Following are the steps :
    1) Created a Application and project named CustomPreProcessEventHandler and copied the sample code. I have copied all the jars in our class path from OIM Platform folder e.g : iam-platform-context.jar and iam-platform-kernel.jar.
    2) Created plugin as mentioned in metalink.
    3) Copied in the plugins directory and registered successfully.
    4) Set all my paths and home as mentioned in the metalink for Java, ANT, WL_HOME, OIM_HOME.
    5) Created EventHandlers.xml and imported the file with wlst in the OIM_HOME/metadata/user/custom/CustomPreProcessHandler/EventHandlers.xml
    6) Finally ( *./PurgeCache.sh MetaData* ) to purge the cache.
    7) Created a new user in OIM Admin Console but I am not getting any middle name.
    Please guide if i am missing something. Do I need to map something Design console or any system property need to be changed.
    I have been trying this since last week without any success. Please suggest ASAP.
    Thanks

    Thanks for the Promt reply.
    I have changed the orders from 1000 to 50 in EventHandlers.xml.
    I also checked the plugins table in DEV_OIM and found three entries. In plugin table we have these enteries
    1) MyCustomUserNameGenerator
    2) CustomPreProcessEventHandler
    3) CustomPreProcessEventHandler1
    I have deleted the MyCustomUserNameGenerator, CustomPreProcessEventHandler and all its dependencies. Still its showing in Plugins table.
    My active eventhandler is now this CustomPreProcessEventHandler1. but when I trigger the event handler in log..
    executing in the server environment hence initialising ADPClassWatchDog
    Xl Home Dir :/opt/Oracle/Middleware/Oracle_IDM1/server
    MyCustomUserNameGenerator####getUserNameFromPolicy
    MyCustomUserNameGenerator####printMap:
    MyCustomUserNameGenerator####printMap: key=Email val=null
    MyCustomUserNameGenerator####printMap: key=Middle Name val=null
    MyCustomUserNameGenerator####printMap: key=Last Name val=user10
    MyCustomUserNameGenerator####printMap: key=First Name val=test
    MyCustomUserNameGenerator####printMap:
    MyCustomUserNameGenerator####printMap: key=Email [email protected]
    MyCustomUserNameGenerator####printMap: key=Middle Name val=null
    MyCustomUserNameGenerator####printMap: key=Last Name val=user10
    MyCustomUserNameGenerator####printMap: key=First Name val=test
    <Jun 21, 2011 11:08:20 AM IST> <Warning> <oracle.iam.autoroles.impl.util> <IAM-4020205> <Rule Consultant is invalid because it contains an element with an invalid attribute.>
    <Jun 21, 2011 11:08:20 AM IST> <Warning> <oracle.iam.autoroles.impl.util> <IAM-4020203> <Rule Consultant is invalid and it is being ignored.>
    <Jun 21, 2011 11:08:20 AM IST> <Warning> <oracle.iam.autoroles.impl.util> <IAM-4020205> <Rule Full-Time Employee is invalid because it contains an element with an invalid attribute.>
    <Jun 21, 2011 11:08:20 AM IST> <Warning> <oracle.iam.autoroles.impl.util> <IAM-4020203> <Rule Full-Time Employee is invalid and it is being ignored.>
    <Jun 21, 2011 11:09:04 AM IST> <Error> <org.quartz.impl.jdbcjobstore.JobStoreCMT> <BEA-000000> <MisfireHandler: Error handling misfires: Unexpected runtime exception: null
    Its still running MyCustomUserNameGenerator....
    Please guide me for further steps....
    Thanks

  • Is there a possibility create background jobs for transaction SP01?

    We are creating spool requests (status 'to be processed') for specific printers that are located in different time zones. We want to schedule print jobs by printer to make sure the prints come out at a time the user specifies to us. I am looking for a program with the possibility to make variants by printer that I can include in a job to be created via SM36.Looking forward to your suggestions!
    kind regards
    Angelique Heutinck

    Hi,
    Check this link It may help you.
    https://forums.sdn.sap.com/click.jspa?searchID=4305151&messageID=2622788
    Thanks.

  • Creating Process Chains for Infocube

    Hi All,
    I am trying to create a process chain for Vendor Evaluation(0PUR_C05).I created a start process and the "execute infopack" wich is delta load,so it prompted for "insert delete index" wich i created.Now,what to do next???
    the data flow is like this..
    infoapck(delta)->psa->infosource->infocube...
    is giving the selete index and rebuilding it mandatory??
    Please throw a light on this and help me out...
    Points will be rewarded..
    Regards,
    Manjari.

    Hi Manjari,
    How to do INIT?
    Go to Process Chain for Transaction Data.. and go to infopack you want to do INIT.
    Right click on that variant and click "Maintain Variant".
    Now if you have not yet loaded the cube using this Infopackage, you will find option Full update and Initialize data transfer in Update tab. If you have not loaded cube with any update, go to Initialize Data transfer and select the datatarget you want in Data Targets tab and check "Start immediately" in Scheduler tab and Execute.
    Now go to monitor screen and refresh it in times.
    Keep on monitoring in that screen until the requests become "Green".
    Once the requests are Green, come back to the Cube in RSA1 and check the data in Manage screen whether the data is populated fine or not.
    If the data is populated well, now go to Infopackage and in Update tab, change the Update technique to Delta. From now, you can have Delta upload using process chain.
    You will come to know whether the process chain is working properly or not by executing the process chain once. In your case, run the process chain only after you are done with INIT.
    If you have already loaded cube with Full load, follow the below process for INIT load...
    Go to Process Chain for Transaction Data.. and go to infopack and right click it. Click on Maintain Variant.
    InOrder to make it in INITIALISE DATA TRANSFER…goto... Menu>Scheduler>INITIALISATION OPTIONS FOR SOURCE SYSTEM..and click on it.
    You will get a popup with some requests in it. Select the requests and make them RED and delete all the requests and enter.
    And if u check in Update tab ,,for the update mode..it will be seen in INITIALISE DATA TRANSFER mode.
    Then move to DATA TARGETS tab and check the data target to which you want to load data.
    NOTE: If there is any data in the Cube, you want to do INIT, delete the data first (delete requests in Data target) and start INIT.
    Now move to "schedule" tab in Infopackage and check if the radio button is on START DATA LOAD IMMEDIATELY and click on the START button.
    Assign points if this helps u...
    Regards,
    KK.

  • Parallel process define for batch job

    Hi,
    I would like to run a batch job with a few processes run parallel together. May I know where can i define it ? T-code ?
    Regards
    Lauran

    Hi Lauren,
    First of all there is no transaction code as such.
    First of all the report that  needs to be run in background should enable you to do parrallel processing. For that code has to be written accordingly.
    Check this link:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fa/096e92543b11d1898e0000e8322d00/content.htm
    It gives details of function modules needed for this purpose.
    After this you need to create a variant for the report and schedule it to run in background using either SE38 (dirrectly) or by creating a job explicitily- SM36.
    A standard report that has parallel processing feature available is RBDAPP01.
    Also check transactions like BD18. They also make use of parallel processing.
    Regards.
    Ruchit.

  • Cancel the scheduled jobs for process chains - urgent

    Hi,
    How do I cancel the scheduled jobs for process chains which are going to run tonight.
    thanks,
    Radha

    Hello,
    Go into transaction code RSPC and then select the particular process chain by going into the edit mode and in the menu...
    Look for Execution --> Remove from Schedule.
    Let me know if that answered your question.
    Thanks
    Dharma.

  • Batch job for IDOC processing in 64 status

    Hi experts ,
    i want to know the name of Batch job for IDOC processing in 64 status.
    I have configured the partner profiles as 'process immediatly'.
    So with this configuration whenever an idoc comes in production it gets processed immediatly and automatically.
    i want to know how they are getting processed automatically.
    is there any job which looks for these idocs(in 64 status and process immediatly flag) and process it.
    What is the trigger for thiese idocs processing???
    Please guide me
    thanks in advance
    Anit gautam

    Hi Thanks for ur reply.
    =====Upon arrival, "process immediately" should fire that process =====
    how it is getting fire?
    means is there any batch job running which looks for idoc in 64 status or is there any event which get triggered when an idoc
    comes in 64 status.
    why we use OYEB transaction???
    Regards

  • Background Processing? how schedule job for "System Error" Message .

    Hello everyone,
    in sap help i have read.
    http://help.sap.com/saphelp_nw04/helpdata/en/5a/f72040599a8f5ce10000000a155106/frameset.htm
    PCK> Monitoring>Message Monitoring-->Background Processing
    you can schedule jobs for various background processing:
    ●     Archiving of messages processed successfully
    ●     Deletion of messages that are not to be archived
    ●     Restarting of messages with errors
    ●     Rescheduling of lost messages
    can anyone understand this docu?
    give me some introduction, how can i define and schedule these jobs ?
    thx in advance!!
    best regards
    Yaning

    Background Processing
    Prerequisites
    You have started the message monitor on the initial screen of the PCK and are in Background Processing.
    Features
    Archiving
    You require two archiving sessions to archive messages:
    ●     One session to write the messages to the archive
    ●     One session to delete the persisted messages that have been archived
    To do this, you schedule an archiving job, which implicitly schedules the sessions to write to the archive and delete the archived messages.
    You can define one or more rules for each archiving job; these rules contain conditions that a message must meet in order to be archived by the job. At least one of the defined rules must be met for archiving to take place.
    All information that is displayed for a message in message monitoring is archived, in addition to the audit log for each message.
    Deleting
    A standard delete job is created automatically. It runs once a day. You can schedule additional delete jobs; however, you cannot define rules for them.
    Restarting
    Instead of restarting messages with errors manually with message monitoring, you can schedule a job to automatically restart these messages. This is possible for all messages for which the number of defined restart attempts has been exceeded (messages with the system error status).
    You can define one or more rules for each job to restart messages; these rules contain conditions that a message must meet in order to be restarted by the job. At least one of the defined rules must be met for archiving to take place.
    Rescheduling
    A standard job to reschedule messages is created automatically. The job runs once a day and ensures that messages lost as a result of database failure, for example, are rescheduled. You can schedule additional rescheduling jobs; however, you cannot define rules for them.
    Thx Aamir.
    But I mean the messages with errors in Adapter Engine , not in Intergrations Engine.
    the situation is like Naveen Pandrangi's WebLog
    II. Errors in Adapter Engine [XI :  How to Re-Process failed XI Messages Automatically|XI :  How to Re-Process failed XI Messages Automatically]
    I
    Till now we have seen how to resubmit/restart message that failed in Integration Engine.  One a message makes it from Integration Engine to Adapter Engine, the message is flagged as checked in Integration Engine. The status of the message in Adapter engine does not effect the processed state in Integration Engine. Now if this message was asynchronous, XI will by default try to restart the message 3 times at intervals of 5 minutes before the status of the message is changed from Waiting to System Error .
    *how can i schedule a job to automatically restart these messages with errors?
    best regards
    Yaning
    Edited by: Yaning Liu on Aug 18, 2008 1:43 PM

  • BAPI for Vendor Non-PO Invoice processed through MIR7 Transaction

    Hi All,
    I have a requirement where i will get data from flat file. Using this data Vendor Non-PO Invoice
    will be processed through MIR7 transaction with Multiple line items - Invoice Upload Parking the document for vendor non-po invoices.
    The data is in below format in flat file:
    Header fields in 1st line
    Dr. Key related fields in 2nd line
    Cr. Key related fields in 3rd line
    Header fields in 4th line
    Dr. Key related fields in 5th line
    Cr. Key related fields in 6th line
    etc .... in flat file
    In these main fields coming in from flat file are: comp.code, doc.type, vendor no,
    Debit/Credit indicatorSHKZG, G/L a/c no, inv/post dates etc..
    My issues:
    1. I am planning to use F.M BAPI_INCOMINGINVOICE_PARK is it the correct F.M!
    But Here PO number seems to be mandatory for this F.M but it is not available as per our flat file,
    if so can anybody suggest a BAPI for Vendor Non-PO Invoice parking for MIR7 transaction!
    2. What are the parameters need to be used for from above flat file data especially for 2 line itemshttp://Dr./Cr. data other than header data. So as per Header & 2 Line items http://Dr. & Cr. Data which parameters will be updated with which data in above flat file! can anybody clarify!
    3. Also in flat file WorkflowNo is available in which parameter this fields will need to be filled & also by doing this will it trigger workflow automatically!
    Can anybody clarify about above points!
    Thanks in advance.
    Thanks,
    Deep.

    Hello Deep,
    I know it might be quite late for you for this answer, nevertheless I will write that, because there are lots of question like yours. bapi_incominginvoice_park is also a suitable bapi for you. All you need to do is call it this way:
    data: headerdata like bapi_incinv_create_header value is initial,
            table_item type table of bapi_incinv_create_item,
            gl_account like bapi_incinv_create_gl_account,
            table_gl type table of bapi_incinv_create_gl_account.
    * fill headerdata and table_gl, leaving table_item empty
    CALL FUNCTION 'BAPI_INCOMINGINVOICE_PARK'
        EXPORTING
          HEADERDATA                = HEADERDATA
    *   ADDRESSDATA               =
        IMPORTING
          INVOICEDOCNUMBER          = lv_docnr
          FISCALYEAR                = lv_year
        TABLES
          ITEMDATA                  = table_item
    *      ACCOUNTINGDATA            = table_acc
          GLACCOUNTDATA             = table_gl
    *   MATERIALDATA              =
    *      TAXDATA                   = table_tax
    *   WITHTAXDATA               =
    *   VENDORITEMSPLITDATA       =
          RETURN                    = lt_return.
    This works perfectly for me, creating a mir7 document without refering to a PO. The trick here is to fulfill the glaccountingdata importing table while leaving itemdata empty.

  • Table for transaction code for creation of process order

    Hi Gurus,
    Please tell me, in which table i can see the transaction code used to create process order.
    regards
    Kaisar

    Hi,
    Table for transactions is TSTC.
    If your looking for t-code for process order - COR1.
    Regards,
    Vivek

  • ABAP process job ( BI_PROCESS_ABAP ) in process chain running for long time

    Dear Experts,
    We have an ABAP process job  BI_PROCESS_ABAP  in a process chain. This job is running for a very long time than previous run time.
    Recently we had an ORACLE database upgrade from 9.2 to 10g.
    From the very next day , we are having this problem.
    And also previously this process-chain was under control of BASIS guys . they were using a tool called CRONACLE to schedule it. At the time of upgrade this tool was crashed and they asked us to schedule it in BW system instead.
    Underlying program is using two custom tables.
    one is having both primary & secondary indexes but the other table is having only primary index.
    I am not sure whether we have secondary indexes on other table prior to upgrade or not.
    Where must be the problem?...
    At the time of upgrade BASIS has re-organized the table space along with database upgrade.
    please help me...
    Regards,
    SRIKANTH

    Please ask yr basis consultant to check the system parms.
    Below i have listed down SAP recommneded system parms .
    abap/heap_area_total 4000000000
    abap/heap_area_dia 2000000000
    abap/heap_area_nondia 2000000000
    Also check in SM37 if any other jobs are running for long time, peventing the your job running.
    Check the SM12 for locks or SM58

Maybe you are looking for

  • Windows 8 KB2845533 error code fix 3 Methods

    There is Three ways to fix Windows Update KB File that I am having trouble installing I have used the DISM and its hanging. Is there a simpler way to do with e.g. Microsoft Hotfix? A File that fixes the problem. More Info: I am trying to get the Wind

  • How to install adobe flash in iphone ?

    anyone knows how to install adobe flash player in iphone ?

  • Google finding iWeb mobileme site

    I have an iWeb mobileme site and a separate domain name linked. Google can't find it. Does a site have to be hosted separately for this to happen?

  • Local crrency value is zero in MIR7

    Hello expert There is 4 GR Document on same dated 12/11/2010 with different quantity. But till posting date 8/12/2010 MIRO posted properly.But after 11/12/2010,MIR7 showing local currency zero.How to rectify it and why it is showing? Thanks in advanc

  • Bold 9900

    phone suddenly stopped working . mobile repairer advised to change the motherboard since the mother board of my black berry 9900 bold is not not working. the price for replacing the mother board is exborbitant. pls advise