File Open failed Error in Process Chain

Hi,
Our process chains are failing at the last step of event trigger.The file is not getting created in the directory as a result of which the BO reports are not getting triggered.Kindly help.
Regards,
Shalaka

Pl find the below code:
DATA mesg(80) VALUE 'BW load complete. Ready for BOBJ Refresh. File Created on : '.
DATA fname(60).
DATA pc_flag TYPE rspc_state.
* Get the folder and file name from parameter
PARAMETERS p_fname TYPE string LOWER CASE.
AT SELECTION-SCREEN.
START-OF-SELECTION.
   fname = p_fname.
*Add the system date into the file.
   CONCATENATE mesg sy-datum INTO mesg.
   CALL FUNCTION 'AUTHORITY_CHECK_DATASET'
   EXPORTING
* PROGRAM =
  activity = 'DELETE'
  filename = fname
  EXCEPTIONS no_authority = 1
         activity_unknown = 2
         OTHERS   = 3 .
   IF sy-subrc = 0.
*Delete the file if it is already existing
     DELETE DATASET fname.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
   ELSE.
     MESSAGE i051(rsar) WITH 'No Authorizations to delete the file'.
   ENDIF.
   WAIT UP TO 65 SECONDS.
*Set the flag for the process chain to read if file deletion fails.
   IF sy-subrc <> 0." The ABAP program failed
     pc_flag = zcl_abap_bobj_event_trg=>failed.
   ELSE. " The ABAP program was successful
     pc_flag = zcl_abap_bobj_event_trg=>success.
   ENDIF.
   CALL FUNCTION 'AUTHORITY_CHECK_DATASET'
     EXPORTING
       activity         = 'WRITE'
       filename         = fname
     EXCEPTIONS
       no_authority     = 1
       activity_unknown = 2.
   IF sy-subrc <> 0.
     MESSAGE i051(rsar) WITH 'No Authorizations to Write to file'.
   ELSE.
*Create the file based on the input from variant including folder and file name.
     OPEN DATASET fname FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
*Set the flag for the process chain to read if file creation fails.
     IF sy-subrc <> 0.
       MESSAGE i051(rsar) WITH 'File open failed.'.
       pc_flag = zcl_abap_bobj_event_trg=>failed.
     ELSE. " The ABAP program was successful
       TRANSFER mesg TO fname.
       pc_flag = zcl_abap_bobj_event_trg=>success.
     ENDIF.
     CLOSE DATASET fname.
   ENDIF.
   EXPORT e_state FROM pc_flag TO DATABASE indx(bo) ID
   zcl_abap_bobj_event_trg=>status_idx_id.

