Use of TVARVC values in Process Chain

Hi,
According to the value of one variable stored in TVARVC, I'd like to execute (or not) a process chain. Is there any easy way to do so ?
For the moment, the solution I think about is :
- Run a program to read values in TVARVC
- Raise a specific event depending on these values
- Schedule the process chain after this event
As I am not very comfortable with ABAP, I would appreciate if you have any good ideas, or code sample that I could implement.
Thanks !

Hi Alex,
The easiest way is to write a piece of ABAP code using the Function module "BP_EVENT_RAISE".
1) Create an event in SM64 and make the process chain as Event triggered.
2) Create a new ABAP program and include the above function module.
3) Pass the parameters of the TVARVC table and check if the value in the table matches with the desired value. If so trigger the event.
4) Schedule the ABAP program in SM36 as a daily job.
Everyday the program gets executed and checks the value in TVARVC table. If the value mathces, then the event will be triggered.
Let me know if you need any further info.
Regards,
Balaji V

Similar Messages

  • List of all the process types used in the creation of process chains

    Hi Gurus,
    I am new to process chains creation, can any one give the list of all the process types used in the creation of process chains and there uses also.
    Please search the forum before posting a thread
    Edited by: Pravender on Jan 4, 2011 4:18 PM

    Hi,
    As process chain is to automate the data load step.
    For Ex:- If you are loading data from R/3 to DSO CUBE.
    Here you require Info package to load till PSA.
                                 DTP to load till DSO
                                  Another DTP to load Cube.
    And all other process like psa deletion AND process you can find in RSPC tab.
    Thnaks,
    Saveen Kumar

  • Trigger a job using an event through a process chain

    Hi,
    After the success of 5metachain, I am using AND condition
    My requirement is as follows, it should trigger a job which needs to be after AND condition,
    I have created an event using sm64. Basically the client wants to trigger the job using the event through the process chain. I have tried test scenariou2019s using ABAP program (Process type) in the process chain but it is failing. Is there any other way to trigger a job using an event through a process chain? If ABAP program is the only option, can you please specify what all needs to be filled in the variant?
    Regards.
    Jerry

    Hi,
    Create a program like below,
    CALL FUNCTION 'BP_EVENT_RAISE'
      EXPORTING
        EVENTID = 'EVENT WHICH YOU HAVE CREATED'
    EXCEPTIONS
       BAD_EVENTID                  = 1
       EVENTID_DOES_NOT_EXIST       = 2
       EVENTID_MISSING              = 3
       RAISE_FAILED                 = 4
       OTHERS                       = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    search and include the program name which you have created above in the "ABAP program" process type which you are going to include in the process chain.
    Include the event which you have created in the start condition of the job.
    Note: No need of give any variant, because here we are calling only one function in this program.
    Regards,
    Sridevi.

  • Need some useful stuff on SAP BW Process Chain

    Hi all,
    i am rajendra and beginner is SAP BW. Now i am working in Process chains.
    can u plz suggest me some useful book, web sites etc etc. on process chains?
    waiting for ur precious reply.
    regards
    rajendra

    hi
    you can find all details abt process chain in these links
    http://help.sap.com/saphelp_nw2004s/helpdata/en/8f/c08b3baaa59649e10000000a11402f/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8da0cd90-0201-0010-2d9a-abab69f10045
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/19683495-0501-0010-4381-b31db6ece1e9
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/36693695-0501-0010-698a-a015c6aac9e1
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9936e790-0201-0010-f185-89d0377639db
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3507aa90-0201-0010-6891-d7df8c4722f7
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/263de690-0201-0010-bc9f-b65b3e7ba11c

  • Using Planning Sequence in a Process Chain With input variants

    Hi,
    I have a COPY planning function which has multiple FROM and TO options like (From:Fiscal Year To Fiscal Year, From Version TO Version). In the layout they select the options for which they want to COPY and execute the function.
    How can I replicate the same approach in a process chain with the varaints, how can i create the FROM and TO variables in the process chain.
    Thanks
    Rashmi.

    Hi.
    You can save variable variant for planning sequence in modeler and then use it in process chain.
    In process chain you choose "Execute planning sequence" and add planning sequence with variant.
    All this if you using IP instead BPS.
    Regards.

  • When to use the "construct database statistics" process chain' item

    Hello, everybody.
    Information 1:
    In our BW system we have a job from DBA guys that build statistcs for the entire database. This job runs every day in the dawn.
    Information 2:
    In several process chain flows, we use the item "Construct Database Statistics" to update the statistics after cube upload.
    Information 3:
    I checked the log from both jobs and found several tables analyzed in first and second cases.
    The question:
    Is this step inside the process chain unnecessary? Exist any situation when this step is useful?
    Thanks in advance,
    Henrique Teodoro

    Hi.
    I found one advice about this issue in the follow thread:
    /message/3460818#3460818 [original link is broken]
    Regards,
    Henrique Teodoro

  • Same Variant used multiple times in a process chain

    Hi, I just noticed that you cannot use the same variant in a process chain twice!  You have create a duplicate variant in order to. 
    Example:  I need to activate my ODS at 2 different points in my process chain and it's not supported.  Why would they force me to create a whole other variant just for this.  Don' t you think we should be able to use the same variant more than once in a chain?
    Anyone.

    No response

  • E-mail delay using "Event Data Change" in process chain

    Hi Experts.
    I can´t figure out why my process chain is taking so long to deliver a simple e-mail.
    The BEx Broadcast Configuration is working fine. When I run it manually, the e-mail comes instantly. But when I use process chain (Event Data Change), it takes hours to receive the e-mail. The option to run after the infoprovider data change is set for this configuration.
    Is there any additional configuration I have to check?
    All answers are welcome!
    Kind Regards,
    TP

    Hi Arvind. Thanks for your repply.
    I was already checking the SOST and also SCOT and RSBATCH to see if the jobs are running fine, and no problems so far.
    How can I check the IDOC´s?
    Thanks in advance.
    TP

  • How to stop the "Read Reciept" when using messaging in the BI Process Chain

    Hey all - I set up a message in my process chain and now we get an email daily when that process finishes.  However it's asking for a read receipt from the users that it sends the message to.  I searched on this and also clicked on every button the message settings but could not find a way to turn off the read receipt request. 
    Does anyone know how to turn this off?

    HI,
    Go To
    1. SCOT   Tcode.
    2. Click on SETTINGS on the upper tab.
    3. Click on CONFIRMATION OF RECEIPT..
    4.and check the Radio button.. SAP  doesnot expectreceipt confirmation from internet..
    and click the tick button..
    Hope this helps u..
    Best Regards,
    VVenkat..

  • How to use master locks in a process chain with planning sequence

    Hi,
    when I start a process chain which contains a planning sequence there is no master lock set. The chain stops and I get the message "Data in InfoProvider XYZ is locked by user TIMMAY". What can i do to enable the master locks?
    Thanks for your help!

    Hello,
    When a planning sequence is triggered via process chain system first first tries to set a normal lock and if this is possible, these selections are stored as master locks and then the normal locks are released.
    In your case if some data is already locked by another user the lock conflict will occur in teh first step only where system tries to create a normal lock before creating master locks.
    If Administrator wants to trigger the process chain he should ask other users to come out of the planning layouts so that all the locks are released and then trigger the chain and after this the system will set the master locks. Packaging in planning sequence process type won't help in setting master locks even if the data is locked by other user.
    Also, after master locks are deleted in RSPLSE, the transaction data remains protected by normal data locks during runtime. Nevertheless, without master locks it is no longer guaranteed that parts of planning sequences can be carried out without encountering lock conflicts with other users.
    Regards,
    Deepti

  • How to create an OS command that can be used in the process chains

    I need to create a command that can copy files from one location to another for a unix machine.
    I have the commands for the unix machine, but need to create a Z customer command so it can be executed in a process chain in SAP

    Hi Again,
    You can use ABAP program in the process chain.
    I guess there are some OS level commands in ABAP which will allow you to open, close, read , write and move files.
    Serach in ABAP help or on net.
    Bes regards,
    Sunmit.

  • Trigger Process chain using ABAP code

    Hi All,
    As per my knowledge there are 2 ways to trigger a process chain using ABAP code :
    1) Using FM ‘RSPC_API_CHAIN_START’ and passing process chain name as the parameter
    2)Using FM 'BP_EVENT_RAISE' and passing process event as the parameter, which you can create using SM62 transaction.
    I would like to know which one is better to use, in terms of advantage and disadvantage.
    Thanks,
    Praveena

    Hi praveena,
    check these links ..u .may get some help
    Process Chain
    Process Chain
    How to run a Process Chain
    Process chain-parallel process
    Regards
    BILL

  • Delete PSA Using Process Chain

    I need to schedule some PSA deletes using a process chain and wanted to make sure I'm doing the right thing.
    I have MD 0WBS_ELEMT_ATTR and in RSA1 if I click on "manage" I can see my PSA's that were loaded. Yeah, there were 2 different loads.
    If I go to RSPC and create a variant to delete this PSA after its 45 days old I look up the PSA and I see the following:
    /BIC/B0000782                             Work Breakdown Structure Element (WBS Element)
    0WBS_ELEMT_ATTR_DA             Work Breakdown Structure Element (WBS Element)
    Using se16 looking up this table: /BIC/B0000782000 it looks like it doesn't have any records so my question would be:
    Is /BIC/B0000782 the PSA?
    What is 0WBS_ELEMT_ATTR_DA?
    Thanks,
    Mike

    OK here are my answers:
    1) You seem to be disagreeing. One says use the /BIC/B0000782 the other says use 0WBS_ELEMT_ATTR_DA in the Process Chain.
    I used /BIC/B0000782 in the process chain.
    2) When I look up 0WBS_ELEMT in table RSTSODS using the ODSNAME I see:
    ODSNAME VERSION DATETO DATEFROM OBJSTAT ODSNAME_TECH
    0WBS_ELEMT_ATTR_DA 000 9999/01/01 1998/01/01 ACT /BIC/B0000900000
    0WBS_ELEMT_TEXT_DB 000 9999/01/01 1998/01/01 ACT /BIC/B0000541000
    these are the internal tables for the transfer rules I guess
    3) /BIC/B0000900000 is the internal table for 0WBS_ELEMT_ATTR_DA correct?
    yes
    4) /BIC/B0000782 which I saw when I was looking up the PSA entry for 0WBS_ELEMT_ATTR is the internal table for the PSA?
    yes
    5) Still confusing is that neither /BIC/B0000782000 or /BIC/B0000900000 has any records.
    /BIC/B0000782000 must be the default table for the PSA, and /BIC/B0000782001 did have the same number of records I saw on RSA1 (Manage), and /BIC/B0000900000 is the internal table for the rules
    so we are all good!
    Mike

  • Suspending process chains execution

    Hi All,
    How do we suspend process chains running for a given period of time.
    We have some process chains scheduled to run daily and some only on weekends.
    Is there a way to suspend the process chains for sometime and then resume then. I do not want to unschedule them and reschedule them which is painful. Is there a simple way of suspending and resuming the process chains. Please clarify.
    Thanks
    Karen

    Hi just create a programm using RSPC_API_CHAIN_SCHEDULE FM and schedule process chain as per your requiremnt.
    or... use this way which is copied from this forum..
    Schedule process chain
                 Your problem can be solved by creating the factory calender ID mentioning only saturday and sunday in the tcode SCAL. Im not sure whether you will have access to this tcode. You can create it with the help of Basis team if you dont have authorization.
    Steps for creating factory calender ID mentioning sat and sunday only
    1. Goto SCAL Tcode
    2. Select Factory Calender and then click on change
    3. Click on create to create new factory calender id
    4. Give Factory Calender ID (EX : ZS) and give description
    5. Select Holiday calender ID
    6. Uncheck all days expect saturday and sunday.
    You can make use of this factory calender id in the process chain scheduling job.
    Steps:
    1. Open the start variant of the process chain
    2. Click on define scheduling details
    3. Select other period option from period values in the start variant of the process chain and define every 30 mins.
    4. Click on Restriction and Give the factory calender id (ZS) which you created in the scal so that the process chain can be executed only on saturday and sunday

  • Event is not getting triggered in the process chain

    Hi,
    We had a process chain which was triggered by an Event, and it was running fine until few days ago. So I removed the chain from schedule and re-scheduled it again with these details:
    File load: every 2 hrs
    Process chain setting
    Immediate tab: start immediately
    After event: "event name" and "parameter name" and periodic job: ticked
    I activated the chain and scheduled it. But the event is not triggered and the chain does not start. I even tried to trigger the process chain manually in sm64 but the process chain did not start.
    Can someone please tell me steps to automate the event triggering and also any setting that should be taken care off in the info package and the process chain.
    Thanks In advance.
    Ram

    Hello Ram, to start your Process Chain by an event, then you need to maintain the Start process of the process chain. 
    Select "Direct Scheduling".
    In the <b>Change Selections</b>, press <b>After Event</b>.  Put your event name and parameter (if any).  Also click on <b>Periodic job</b>.
    Press Save.  Then Activate and Schedule your process chain.  All your processes should turn green.
    To verify, right-click on the Start process and select <b><u>D</u>isplaying Scheduled Job(s)...</b>.  You should see a job called BI_PROCESS_TRIGGER in a <i>Released</i> status.  You can click on the job and look at the start conditions.
    When you go to trigger the event, use the same event name and parameter (if any) as in the start condition.  Your process chain will then execute.  To insure, use RSPC to view your process chain and press the <b>Logs</b> icon (last one at the top).
    Does this help?

