Setting properties of a file

Hi,
  I've used an ABAP program to transfer a file to the App server. However, i need to set the rwx properties of the file. I tried to use sm49 and create a command to perform chmod. It does'nt seem to work. Does any one know how i can set the attributes of a file.
Thanks,
Siddarth

Hi,
THe I would go for chmod for a system command in SM49. You don't need to execute it manually though.
In the same ABAP you can start the external command (defined in in sm49) via eg.
CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
  EXPORTING
    commandname                         = 'Z_CHMOD'
    ADDITIONAL_PARAMETERS               = param
    OPERATINGSYSTEM                     = SY-OPSYS
  TARGETSYSTEM                        = SY-HOST
  DESTINATION                         =
  STDOUT                              = 'X'
  STDERR                              = 'X'
    TERMINATIONWAIT                     = 'X'
  TRACE                               =
IMPORTING
  STATUS                              =
  EXITCODE                            =
  tables
    exec_protocol                       = tabel
EXCEPTIONS
   NO_PERMISSION                       = 1
   COMMAND_NOT_FOUND                   = 2
   PARAMETERS_TOO_LONG                 = 3
   SECURITY_RISK                       = 4
   WRONG_CHECK_CALL_INTERFACE          = 5
   PROGRAM_START_ERROR                 = 6
   PROGRAM_TERMINATION_ERROR           = 7
   X_ERROR                             = 8
   PARAMETER_EXPECTED                  = 9
   TOO_MANY_PARAMETERS                 = 10
   ILLEGAL_COMMAND                     = 11
   WRONG_ASYNCHRONOUS_PARAMETERS       = 12
   CANT_ENQ_TBTCO_ENTRY                = 13
   JOBCOUNT_GENERATION_ERROR           = 14
   OTHERS                              = 15
Put the chmod in a shelk script and use params you give via the above additional params.
All this with enough permissions in mind.
Eddy

