How to do Check in the files for the document number?

Hi ,
By using BAPI_DOCUMENT_CHECKIN2 Function module I am uploading the Files for the Document number.
My problem is - After uploading the files to the document number the files are not in check in status.
I want the files to be checked in after uploading the from the FM.
Can anyone tell me what I am missing ? How to do check in the files.
I am passing the following values to FM.
      ls_files-SOURCEDATACARRIER = ls_file-DATA_CARRIER.
      ls_files-WSAPPLICATION     = ls_file-application.
      ls_files-DESCRIPTION       = ls_file-file_desc.
      ls_files-STORAGECATEGORY   = ls_file-category.
      ls_files-DOCFILE           = ls_file-doc_path.
      ls_files-CHECKEDIN         = 'X'.
    CALL FUNCTION 'BAPI_DOCUMENT_CHECKIN2'
      EXPORTING
        DOCUMENTTYPE            = ls_file_data-dokar
        DOCUMENTNUMBER          = ls_file_data-doknr
        DOCUMENTPART            = ls_file_data-doktl
        DOCUMENTVERSION         = ls_file_data-dokvr
      IMPORTING
        RETURN                  =  ls_return
      TABLES
        DOCUMENTFILES           =  lt_files
    COMPONENTS              =
    DOCUMENTSTRUCTURE       =
I appriciate you response on this.
Thanks in advance.

Any answers for this?
Thanks.