Maybe you are looking for

  • Error while installing Java Studio Enterprise

    Hey folks,      I have downloaded SUN Java studio enterprise 90-day trial version (for windows). After starting installation, I got the install wizard. The three system requirements namely available disk space, Installed memory and Operating System p

  • Someone please walk me throught this before i cry

    hello. have an ax. plug it into wall socket. plug in ethernet cable to ax. green light comes on ax. ipod touch 2g works perfectly. macbook work perfectly signal of ax shows up in airport drop down on imac. no internet connection. airport utility keep

  • SOA EM is not accessible though SOA server is up in 11g windows7

    Hi I have a issue with SOA 11g issue on windows7. My installed versions are WebLogic Server Version: 10.3.3.0 SOA : SOA 11.1.1.2 with latest patch - ofm_soa_generic_11.1.1.3.0_disk1_1of1 sequence of starting the server Started weblogic admin server f

  • Implemention of Profit center Accounting

    Hello, I need some information related to profit Center Accounting. Currently our client is using Business Area for getting requred reports. But now they are thinking to move to Profit Center Accounting. I need some information of benefit of using Pr

  • What has happened to Align Caption for tables

    According to help there should be an option in the "Insert table" dialog box between Caption and Summary of Align Caption - Specifies where the table caption appears in relation to the table. Align caption does not appear in Dreamweaver CC. Am I miss