Similar Messages

  • Ias Failed to start with "OPMN log file open failed" error message.

    Hi,
    My iAS doesn't start and I get this error message. Any advice? Thanks.
    opmnctl: starting opmn and all managed processes...
    OPMN log file open failed: /.../opmn/logs/ons.log (Read-only file system).
    opmnctl: opmn start failed

    Hi,
    Haven't you re-posted your question exactly after a year?
    take a look here.
    iAS not running due to OPMN log file open failed: opmn/logs/ons.log (Read-o

  • Flat file data loading error using process chain

    Hi SAP Experts,
    I am having a problem loading the flat file data to the cube using process chain. The issue is that when i run the process chain it fails giving the message " Date format error, please enter the date in the format  _.yyyy" . I am using " 0calmonth in the datasource" . Strange is that when i manually execute the infopackage, i dont get any errors and am able to load the same file successfully to the dso and the cube. Is there any special setting for the process chain that i am missing?
    The date format in the flat file is mm/yyyy. I have tried all the options i could including recreating the datasource and invain dont see any success so far. please help me solving this problem as we r in the middle of testing cycle.
    Thanking you all for your quick response and support all the time.
    Kind Regards,
    Sanjeev

    Hi Sanjeev,
    I believe you are opening the .csv file again after saving it. In this case the initial 0 in single digit month (say 02/2010) is getting changed to 2/2010 and the resulting file is not readable to the system. Just do not open the file after you have entered data in the .csv file and saved and closed it. If required, open the file in notepad, but not in excel in case you want to re-check the data.
    Hope this helps.
    regards,
    biplab

  • Problem with DS5.1 patch1( PR_Accept() failed, error -5971 (Process open FD

    Hi all,
    I install iplanet Directory Server5.1p1 on Solaris 8. These errors fill full in my error log files
    "PR_Accept() failed, error -5971 (Process open FD table is full.)"
    I use idsktune tool and detect i face the problem file descripton. I have increase to 4096 ( in /etc/system file and ulimit -n 4096), but these errors still exist in my error logs.
    Who know this prolem, pls give us a solution to fix this errors
    Thank alot
    Best Regards

    I suggest you try the Directory Server forum.

  • Pls Help. DS5.1p1 errors PR_Accept() failed, error -5971 (Process open FD t

    Hi all,
    I install iplanet Directory Server5.1p1 on Solaris 8. These errors fill full in my error log files
    "PR_Accept() failed, error -5971 (Process open FD table is full.)"
    I use idsktune tool and detect i face the problem file descripton. I have increase to 4096 ( in /etc/system file and ulimit -n 4096), but these errors still exist in my error logs.
    Who know this prolem, pls give us a solution to fix this errors
    Thank alot
    Best Regards

    Hi!
    To increase the FDs available for DS, edit the Configuration --> Performance Settings and increase the no. of FDs available for DS. please check if you havent done this.
    I faced the similar problem. Increased the system limit(/etc/system) and DS setting, but was still recieving the error message time to time, which disappears automatically, when FDs get freed. The server is quite a busy LDAP server.
    Can someone comment how can i see the actual Fd utilisation on a Solaris 8 system.
    I have been checking like:
    ls -l /procs/fd | wc -l
    and by:
    ls -l /procs/pid-of-slapd/fd | wc -l
    But always find the Fds in use to be quite lesser than the limit specified 4096.
    Thanks for sharing.
    Cheers!
    VIvek

  • PR_Accept() failed, error -5971 (Process open FD table is full.)

    I am working on a web app which uses the SunONE directory server for
    some authorization. Sometimes it happens that the webserver just hangs
    with no errors in the webserver log. In the slapd error logs I do see
    the following exceptions :
    PR_Accept() failed, error -5971 (Process open FD table is full.)
    I am not sure why is this happening? What could be the problem? I am
    assuming FD means the file descriptor? One bug we found in the app is
    that it tries to add a new user in the LDAP even if its there. I do get
    "add value to attribute type nsRoleDN in entry .....: duplicate value"
    exceptions, but thought its harmless. Could this exception be causing
    something?

    Hi,
    I had exactly the same error message. I did not find the cause of this after spending a lot of time looking around. I only know it is a file descriptor table problem. The sun one directory server access log, however, did not have the number of file descriptors count reached maximum. I am very much puzzled by this. Did you find out why yet?
    u4me2

  • Error in Process Chains

    Hi APO Gurus
    I am getting following error in Process Chain :
    1 Tab Page ICkw6Rdc7s7x000002e0280 still contains 3 temporary aggregates when deleting
    2 Deletion of tab page ICkw6Rdc7s7x000002e0280 with 16566 registrations failed.
    3  Error in function module : < OM_TS_DELETE_REGISTER> Return Code : 3
    Can anyone guide  through this and my process chains for the macros are running very slow.Ihave splitted the jobs for macros but still it is running very slow.How to fasten my process chains.
    Amit

    Hi All,
    Thank you for your inputs on that....I changed the InfoPackage settings to App. Server and also background scheduling.
    Now I get another error in the Load Data process of the process chain. the errors are as follows:
    1.Error when opening the data file /usr/sap/interfaces/bw/sv5/GO/Plan/Current Pass/T (origin A)     @35@
    Diagnosis: File  /usr/sap/interfaces/bw/sv5/GO/Plan/Current Pass/T (origin A) could not be opened.
    2. @5C@     Errors in source system     @35@
    3. @5C@     Error 1 when loading external data     @35@
    The file name is actually TEST12.txt, but I am not sure whether the process chain is actually picking up the entire path or not.
    ALso I checked the batch monitor and found that the job is actually running under the user Z_R3USER and this user has the read and write privelges to application server
    Can anyone explain wht the problem could be?
    THank you

  • Log.0000000001: log file open failed

    I have been seeing an error off and on recently where my app will go along just fine writing to dbxml - and then for no apparent reason, blow up with
    log.0000000001: log file open failed: No such file or directory
    PANIC: No such file or directory
    When I go look - there is indeed no log.00000001 in my dbxml directory.
    What is the story with log.00000001? When is it created? What would cause this creation to fail. I have seen this problem on both an XP system and a Unix system.
    I think I have made this problem go away by manually creating an empty log.0000001 file before I start my app - but this seems bogus.
    Any tips appreciated

    Hi,
    If you have multiple applications or processes using Berkeley DB XML (including our utility programs) you may have set up a separate log directory for your log files or they simply were created in another directory. For this reason you may want to consider using a DB_CONFIG file and setting the location for your log files there.
    For more information about this please look at these references:
    http://www.sleepycat.com/docs/ref/env/db_config.html
    DB_CONFIG
    http://www.sleepycat.com/docs/api_c/env_set_lg_dir.html
    http://www.sleepycat.com/docs/api_c/env_set_data_dir.html
    An example for how to insert this information in a DB_CONFIG file is:
    set_data_dir datadir
    set_lg_dir logdir
    Regards,
    Ron Cohen
    Berkeley DB XML Support
    Oracle Corporation

  • R16 Open Failed, Error 13

    Hi Everyone
    We are having an issue with an SAP app server, sm21 logs show a repeated error for any kind of dialog or background work process with no pattern and all have the same error message " R16 Open Failed, Error 13". No upgrade or patch was done, although teh data was recently refreshed.
    Our SAP 4.7 runs on HPUX  with Oracle. Any help on this will be appreciated.
    "Client..............               900"     
    "Terminal............               132.189."     
    "Session.............               1"     
    Transaction code....     
    "Program name........               SAPMSSY1"     
    "Problem class.......               K          SAP Web AS Problem"
    "Development class...               STSK"
    Further details for this message type
    "Module name.........               pfxxstat"
    "Line................               5200"
    "Error text..........                13"
    "Caller..............               PfStatO"
    "Reason/called.......               open fa"
    "Documentation for system log message                                                            R1          6     :"
    "     The open command has failed. Use the errno value to analyze the"
    "     reason."
    Technical details
    "File................               000050"
    "Position............               0000358560"          
    "Entry type..........               m            (               Error (Function"     Module     "Row)                                                  )"
    "Message ID..........               R1     6"          
    "Variable parts......                13                                   PfStatOopen fapfxxstat5200"     
    Thanks

    Hello,
    This looks like a filesystem permissions problem.
    Apparently the stat file cannot be opened.
    What do the permissions and ownership of the file look like?
    Look at this file
       /usr/sap/<SID>/<instance>/data/stat
    Good luck.
    Alfonso

  • File Open Failed?

    H'ello
    Sometimes when I try to transfer a book I have downloaded to ADE to my ereader I get the error message: File Open Failed.Other times they are successfully transfered. These are all downloaded from my library - so all consistently the same. Help.
    Thanks in advance if you can be of assistance.

    You can't do anything at all about restrictions on digital rights.  I said
    that earlier.  But I want to take a moment to discuss the concerns you've
    included in this post.
    To start with, each ebook either has digital rights assigned or not.  So,
    if one cannot be copied, that does not mean that any others can't.  You may
    - make that will - run into other ebooks that can't be copied, and it will
    be a pain in the butt when you do.  But, don't assume that ALL ebooks are
    going to be a problem.
    I think you missed another point that I made.  This is not the fault of ADE
    - the software is just doing the job it's been programmed to do with each
    ebook you download.  You don't need to do anything to ADE.
    Let's tackle the comment you made about downloading ebooks from a library.
    Technically, the library allowed you to download the ebook - to your
    computer.  That's really all they have to do.  You can call the library and
    tell them that the library ebook you downloaded can't be copied to your
    ereader and see if they can do something about that.  I am doubtful,
    though, because publishers - not the library - don't want people to
    redistribute their ebooks, and that's one reason they block copying.
    It's possible also to download an ebook directly to your ereader IF the
    library or bookseller is set up to do that.  Most libraries are not.
    You mention that there are other times that you get the 'File Open Failed'
    message.  If you give me more information about the circumstances, I'll try
    to work with you to figure out what to do
    ===================

  • Error in process chain pushing step

    Hi Experts,
    We encountered an error in process chain pushing step. The error is "Process ZXXXX, variant 4UBK25S73O99DNLFQ0Q55EBTY, ended with invalid status". Data is pushing from OHD to PI/XI system. Unable to trace error and even not able to see the variant in PC.
    Could any one please give us your inputs on the error, if you experienced such type of error message. Your inputs/suggestions are highly appreciable.
    Best Regards
    Venkat...

    Hi Ram, thank you for the quick response.
    Yes, at source, all requests are available for reporting.
    Source is a Cube and target is OHD (DB Table). From this OHD we are pushing data to PI system.
    PC flow is: Start--->DTP--->Push Interface. The push interface step got failed.
    Daily, it's working fine. Unfortunately, today failed
    Any insights please...
    BR
    Venkat...

  • Errors in process chain

    hello gurus,
    what are regular errors in process chain during data loads?

    Hi,
    Mostly we have
    No SID values
    Error in transfer structure
    Error in source system
    Trfc Error
    Time stamp Error
    Error occured due to short dum[p
    Job cancellation in R/3 system
    DSO Activation failed
    caller70 is missing
    Attribute change run failed
    Table space issue
    Regards,
    Marasa.

  • Help: startup-config file open failed (Not enough space)

    Who can help me ? I've an uc500 and he stil running. Now i want to change something and want to save the configuration first. But the following message appears : startup-config file open failed (Not enough space)
    this is the output from a dir flash:
    Directory of nvram:/
      227  -rw-       25897                    <no date>  startup-config
      228  ----        1933                    <no date>  private-config
      229  -rw-       25897                    <no date>  underlying-config
        1  ----          83                    <no date>  persistent-data
        2  -rw-           0                    <no date>  ifIndex-table
        3  -rw-         577                    <no date>  IOS-Self-Sig#1.cer
        4  -rw-         615                    <no date>  IOS-Self-Sig#2.cer
        5  -rw-         660                    <no date>  vlan.dat
        6  -rw-         107                    <no date>  cca.xml
        7  -rw-         586                    <no date>  IOS-Self-Sig#3.cer
    262144 bytes total (227094 bytes free)

    OK.
    Try this:
    conf t
    service compress-config
    And see if that helps. 
    If not, see if you can tftp the running config off the router and TFTP it back to startup-config:
    copy run tftp
    copy tftp start
    Then you can try a reload and see if it is cured.
    I googled and found a few cases where alot of ACLs or NAT rules could cause MALOC errors (you would see those in your logs) when implemented and could manifest itself in this condition, which could be cured after the next reload, which is why I suggested that.
    Of course, dont be remote when you do this and only do it during a maintenance window.
    Steve

  • BW: Not getting Dump For Program error in Process Chain

    I have one issue regarding Master data loading issue in BW(3.5).
    My business flow like we have received data from server A and Server A extract data from Server B and
    Server B which is extract data from source(R/3).
    Flow like this R/3-->Server B-->Server A(ETL) -
    > My Server.
    We have a mater data process chain and that chain we have have the source system Server A but in the process chain one process is there which is fethces data like global transport e.g UOM,factory calender etc through Custom program directly from Server B.
    Oneday what happened On that process the process chain Yellow since more than 16 hrs.Once nextday process chain trigger the process chain runs sucessfuly.
    But lastdays process chain paticular process stills remains yellow?
    We are not getting any dumps and even if from Server A there is no logs then anyone could please tell me what is reason and how to solve it.
    Note: it will be helpful for me  if any one know how to check dump for program errors in Process chain as narated issue.

    Guys, I am also facing the same issue.
    When DTP is completed successfully, it has the job log blow :
    Job started
    Step 001 started (program RSPROCESS, variant &0000000391261, user ID BWREMOTE)
    Performing check and potential update for status control table
    Status 'Executable' (user BWREMOTE)
    Status 'Active' (user BWREMOTE)
    Program RSBATCH_EXECUTE_PROZESS successfully scheduled as job BIDTPR_335754_1 with ID 06532200
    Job finished
    When it fails or remain yelllow for long time and then turn into red.
    Job started
    Step 001 started (program RSPROCESS, variant &0000000391306, user ID BWREMOTE)
    Performing check and potential update for status control table
    Status 'Executable' (user BWREMOTE)
    Status 'Active' (user BWREMOTE)
    EXTRACTION OF DATAPACKAGE 000001
    EXTRACTION OF DATAPACKAGE 000002
    Job finished
    The question is, why the program  RSBATCH_EXECUTE_PROZESS is not scheduled.  Is it because there is no free resource? Or poor response from SAP ECC?
    Finally what does "EXTRACTION OF DATAPACKAGE 000001" mean? Its not scheduled?
    Regards
    MultiABAP
    Edited by: MultiABAP on Oct 6, 2010 10:32 AM

  • I am getting an error in process chain in bw 3.5?

    Hi all,
    I am getting an error in process chain in bw 3.5?
    @5D@     A type "Activate ODS Object Data" process cannot precede process "Execute InfoPackage" var. ZPAK_4GT51KCFLGM9VPY80NI7UPCFJ in th     @35@
    I was just executing an initial ods -> activate ods as well as -> further update ods is getting generated and then 2nd ods-> activate ods -> further update ods too.
    Why does further update ods gets selected automatically?
    Thanks
    pooja

    Hi Pooja
    Are you talking about update ods object data?
    Please check this http://help.sap.com/saphelp_nw70/helpdata/en/12/43074208ae2a38e10000000a1550b0/content.htm
    Edited by: Chandamita Sarmah on Feb 11, 2010 4:43 PM
    Edited by: Chandamita Sarmah on Feb 11, 2010 4:46 PM

Maybe you are looking for

  • Add/Remove Programs - export to text file?

    Hello, I am wondering if it is possible to export a list of everything in add/remove programs to a text file for inventory purposes. I have not found any easy method to do this short of copying reg files or installer 3rd party software.  Since the id

  • I cant  sync my ipod with my pc

    I cant  sync my ipod with my pc. i tried connecting it to several computers using several cables but though it does charge, it cant seem to be synced. itunes does not recognize that a device has been connected, so i cant sync music, photos or anythin

  • I book G4

    Hi, my I Book's Airport is going wrong, I think. When I log on to a network it does not ask for the relevant passwords / codes. I just says I am on line but will not let me on. I am using Safari. Is this a problem with the Airport or Safari? Also my

  • Strange issue with key authentication

    I just installed Arch again after being away for a few years. Almost everything is running smoothly, but I ran into a weird problem with openssh. Namely, I can successfully log in with a  key only if in /etc/ssh/sshd_config instead of the default Aut

  • Start up time is very long, since the 10.10.3 update

    Ever since the 10.10.3 update the start up time has been very long; a blue screen will show for about 20-30 sec then the apple sign will show, after entering my password the loading time is at least 10-20 sec longer than usual. Any ideas on what i ca