Similar Messages

  • How to do CHECK IN the files for the document?

    Hi ,
    By using BAPI_DOCUMENT_CHECKIN2 Function module I am uploading the Files for the Document number.
    My problem is - After uploading the files to the document number the files are not in check in status.
    I want the files to be checked in after uploading the from the FM.
    Can anyone tell me what I am missing ? How to do check in the files.
    I am passing the following values to FM.
          ls_files-SOURCEDATACARRIER = ls_file-DATA_CARRIER.
          ls_files-WSAPPLICATION     = ls_file-application.
          ls_files-DESCRIPTION       = ls_file-file_desc.
          ls_files-STORAGECATEGORY   = ls_file-category.
          ls_files-DOCFILE           = ls_file-doc_path.
          ls_files-CHECKEDIN         = 'X'.
        CALL FUNCTION 'BAPI_DOCUMENT_CHECKIN2'
          EXPORTING
            DOCUMENTTYPE            = ls_file_data-dokar
            DOCUMENTNUMBER          = ls_file_data-doknr
            DOCUMENTPART            = ls_file_data-doktl
            DOCUMENTVERSION         = ls_file_data-dokvr
          IMPORTING
            RETURN                  =  ls_return
          TABLES
            DOCUMENTFILES           =  lt_files
        COMPONENTS              =
        DOCUMENTSTRUCTURE       =
    I appriciate you response on this.
    Thanks in advance.

    Hi,
    Check the values you are passing into ls_files .
    you dont need to pass checkedin = 'X'.
    and check the storagecategory field - this should not be blnak.
    files-SOURCEDATACARRIER = lsfile-DATA_CARRIER.
    ls_files-WSAPPLICATION = ls_file-application.
    ls_files-DESCRIPTION = ls_file-file_desc.
    ls_files-STORAGECATEGORY = ls_file-category.
    ls_files-DOCFILE = ls_file-doc_path.
    ls_files-CHECKEDIN = 'X'.
    This FM will work. No issues just check the values you are psssing into this LS_FILES structure.
    Rest of the fields are corect.
    Thanks,
    Murali.

  • Where are the files for the Backups that show up in About This Mac - Storage?

    Where are the files for the Backups that show up in About This Mac - Storage?
    My new Macbook Pro 13 retina has 1TB flash drive. But despite my TimeMachine being in a TimeCapsule my Macintosh HD shows 277 Gb of space has Backups. What is this for? How can I delete it?

    OS X Lion and newer Mac OS X versions create local snapshots in portable Macs if Time Machine is enabled. See > http://pondini.org/TM/30.html
    You don't have to worry about. They are stored in a kind of volume named "MobileBackups", but they appear as stored in your hard drive. To delete them, open System Preferences > Time Machine, and turn off Time Machine. Then, turn it on. However, you don't need to delete them, as they will be deleted when your hard drive gets full

  • Trace file event set....need the file for the user...

    hello all,
    i had a question about the trace file, I was asked by one of ur manager to set events for trace file...he asked to do this...
    ALTER SESSION SET EVENTS '10046 trace name context forever, level 12';
    alter system set events '1483 trace name errorstack, level 12' ;
    i understand they go to the udump, but my question how am i suppose to know which trace file to look as there are tons of them in udump??? We actually want this for a specific schema that we are lookin for. Could anyone explain what the above are doing and how to get the trace file for it. Thanks

    If you are running this from your session and want to check the file that has been created for your session,from Effective Orcle by design,this may be helpful,
    select rtrim(c.value,'/') || '/' ||d.instance_name ||
    '_ora_' || ltrim(to_char(a.spid)) || '.trc'
    from V$process a,v$session b,v$parameter c,v$instance d
    where a.add=b.paddr
    and b.audsid=sys_context('userenv','sessionid')
    and c.name='user_dump_dest'This would tell you the exact file that would had been created for your session.
    HTH
    Aman....

  • How to Auto Check-in .pdf Files in a Document library(after Drag & Drop) - sharepoint 2013?

    Hi,
    Once I Drag and drop the .pdf documents in a document library files get
    checked out automatically.
    I want the files to be checked-in automatically once they are dragged and Dropped.
    Please note : I am able to do the above things with .doc (world files) but not with the
    .pdf files.
    I have provided all the default values. Tried all the below options Still no success :-( 
    Require Content Approval for submitted items ?    NO
    Create a version each time you edit a file in this document library ? No visioning
    Require documents to be check out before they can be edited? No
    Anyone Come across this issue.??
    Regards, 
    Pavan.

    Hi, 
    I found the problem(Not the solution).
    I have set the default values from Column default value settings,
    the default values are getting set to the columns but the file still in checked-out mode.
    If I put the defult values to Library columns directly/Site column directly , Its working fine. - We found this work-around. 
    But still the issue Exists why its not working when I set Default values from Column default value settings
    and try to drag and drop documents. :-( 

  • On my macbook pro, where is the file for the original default desktop wallpaper? ...and if i replace this will it change the default wallpaper?

    Whenever I lock my screen on my mac (by closing the lid) the login screen I see on reopening my computer is a faded version of my desktop image (which is normal, and fine) however when I close my laptop while it's in fullscreen mode (when I'm using a web browser or other application in full screen) the lock screen displays the default desktop image, which is what i'm trying to change. My macbook has always done this.
    My computer is running Mac OS X version 10.7.3
    I've been looking for a way to change the default wallpaper on my mac, so that when i lock my screen in full screen mode the lock screen displays my selected wallpaper image (the same one as is on my desktop) instead of the default (andromeda galaxy). Can anyone please provide me with the location of the default image file (if it's even accessible) or maybe even provide me with a way to fix this? Any help is greatly appreciated!

    Hi Mr. Wog,
    My guess is that once you see an estimate for replacement for hundreds of dollars, those scratches won't look too bad anymore. There are products to cover the outer casing, and some people put stickers on, or even paint (I don't recommend either, but ymmv). Good luck.

  • Can i decide where iTunes is to collect the files for the libary?

    I installed iTunes on my windows pc. It automatically collected the Music from the Music folder. Is there a way to decide where to collect from?

    A couple things. One, if you only want to be able to access/play from the XP main computer on your laptop, you can use iTunes sharing function and the main XP Home computer's library will show up on the laptop as a shared library that you can play. It is a read only connection so you won't be able to change anything, add anything, etc.
    If you instead wanted to move the library somewhere where both computers can have FULL read & write access to the same library, that will be a problem. Right now iTunes is not set up to handle this and two computers trying to write to the same iTunes database file is likely to cause conflicts and file corruption.
    You could set it up so both computer have their own database files to maintain their own library listing, but still have one location shared by both computers to store all the media files and share them. But you will manually have to update certain things on the other computer if you do stuff like add a CD on the first computer. E.g. you import a CD on computer A. The media files are on the shared folder/drive, but computer B will not automatically "see" them. You would then have to go to Computer B and File -> Add to Library... (or drag and drop) those new files to Library B to add them there as well. But at least both libraries are sharing the same media files and not doubling them up.
    Regards,
    Patrick

  • Accidently deleted the files for the dock

    Hey guys,
    i have accidently deleted the files in my dock folder and now icons on my dock are see through.
    i have tried do 'Killall Dock' in terminal but that did not help.
    any ideas?

    Open the Finder. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following:
    ~/Library/Preferences/com.apple.dock.plist
    Click Go then move the com.apple.dock.plist file to the Trash.
    Restart your Mac.

  • I have multiple iTunes libraries on TC. The file for the main library exists, but i cannot open it up. What should i do?

    The one I'm trying to open up is about 150GB, and it has someting like 9,000 songs. But I cant open it up, and I dont want to lose years of collected music. Please help!

    I too had this problem and have solved it. After upgrading to iTunes 10.4.1 (Running OS X 10.6.8) I could no longer select library files. Previously, I would launch iTunes with the option key down to trigger the "Choose Library" dialog box. I have three libraries, each of them stored in separate iTunes folder within my user:music folder. I would then double-click on a given folder to open it and then double-click on the library file. After the 10.4.1 upgrade the library files were grayed out (not selectable). The problem was resolved by changing what and how I selected. When the three iTunes folders were displayed I clicked once on a folder to select it (instead of double-clicking to open it) and then clicked the "open" button in the dialog box. This resulted was iTunes launched with the library file contained in that folder.

  • HT5090 i have a macbook pro and it will not let me open the file for the free download trail of final cut pro?  Do any one know why?

    can I use my macbook pro with final cut pro

    I believe there is a problem with the download system at the moment.
    Try later.

  • Outbound interface file for the employeesu0092 deduction information from the d

    How to Create an Outbound interface file for the employees’ deduction information from the different Payroll Companies.
    Thanks in advance.
    Regards
    vamsi.

    Hi,
    The requirement seems to be similar to the one posted in the link https://forums.oracle.com/thread/848476. Please check.

  • How to config Check Digits function module for Student Number Validation

    Hi SLCM Experts,
    In the SAP-SLCM, How to use check digits function module for validate student number.  Just only config it or need to customizing program.
    *Any idea to student number validation in SLCM?*
    Best Regards,
    Suvatchai K.

    Hi ,
    Can you expalin it further ?
    You configure the St. no in piq_matr . And set it  as external or internal no. range which suits your business .
    What is the validation you are looking for ?
    Regards
    Gajalakshmi

  • We just received our new mac and took it to the store to have the old files from our last computer transferred over.  Now we can't find all our files.  There was more then one user on the old machine.  How can we find the files from the other users?

    We need to find where the files for the other user on the computer are now located.  There were two other users on the old machine, which was taken into the store and ALL files were suppose to be transferred over to this computer. HELP!

    It appears what happened is the installer though it was looking at a empty drive and just went ahead and installed.
    I of course am assuming here you didn't use Disk Utility to format the drive first before installing, that would wipe out your files and programs for sure.
    So what to do, what to do.
    Well there is hope for you as long as the drive wasn't Filevaulted.
    I'll explain. When a hard drive writes data for the first time to a drive, it starts at the very top and works it's way down.
    When OS X was installed the first time, it was at the top of the drive, unless you upgraded then the upgraded OS X could have been written elsewhere.
    Now when you just reinstalled OS X, the new OS went on the top of the drive, overwriting any data that was there previously, so what was there you have lost forever which is about 8GB or so. If it was the previous OS there, then your more in luck because only the old OS X was overwritten.
    The remaining space on the drive still can have a copy of your files, provided it's not overwritten yet.
    It's because when a hard drive deletes data or reformats, it doesn't remove the data off the drive or overwrites it immediately, it's just made so it's SPACE is available for new files to be written there.
    So technically one can recover the deleted data off a non-encrypted/scrubbed hard drive with special software.
    The way it does this is it reads the 1's and 0's of the files themselves, and through a lot of figuring out, can tell what that file is and what it belongs too.
    So what you will have to do is this:
    Create a data recovery/undelete external boot drive
    or if you don't have the skills, then take it to a local PC/Mac tech and they can do a direct image of the drive and then you can run Data Rescue on it to rebuild your files.

  • This is an error from my HP scanner. How can I fix the problem? An error has occurred saving the file because it could not be written to. Check the properties for the file to make sure it is not read-only.

    I recently uploaded the Maverick operating system. I wanted to scan some things on my HP Printer/Scanner and could not . This is the error message I received: An  error has occurred saving the file because it could not be written to.   Check the properties for the file to make sure it is not read-only. I am a novice with the computer and have no one to help. I hope someone knows an easy fix.
    Thank you

    This worked for me:
    "Although it is not a 'fix' for the HP issue, I did find a workaround that helped me. In the Preferences Panel in MacOS X you can pull up the Printer/Scanner preferences and scan directly from OS X. I'd not known of this prior to posting here and it worked like a charm."
    "Of course, HP should still update their software, but it's good to know that Apple has it covered for them."
    I found it here:
    http://h30434.www3.hp.com/t5/Mac-Printing-and-Scanning/MAVERICKS-WONT-SCAN-HP-C3 09A/td-p/3052105

  • How can i get also the files in the root directory and how can i for testing add items of IEnumerable FTPListDetail to List string ?

    What i get is only the directories and files that in other nodes. But i have also files on the root directory and i never
    get them. This is a screenshot of my program after i got the content of my ftp. I'm using treeView to display my ftp content:
    You can see two directories from the root but no files on the root it self. And in my ftp server host i have files in the root direcory.
    This is the method i'm using to get the directory listing:
    public IEnumerable<FTPListDetail> GetDirectoryListing(string rootUri)
    var CurrentRemoteDirectory = rootUri;
    var result = new StringBuilder();
    var request = GetWebRequest(WebRequestMethods.Ftp.ListDirectoryDetails, CurrentRemoteDirectory);
    using (var response = request.GetResponse())
    using (var reader = new StreamReader(response.GetResponseStream()))
    string line = reader.ReadLine();
    while (line != null)
    result.Append(line);
    result.Append("\n");
    line = reader.ReadLine();
    if (string.IsNullOrEmpty(result.ToString()))
    return new List<FTPListDetail>();
    result.Remove(result.ToString().LastIndexOf("\n"), 1);
    var results = result.ToString().Split('\n');
    string regex =
    @"^" + //# Start of line
    @"(?<dir>[\-ld])" + //# File size
    @"(?<permission>[\-rwx]{9})" + //# Whitespace \n
    @"\s+" + //# Whitespace \n
    @"(?<filecode>\d+)" +
    @"\s+" + //# Whitespace \n
    @"(?<owner>\w+)" +
    @"\s+" + //# Whitespace \n
    @"(?<group>\w+)" +
    @"\s+" + //# Whitespace \n
    @"(?<size>\d+)" +
    @"\s+" + //# Whitespace \n
    @"(?<month>\w{3})" + //# Month (3 letters) \n
    @"\s+" + //# Whitespace \n
    @"(?<day>\d{1,2})" + //# Day (1 or 2 digits) \n
    @"\s+" + //# Whitespace \n
    @"(?<timeyear>[\d:]{4,5})" + //# Time or year \n
    @"\s+" + //# Whitespace \n
    @"(?<filename>(.*))" + //# Filename \n
    @"$"; //# End of line
    var myresult = new List<FTPListDetail>();
    foreach (var parsed in results)
    var split = new Regex(regex)
    .Match(parsed);
    var dir = split.Groups["dir"].ToString();
    var permission = split.Groups["permission"].ToString();
    var filecode = split.Groups["filecode"].ToString();
    var owner = split.Groups["owner"].ToString();
    var group = split.Groups["group"].ToString();
    var filename = split.Groups["filename"].ToString();
    var size = split.Groups["size"].Length;
    myresult.Add(new FTPListDetail()
    Dir = dir,
    Filecode = filecode,
    Group = group,
    FullPath = CurrentRemoteDirectory + "/" + filename,
    Name = filename,
    Owner = owner,
    Permission = permission,
    return myresult;
    And then this method to loop over and listing :
    private int total_dirs;
    private int searched_until_now_dirs;
    private int max_percentage;
    private TreeNode directories_real_time;
    private string SummaryText;
    private TreeNode CreateDirectoryNode(string path, string name , int recursive_levl )
    var directoryNode = new TreeNode(name);
    var directoryListing = GetDirectoryListing(path);
    var directories = directoryListing.Where(d => d.IsDirectory);
    var files = directoryListing.Where(d => !d.IsDirectory);
    total_dirs += directories.Count<FTPListDetail>();
    searched_until_now_dirs++;
    int percentage = 0;
    foreach (var dir in directories)
    directoryNode.Nodes.Add(CreateDirectoryNode(dir.FullPath, dir.Name, recursive_levl+1));
    if (recursive_levl == 1)
    TreeNode temp_tn = (TreeNode)directoryNode.Clone();
    this.BeginInvoke(new MethodInvoker( delegate
    UpdateList(temp_tn);
    percentage = (searched_until_now_dirs * 100) / total_dirs;
    if (percentage > max_percentage)
    SummaryText = String.Format("Searched dirs {0} / Total dirs {1}", searched_until_now_dirs, total_dirs);
    max_percentage = percentage;
    backgroundWorker1.ReportProgress(percentage, SummaryText);
    percentage = (searched_until_now_dirs * 100) / total_dirs;
    if (percentage > max_percentage)
    SummaryText = String.Format("Searched dirs {0} / Total dirs {1}", searched_until_now_dirs, total_dirs);
    max_percentage = percentage;
    backgroundWorker1.ReportProgress(percentage, SummaryText);
    foreach (var file in files)
    TreeNode file_tree_node = new TreeNode(file.Name);
    file_tree_node.Tag = "file" ;
    directoryNode.Nodes.Add(file_tree_node);
    numberOfFiles.Add(file.FullPath);
    return directoryNode;
    Then updating the treeView:
    DateTime last_update;
    private void UpdateList(TreeNode tn_rt)
    TimeSpan ts = DateTime.Now - last_update;
    if (ts.TotalMilliseconds > 200)
    last_update = DateTime.Now;
    treeViewMS1.BeginUpdate();
    treeViewMS1.Nodes.Clear();
    treeViewMS1.Nodes.Add(tn_rt);
    ExpandToLevel(treeViewMS1.Nodes, 1);
    treeViewMS1.EndUpdate();
    And inside a backgroundworker do work how i'm using it:
    var root = Convert.ToString(e.Argument);
    var dirNode = CreateDirectoryNode(root, "root", 1);
    e.Result = dirNode;
    And last the FTPListDetail class:
    public class FTPListDetail
    public bool IsDirectory
    get
    return !string.IsNullOrWhiteSpace(Dir) && Dir.ToLower().Equals("d");
    internal string Dir { get; set; }
    public string Permission { get; set; }
    public string Filecode { get; set; }
    public string Owner { get; set; }
    public string Group { get; set; }
    public string Name { get; set; }
    public string FullPath { get; set; }
    Now the main problem is that when i list the files and directories and display them in the treeView it dosen't get/display
    the files in the root directory. Only in the sub nodes.
    I will see the files inside hello and stats but i need also to see the files in the root directory.
    1. How can i get and list/display the files of the root directory ?
    2. For the test i tried to add to a List<string> the items in var files to see if i get the root files at all.
       This is what i tried in the CreateDirectoryNode before it i added:
    private List<string> testfiles = new List<string>();
    Then after var files i did:
    testfiles.Add(files.ToList()
    But this is wrong. I just wanted to see in testfiles what items i'm getting in var files in the end of the process.
    Both var files and directoryListing are IEnumerable<FTPListDetail> type.
    The most important is to make the number 1 i mentioned and then to do number 2.

    Risa no.
    What i mean is this. This is a screenshot of my ftp server at my host(ipage.com).
    Now this is a screenshot of my program and you can see that in my program i have only the directories hello stats test but i don't have the files in the root: htaccess.config swp txt 1.txt 2.png....all this files i don't have it on my treeView.
    What i want it to be is that on my program on the treeView i will also display the files like in my ftp server.
    I see in my program only the directories and the files in the directories but i don't see the files on the root directory/node.
    I need it to be like in my ftp server i need to see in my program the htaccess 1.txt 2.png and so on.
    So what i wrote in my main question is that in the var files i see this files of the root directory i just don't know to add and display them in my treeView(my treeView is treeViewMS1).
    I know i checked in my program in the method CreateDirectoryNode i see in the first iteration of the recursive that var files contain this root files i just dont know how to add and display them in my treeView.
    On the next iterations when it does the recursive it's adding the directories hello stats test and the files in this directories but i need it to first add the root files.

Maybe you are looking for