ABAP program to add in the process chain before the attribute change run

Hi
I need a ABAP program to add in the process chain before the attribute change run(process) to avoid the locks, can any one send me the program
Regards,
Satish

I am not sure of any standard program .... but you can write your own... should be a small one..
you can check if the table RSDMDENQ has entry for your InfoObject... if yes, then its locked.. if not.. its not locked

Similar Messages

  • Process chain best practice - attribute change runs

    When building attribute change runs into Process Chains I see that there are potentially two main options to consider:
    1. One to One mapping.  Incorporate a separate attribute change run object type after each InfoObject has been loaded.
    2. Many to One mapping.  Build the process chain so that one single attribute change run occurs after all the InfoObjects have been loaded. 
    I would be interested to see how other people have incorporated their attribute loading into Process Chains.
    any info appreciated.
    Mike

    We run the attribute change run twice in our daily process chain, here's our order:
    - Load all master data
    - Attrib change run
    - Load all tx data
    - Run ABAP programs that generate master data
    - Attrib change run
    I doubt there will be much of a performance difference if you do the change run after each master data load, but it makes the process chain a lot easier to read.

  • ABAP Program using Selection Screen in Process Chain

    Hi,
    I have included an ABAP Program in the Process Chain.
    The ABAP Program takes a selection screen value from user before execution.
    I have created a variant for both the ABAP Process (YPV_ABC) and a variant for the Selection Screen (YPV_XYZ).
    The ABAP Program executes perfectly well in SE 38.
    I get the following message when I execute the Process Chain.
    "Status Change of Process ABAP YPV_ABC.
    Save Status and Trigger Events if Appropriate "
    When I click Yes, the ABAP Process becomes red.
    These are error messages in the log
    516 -  Job started     
    550 -  Step 001 started (program RSPROCESS, variant &0000000012961, user ID ALEREMOTE)
    25 -    Could not ascertain code page     
    546 -  Job cancelled after system exception ERROR_MESSAGE     
    My questions are:
    1) Is it possible to use an  ABAP Program which has a user input screen in Process Chain?
    2) Could you please help  with the above error?

    1) Is it possible to use an ABAP Program which has a user input screen in Process Chain?
    ABAP programs, with variants established for selection screens, are possible. We use them quite extensively for setting triggers to allow Process Chain to continue after an Interrupt Process has been hit.
    2) Could you please help with the above error?
    I'm not quite sure what could be causing this. When you tested this program in SE38, did you test it with the same variant for the selection screen and did you execute it in background?

  • The 0co_om_opa_6 ip in the process chains takes long time to run

    Hi experts,
    The 0co_om_opa_6 ip in the process chains takes long time to run around 5 hours in production
    I have checked the note 382329,
    -> where the indexes 1 and 4 are active
    -> index 4 was not "Index does not exist in database system ORACLE"- i have assgined to " Indexes on all database systems and ran the delta load in development system, but guess there are not much data in dev it took 2-1/2 hrs to run as it was taking earlier. so didnt find much differnce in performance.
    As per the note Note 549552 - CO line item extractors: performance, i have checked in the table BWOM_SETTINGS these are the settings that are there in the ECC system.
    -> OLTPSOURCE -  is blank
       PARAM_NAME - OBJSELSIZE
       PARAM_VALUE- is blank
    -> OLTPSOURCE - is blank
       PARAM_NAME - NOTSSELECT
       PARAM_VALUE- is blank
    -> OLTPSOURCE- 0CO_OM_OPA_6
       PARAM_NAME - NOBLOCKING
       PARAM_VALUE- is blank.
    Could you please check if any other settings needs to be done .
    Also for the IP there is selction criteris for FISCALYEAR/PERIOD from 2004-2099, also an inti is done for the same period as a result it becoming difficult for me to load for a single year.
    Please suggest.

    The problem was the index 4 was not active in the database level..it was recommended by the SAP team to activate it in se14..however while doing so we face few issues se14 is a very sensitive transaction should be handled carefully ... it should be activate not created.
    The OBJSELSIZE in the table BWOM_SETTINGS has to be Marked 'X' to improve the quality as well as the indexe 4 should be activate at the abap level i.e in the table COEP -> INDEXES-> INDEX 4 -> Select the  u201Cindex on all database systemu201D in place of u201CNo database indexu201D, once it is activated in the table abap level you can activate the same indexes in the database level.
    Be very carefull while you execute it in se14 best is to use db02 to do the same , basis tend to make less mistake there.
    Thanks Hope this helps ..

  • Function module used to restart the process chain in the middle?

    Hi all,
    can anyone pls let me know the function module to restart the process chain in the middle of the process chain?
    I need to run the process chain from the middle which can be done through a function module can anyone pls let me know!!
    Thanks
    pooja

    what exactly your requirement is?
    You can't trigger the process in the middle either it should be trigger by start variant or it's predessor.
    If your chain failed in the middle - you can fix the prob and can do 'Repeat' option or you can also use FM 'RSPC_PROCESS_FINISH . (this FM will work only if the chain fails)

  • How to schedule the process chain fr the report

    hai experts,
    i have a query which i need to generate for every five hours? i know that we can generate the report thr process chain but i dont know how to build that..
    my question is how to schedule the report,how to build the process chain,....
    can any one plz tell me how to start this generating report for every five hours
    thanks in advance..points will be alloted surely ,i need this urgently..
    Suri

    First of all you need to Identify the InfoObjects if you want to take up Master Data Loads, and if you want take up transaction loads then select the Data Targets to which the data has to be updated. Then plan the dataflow accordingly.
    You want to create a Process Chain, Go to RSPC, and then select the create option and from the Process categories available on the left handside drag and drop the Start process, then define the Variant for the same. In the same way you need to identify the other Process Types available on the lefthand side. For Eg: Start Process>Load to ODS>Activation of ODS Data>Delete Indexes for the InfoCube>Load to InfoCube>Create Indexes>Delete Overlapping Req-->Agg. Rollup.
    This is how you need to specify the dataflow, several other Process Types also included based on the requirement For Eg: Sending Mail Alerts when the Job is Success or Terminated.
    Also, have a look at this links to make urself clear about the steps in creating Process Chain.
    http://help.sap.com/saphelp_nw04/helpdata/en/67/13843b74f7be0fe10000000a114084/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/events/sap-teched-03/using%20process%20chains%20in%20sap%20business%20information%20warehouse
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/19683495-0501-0010-4381-b31db6ece1e9
    Hope it helps.
    Regards,
    Archna

  • Error in the Process Chain

    Hi,
    Im getting following error in the Monthly Process Chain :
    "A type "Attribute Change Run" process has to follow process "Execute InfoPackage" var.ZPAK_D3VOS4BQNK1QJ98G29CU8EWFE in the chain"
    Please advise...
    Regards,
    Anuja

    Hi,
    You need to add the "Attribute Change Run" process type after the infopackage load in the PC.
    I assume the infopackage loads Master Data.
    Thanks.

  • Error in process chain with attribute change runs

    We have one warning is coming in one process chain :A type "Attribute Change Run" process cannot precede process "Execute InfoPackage"
    We checked the Process View , we found that there are number of attribute change run after each scheduling of Info package with different datasource but for same data target.
    How to remove this warning .
    Some onsite person has added this extra Attribute Change Run recently.

    Hi Surendra,
    If it is the same Info-object that is getting loaded through different Info-packages then have only 1 "Attribute Change Run" process at the end. You can ignore the warning.
    Bye
    Dinesh

  • To find the time required by the process chain to complete

    Hi Experts,
    I am calulating the average time required by the process chain to compete.
    Is there any way to find the time required by the process chain to complete..
    Thanks in advance.
    Regards,
    Ashwin

    Hi,
    There is a Tool provided by SAP to do the Process Chain Analysis.
    It is basically a ABAP Program /SSA/BWT which provides the following BW Tools:
    a)Process Chain Analysis : this tool is used to perform the Runtime analysis of the Process Chains. The analysis can be performed not only at Process Chain level but also at the Process Type level.
    b)Detailed Request Analysis
    c)Aggregate Toolset
    d)Infoprovider BPPO Analysis
    So you can go through the program and analyse the runtime of your Process Chains.
    Regards,
    Abhishek
    Edited by: Abhishek Dutta on Aug 13, 2008 7:13 AM

  • Passing parameters to the process chain

    Hi friends,
    I want to know ,how to pass parameters to the process chain. Suppose i want to pass parameter to my DTP in my process chain in order to filter the data and do the delta upload in my cube .

    Hi,
    I dont think there is any direct way to achieve this.
    There is a work Around which can be achieved with help of abap.
    You need to write ABAP routine to get the selection values from user and store them in the table TVARVC.
    Then you need to write a routine in the DTP filter to fetch these values.
    In the ABAP program where you get the values, you can trigger the process chain once the values are entered for the selections using an event,
    Regds,
    Shashank

  • How to stop the Process Chains?

    Hi Everyone,
       I have a process chian which is running daily, but i want to stop in a particular day( for ex on wednesday).The process chain has to run on remaining days.So how can i stop the process chain on the particular day. Please do answer me.
    Thanks
    Veerendra

    Hi Virendra,
    After start process , insert a node of abap program and insert program with following code .
    Report zntest.
    data : lt_attr like CASDAYATTr occurs 0 with header line.
    CALL FUNCTION 'DAY_ATTRIBUTES_GET'
    EXPORTING
       DATE_FROM                        = SY-DATUM
       LANGUAGE                         = SY-LANGU
      TABLES
        DAY_ATTRIBUTES                   = Lt_ATTr.
    write : / lt_Attr-WEEKDAY_L.
    read table lt_attr index 1.
    if lt_Attr-WEEKDAY = '3' . "3 Stands for 3rd day of week i.e. Wednesday
      message 'Process chains not to be run on wednesday' type 'E'.
    endif.
    Make sure that this ABAP program is linked to other processes only on  "Success",
    Hope that helps.
    Regards
    Mr Kapadia

  • How to delete Init flag in a  process chain, before processing the init

    Hi,
    At the end of the week i need to re-execute the init request from ODS1 to ODS2.
    Therefore, i have to delete the init flag first and the requests in the CUBE1, everything automatically in the process chain.
    The schedule must be as follow :
    1. Delete init flag on ODS1
    2. Delete all request from ODS1 in the CUBE1
    3. Load an regular INIT request from ODS1 to CUBE1.
    Notes :
    I cannont clear all the CUBE1 content, as i have other datasource than ODS1.
    CUBE1 is the only one data-target of ODS1.
    Any suggestion, as there is no process in the process chain to "Delete Init Flag".
    Best regards,
    Ludovic

    Hi
    Ad.1
    start code----
    DATA: v_count TYPE i,
    p_dsourc LIKE roosprmsc-oltpsource,
    p_rlogsy LIKE roosprmsc-rlogsys.
    p_dsourc = 'your source'. *"8E2_ODS1"
    p_rlogsy = 'your system'. *"BP100"
    SELECT COUNT(*) FROM rssdlinit INTO v_count
    WHERE oltpsource = p_dsourc
    AND logsys = p_rlogsy.
    IF sy-subrc NE 0. "MesgTyp E end the program abnormally
    MESSAGE e508(db6) WITH 'x' 'x' 'in DSource and/or LogSys'.
    EXIT.
    ENDIF.
    Call delete function
    CALL FUNCTION 'RSS1_QUEUE_DELETED_IN_OLTP'
    EXPORTING
    i_oltpsource = p_dsourc "OLTP-Source
    i_logsys = p_rlogsy "LogSys (Myself or Remote)
    EXCEPTIONS
    failed = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    MESSAGE e508(db6) WITH 'x' 'x' '===> No sucess <==='.
    ENDIF.
    ---end code
    Ad.2
    See RSA1-> Infosources -> select your Infopackage -> Change ->
    Data targets -> Automatic Loading of Similar.. -> Delete existing Request
    Ad. 3
    Create Infopackage with init
    Regards
    PWnuk

  • Why the process chain always run twice when triggered from R3?

    I run a program from R3 by calling the remote function 'RSSM_EVENT_RAISE' on BW to trigger an event and in turn the event on BW bring up the running of a process chain.  But whenever I run the program on R3 to bring up the running of the process chain, I find the process chain always run twice at the same time.  Does anybody knows the answer? 
    And also I would like to know the functionalities of the two picture buttons "Activate" and "Activate and Schedule" in process chain.  In which case the "Activate" button should be used and in which case, the "Activate and Schedule" button should be used?   If we click the Start variant of a process chain, then click "Change Selections" button which bring up the window "Start Time" where the buttons "Immediate", "Date/Time", "After job", and "After event" are listed at the top.  If we modify at any of the above buttons, then after save this modification, we will have to click "Activate and Schedule" button to make it work, right? 
    Thanks a lot and everyone's idea is greatly appreciated!

    Kevin, make sure there is only one job scehduled for the Start Process of your Process Chain.  If you bring up the Process Chain (not the log view), right click on the Start Process and select "Displaying Scheduled Job(s)...".  There should only be one scheduled job with name BI_PROCESS_TRIGGER.  If there is more than one, then when triggered, it would execute more than once at the same time.  If there is only one job, then maybe your R/3 program is triggering the event more than once? 
    As far as the Start conditions for the Start Process, it works off the same principals as a scheduled job.  These start conditions determine when or how the Process Chain is to be executed.  You also have control over frequency.  These start conditions determine the scheduling of the Start Process of your Process Chain.
    When you schedule a Process Chain, a separate scheduled job is created for "each" process in the Chain.  BW controls the triggering of these jobs based upon how the processes in the Chain are linked.  All the jobs associated with Process Chains have strict naming conventions and all begin with BI_PROCESS_...  If you use SM37 to view all jobs that begin with BI_PROCESS_ you will find alot of scheduled jobs associated with your process chains.  Each job represents one of the processes within your process chains. 
    Does this help?
    Another tip might be to trigger the event manually in BW (use tx SM64).  If the process chain executes twice again, then maybe there is a separate scheduled job in BW that triggers the process chain that is triggered by the same event as the start process of the process chain.
    Message was edited by: George Shannon

  • How to know the process chain start time & end time?

    HI all .
    how to know the process chain start time & end time at the table level as well as in RSPC level .
    regards,
    Srinivas

    Hello,
    there is a program "/ssa/bwt" which will help you to know the exact time when the process was started and ended.
    but the thing is you have to provide name of the process chain with the date at which it was executed.
    another option is - you can double click on start process and on the last process of the chain.
    here, you will get both the timings... Start time of the start process will be the start time of your PC and end time of the last process in the chain will be end time of your PC.
    Hope this will help you.

  • Schedule the Process Chain automatically in BW

    Hi SDN Guru's,
    I have an urgent requirement in BW. I want to run the Process Chain automatically in BW when the job for the deltas in R/3 are completed.
    I know that in BW we can trigger the process chain by the background job only by giving the date and time or after the event and after the job.
    But my requirement is the process chain should automatically be triggered in BW once the R/3 delta job is run and completed and the delta records are updated in RSA7.
    Can any body please let me know how we can do this as this is the urgent requirement for me.
    Please let me know how and where we need to write the code or make the settings for satisfying my requirement.
    Thanks & Regards,
    Vamshi Krishna.

    HI Vamshi:
    Take a look at note 409239.
    Thanks for any points you choose to assign (points are the way of saying "thanks" in SDN)
    Best Regards -
    Ron Silberstein
    SAP

Maybe you are looking for