Open dataset not working in ECC 5.0, returning 8

Gurus,
Open data set is returning 8. The file is there on application server as selected by KD4 function module when I try to do open dataset it retruns 08.
REPORT XXX message-id zdolfemsg.
Data Declaration
data: v_mfile type C,
      v_ffile type C.
data: w_mpath type string,
      w_fpath type string.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME
                                   TITLE text-001.
PARAMETERS: p_master like rlgrap-filename obligatory,
                        p_func like rlgrap-filename obligatory,
SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_master.
  CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
      CHANGING
      file_name = p_master.
w_mpath = p_master.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_func.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
    EXPORTING
      static    = 'X'
    CHANGING
      file_name = p_func.
      w_fpath = p_func.
start-of-selection.
  perform initilaization_for_master.
  perform initialization_for_func.
  if v_mfile ='X' and V_FFILE = 'X'.
    message e001 with sy-repid.
  ELSEIF V_mfile = 'X'.
    message e000 with p_master sy-repid.         "Error opening file
  ELSEIF V_FFILE = 'X'.
    message e000 with p_func sy-repid.         "Error opening file
  endif.
close dataset p_master.
close dataset p_func.
*&      Form  initilaization
      text
-->  p1        text
<--  p2        text
FORM initilaization_for_master .
  open dataset w_mpath for output in text mode encoding default.
  if sy-subrc <> 0.
    v_mfile = 'X'.
  endif.
ENDFORM.                    " initilaization
*&      Form  initialization_for_func
      text
-->  p1        text
<--  p2        text
FORM initialization_for_func .
  open dataset w_fpath for input in text mode ENCODING DEFAULT.
  if sy-subrc <> 0.
    v_ffile = 'X'.
  endif.
ENDFORM.                    " initialization_for_func
Please help.
Regards,
Rajsh.

Thanks Rob. How can I open the file on presentation server. I have to read the data from the file and fill in internal table.
Regards,
Rajesh.

