Scheduling Archiving of PRODUCT_MD (CRM 6.0)

Good afternoon,
We're currently attempting to schedule a job in SM36 in order to process the removal of all the old iObjects in our system.
In our config we have the deletion job set as automatic and the same for the post processing.
The job consists of the following:
No. Program name/command     Prog. type Spool list Parameters
1  COM_PRODUCT_SELECTIONS   ABAP             1460 IO
2  COM_PRODUCT_ARC_WRITE    ABAP             1461
When this job runs, it does trigger the deletion job (COM_PRODUCT_ARC_CHECKBACK), but for some reason it always sets the TEST variant instead of the PROD one.  This of course means the post processing doesn't start either and the only way to process the job further is to go into SARA and continue the process manually.
I have done many searches and read the SAP help regarding this object, but the only documentation I can find is regarding SARA and we already have that working.
Any pointers in setting this archive object up in SM36 would be a tremendous help.
Thanks
Thys

We have added more text to our SAP Query as the error seems to be in the code:
In program COM_PRODUCT_ARC_WRITE with version:
activ X 700 16.12.2004 21:17:36 SAP
I can see the following code:
*Bei PARAMETERS muß man in der SARA eine Variante auswählen
*PARAMETERS:
* create DEFAULT 'X' AS CHECKBOX, " Archiv erzeugen
* delete DEFAULT 'X' NO-DISPLAY, " Löschprog. im Testmodus, generell
* comments(70) TYPE c. " Beschreibung zum ArchivierungslaufDATA:
gv_create TYPE comt_boolean VALUE on, " Create Archive
gv_delete TYPE comt_boolean VALUE on, " Call Delete Report Testmode
As you can see the parameters are commented out and you can also see that "gv_delete" is marked as ON.
If you do a where-used on "gv_delete", you find the following function module call:
* // Open archive file
CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE'
EXPORTING
call_delete_job_in_test_mode = gv_delete
create_archive_file = gv_create
object = gc_arc-archive_object
comments = gv_comments
IMPORTING
archive_handle = archive_handle
EXCEPTIONS
internal_error = 1
object_not_found = 2
open_error = 3
not_authorized = 4
OTHERS = 5.
This code will ALWAYS call the delete job in test mode.
Edited by: Mathys Van der Merwe on Sep 5, 2011 4:39 PM

