Process Chain Component for Deleting Openhub Destination

I have an openhub that places the results of a DSO on AL11.
I created / scheduled a process chain for updating the file.
I'd like to modify the process chain and add a step to delete the file on AL11 before I run the DTP.
Is this possible?
Mike

Hi
Can achieve this with ABAP Process -- by calling FM -- EPS_DELETE_FILE (or) Command delete dataset file.
Basis Team can also help via writing Unix script which can be executed via SM49 to delete the File.
To access the file..
*-c list in time order.
CONCATENATE 'ls -c' p_fin INTO w_list_commandin
SEPARATED BY space.
CONCATENATE w_list_commandin '/.' INTO w_list_commandin.
CALL unix list command - will populate itab_file_list ITAB
CALL 'SYSTEM' ID 'COMMAND' FIELD w_list_commandin ID 'TAB'
FIELD it_file_list-sys.
To delete..
Remove the file once it is processed
CONCATENATE 'rm' it_file_list-file_name
INTO w_runcmd SEPARATED BY space.
send command to unix to move item file
CALL 'SYSTEM' ID 'COMMAND' FIELD w_runcmd.
Hope it helps

Similar Messages

  • Deleting PSA data  using process chain doesn't delete records from psatable

    Dear All,
    We have an issue where by the process chain runs and deletes the PSA records and upon checking that's what we thought it had done from the monitor but it didn't actually delete the records from the PSA Tables!
    Does anyone have any clues about this ?
    Thanks
    Craig

    Chetan,
    Yes you read correctly the actual table content for the PSA records are not physically removed.
    By monitor I meant the entry in the requests for PSA.
    It's a strange one for sure.
    Cheers
    Craig

  • Reg : To view process chain flow for a cube

    HI Experts,
    I need to view process chain flow for a particular cube of sales distribution.Can you please tell me stps to perform .

    Hi,
    If the cube is already loaded then you can just to the infopackages which are loading it and in the infopackages you have option in the "schedule" tab to see which process chain it is loading.
    if not then you will have to identify which data source is loading to the cube and check for the infopackge.
    and I think the DTP will be in the same chain  as well.
    For DTP it is alreday mentioned by the others.
    Thanks
    Ajeet

  • Process Chain Assining for another source sytem

    Hi Experts,
    I have a quick question on process chain assining for another source sytem.
    For Example. I have a Process chain with 10 Infiopackages. Letz say that Infopackage was assinged to one source system.
    Now I wanna a create a new process chain which shoud be the replica of the existing process chain. I wanna to load the data for the same info packages thru another sources system. Can we do this or else we have to reassign the data source for new source system for every infosources.. Is this Possible.
    Kindly guide me if there is any nother solution for this.
    Warm Regards,
    Aluri

    Hi..
    ABAP routines are in place at infopack level or at the Transformation level?
    If its there at the Transformation level then there wont be any issues for ur redesigning..
    if its there at the IP level then u need to copy those things in ur new IP as per the requirement and change the things accordingly..
    and then design the process chain..
    Assign points if this helps..
    Thanks

  • Stopping Process Chain schedule for just one day...

    Hi,
    Our source systems and BI are getting a patch upgrade during this weekend and I need to stop all the Process Chains schedule for Friday night/ Saturday morning. Is there a simple way I can stop all the Process Chains from executing just for tomorrow instead of manually removing each PC from schedule and again putting them back on schedule on Saturday?
    Thanks,
    Sri.

    Hi
    You can reschedule them instead of de-schedule and schedule back.
    1)open your process chain in rspc1
    2) goto planning mode
    3) right click on start --> display schedule job
    4) select the job --> in menu bar --> click on first one from left --> change
    here change the dates as per your requirement and save the job.
    If you have any event based chains which are going to start after time based chains gets complete, no need to de-schedule as we are not going get trigger from time based chains.
    I don't think so we have any program to de-schedule all the chains at a time.
    Regards,
    Venkatesh

  • Problem in process chain running for 3 days

    Hi Experts,
    Please help me
    We have process chain like below
    1.     delete index
    2.     full loads going 3 cubes (16 infopacs)
    3.     loading to ods and then update to cube
    4.     delete overlapping requests (16 infopac)
    5.     create index
    6.     aggregate filling
    7.     delete PSA
    Now the issue is, from last Saturday onwards
    Process chains was still in Yellow status till date, so now, 1,2,3,4, are still running
    In process chains, out if 16 infopacs, 12 are green, remaining 4 are stopped
    And in ODS activation of ods data variant shows yellow, but when checked the data is activated, but not pushed to cube. When checked log it show u201Csystem exception error_messageu201D, so process terminated.
    When we checked for shortdump,
    It says u201Clocal time on the application server is incorrectu201D
    Experts please let me know how to solve this and correct the load.

    Hi Experts,
    Thank u for your help,
    I have done the steps manually yestarday, checked todays, still it is in yellow status.
    let me explain the scenario,
    The data is going to 3 cubes,
    the process chain is designed like this,
    1. initially delete index
    2. full load to cube using 16 infopac and loading from (2)ODS to cube.
    3. delete overlapping requests
    4. create index (3 cubes)
    5. fill aggregates (only one cube)
    6. Delete PSA request
    so now , chain is having problem at
    1. data is loaded to ods
    2. data activation (showing yellow, but when checked data is activated)
    3. further update to cube  (2 cubes) in process chain this is not started atall ( so y'day I've done manually)
    4. out 16 infocpack, only 12 infopacs are green and remaining 4 are not started.
    so yestarday I've manually schedule remaining 4 infopacs.
    and deleted previour requests in infocube as they are full load, but I did'nt done create index and fill aggregate steps.
    now the problem is , out of 3 cube report available request is present for 2 cubes, but for 3 cube  this report request is not available, but QM status is green
    please let me know how to proceed.
    one small silly question, do i need to  fill aggregate step to get this report available request.....please suggest.
    Thanks & Regards,
    Raghu

  • Process Chain - Unable to delete overlapping request

    Hi Gurus
    I'm in the mid of creating process chain to load transaction data  in which I need to delete the previous load that loaded in using the same DTP previously
    In the process chain , i have included a process "Delete Overlapping Request from Infocube" . Once i'm in the screen of maintain variant for this process, i selected DTP as the object type but unable to find the DTP that i have created under the object name.
    Can someone point out what is missing
    Thank you

    Hi,
    Looks like you need to give the the techincal name of the DTP. if you are un able to find the technical name of the DTP you can find that in the transport organizer.
    just drag and drop the infoprovider ( with dataflow before) you will ge the DTP as required.
    note the technical name of the DTP .
    include the technical name in the process and activate the process.
    Santosh

  • Process chain is not deleting overlapping requests

    Hi all,
    I did all the steps like I described on my earlier posts to delete the overlapping request from infopackage through process chain.  I tested it in development and it works fine with any condition, I mean automation through event, date and after seven days.  When it comes to production it is not giving me the same result. So when I checked the infopackage of production I saw a routine added in the data selection of infopackage to load two days old data in the routine.  We do not have that added in the development.  Now if this is causing issue, can I add a step in the routine to delete previous request after loading file in the data selection. 
    Code:
    data: l_idx like sy-tabix.
      read table l_t_range with key
           fieldname = 'calday'.
      l_idx = sy-tabix.
    zdate = sy-datum - 2.
      l_t_range-low = zdate.
      l_t_range-sign = 'I'.
      l_t_range-option = 'EQ'.
    modify l_t_range index l_idx.
      p_subrc = 0.
    Please help,
    Suni.
    Edited by: BW on Feb 18, 2009 8:18 PM

    Hi aanjaneya,
    If you want to select and delete only the previous request of previous day, go to the infopackage and in data target tab there is option for each data target for setting the automatic deletion.
    If you select it, you will get a window which has the option to delete the request. Select all the conditions and same or more comprehensive check box and also check the  request date to yesterday and today option.
    This will delete the request loaded yesterday and also with same selection from same source.
    Hope this is clear.
    Regards
    Akhan

  • Process Chain - mark and delete objects

    Hello Experts,
    i have the Process Chain with many e.g. DTPs. I would like to modify its, it means delete some DTPs.
    I would like to mark several DTPs and delete them by using one "click". ( delete them ALL at once).
    not to mark one and delete, mark second and delete ...and so on
    Is it possible ?
    Thanks for help in advance
    Martin

    Hello,
    As per my knowledge , there is no such option. But you can go to particular DTP's Context menu and select the option remove from process.By this it will be removed from the process chain.
    Hope i understand your requirement.
    thanks
    PT

  • Process Chain Failed for Master Data

    Hi All,
    Process Chain has failed for vendor attributes, when i checked the error no message has shown, and when i check the vendor attribute , there request in RED which is loaded on sunday(it got failed on sunday) again failed today.
    I repeated the Process Chain again failed, and i deleted the request which in generated yesterday (sunday) and deleted request from PSA (delta) also (which is RED) trying to Load again It is saying that Last delta update was Incorrect There no new update is possible
    It seems there is no load in (sunday) that is why it is giving that message.
    Could you please let me know how this problem will be solved.
    Thank you,
    Teena

    Hi,
    You need to mark the failed request as "red". Then go to the infopackage and rerun. If it still fails, check the error message in the monitor. In the monitor, click on the failed load, go to the status tab and then click on the error message button. It will tell you the exact error.
    Most probably, the error is datasource does not support mode R. (Repeat of last delta). In which case, you need to reinitialiize the datasource. Most master data datasources do not support repeat of last deltas. Hence if the delta's fail, then you need to do a reinitialization.
    Hope this helps.
    Regards.

  • Process Chain failed at Delete PSA event level

    HI Every one,
    I am monitoring process chains, which are running on daily basis.
    I have one <b>Delete PSA</b> process chain, this chain contains only two events
    1. Start Event 2. Delete from PSA.
    Process chain failed at<i> Deleted from PSA</i> event level.
    Below is the error message I got from the process chain screen.
    "Data inconsistency in /bic/b0000231000 table,partition was not deleted"
    "Delete request REQU_4353ACARKJNY70Z5F11 from PSA 8ZMMOM...."
    Please help me by giving possible reasons for this error message and solution for this problem.
    Thanks  in advance.
    Regards,
    Narayana K.

    hi,
    Are you deleting the PSA requests using abap program?
    Regards,
    Vijay

  • 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

  • Process chain - schedule for certain days

    Hello all,
    How can I schedule a process chain that :
    -should run 3 times per day
    -between the 8th and the 12 workingday of a month
    Any sugesstions?
    Thank you.

    Maybe I cna help others with my solution.
    So...
    I made the chain to run 3 times per day as Debjani advidced me in this thread.
    I put 3 jobs, at the hours I wanted, the period daily, without weekends and holidays.
    I made a reports that tests the 18-th working day (for example) and some others:
    REPORT  Z_DAYS.
    TABLES : TFACS.
    DATA: GI_CURSOR TYPE CURSOR,
          GI_TABIX  TYPE SY-TABIX,
          GT_TFACS  TYPE TABLE OF TFACS.
    DATA: TEXT(50) TYPE C,
          LEN TYPE I,
          IND TYPE I,
          POS TYPE I,
          CNT_ONE TYPE I,
          CNT_ZERO TYPE I,
          DAY_VAR TYPE I,
          IND_VAR(3) TYPE C.
    DATA: EVENTID LIKE TBTCJOB-EVENTID.
    DATA: EVENTPARM LIKE TBTCJOB-EVENTPARM.
    FIELD-SYMBOLS:  <GT_TFACS> TYPE TFACS.
    DAY_VAR = SY-DATUM+6(2).
    OPEN CURSOR GI_CURSOR FOR
    *select data for factory calender Germany (01) and year 2009
    SELECT * FROM TFACS
      WHERE IDENT EQ '01' AND JAHR EQ SY-DATUM+0(4).
    IF SY-SUBRC NE 0.
      EXIT.
    ENDIF.
    MOVE 100 TO GI_TABIX.
    DO.
      FETCH NEXT CURSOR GI_CURSOR
       INTO TABLE GT_TFACS
       PACKAGE SIZE GI_TABIX.
      IF SY-SUBRC NE 0.
        EXIT.
      ENDIF.
    *loop on internal table
      LOOP AT GT_TFACS ASSIGNING <GT_TFACS>.
        TEXT = <GT_TFACS>-MON01.
        LEN = STRLEN( TEXT ).
        WRITE : 'len' , LEN.
        DO LEN TIMES.
          IND = SY-INDEX.
          POS = SY-TABIX.
          IND = IND - 1.
          IND_VAR = IND + 1.
          WRITE: / 'ind', IND_VAR.
          WRITE : 'pos'.
          WRITE POS.
          IF TEXT+IND(POS) = '1'.
    *number of working days increases with 1
            CNT_ONE  = CNT_ONE + 1.
            IF CNT_ONE EQ 8 AND ( DAY_VAR = IND_VAR ).
              WRITE : / '8th working day'.
              EXIT.
            ELSEIF CNT_ONE EQ 9 AND ( DAY_VAR = IND_VAR ).
              WRITE : / '9th working day'.
              EXIT.
            ELSEIF CNT_ONE EQ 10 AND ( DAY_VAR = IND_VAR ).
              WRITE : / '10th working day'.
              EXIT.
            ELSEIF CNT_ONE EQ 11 AND ( DAY_VAR = IND_VAR ).
              WRITE : / '11th working day'.
              EXIT.
            ELSEIF CNT_ONE EQ 17 AND ( DAY_VAR = IND_VAR ).
              WRITE : / '17th working day' COLOR 5.
              EVENTID = 'ZE_PROD'.
              EVENTPARM = 'ZEP_PROD'.
              CALL FUNCTION 'RSSM_EVENT_RAISE'
                EXPORTING
                  I_EVENTID              = EVENTID
                  I_EVENTPARM            = EVENTPARM
                EXCEPTIONS
                  BAD_EVENTID            = 1
                  EVENTID_DOES_NOT_EXIST = 2
                  EVENTID_MISSING        = 3
                  RAISE_FAILED           = 4
                  OTHERS                 = 5.
             IF NOT SY-SUBRC IS INITIAL.
               WRITE:/ 'EVENT DID NOT START'.
             ENDIF.
              EXIT.
            ELSEIF CNT_ONE EQ 18 AND ( DAY_VAR = IND_VAR ).
              WRITE : / '18th working day' COLOR 5.
              EVENTID = 'ZE_PROD'.
              EVENTPARM = 'ZEP_PROD'.
              CALL FUNCTION 'RSSM_EVENT_RAISE'
                EXPORTING
                  I_EVENTID              = EVENTID
                  I_EVENTPARM            = EVENTPARM
                EXCEPTIONS
                  BAD_EVENTID            = 1
                  EVENTID_DOES_NOT_EXIST = 2
                  EVENTID_MISSING        = 3
                  RAISE_FAILED           = 4
                  OTHERS                 = 5.
             IF NOT SY-SUBRC IS INITIAL.
               WRITE:/ 'EVENT DID NOT START'.
             ENDIF.
              EXIT.
            ENDIF.
          ELSEIF TEXT+IND(POS) = '0'.
    *number of holidays days increases with 1
            CNT_ZERO = CNT_ZERO + 1.
          ENDIF.
        ENDDO.
        WRITE : /.
        WRITE: 'January :' COLOR 1, <GT_TFACS>-MON01.
      ENDLOOP.
      REFRESH GT_TFACS.
    ENDDO.
    WRITE / .
    WRITE ' The number of working days is :'.
    WRITE CNT_ONE COLOR 5.
    WRITE / .
    WRITE ' The number of holiday days is :'.
    WRITE CNT_ZERO COLOR 7.
    WRITE : /  DAY_VAR.
    CLOSE CURSOR GI_CURSOR.
    When I am in the 18-th day, I raise an event. I test the year,the calender of the system and the month (January).
    This report is called in the chain, as ABAP process.
    Then, in my chain , I put a local chain , that starts after it receives the event 'ZE_PROD' and the parameter for it 'ZE_PROD'.
    This event with parameter has to be created in SM62.
    I hope this helps and thank you all for the advices.
    PS: - the factory calender method seems not to be to good, because need special rights to create it and I don' t think it's possible to customize it (because the holiday calender has to be changed and I did not see how).
    Edited by: EMI on Jan 27, 2009 4:21 PM

  • Process chain Logic for this scenario

    HI,
      We have a typical requirement that need to be implemented using a Process chain.
    We need to Load data from R/3 to PSA,
    then Load the data from the PSA into ODS1,
    then execute an ABAP program,
    then load the data from PSA into ODS2 (we cannot repull from R/3).
    Can some one provide me an Idea on how to implement this.  I am stuck with the idea on how to populate ODS2 from PSA after executing ABAP Program.
    Thanks In advance,

    Hi Krishnamohan,
    I hope i m getting ur problem right.I think u can implement the below steps easily :
    Step 1 : We need to Load data from R/3 to PSA,
    Step 2 : then Load the data from the PSA into ODS1,
    Step 3 : then execute an ABAP program,
    U have options avaialable for each of them in process chains.
    Now coming to your problem.
    Step 4 : then load the data from PSA into ODS2 (we cannot repull from R/3).
    i guess ur Abap program makes some changes in the Data of PSA which u then want to load in the ODS2.
    What u can do is create 2 infopackages and inside infopackages in the data targets tab select ODS1 in the first infopackage and uncheck ODS2 , likewise in the 2nd infopackage select ODS2 and  uncheck ODS1.
    U can execute the first infopackage in the process chain , then ur abap program and then
    In process chain and in Process types u have something called "Read PSA Data and Updata Data Target".
    select that process type , specify the 2nd infopackage name and get it executed.
    Hope it helps.
    Thanks and Regards,
    Parth.

  • Process Chain  Server for Scheduling

    Hello,
    I would like to schedule my process chains such that I avoid any deadlocks from not enough background processes being available and other kinds of resource failures.  I have been trying to schedule certain chains on different servers logically, but if an app server changes unexpectedly then the loads fail.  It seems that hard coding chains to servers is not an ideal solution.  What is the best option for server scheduling when you schedule a process chain?  Is there an option that gives some sort of load balancing?  Should you just leave the server field blank?  What about the server group option?
    Thanks,
    TMS

    leave the server field blank.
    the load balancing feature will take care of distribution of jobs automatically

Maybe you are looking for

  • Compare system state (number and types of objects in memory)

    We have 2 exactly identical servers running our application talking to the same database. When some obejct from server 1 is deleted, a message is passed to server 2 to delete the object from its cache too. Forget the database, I want to design a test

  • Access Issue Smart View

    Hi all, Few user in our company are having hard time opening Data forms in Smart View. When they try to open the forms they get an following Error: The data Form XXXX Is invalid.Check Log for details. (where XXXX is the name of form). I have tried fo

  • Connecting computer & printer with wireless network

    Operating with a MacBook Pro and a HP Photosmart 7510.   Both devices on are on the same newtwork but as I am attempting to install the printer on my computer it is not picking the printer up?!

  • Why ios6 why not android ?

    Hi , I have a blackberry now but I dont want to use it anymore. I want to buy a new phone which can be iPhone 5 or Samsung Galaxy s3. I love Applw products a lot. I liked iPhone 5 more than Galaxy s3 but the imporant thing is galaxy has more powerful

  • Mind answering some basic questions for a few bright HS students?

    I am a HS computer science teacher who seeks a professional mentor regarding JDBC. While I have successfully - installed a MySQL database, created, queried, updated the database, - read the Java Tutorial and: used Connect/J and written a main method