Similar Messages

  • API to access and set properties for MP4 files

    I am looking for some APIs in Visual C++ to use in Visual Studio to set
    and get properties for .mp4 files. Can anyone help me in this regard?

    Hi Rahul,
    Try using the Windows Media Format SDK with help from the below document:
    http://blogs.msdn.com/b/tims/archive/2004/03/28/extracting-metadata-from-windows-media-files.aspx
    Alternatively, you can give a try to ffmpeg libraries for a open source alternative.
    https://www.ffmpeg.org/download.html
    (Please mark as answer if this solves your query. Please upvote if this reply is helpful).
    Regards,
    Rajesh Nath

  • Setting properties of Excel File

    Hi,
    Could you tell me how can I set the properties of individual cells of an Excel file before downloading data onto the file.
    In my case I have to change the properties of the first column from General to Text format.
    Could you please let me know the function module to be used..

    Hi,
       Look at the below link
       http://www.sap-img.com/abap/download-to-excel-with-format-border-color-cell-etc.htm
    Regards,
    Amole

  • In Adobe Acrobat Pro XI, is there a way to set defaults when combining files?

    My specific problem;  When I combine files, Adobe creates the bookmarks (which is desirable).  These bookmarks however, always seem to default on "page width" view.  I would prefer to have the bookmarks set to "fit page".  It is very cumbersome to edit each bookmark to reset the view.  (this is another issue which should be addressed as well).
    My preferences already are set to view the files in fit page, single page, however this setting does not seem to transfer to the combined file.
    Is there a way to globally set the preferences for this?  Even the settings during the combining function do not give options for the page view settings.

    There isn't a way to set this during the Combine process but it's easy to change all the bookmarks in one go using the following technique:
    Open the bookmark navigation pane and select all the bookmarks (be sure to expand all subbookmarks).
    Right-click and choose Properties from the context-sensitive menu.
    Click the Actions tab and choose Execute a menu item from the dropdown.
    Click the Add button and choose View > Zoom > Zoom to Page Level and click OK.

  • "Message from Webpage (error) There was an error in the browser while setting properties into the page HTML, possibly due to invalid URLs or other values. Please try again or use different property values."

    I created a site column at the root of my site and I have publishing turned on.  I selected the Hyperlink with formatting and constraints for publishing.
    I went to my subsite and added the column.  The request was to have "Open in new tab" for their hyperlinks.  I was able to get the column to be added and yesterday we added items without a problem. 
    The problem arose when, today, a user told me that he could not edit the hyperlink.  He has modify / delete permissions on this list.
    He would edit the item, in a custom list, and click on the address "click to add a new hyperlink" and then he would get the error below after succesfully putting in the Selected URL (http://www.xxxxxx.com), Open
    Link in New Window checkbox, the Display Text, and Tooltip:
    "Message from Webpage  There was an error in the browser while setting properties into the page HTML, possibly due to invalid URLs or other values. Please try again or use different property values."
    We are on IE 9.0.8.1112 x86, Windows 7 SP1 Enterprise Edition x64
    The farm is running SharePoint 2010 SP2 Enterprise Edition August 2013 CU Mark 2, 14.0.7106.5002
    and I saw in another post, below with someone who had a similar problem and the IISreset fixed it, as did this problem.  I wonder if this is resolved in the latest updated CU of SharePoint, the April 2014 CU?
    Summary from this link below: Comment out, below, in AssetPickers.js
    //callbackThis.VerifyAnchorElement(HtmlElement, Config);
    perform IISReset
    This is referenced in the item below:
    http://social.technet.microsoft.com/Forums/en-US/d51a3899-e8ea-475e-89e9-770db550c06e/message-from-webpage-error-there-was-an-error-in-the-browser-while-setting?forum=sharepointgeneralprevious
    TThThis is possibly the same information that I saw, possibly from the above link as reference.
    http://seanshares.com/post/69022029652/having-problems-with-sharepoint-publishing-links-after
    Again, if I update my SharePoint 2010 farm to April 2014 CU is this going to resolve the issue I have?
    I don't mind changing the JS file, however I'd like to know / see if there is anything official regarding this instead of my having to change files.
    Thank you!
    Matt

    We had the same issue after applying the SP2 & August CU. we open the case with MSFT and get the same resolution as you mentioned.
    I blog about this issue and having the office reference.
    Later MSFT release the Hotfix for this on December 10, 2013 which i am 100% positive should be part of future CUs.
    So if you apply the April CU then you will be fine.
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Setting password in pdf file in oracle apps

    Hi
    Here is my requirement to set password protech in pdf file and send to email.Can anyone help me how to set password in pdf file in oracle apps 11i
    Thanks

    File > Properties. Then under Security change Security method to None; enter the Control password when prompted. Then Save As.

  • TDMS Set Properties in a loop?

    I am using LV 8.5 and am trying to apply TDMS properties to multiple channels in one fell swoop, with the idea of being able to automate it for the number of channels currently active.  I know how to do this, except for one step I'm struggling with.  I keep getting the error:
    "LabVIEW:  An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
    =========================
    NI-488:  Command requires GPIB Controller to be Controller-In-Charge."
    coming from the tdms set properties.  I'm feeding it an an indexing array of strings, which I believe are C-strings so null terminator as the help files says it struggles with such, and no addresses.  I've attached a partially completed VI that is otherwise working.
    Thanks for your assistance,
    Bret Dahme
    Solved!
    Go to Solution.
    Attachments:
    Multiple_inputs.vi ‏102 KB

    Bingo!  Glad that it was a quick and easy solution.  The help file says group or channel and nothing that i can see of requireing either.
    Thanks for the help!
    Attachments:
    Multiple_inputs.vi ‏98 KB

  • Set password to PDF file using ADS server

    How to set password to .PDF file using ADS(Adobe Development Service) server?
    Moderator Message: Not enough effort seen from OP. Thread Locked.
    Edited by: kishan P on Jul 14, 2011 11:51 AM

    Thanks for your prompt reply. Well forget about conversion but there should be a way to just password protect any PDF file, correct?
    We have a 3rd party tool which does that for our VB6 apps, I am surprised how come Acrobat SDK doesn't expose those Properties/Methods for VB6 model.
    Andy

  • OMBPLUS - Setting properties of objects in Collection.

    Hi All,
    I am trying to set the Deployable property of objects in a collection in order to automate our deployment process. Basically, we use collections for our releases, and I want to set the property as above before running our deployment script which looks for objects that are marked as deployable.
    see below my attempt at this:
    #logging file
    set OMBLOG C:\\CORT_BAUV_13\\OMB\\omblog.txt
    set fParams [open Params.lst r]
    gets $fParams OwbUsername
    gets $fParams OwbPasswd
    gets $fParams Hostname
    gets $fParams Port
    gets $fParams Database
    gets $fParams StgUsername
    gets $fParams OdsUsername
    gets $fParams ClnUsername
    gets $fParams DwhCrtUsername
    gets $fParams DwhLdwUsername
    gets $fParams CtlUsername
    gets $fParams DwhAdmUsername
    gets $fParams Passwd
    gets $fParams resetAll
    gets $fParams Collection
    close $fParams
    #REPOSITORY CONNECTION
    set reposConnection $OwbUsername/$OwbPasswd@$Hostname:$Port:$Database
    #CONSTANTS
    set projectName MI_HEAD
    puts "Connecting to: $reposConnection"
    OMBCONNECT $reposConnection
    puts "Connected to Repository..."
    OMBCC '/$projectName/'
    OMBCONNECT CONTROL_CENTER
    set dtaList [OMBRETRIEVE COLLECTION '$Collection' GET DATA_AUDITOR REFERENCES   ]
    puts "Resetting Data Auditors $dtaList"
    foreach dtaName $dtaList {
    OMBALTER DATA_AUDITOR '$dtaName' SET PROPERTIES (DEPLOYABLE) VALUES (1)
    OMBCOMMIT
    OMBDISC
    Currrently, I get this error:
    OMB01004: Current context is not an Oracle module context.
    Any ideas?

    thanks david...
    the main problem is getting the module to switch context to..
    the result of the puts "Resetting Data Auditors $dtaList" is as follows:
    Resetting Data Auditors /MI_HEAD/TGT_STAGE/VALID_BUSINESS_AREA_AUDIT
    /MI_HEAD/TGT_STAGE/VALID_DRAWDOWN_AUDIT /MI_HEAD/TGT_STAGE_LD/VALID_LD_CONNECTION_AUDIT
    the result above does show the module of each object but how do i dynamically change context to each module
    i.e
    foreach dtaName $dtaList {
    OMBCC $dtaName
    OMBALTER DATA_AUDITOR '$dtaName' SET PROPERTIES (DEPLOYABLE) VALUES (1)
    i tried OMBCC$dtaName
    OMBCC '..'
    to get into the context of the module that holds the object, but that still did not work...
    thanks,
    Olu

  • Coding Multiple TDMS Set Properties Efficientl​y

    I am trying to save some test settings as TDMS properties.  I have figured out the mechanics of saving individual properties to the file, but I have 25 or so properties to write to the file.  What is the most efficient way to code this in LV, so that I don't have to use the "TDMS Set Properties" block 25 different times?  I have tried sending the block arrays, but it doesn't like that.  Is there some kind of loop I can use?
    Steve
    Solved!
    Go to Solution.

    Another idea is this:
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • TDMS Set Properties fails

    Hi.
    I am currently developing an application which writes some data into a TDMS file.
    I have used the TDMS Set Properties VI to add some special properties as meta data.
    Basically it works, but only once. Now I would like to know why: The error message is:
    "LabVIEW:  An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @. "
    I attached two files. One of them works (the one where only a single Set Properties VI is actually used), the other doesn't - it returns the error above.
    Why is that so?
    Attachments:
    works.jpg ‏85 KB
    doesntwork.jpg ‏87 KB

    Hi Wolfgang
    I am sorry that I can't provide any VIs, because I stopped working for the company (this was just some bonus project to do something). I don't have the VIs here, I also do not have 8.2 here, so I can't build a sample application anymore.
    As soon as I connected the second wire to MF (or LF, it didn't matter), the VI gave me an error (I don't remember the error code, sorry) directly after the VI where I connected. If only one
     was connected, everything worked fine.

  • Oracle9i Intermedia cannot set properties

    hai, i want to ask why Oracle9i in my server cant set properties for mp3 or wav (audio length can be recognized, but the value of mimetype and format is ???). but when i use another Oracle9i in another computer, i can. when i check with System.out.println (Java), the file uploaded with servlet, i use method OrdHttpUploadFile.getMimeType() its work (the output is "audio/mpeg") but when OrdAudio.getMimeType() its output is "???"
    any idea

    no exception at all
    i'm using Java servlet for upload and retrieve media, with JBoss as Application Server,
    this code is for upload:
    oracle.jdbc.driver.OracleCallableStatement insertAudio =
    (oracle.jdbc.driver.OracleCallableStatement)
    conn.prepareCall("BEGIN "+
    "INSERT INTO audiotab VALUES(1,:1,:2,:3,:4,:5,SYSDATE," +
    "ORDSYS.ORDAudio.init(),:6,:7,:8) " +
    "RETURN audioid INTO :9 ; END;");
    ... (fill bind variable)
    insertAudio.executeUpdate();
    oracle.jdbc.driver.OraclePreparedStatement selectAudio=
    (oracle.jdbc.driver.OraclePreparedStatement)
    conn.prepareStatement(
    "SELECT * FROM audiotab WHERE audioid=? FOR UPDATE ");
    ... (fill bind variable)
    oracle.jdbc.driver.OraclePreparedStatement updateAudio=
    (oracle.jdbc.driver.OraclePreparedStatement)
    conn.prepareStatement(
    "UPDATE audiotab SET audiofile=:1 WHERE audioid=:2");
    .... (fill bind variable)
    OracleResultSet rs=(OracleResultSet)selectAudio.executeQuery();
    if(rs.next())
    OrdAudio ord=(OrdAudio)rs.getCustomDatum(8,OrdAudio.getFactory());
    data.loadAudio(ord);
    formData.release();
    updateAudio.setCustomDatum(1,ord);
    updateAudio.setLong(2,audioid);
    updateAudio.executeUpdate();
    conn.commit();
    there is one thing that maybe weird (for me), when i'm using Toad from Quest Software, i look the ORDAudio, THERE IS audio/mpeg as its MIME type, and other properties was right, so what happen with this?? is it because of Java, Oracle, or web server, i'm using tomcat 4 before JBoss 4, and the result was same.
    and there is one thing that disturbing me, why method getCustomDatum() from OracleResultSet was deprecated, although it works but its annoying, is there other method to get the ORDAudio and other ORD.

  • WebDAV Error message when setting Properties

    Hi
    I have set up Oracle Drive to allow content to be uploaded to the Portal pages. This appears to be working fine however, when I right-click on a file to set properties I only see an Advanced Properties and not Set Properties as shown in the documentation. Clicking on Advanced Properties produces the following error message
    "Advanced Properties is not supported by this server"
    Can anyone help me resolve this issue please ? Is the Advanced Properties the same as Set Properties as stated by Oracle's documentation ? Is this a version issue ?
    Thanks
    Kevin

    Hi
    Well after further analysis I have been able to set the properties for the item by clicking on 'Properties'. However I am also seeing an 'Advanced Properties' item which produces the described message when I click on it. Can anyone explain what functionality is provided by this?
    Regards,
    Kevin

  • Illustrator won't run: "unable to set maximum number of files to be opened"

    I have an intel macbook pro (core duo with 2GB ram) and a copy of purchased adobe creative suite 2. Other applications in the suite like photoshop, acrobat, etc can run on my mac without any problem. But when I try to run illustrator, it just shows an error message "Unable to set maximum number of files to be opened" and quits. I also installed a trial version of illustrator cs3 and got the same problem. Can anyone help? Thanks.
    CC

    Hi, I realize this is an old thread but it was unanswered and the issue has come up again in a newer thread:
    http://forums.adobe.com/message/2534652
    If the original poster sees this, can you reply tin the new thread and let us know if you were ever to solve this problem?
    Thanks!

  • Open Another Project - how do I set up the published files?

    I created a Menu project that launches (via buttons) two other projects. Each of these other projects has a button to return to the Menu. I copied the published set of files to each of the Callees folders. So, Menu\Callees has Run 1 and Run 2 folders (all the published files) Run 1 and Run 2\Callees each have Menu folder with all the published files. Menu launches Run 1 and Run 2 fine but the Menu button on Run 1 and 2 works once, then I get this:
    No webpage was found for the web address:file:///C:/Users/Jeff/Documents/My%20Adobe%20Captivate%20Projects/menu%20test/Menu/callees /Run_1/callees/Menu/callees/Run_1/callees/Menu/index.html
    Anyone have a simple explanation for how I should be setting up the published files?
    Thanks so much,
    Jeff

    Thanks Rob,
    Would running these from a web server resolve the file location problem I asked about? I tested the SWF version on my HD and got a similar error message (this time looking in the root directory, not the callees folder.) Can you point me to a reference re: how to set up files when running another project?
    Thanks,
    Jeff

Maybe you are looking for

  • Prompt in WEBI over BICS doesn't display values without searchin

    Hello, I'm using BI 4.1 SP04 over BW 7.3. Using BICS connection over a query, I'm trying to filter 0PRODH1 (material hierarchy). Tried to put variable inside the BW query for getting a prompt inside the WEBI, but I keep getting multi values (becasue

  • Command Line builds do not include graphics used in snippets

    Hello, I want to be able to build my help projects using RHCL. I have managed to get it to work so my projects will build. However, I use a few snippets that include a graphic in the projects. I have noticed that the graphics are not displayed in the

  • MAJOR Mail - Mobile Me Issues

    For no reason, yesterday afternoon all **** broke loose in Mail. I have a MobileMe account that I've been using for quite a long time and it doesn't send anymore and doesn't receive either. It keeps on bringing back an old draft from last week that I

  • Trouble with converting pdf to word

    How long should it take to export a pdf file of 5.08 MB to word doc? I have been at this all morning?

  • InfoSet: How data is updated for the Segmentation Basis

    Hi Experts, I have generatet in transaction SQ02 the InfoSet CRM_MKTTG_BP_CENTRAL_DTA. Then I have created the segmentation basis by using the transaction CRMD_MKTSEG_MGR (see attachment). The load of the data was fine but then I found out that when