Similar Messages

  • Need to fetch Schedule Line information into CRM from R/3

    Hi Experts,
    I need to get the Schedule Line Info into CRM system before an order is created.
    Is there any standard function module in R/3 to fetch this information for a specified Material and Quantity.
    If not, the database table where this schedule line information is being stored would help.
    Regards,
    Kris.

    Hello all,
    does this Function Module work also for Configurable Material? We currently face the issue that we replicate a quote from CRM to ECC and the confirmed date for the Scheduled Lines do not get populated due to a limitation. It seems, that currently it is not supported to get back the confirmed date for sub-line items that come from a configurable product.
    The FM Module you mentioned seem like a good workaround?!?
    Please advise!
    Marc

  • Problem while Scheduling Archive Jobs from SXMB_ADM

    Dear all,
    I am using this blog to delete and archive messages.
    /people/deepak.shah/blog/2010/04/22/archiving-deletion-of-messages-in-pi--part-2
    I have configured Retention periods from SXMB_ADM and there by scheduled Archive Jobs through SXMB_ADM itself.
    Now when i check in SM37, after Archive jobs scheduled , i am not able to see 2 jobs as described in this Blog.
    i am able to see only one Job with name "SAP_BC_XMB_ARCHIVE200"
    Please assist me what might be the problem
    Regards

    Hi Ganesh,
    Thank you for replying. Once this SAP_BC_XMB_ARCHIVE200 is finished, one more job has been generated
    ARV_BC_XMB_WRP20100602112115. But this is not for deletion . it is doing archiving
    When i check the log, SAP_BC_XMB_ARCHIVE200 contains the program as RSXMB_ARCHIVE_PLAN
    and ARV_BC_XMB_WRP20100602112115 job contains the program as RSXMB_ARCHIVE_MESSAGES
    There is no job generated for deletion of Archived ones.
    >>Deletion job starts automatically if in archiving setting u have selected START AUTOMATICALLY option for deletion .
    Could you please let me know where this should be done while doing Archiving jobs??
    Regards

  • Archiving Emails in CRM

    Hi Experts,
    I am trying to archive E-mails recieved in the CRM system.
    To do so, I am trying to schedule a SARA job to archive WORKITEMS in the system.
    But when I try to execute the report WORKITEM_WRI in test mode and enter the parameters, I get the following error:
    "No work items for archiving exist for your selection".
    Is it the correct way to archive e-mails? Else, what is the exact procedure to be followed for the same.
    Any help on the same would be highly appreciated.
    Regards,
    Saumya

    Hello,
    Work Items archiving and Email archiving is entirely different.
    Important table related to CRM Emails:
    1. CRMD_ERMS_HEADER - Statistical data header
    2. CRMD_ERMS_STEP - Statistical data step
    3. BCST_SR -  Status of Send Orders
    4. SOOD - Object Definition - When email comes to SAP system then this table is updated.
    5. SOC3 -  DB for objects (import/export)- This table contains the content information of the email.
    6. SOFFCONT1 - Table for Document Contents (import/export)- Attachments are updated in this table
    7. SOFFLOIO -   Instances of Logical Information Objects - Only out going emails logical ID are updated in this table
    8. SOFFPHIO - Instances of Physical Information Object - Only out going emails physical ID are updated in this table
    9. SOFFPHFK - File Name of Last Checkout.
    There are 2 things that you have to consider inorder to archive Emails:
    1. Relocate attachments from Incoming and outgoing mails or attachments from SAP Office from table SOFFCONT1 table.
    >> For Relocation you have to run program RSIRPIRL
    2. Archiving of emails in text format from SOC3
    >> For archiving email text in sap office you have to run Mass archivng program from transaction SOY8.
    Suggestion: If you are concerned on SOFFCONT1 table (Normaly it consumes more space in database) then just run the relocation program with all required configurations.
    As email information in SOOD, SOFM, & so on will not occupy more space so you can consider not to archive this.
    Hope this information will help you.
    -Thanks,
    Ajay

  • Schedule archiving jobs

    Hi,
    We are trying to schedule periodically the archiving jobs for several objects.
    To be more specific, we begin with MM_EKKO archiving object and we would like to chain the 3 steps : preprocessor the write, then delete.
    Chaining delete after write is easy : In "technical Setting", we just have to tickle "start automatically" in the "delete jobs" parameters.
    But how to chain automatically write step after preprocessor ?
    Obviously, I tried usual options in SM36 and used "after job" parameter. But what job can I enter as the job name  for precprocessor is automatically generated by SAP and changed at every new job (the date and time are included in the name, e.g :  ARV_MM_EKKO_SUB20110406163238) ?
    Do I need to use an exernal third party scheduler to do this ?

    Serge,
    I have been researching on your query lately and have put accross this question to some Archiving Experts at my end. Hopefully, will come up with a full-proof solution.
    But in the meantime, if you have a sandbox or if you can do a research, please do the following:
    1. In SARA, under the TECHNICAL SETTINGS tab go to the VERIFY ARCHIVE FILES box.
    2. There just click on the following, Before Deleting, Before Reading and Before Reloading.
    3. I think this BEFORE READING box could be a solution.
    4. And for deletion check the START AUTOMATICALLY option.
    Please try this and let us know. If solved, okay and if not then I will reply back after conveying from the experts.

  • Best SAP Security Practices Print,file,job schedule, archiving

    Hello All, i would like to know in your experience which will be the best practices for Security  for this list below:
    - Printer security (especially check printing)
    - File path security for export/import
    - Best Practice for Job Schedule and Spool file
    - Archiving process (I can't think of any specific to security, other than Security Audit Logs)
    Are there any special transactions/system settings/parameters that must be on place in order to hard SAP Systems?
    Do you have any documentation related?
    I mean for example Job, spool i think user must just only run heir own jobs,and se their own works for printing, is there a paremeter to athenticate Prints/user, etc.
    Please let me know your comments about those related issues.
    I appreciate your help.
    Thanks a lot.
    Ahmed

    Hi,
    PFCG_TIME_DEPENDENCY
    This is best to run once a day mostly after 12.01 am as it removes the roles which are invalid for current date. As role assignment is on date basis there is no advantage of running it hourly.
    /VIRSA/ZVFATBAK
    This is for GRC 5.3, and this job is to collect FFID logs from backend to GRC repository, so if you have frequent FFID usage you can schedule it hourly or for every 30 min too, if you have enough bandwidth in your server to get the latest log report. or else you can have it scheduled for twice a day too, so it is purely based on your need.
    Hope this helps.
    BR,
    Mangesh

  • Erroneous link between R/3 Schedule Lines and CRM Schedule Line

    Hi everybody,
    I am analyzing the best approach to fix a duplicate schedule line issue in CRM. The documents are modified from R/3 by means of an IDOC (ORDERS05).
    First of all, let me explain the process.
    1.- Document is first created in CRM
    2.- Document is updated from CRM in R/3 (Using middleware)
    3.- In R/3, a customer program (Z), does a lot of calculations to the order (rejection, item splitting, Qty changes, creation of new Items, etc) and once its done, it populates the IDOC and sends the information to CRM (ORDERS05).
    4.- CRM receives the IDOC, modifies the order.
    5.- Document is update from CRM in R/3 9Using middleware)
    The Z program, DOES NOT modify the database in R/3, it lets the process to be executed and also lets CRM to do this job.
    I had to make several modifications to the XIF module, in order to allow many of those changes to be valid in CRM (i.e., A rejected ITEM is changed to be valid and it's Qty changed. CRM does not allow this to be done in one step, since the qty is "greyed" for no changes).
    Edited by: Rob Burbank on Feb 17, 2010 5:34 PM

    My issue is this.
    The worst thing that happened, is the fact there is key fields in R/3 -> CRM, to link the schedule lines, since R/3 Uses the regular key fields in the T. table, CRM uses the GUID for the sched. lines.
    After a OSS msg and many goes and comes, I had the suggestion from SAP to change from ORDERS05 Idoc into CRMXIF_ORDER_SAVE_M01 idoc, since ORDERS05 is not supported by CRM (however the Idoc is in the system).
    I am not sure that is the best solution, in fact I do not believe that is a solution at all. CRMXIF_ORDER_SAVE_M01 does not exist in R/3 and even if somehow I do all the effort to create it in R/3, R/3 still does not have the schedule line GUID to properly point to the right record.
    What I did to override this error, was to include inside the XIF module the CRM_APO_SALES_SELECT_GUIDS, CRM_ORDER_READ and CRM_ORDER_CONVERT_DOCNUMBER Functions to get all the sched lines for the specific orders in the guid form. However this solution does not work OK, since sometimes the CRM system is not able to properly return the correct GUID values and this leads to the duplicate schedule lines error.
    If somebody has ever deal with a situation like this, I will appreciate if could share its point of view or even better, share the solution used.
    As an extra comment, modifying the Z program to update the database and let middleware to do the job for us, is ou of the qustion at this momento.
    Thank you for your time and help.
    Sincerely
    Meuli
    Moderator message - Welcome to SCN.
    There is a 2,500 character posting limit, but in this case I split it in two.

  • Multi resource Scheduling with CRM

    Hi MRS Experts,
    I am an CRM consultant working on a scenario of resource planning in SAP CRM services. We have a scenario where the user creats a service order in IC web client. As soon as he creates a service order two things should happen:
    1) Appoint scheduling based on customer availibility
    2) resource (employee) scheduling
    Regarding this I have following questions:
    1) Can MRS work in this scenarion (resource scheduling in/with SRP CRM?
    2) Is it a standard integration?
    3) What it takes to integrated MRS with SAP CRM?
    4) What data points are required to in mRS from CRM to for resource scheduling and appointment scheduling:?
    5) If we are correct WFM is not requred for MRS?
    6) How MRS integrates with mobile application fro the service scenario?
    7) is it advisibel to use WFM or MRS, with CRM?
    PS: Guys its great to have such discussion, the doc links mentioned in the first page do not work.
    I would realy appriciate if somebody clarifies the above queries as early aspossible as i am struggling at this point a lot.
    Thanks in advance.
    Please assist.
    Regards
    Adi

    Hello Aditya,
    1) Yes MRS can work with CRM. But with the current release in service market place (whcih is MRS 610) it is not possible to have this as out of the box solution.
    You will need to enhance MRS to enable this.
    2) With the new release, which is due this year, it will be possible to integrate CRM service orders with MRS.
    3) MRS provides more functions with respect to service planning. So I would say MRS should be preferred solution.
    Regards
    Varun

  • Archiving in CRM

    Hi,
    Can anyone help me with the config that is required for archiving data in CRM. I need to archive:
    CRM Service Processes
    CRM Activities
    BP
    Thanks in advance.
    Regards,
    -Sweta

    Sweta
       1. <a href="http://help.sap.com/saphelp_crm50/helpdata/en/43/0f107a9d772a84e10000000a1553f6/frameset.htm">BP Archiving</a>
      2.  <a href="http://help.sap.com/saphelp_crm50/helpdata/en/dc/f5fc37a0ca3144e10000009b38f8cf/frameset.htm">Data Archiving in SAP CRM</a>
    Thanks
    <b>Allot points if this helps !</b>

  • How Do Archive CRM documents especially crmd_order & crmd_order_index

    Dear All,
          Could you let us know how to archive documents in CRM, especially crmd_order, crmd_order_index.
    regards,
    Milind Karoor

    Hi
    Check the below links may help you
    http://help.sap.com/saphelp_crm70/helpdata/EN/4e/309e3a462f8a09e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_crm70/helpdata/EN/e6/c66f3b6c980c3be10000000a11402f/frameset.htm
    Let me know if needed more information
    Regards
    Uday

  • Scheduled even for an extract from CRM OD

    Hi all,
    I need to extract in a scheduled manner data from CRM OD. An example may be that each day i need to extract all new accounts from CRM OD and put this info in an excel file.
    Now, I can develop a web services that can do this, but the problem is that web services from my point of view can't be used to extract massive volume of data. Any alternative idea?Thanks.Massimo

    Correct, Udaya.
    Which brings us back to the original question. I guess the solution proposed by user8742475 is manual, and not automation which is what the question was.
    Thanks..

  • Archive Complete, but delete job not scheduled. Issue with Archives now

    As someone tried at work to schedule archive/delete process, we are finding issues now.
    We have job scheduled for Archive but not delete. The job is archiving the messages, Meanwhile because of the growing disk space, folks deleted the archive files.
    Now Archive is Complete, but with out Deletion.
    So how do we start from scratch again
    Also if I understood correctly after deleting the infostructure the session goes into error/red light since we can no longer build the related data from the archives due to the missing infostructures right?

    Dear friend of XI,
    I fully understand the issue; sure you cannot use RSXMB_DELETE_ARCHIVED_MESSAGES as the archive files have been deleted.
    Tha paradigma of archving is that once the write phase is complete the deletion phse must complete at any rate. As this is impossible for the deleted archive files there is no way in the standard to erase the incomplete archive runs from management overview in SARA. In case you would like to clear the entries in SARA please open an OSS message such that SAP can take a look into the affected system and evaluate an individual solution for you.
    irrespective of whether you clear the management entries in SARA you can simply run another archive session. Please note that the interfaces action (field ITFACTION) reflects the action to be taken for an indivirual message. It does not depict a state, in particular it does not mean that the message has been archived already. The interface action is determined right when the mesage enters the Integration Server. Contrary, the information on whether the message has been archived alteady (or still needs to) is stored in a different statuis field.
    Best regards,
    Harald Keimer

  • Changing archived status for target group or segmentation model.

    Hello, CRMies!
    In SAP CRm WEBUI i set "To archive" flag for segmentation model and now it has status "Archived". The problem is hat it became inactive now and i can't reset this status. I didn't execute any archiving reports, just set the flag on.  I was looking for any FM or reports to recover the status.
    Anybody knows how to unarchive segmentation model or TG?

    Hi Katya,
    as far I know the segmentation model is archived with the next scheduled archive run once the status 'to be archived' is set. The status can be undone before the archive run, once this is archived there is no way other then generating the segment again.
    Please refer to the online help about further information:
    Archiving Segmentation Elements - SAP Library
    For target groups andproduct segments there is also a read program in transaction SARA, which you can use to display the archived segmentation elements again at a later point in time, if required.
    Furthermore, the information structure SAP_CRM_MKTTG_I is available for target groups and product segments in the transaction SARA.
    You can not only read, but can also load archived segmentation models into the system. However, you should only use this function when it is absolutely necessary. For further information, see Reloading Archive.
    Since you cannot load target groups or product segments into the system, you need to generate these again to be able to use them.
    I hope this helps.
    best regards,
    Johannes

  • Error while taking archive log backup

    Dear all,
    We are getting the below mentioned error while taking the archive log backup
    ============================================================================
    BR0208I Volume with name RRPA02 required in device /dev/rmt0.1
    BR0210I Please mount BRARCHIVE volume, if you have not already done so
    BR0280I BRARCHIVE time stamp: 2010-05-27 16.43.41
    BR0256I Enter 'c[ont]' to continue, 's[top]' to cancel BRARCHIVE:
    c
    BR0280I BRARCHIVE time stamp: 2010-05-27 16.43.46
    BR0257I Your reply: 'c'
    BR0259I Program execution will be continued...
    BR0280I BRARCHIVE time stamp: 2010-05-27 16.43.46
    BR0226I Rewinding tape volume in device /dev/rmt0 ...
    BR0351I Restoring /oracle/RRP/sapreorg/.tape.hdr0
    BR0355I from /dev/rmt0.1 ...
    BR0278W Command output of 'LANG=C cd /oracle/RRP/sapreorg && LANG=C cpio -iuvB .tape.hdr0 < /dev/rmt0.1':
    Can't read input
    ===========================================================================
    We are able to take offline, online backups but we are facing the above mentioned problem while taking archive log backup
    We are on ECC 6 / Oracle / AIX
    The kernel is latest
    The drive is working fine and there is no problem with the tapes as we have tried using diffrent tapes
    can this be a permissions issue?
    I ran saproot.sh but somehow it is setting owner as sidadm and group as sapsys to some of the br* files
    I tried by changing the permissions to oraSID : dba but still the error is the same
    Any suggestions?

    Means you have not initialized the medias but trying to take backups.
    First check how many medias you have entered in your tape count parameter for archive log backups (just go to initSID.sap and check)
    Then increase/reduce them to according to your archive backup plan >> Initialize all the tapes according to their name (same as you have initialized in initSID.sap) >> stick physical label to all the medias according to name >> Schedule archive backups
    It will not ask you for initialization as already you have initialized in second step.
    Suggestion: Use 7 medias per week (one tape per day)
    Regards,
    Nick Loy

  • Data archiving for Write Optimized DSO

    Hi Gurus,
    I am trying to archive data in Write Optimized DSO.
    Its allowing me to archive on request basis but it archives entire requests in the DSO(Means all data).
    But i want to select to archive from this request to this request.(Selection of request by my own).
    Please guide me.
    I got the below details from SDN.Kindly check.
    Archiving for Write optimized DSOs follow request based archiving as opposed to time slice archiving in standard DSO. This means that partial request activation is not possible; only complete requests have to be archived.
    Characteristic for Time Slice can be a time characteristic present in the WDSO, or the request creation data/request loading date. You are not allowed to add additional infoobjects for semantic groups, default is 0REQUEST & 0DATAPAKID.
    The actual process of archiving remains the same i.e
    Create a Data Archiving Process
    Create and schedule archiving requests
    Restore archiving requests (optional)
    Regards,
    kiruthika

    Hi,
    Please check the below OSS Note :
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_whm/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d31313338303830%7d
    -Vikram

Maybe you are looking for

  • Rename accounts in SAP R/3

    We need to rename several hundred accounts in  R/3 Enterprise system to meet new naming conventions. We should be able to keep the history of transactional data in the system. What is the best way?

  • Changing to a soft cover medium size

    just did a 25 page book..it seems to have been assigned a size already from the start. didnt realize that the books size was designed from the start. i thought i would have a choice at the end of doing the book. is there a way to now change the size

  • Why is the stub generated from the implementation and not the interface?

    Why is the stub generated from the implementation and not the interface?

  • I have an unauthorized purchase on my account. How do I report a problem?

    I had a bunch of iTunes credit from gift cards I received. Someone purchased a $32 app with my credit. Part of the description is in Chinese. I tried to report a problem with the purchase but it just bounces me to this Web site with no way to contact

  • SetDocument() in an JEditorPane

    Hi, I am using a JEditorPane to display some HTML. When I try to setDocument() with a HTMLDocument, I get a NullPointerException. Any ideas what the problem could be?         msgArea = new JEditorPane("text/html", "");         htmlDoc = (HTMLDocument