ABAP PROGRAM to run a process chain

Hello all,
What is the ABAP program to run a process chain after a step that has failed but is manually corrected?
In short a std ABAP program to run a pc.
Regards,
NIKEKAB

Hi.
Plz see my answer to similar question in [this thread|Re: Manage a message at the end of process chain on Web planning Application].
Regards.

Similar Messages

  • ABAP Program for set local process chain failed

    I would like to execute ABAP Program in local process chain. If the condition is in the pre-defined bussiness rule, local process chain is set to fail.
    Currently I use ABAP and Raise Message Error = Message Type E for cancel program. After program is cancelled, local process chain don't know its status, wait for job SAP_CCMS_MONI_BATCH_DP  to determine status of process chain and then further execute subsequent process.
    I 'm not sure that our solution is right or not about set process chain to fail via ABAP. Please suggest us if there are other solution to set process chain as failed.

    Hi.
    Plz see my answer to similar question in [this thread|Re: Manage a message at the end of process chain on Web planning Application].
    Regards.

  • Abap program variant error in process chain

    Hi experts,
    I need your help one more time...
    In our process chain, we run the program RSIMPCUST to bring currency and units from the source system to BW. We have created a variant to run this program and call it in the process chain. One of the variant's parameter is the logical system, which was configured as our DEV system.
    When we transport this process chain to QA and run it, the variant continues to refer the DEV logical system, and not the QA logical system as it should.
    any ideas?
    Thanks!
    Thiago Braga

    Values in variants are not converted.  You can use the same variant in your ABAP program, but you need to change the value in the parameter for logical system in each system you transport the change to.  The only alternative is to create a logical system name in SM59 that is the same in all your BW systems but it refers to the local R/3 system.
    In other words, you will have two logical systems in your BWD system pointing to your R/3 Dev.  Let's call them R3DCLNT100 and R3SYSTEM, where R3DCLNT100 is also the source system (in RSA1).  You can use R3SYSTEM in your variant for your ABAP program.  In your BWQ (test system), you will have two logical systems also, R3QCLNT100 and R3SYSTEM, where R3QCLNT100 is also your source system.
    Does this help.

  • Extract Process Chain ID/Name that an embedded ABAP program is run from?

    Hi all,
    I have created some Process Chains in SAP BW where I have incorporated some ABAP program Process Types that uses the same ABAP program.
    In these embedded ABAP program Process Types I need to extract the name of the Process Chain it runs from (ID, Technical Name, Descirption).
    Is there any way this is possible to do?
    One solutions that is not possible to implement (due to parallell runs of process chains that uses the same ABAP program) is the following:
    search in table RSPCVARIANT for your program as follows
    - field TYPE = "ABAP"
    - field FNAM = "PROGRAM"
    - field LOW = <program name>
    take the value of field VARIANTE and use this in table RSPCPROCESSLOG (enter a date selection for BATCHDATE as well)
    take the most recent entry (should be the one you're actually running at that moment)
    via field LOG_ID, retrieve CHAIN_ID (technical name of your process chain) in table RSPCLOGCHAIN
    So my question here is:
    -Is there any way to extract the Process Chain ID/Name that an embedded ABAP program Process Type is run from?
    Thanks beforhand for your feedback!
    regards
    Oddmar

    Hi Erik,
    I am stuck up with a similar requirement, wherein I have an ABAP program in my process chain and I need the technical name of the process chain in the ABAP program at run-time.
    Did you get a solution or work-around for this scenario?
    Thanks in advance.
    Regards,
    Chetana.

  • Program to activate the process chain in 3.5 version

    HI Experts,
    Like we are activatie jng the transfer strcturers_TRANSTRUC_ACTIVATE_ALL.
    I am having some problems ...I need the program to activate the process chain by using program in 3.5
    Could any respond on this ASAP.
    Thanks
    KK

    Hi,
    RSPC_CHAIN_EXECUTE_REMOTE  program runs the Process chain automatically.
    If  we want to change the status of the dependant chains and to run automatically we can execute RSPC_PROCESS_FINISH but we need to give the parameters like Variant name,logid,process type,Instance name .
    Thank you....,

  • Error while running the process chain

    Hi, I am getting following error while running the process chain.
    "Lock NOT set for: Deleting the data completely from a data target"
    Please suggest.
    amit

    hi,
    This is due to a lock on the objects which is being used by ur load.
    Even if master data used by this would be in a lock by an attribute change run. wait till that attribute change run finishes and then repeat.
    If this target itself is locked by someother process like rollup , compression , this error would appear. In this case also repeat the step after those locking process finish.
    some general locks during loading:
    Sometimes parallel processing in DTP might lead to this, its better set the DTP and infopackage in serial processing. In this case change the settings and then repeat the process.
    There is a specific case in which the Serial DTP gets locked by itself, in this case repeat it untill it succeeds.
    You can identify the above scenario as below. This is applicable only if the DTPs processing mode is serial.
    if u see in SM 37 this load would have three DTP processes running.
    it should have only two.
    In this case cancel the process and repeat it untill u get it right.
    hope this helps u
    regard,
    ranjith
    Edited by: Ranjith  Kumar Murugesan on Sep 12, 2008 10:44 AM
    Edited by: Ranjith  Kumar Murugesan on Sep 12, 2008 10:46 AM

  • RFC ERROR while running BI Process Chain

    I'm recieving the following error while running certain Process Chains in BI.
    RFC error: FAILED
    RFC Message: FAILED
    The system log in BI shows the following.
    Communication error, CPIC return code 017, SAP return code 672
    672 Logon to Netweaver failed
    Other process chains work correctly via CPS.
    Any Ideas?
    Thanks

    This looks like a BW problem. Do you get the same message when you submit it manually in SAP?

  • Problem in Activating Hierarchy Attribute change run through process chain.

    Hi All,
    I have the problem in Hierarchy change run processw running through process chain..and also process chain completes successfully without any error..
    Even hierarchy change run  completes successfully the hierarchy objects are not activating,
    so daily when i have to activate hierarchy objects manually..
    and what i did was in one attributechange run process i have included 10 hierarchy object is it correct or else i have to separatly create 10 attribute change hierachy proceess in the process chain.. pls through some lights on this issue
    With regards,
    Hari

    Hi venkat,
    Yes.. i already include the save hierarchies process in process chain...
    my main problem is hierarchy infobject are not activating  using process chain and also even process chain is not giving error message.. and in which log table the hierarchy objects are maintained (such as run time, date , status etc..).
    IS there is any other settings to be made in process chain..
    with regards,
    hari

  • Authorizations setting for running the process chain

    Hai
    Iam planning to run the process chain for loading the data into ODS. But i dont have authorization for it.
    so what are the authorizations i need to run the process chain in my system. And how can i set all those authorizations to my user-id.  I have all authorization rights .
    Pls let me knw
    kumar

    Hi,
    Authorizations for Process Chains
    Use
    You use authorization checks in process chain maintenance to lock the process chain, and the processes of the chain, against actions by unauthorized users.
    ·        You control whether a user is allowed to perform specific activities.
    ·        You control whether a user is allowed to schedule the processes in a chain.
    The authorization check for the processes in a chain runs when the system performs the check. This takes place upon scheduling or during synchronous execution. The check is performed in display mode. The check is performed for each user that schedules the chain; it is not performed for the user who executes the chain. The user who executes the chain is usually the BI background user. The BI background user automatically has the required authorizations for executing all BI process types. In attribute maintenance for the process chain, you can determine the user who is to execute the process chain.
    See also: Display/Maintenance of Process Chain Attributes ®  Execution User.
    Features
    For the administration processes that are bundled in a process chain, you require authorization for authorization object S_RS_ADMWB.
    To work with process chains, you require authorization for authorization object S_RS_PC. You use this authorization object to determine whether process chains can be displayed, changed or executed, and whether logs can be deleted. You can use the name of the process chain as the basis for the restriction, or restrict authorizations to chains using the application components to which they are assigned.
    Display/Maintain Process Chain Attributes
    Use
    You can display technical attributes, display or create documentation for a process chain, and determine the response of process chains during execution.
    Features
    You can display or maintain the following attributes for a process chain:
    Process Chain ® Attribute ® ...
    Information
    Description
    ( Rename)
    You can change the name of the process chain.
    Display Components
    Display components are the evaluation criterion in the process chain maintenance. Assigning the process chains to display components makes it easier to access the chain you want.
    To create a new display component, choose Assign Display Components in the input help window and assign a technical name and description for the display component in the Display Grouping dialog box that appears.
    Documents
    You can create and display documents for a process chain.
    For more information, see Documents.
    Last Changed By
    Displays the technical attributes of the process chain:
    ·        When it was last changed and who by
    ·        When it was last activated and who by
    ·        Object directory entry
    Evaluation of Process Status
    If you set this indicator, all the incorrect processes in this chain and in the overall status of the run are evaluated as successful; if you have scheduled a successor process upon error or always.
    The indicator is relevant when using metachains: Errors in the processes of the subchains can be evaluated as “unimportant” for the metachain run. The subchain is evaluated as successful, despite errors in such processes of the subchain. If, in the metachain, the successor of the subchain is scheduled upon success, the metachain run continues despite errors in “unimportant” processes of the subchain.
    Mailing and alerting are not affected by this indicator and are still triggered for incorrect processes if they have an upon error successor.
    Polling Indicator
    With this indicator you can control the response of the main process for distributed processes. Distributed processes, such as the load process, are characterized as having different work processes involved in specific tasks.
    With the polling indicator you determine whether the main process needs to be kept until the actual process has ended.
    By selecting the indicator:
    -         A high level of process security is guaranteed, and
    -         External scheduling tools can be provided with the status of the distributed processes.
    However, the system uses more resources; and a background process is required.
    Monitoring
    With the indicator in the dialog box Remove Chain from Automatic Monitoring?, you can specify that a process chain be removed from the automatic monitoring using CCMS.
    By default CCMS switches on the automatic process chain monitoring.
    For more information about the CCMS context Process Chains, see the section BW Monitor in CCMS.
    Alerting
    You can send alerts using alert management when errors occur in a process chain.
    For more information, see Send Alerts for Process Chains.
    Background Server
    You can specify here on which server or server group all of the jobs of a chain are scheduled. If you do not make an entry, the background management distributes the jobs between the available servers.
    Processing Client
    If you use process chains in a client-dependent application, you can determine here in which client the chain is to be used. You can only display, edit, schedule or execute the chain in this client.
    If you do not maintain this attribute, you can display, edit, schedule or execute the process chain in all clients.
    Process variants of type General Services that are contained in a process chain with this attribute set will only be displayed in the specified client.
    This attribute is transported. You can change it by specifying an import client during import. You must create a destination to the client set here in the target system for the import post processing (transaction RSTPRFC)  The chain is activated after import and scheduled, if necessary, in this client.
    Execution User
    In the standard setting a BI background user executes the process chain (BWREMOTE).
    You can change the default setting so that you can see the user that executes the process chain and therefore the processes, in the Job Overview. You can select the current dialog user who schedules the process chain job, or specify a different user.
    The setting is transported.
    The BI background user has all the necessary authorizations to execute all BI process types. Other users must assign themselves these authorizations so that authorization errors do not occur during processing.
    Job Priority
    You use this attribute to set the job priority for all of the jobs in a process chain.
    Hareesh

  • SET CURRENT DEGREE = 1..error when run the process chain..

    Hi Experts,
    when i run the process chain ,  i got the following error..
    SET CURRENT DEGREE = 1..
    what is this error?
    Kindly help ..

    hi,
    As BW reporting queries are often CPU-intensive and geneally executed in parallel.
    Parallel processing is activated dynamically in the SAP BW system for every reporting query CURRENT DEGREE = ANY and itsdefault value is 1.
      you can limit the maximum number of parallel tasks using ZPARM PARAMDEG(maximum number of parallel tasks ) for the no. of parallel processors for its usuage and this should match no. of processors you can get touch with your basis team
    check SAP Note:390016 -DB2/390: BW: Database settings and performance ; in that look at query parallelism it explain about this
    hope it helps
    regards
    laksh

  • How to run change run in process chain when it fails

    HI All,
    How to run  attribute change run in process chain when it fails. Give me the procedure with clear description. Is there is any difference with 3.x versions in running this.
    Thanks,
    Pratap Reddy

    Hi Pratap.
    If BI Accelerator is not being implemented by ur company, in that case if change run fails u'll proceed by 'Repeat' process option as usual we do in 3.x.
    If BIA is exists, in this scenario u can not repeat as we do in 3.x. U have to drop the indexes on cubes effecting that change run and run the change runs. Once it is finished recreate BIA Indexes on cubes.
    Warm Regards,
    Ramki

  • What is Attribute change run in process chain

    Hi Everyone,
                                  Can anyone please give some information regarding "Attribute Change Run" in process chain. And how it is useful ?

    Hi Aditya,
    You need to schedule an attribute change run when you change master data attributes or hierarchies that are used as navigational attributes or in aggregates. There is a simple test to check if you need an aggregate change run. Load your attributes and look into the master data table (directly via SE16). If you only have entries with OBJVERS = 'A' (active) then you don't need a change run. If you have entries with OBJVERS = 'I' then you need to schedule a change run after upload.
    Look at these previous threads
    Re: When to use Attribute change Run
    Re: Attribute Change Run
    Regards,
    R.Ravi

  • Script to Run a Process Chain

    Hi,
    Is there any way to run a Process Chain using Script logic or BADI?
    Regards,
    G.Vijaya Kumar

    Yes ,it has to call a process chain ,without which your logic would not get executed.
    Itz the case, even with BPC provided FX trans logic. There will be a back end process chain to execute FX trans.
    Basically ,process chain just acts a facilitator to run your logic in the BI space
    Almost all PCs  are similar with a structutre as shown below
    start -> run logic -> end.
    Now what logic is run on the second step depends on which .lgf file you are running at the front end.
    Check out in txn RSPC > BPC : system for more understanding
    Thanks
    -sridhar

  • How to run R3 program in BW using process chain

    Hi,
    I need to run a delta program of R3 in BW using process chain.
    Can any one suggest me how to do that.
    Its urgent.
    regards
    Bhanumathi

    hi
    Use the ABAP Program process type.
    http://help.sap.com/saphelp_nw04/helpdata/en/d5/e80d3dbd82f72ce10000000a114084/frameset.htm
    Regards
    Dina

  • Include Delete DM log files program in a BPC process chain

    Hi All,
    We are currently referring to a 'how-to' article which deletes the data manager log files stored at the backend. There is a custom program which does this job. This program can also be scheduled as a backend job to be run periodically as per the guide.
    Our requirement is bit different.
    What we need, is it possible to create a data manager package where this program can be run by the business user. We have tried creating a BPC process chain and included a BW process type 'ABAP Program' in it. In this we are calling the custom program and also used a variant based on which the program is expected to run.
    - Created a BPC process chain by including BPC process types 'Modify Dynamically' and at the end of the process chain 'BPC clear tables (with close_mode = 0)
    Is the above a workable solution? Though the package is successful from BPC excel, it is not doing the required job for us. How to make it work from a data manager package?
    Thanks

    Hi Ramya,
    if you want to see the result it should run first.
    after adding abap program to process chain, activate it.
    now right click on process chain start --> display variant --> change selection.
    check what is the start condition, if it is nto in immediate then comback
    click on edit --> change selection
    select immediate --> unchek the periodic values. and save. come back
    again click on save. come back.
    now schedule your process chain by clikc on clock symbol.
    after successfull completion of your process chain you can check in SE16
    Regards,
    Venkatesh

Maybe you are looking for

  • Multiple domains for tracker.js

    I'm using the personalization functionality of CQ 5.4, which appears to force a request for http://localhost:4502/libs/wcm/stats/tracker.js when pages load. According to the docs at http://dev.day.com/docs/en/cq/5-4/deploying/configuring_cq.html#OSGi

  • First Video Export to DVD Question

    Hi - I have my first ever video export from Premiere to a DVD and I'm a little nervous about it.  My footage will be shot with the Panasonic ACHD (I think that's the model as I don't have the camera with me here) and the camera is set for 1280 x 720

  • How do I save larger font in e-mail app?

    I have tried changing the font size in the e-mail application.  It changes it for that time and goes back to the smaller size.  I am using Maverick.

  • Cover Flow view is out-of-sync after deleting files

    If you move a file to the trash while in Cover Flow, the file's contents are still displayed but the file is gone. Then as you use the arrow keys to move up and down, the file names continue to be out of sync with the content that's being displayed.

  • Rack mount Kit for ESW500

    Hi Team, Looking that either the rack mount kit for ESW500 is orderable as a spare. I'm not sure if the one for UC520 can fit the ESW500s ACS-UC500RM-19= https://supportforums.cisco.com/docs/DOC-9698 Best Regards, Sohaib