Similar Messages

  • OPEN DATASET not working in background

    Hi all,
               I have created a file succesfully in app server ,which I try to read later through a backgroung job using statement
    OPEN DATASET w_infile FOR INPUT IN TEXT MODE ENCODING DEFAULT  IGNORING CONVERSION ERRORS.
              But I am getting OS(UNIX) level error message "No such file or directory" When I try to run the program in foreground it works perfectly.
             Please help.

    >            I have created a file succesfully in app server ,which I try to read later through a backgroung job using statement
    >  OPEN DATASET w_infile FOR INPUT IN TEXT MODE ENCODING DEFAULT  IGNORING CONVERSION ERRORS.
    >           But I am getting OS(UNIX) level error message "No such file or directory" When I try to run the program in foreground it works perfectly.
    Are your background processes running on the same server as you're logged on?
    Markus

  • Hi pls help me my iphone is forest i update but  after my iphone is  devices open is not working i click but sim card installed , attempting to activate this one coming pls help me answer me

    hi pls help me my iphone is forest i update but  after my iphone is  devices open is not working i click but sim card installed , attempting to activate this one coming pls help me answer me

    Sounds like your phone was hacked to use with your carrier.  Updating it has relocked the phone to it's original carrier.  You will not get the phone working again without a SIM from the original carrier.

  • Three keys of my keyboard are not working, the cap one, the return key and the space bar, while the virtual keyboard shows to others keys highlighted in orange (^ and `); How to fix it? I writing now with a bluetooth keyboard.

    Three keys of my keyboard are not working, the cap one, the return key and the space bar, while the virtual keyboard shows to others keys highlighted in orange (^ and `); How to fix it? I writing now with a bluetooth keyboard.

    All new keyboards need Snow Leopard 10.6.8 and above for full functionality.
    Rather short-sighted of Apple perhaps, but that seems to be a trend these days.
    I'm afraid the only fix is to upgrade to SL. Personaly, I'd take it back and get a refund and seek an older keyboard or a third-party one elsewhere.

  • I have a macbook pro with OSX Mavericks 10.9.5 and some keys that are not working. Specifically, the enter/return button, the "p", "0", ";", and all the function keys.  What's really weird is that happens randomly.  I've never spilled anything on it

    I have a macbook pro with OSX Mavericks 10.9.5 and some keys randomly are not working. Specifically, the enter/return button, the "p", "0", ";", and all the function keys.  What's really weird is that happens randomly.  I've never spilled anything on it, and I can't for the life of me figure out how to fix this.  Can anyone help?  of course this happened after my warranty expired.

    **update**
    I don't know if this will help someone but I am posting this for that purpose.  In the past when I first had this problem, I'd read a post somewhere (sorry, long ago, don't have the link) where an individual was having the same problem and they stated that when the MBP got heated, that's when the keys would stop working, and they went into the MBP and jiggle some stuff around (a specific wire, I'm not electronically inclined so I know NOT of what they spake!).  Well I didn't want to do that but it always stuck in the back of my mind.  I had given up, really, and was planning to take my MBP to the apple store.  But by chance one night I left my MBP on the floor where it's cool, and when I turned it on, the problem went - poof! It seems there was some validity to the post that spoke about heat, because my problems started when I would stream foreign dramas on my MBP for hours at night, and I would hear the fan going off all the time, and in the mornings, my "p", "enter", "0", ";", and all the function keys would stop working. 
    So, maybe try keeping the MBP in a cool place when it's off.  Since I've started doing this overnight every night (keeping it on the cool floor, out of reach of any big feet), I have not had a single problem with my keyboard.
    Hopefully this might help someone.

  • Mac mail search function is not working. Any search term returns all records.

    Mac mail search function is not working. Any search term returns all records.

    hi eric. many thanks.
    i will have to read these links closer but what i meant to say is that the hard drive space that was being taken up seemed like it suddenly jumped way up because i had just gotten through a process in the last month where i am storing all my My Documents data on my Mac Pro. i am doing this in order to decide whether i should just keep it ALL on my Mac Pro and use ChronoSync to sync /some/ of it to my MBP.
    so if i look in the Documents folder on my Mac Pro i have a ton of folders that i have created with a ton of data. if i look in the Documents folder on my MBP there are NO folders that have data in them that i created. there are other folders such as folders that various software created but what i mean to point out is that there was a LOT of available space on my HD until recently.
    i am wondering if there is some way that running the Mail re-index (it then ran some kind of "Importing" routine) or by syncing my Photostream to the MBP caused a huge jump in data on this drive. if it is the photostream sync i can just take this off or see if it will sync more selectively. if it is something to do with mac mail jumping in size i am not sure why this would happen or what to do about it.
    does that question make sense?
    i mean, before i did these two operations my recollection is that i would have had 130 GB on the hard drive (really just guessing here) and now there is like 218 GB on the hard drive and i don't know where all this came from...

  • Open Dataset for input in BINARY MODE not working after ECC 6.0 upgrade

    Hi All,
    Our requirement is to download an XML file from the application server and there is a customized program to download these files.
    This program uses the statement,  Open dataset ...for input in BINARY MODE
    and it works perfect for 4.7. There were no issues. But, after the upgrade to ECC 6.0 this does not work.
    When the data is read in ECC 6.0 , it is shown in some special characters and it could not be opened with XML editor and the file is not completely downloaded. I read through the forum and tried the following statement as well,
    Open dataset....for input in LEGACY BINARY MODE.
    After this statement, there were no special characters, but there is a blank space introduced before every character.
    Example : TEST(actual)
                      T E S T (After the legacy binary mode)
    Could you please let me know if there is any solution to rectify this problem. Appreciate your help.
    Thanks a million.
    Edited by: Manikd on May 12, 2011 3:52 PM

    But this program was already using BINARY MODE and after upgrade this is not working. I know, it may work in TEXT MODE. However, I cannot change the whole program to TEXT mode now.

  • Calendar Alarm Open FIle not working in Mountain Lion

    Recently upgraded my mac mini server to 10.8.2 Mountain Lion. I need it to open a particular Filemaker file every morning, and close the application every night. Used to have a simple alarm in iCal set to do this with Open File and then a very simple Automator script to close the program at a scheduled time, also in iCal. Worked fine. Now, in trying to recreate this, it doesn't work - I make the scripts, and if I set them for a time I can test them (ie. 5 minutes from now), they work as planned, but they will not function on their own at the scheduled time. I thought it might be going to sleep, so I set Energy Saver to Never go to sleep, unchecked "Put hard disks to sleep when possible", and checked "Wake for network access". Still not working. Any thoughts? Any idea how to even troubleshoot this?

    I thought I was on to something, but then I re-read your post and saw that you've successfully tested your scripts in Calendar.  So, all I've got left to offer is a silly question: has the calendar been set to ignore alerts?  I ask because just within the last few days I created an Automator calendar alarm, tested it successfully (in the same fashion as you), and set it off to run on its merrily-scheduled way, only to discover it wasn't firing on its own.  Like you, I double-checked my Energy Saver settings and it looked like things should work just fine.  What I finally found was that at some point during all my testing and fiddling I'd ticked the "Ignore alerts" box for the calendar,  and that's what was keeping my script from firing.

  • WBS element field in transaction CS71-F4 help is not working in ECC 6.0

    Hii
    In SAP, while working in SAP 4.7, tcode cs71, WBS element is coming via F4 Help. But after upgradation to ECC 6.0 EHP 5, this F4 help is not working. I can enter value manually.but F4 help is not working.
    Please Help.

    Hi,
    You can do it manually too
    1.  Choose function group 'CSDI' via Transaction SE80.
    2.  Choose screen '0260'in the 'Screens' area and switch to change mode
    3.  Choose the 'Element list' tab index.
    4.  In this area, choose the 'Reference' tab index and enter the value
        'PRP' in the 'Search help' column in the line for field
        'RC29N-PSPNR'.
    5.  Save your change and regenerate the screen.
    6.  The correct input help for the WBS element is now available in the
        initial screen of Transaction CS71/72/73.
    I hope F4 helps works for "Existing WBS BOM's" in CS71 after this
    Refer to Note : 714824 as well , it has reverted back the changes done by note : 422265
    Regards
    Gaurav

  • Screens not working in ECC 6 after upgradation from 4.6c.

    Hi,
    The custom developed screens which where developed in 4.6c version is not working properly in ECC 6 after upgradation.Do i have to make any more changes for this .? If anyone have an idea please help me in this issue.The custom developed things are an extended functionality we have done to r/3.
    Regards,
    jinesh kumar c.

    Hi,
    Check the Transportatation Logs in STMS for the programs/screens and check whether they are successfully tranported or not?
    Because some times we get Dynpro errors for transportation of the screens.
    Reward if useful.
    regards,
    Anji

  • ME21N Material group level authorization is not working in ECC 6.0

    Dear Security Experts,
    We have created a role Z_ME21N with one Tcode ME21N. The role has to restrict users in the material group level.
    For that, we added Authorization object M_MATE_WGR.
    1.     When we are trying to add field values for {M_MATE_WGR, BEGRU}, generally it should show me the list possible values to be used based on the MM configuration related to Material Authorization Group. We have correctly configured the authorization groups from V_TBRG for M_MATE_WGR. But itu2019s not showing any possible values.
    2.     However we are able to add values manually, but I guess these are not being considered during authorization check and our restriction on Authorization group level in ME21N is not working.
    Test Scenario: We have manually added values 005,007,009,010,013 (which is pointing to specific material group) to BEGRU of M_MATE_WGR. We already assigned this Authorization Object to role Z_ME21N and this role has been assigned to u2018testuseru2019, but the authorization check with the M_MATE_WGR authorization group is not happening. It allows operations on all the material groups.
    Anybody came accross same scenario?
    SAP Prodcut version : ECC 6.0
    Database : SQL Server 2005
    Support pack level : 15
    Please share your views, thanks in advance.
    Regards,
    Abu Sandeep

    Dear All,
    I got a reply just now from SAP regarding the same issue.
    I coudnt understand what SAP and you are saying.
    Dear Abu
    *Apologies for the delay. This message has been turned on to application*
    *area of MM from the Basis side just now.*
    *Unfortunately, authorization object "M_MATE_WGR " is not checked*
    *in the purchasing transactions (PR & PO), the system works as standard*
    *functional designed.*
    *Only the following objects are checked in PR/PO:*
    *M_BEST_BSA Document Type in PO M_BANF_BSA Document Type in PR*
    *M_BEST_EKG Purchasing Group in PO M_BANF_EKG Purchasing Group in PR*
    *M_BEST_EKO Purchasing Org. in PO M_BANF_EKO Purchasing Org. in PR*
    *M_BEST_WRK Plant in PO M_BANF_WRK Plant in PR*
    *Setting in check/maintain on in SU24 only means that the profile*
    *generator will propose the object when creating a user, however is*
    *does not mean that M-MATE_WGR will be checked.*
    *Please close this message by pressing the confirm button at your*
    *earliest convenience.*
    *Many thanks in advance for your understanding.*
    So, how can I resolve this problem? John, are you sure that, you implemented this successfully?
    SAP says, this cant be done.
    Regards,
    Abu Sandeep.

  • ISR NATIVE CONTROLS  ERP -2005 is not working in ECC 6.0, MSS 1.0 Version

    Hi,
    Does anybody knows, why the ISR Controls for ERP 2005 is not working properly.  We utilized the DropDown List Controls, we binded to the correct field in the FORM. We have filled the ADDITIONAL_DATA table, on the SET_ADDITIONAL_VALUES method also, to populate .
    The DropDown values are not populating in runtime.
    We are running ECC 6 Version, Basis is on SP12, and Application Platform is on SP09.  We have MSS 1.0 for SP 10.
    What might be the problem, what do  you feel about procedure in ISR Controls binding? 
    INFO: It doesn't have that SAP-VHLIST , illusion here. 
    Please guide me , as I am strucked from all ways, any note, patch to apply,  any config issue.
    thanks,
    chitti babu

    Hello,
    In case of DDLB, apart from the binding, there's something else needs to be done.
    Goto binding tab : incase adobe life cycle designer 7.1, a link "Specify item values" is highlighted.
    $record.sap-vhlist.FIELDNAME\.DATA\.FIELD.item[*].
    Item Text : text
    Item Key :key.
    This should resolve ths issue.
    Hope this helps.
    Best Regards,
    Saujanya

  • Search help of material is not working in ECC 6.0 : Urgent

    Hi Friends,
    I am using ECC 6.0. I have a problem in search help of material by plant. In the search help of material (choosing the tab plant material by descriptions), if i give any plant which is 3 chars long (exp. ABC) it is giving correct combination of plant material. But if i am giving a plant which is 4 chars long (exp ABCD) it firing a message saying no values found, although the combination exist. (if i am giving only material name it is showing both 3 chars and 4 chars long plant).
    for ref: please use transaction MD04 and press f4 in material field and choose tab "plant material by descriptions", and give 3 chars and 4 chars long plant.
    please help me to trace the problem or any OSS note.
    correct answer will be awarded.
    I will appreciate to not giving code of search helps because it is a standard SAP functionality that is not working.
    Regards
    Krishnendu

    Krishnendu,
    Please check your SAPGui frontend i think you are using 7.10 patch level 3.? if not try with some other system that have 7.10 patch level 3.

  • Strange boot bug; open firmware not working

    Hi!
    I have a powerbook Alu 15", 1.5Ghz. It runs OS X 10.4.2 with the latest security update. My problem started last Saturday.
    The problem is that my pb will not restart nor boot on its own. The computer makes its usual chime, the hard-disk starts to spin for a few second, and then stops suddenly before anything is displayed on the screen (the display does not even light-up). If I press the option key after or before the chime, and keep it pressed, or the shift key, or the c key, or the t key, or the command-option-p-r key combination, or even the command-option-o-f key combination, the behavior is exactly the same: the disk starts to spin for a few second after the chime, and suddenly halts. The computer appears to shutdown on its own before the boot can even start.
    Here is the strange part: the computer boots normally if I press the command key (this key on its own is not suppose to do anything). It also works if I press the command-s or command-v key combination. No other key combination seem to work.
    Except for this strange boot behavior, the computer works flawlessly. I did not have any kernel panic for at least a year, the computer did not crash recently, everything works fine except for one small detail on which I will come back at the end.
    I've tried to fix the problem by the following actions:
    1) Clean install of Tiger with a new partitioning of the disk; I even zeroed the entire disk. This did not change anything so the problem is probably not OS related.
    2) Reset of the PMU with the four finger salute: shift-control-option-power combination. No effect except that I lost the date/time information. Hence the reset worked.
    3) Tried to reset the PRAM, but the command-option-p-r key combination does not seem to work.
    4) Tried to load the open firmware with command-option-o-f, but this does not work either.
    5) Memory seems ok. I have 1x256M of Apple RAM + 1x1G of RAM bought from OWC. I've had the OWC RAM for about a year without any problem. Anyway, I removed the 1G module and tried to boot on the 256M Apple module alone. Exact same behavior. Then I removed the Apple module and put back the 1G module. Exact same boot behavior. So the problem is not with my RAM, unless both modules have simultaneously developed a malfunction.
    6) Tried to run the Apple hardware tests. However, for my machine, these tests come on the install DVD, in a special hidden volume. To boot on this special volume, one needs to boot with the option key depressed, and to select the boot volume from the open firmware interface. But this does not work on my machine, the computer seems to shut down before this interface can be activated!
    So this problem is very strange. I can live with having to press the command key for booting my machine, but I would sure like to know what is going on here. Is the problem hardware related? Perhaps, but as I said, the machine works flawlessly except for the strange boot behavior.
    Is the problem related to firmware? I think that this is the most probable option. What do you think? Maybe, the firmware got slightly corrupted? Maybe a bit got flipped in the flash memory? Is this possible? I guess so. But, what can I do? Should I contact my friendly local repairman?! I have to admit that this option scares me a little bit for such a strange problem. I would need an Apple engineer with boot related experience/expertise!
    Now, here is a little bit of further information. I don't know if its related, but it is also very strange. I work with a dual screen configuration. Usually, I connect my screen and then I wake up the computer. Last week, I noticed that if I connect my second screen live, the system detects it automatically. I guess this is new to Tiger? Anyway, the strange behavior is that the computer then asks me if I want to sleep, restart or shutdown my pb, as if I had pressed the power button. But I did not press this button when I connected the dvi connector >:-o
    Many thank

    Hi Scott!
    Almost every time the PowerBook woke after sleep, I got the 'Are you sure you want to shut down your computer now...' message.
    I get this message upon wake only rarely, but every time I plug or unplug a display live.
    The strange behaviour was tolerable, so I've lived with it for several months. But then when checking out the PowerBook discussions, I read about the failing lower RAM slot problems, and just out of interest, checked out my System Profiler....
    Ok, so the good news is that my pb may continue to work for several months
    My lower RAM slot appears to be ok for now.
    Interestingly, I'm sure that the start-up problems began when I started using my PowerBook with a 23" Apple Cinema Display (a pink hued one, but that's another on-going saga) - and you too have mentioned that you use an external display, so I wonder if that's part of the cause of our start-up problems.
    Yes, I've noticed the 'Are you sure you want to shut down your computer now...' message just a few days before noticing the strange boot problem (not sure if the machine booted in between). I use ViewSonic displays (one at home and one at the office), and several different projectors in different class rooms. From what I read, it is plausible that there is a link between this problem and the dvi port. Could it be that the boot sequence of mb is affected by a hardware problem on the dvi port? But not when a press the command key?!
    Anyway, my machine is no longer under warranty, so I intend to live with the problem for as long as possible...
    But I've been doing more regular backups since then.
    Best wishes to you and your (almost) new machine!
    Marc.

  • "open file" Not working with Photoshop CS2

    System
    MAc Pro Dual Quad 3Ghz, OS X 10.5.2
    I have a script that I wrote a while ago to take a series of individual bitmaps and compile them into a strip for access inanothe application. Script used to work well....
    I tried to use the script today but ran into a brick wall when trying to open files from within the script.
    below is an example of a script that will not work at all,
    tell application "Adobe Photoshop CS2"
    open file "AV:logo:rot0001.png"
    end tell
    I normally pass the function a variable for the filenames...but the above script should work fine.. but flatly refuses to !
    Below is the Error returned.
    Adobe Photoshop CS2 got an error: General Photoshop error occurred.
    - The object “current document” is not currently available.
    Arghhhh Help !!
    Rgds
    Chris

    Hello
    Perhaps your script used to work under pre-OSX10.5 (AppleScript 1.x) but now fails under OSX10.5 (AppleScript 2.x)?
    If so, the most likely cause is the drastic change in internal text handling between them. In AS2.x, internal text is Unicode only, which might prevent PSCS2 from resolving 'file path_string' descriptor (when path_string is assumed to be plain 'string', not Unicode text).
    Try the following code instead -
    tell application "Adobe Photoshop CS2"
    open ("AV:logo:rot0001.png" as alias)
    end tell
    Or -
    set a to "AV:logo:rot0001.png" as alias
    tell application "Adobe Photoshop CS2"
    open a
    end tell
    Hope this may help,
    H

Maybe you are looking for