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.

Similar Messages

  • 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. :-( 

  • 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.

  • HT5312 How do I check my security answers for my ID.  I'm sure I put them the answers in correctly but Apple says I am wrong.  There seems to be no facility to check what answers Apple have.

    How do I check my security answers for my ID?  I'm sure I have put them in correctly but Apple says they are wrong.  There seems to be no facility to check what answers Apple has and I do  not have a rescue e-mail address.

    Read the article you linked

  • How do I add a PDF file for download to my iWeb page?

    How do I add a PDF file for download to my iWeb page?
    I have created one using Apples Pages program.
    Thanks!

    Hi-
    You need to create a text link to the file...
    On your page, type a word that you want to be the link... then select the word, and in the inspector pane, click the link tab (the arrow on the far right) and check "enable as hyperlink." Then choose "file" from the dropdown menu and a chooser box will open for you to locate the file on your hard drive.
    Choose the file by clicking "open" once it's located. Then the next time you publish, the file will be uploaded and linked to!
    Hope this helps... I think I got all the steps in there!

  • How I can check on the existence of a client ActiveX, so that if there is no download begins?

           
    How
    I can check on
    the existence of a client
    ActiveX, so that
    if there is no download begins?
    example:
    I want tocheck for:
    EditDocumentButton = new ActiveXObject "SharePoint.OpenDocuments.2");
    if (EditDocumentButton) {
    EditDocumentButton.EditDocument (strDocument);
    and ifthere is nowarning andlaunch aURLto startthe
    download
    as is?
    thanks

    Hello,
    This control is defined in the OWSSUPP.dll file, a dynamic-link library (DLL) that is installed in the %ProgramFiles%\Microsoft Office\Office14\ directory on the client computer during Microsoft Office Setup. (Read
    full article on MSDN)
    Based on my understanding this below link can help you to open file if activex is not found.
    http://blog.scosby.com/post/2011/08/22/Remotely-Opening-Office-Files-From-SharePoint-2010.aspx
    Now to detect the activex please look this code:
    http://www.andrewshough.com/sharepoint/multiple-office-version-support-in-sharepoint-services-3-0/
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How do you prepare a PDF file for 4 signatures & dates?

    How do you prepare a PDF file for 4 signatures & dates?

    Hi,
    You can achieve this by using text tags. EchoSign Text Tags are specially formatted text that can be placed anywhere within the content of your
    document specifying the location, size, type of fields such as signature and initial fields, check boxes, radio buttons and form fields, and advanced optional field processing rules. Text Tags can also be used as names of PDF Form fields.
    Text Tags are converted into EchoSign form fields when the document is sent for signature or uploaded to the EchoSign Document Library. EchoSign Text Tags can be placed in any document type such as PDF, Microsoft Word, PowerPoint, Excel and text files (.txt, .rtf)
    Please refer to page 5 ( date) and 10 (signature) of the Creating Adobe Echosign Forms With Text Tags.The document can be found here
    Thanks,
    Jat

  • 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

  • How can I convert an .m1v file for my MacBook to be able to play it?

    Hi!
    How can I convert an .m1v file for my MacBook to be able to play it?
    I tried numerous apps from the app store, but they failed
    Thanks!

    Hello:
    Rather than try to buy a box, I suggest you take the computer to a FedEx or UPS store.  They will wrap and safely package the device for a reasonable cost (I have shipped two iMacs this way).
    Barry

  • How do I change the color of font in a fillable form in Adobe Reader? How can I check if the writer of the document has given permission to edit color and not just add text?

    How do I change the color of font in a fillable form in Adobe Reader? How can I check if the writer of the document has given permission to edit color and not just add text? Please help! I'm technologically challenged.

    Most forms (99% or more) are created for simple text input, where you cannot change anything.
    The creator of the form could allow Rich Text input (which allows you to change font, text size, color, etc.), but frankly I have never seen such a form, and I wouldn't know how they look.  But I'm sure they would show some kind of controls to alter the text appearance.

  • I had bought a Mac PRE 13 in,  in 7th Sep,but it is 15th Sep today,how doesn't my computer come to me? So,how can I check where the computer is at this moment?

    I had bought a Mac PRE 13 in,  in 7th Sep in the online Apple Store,
    but it is 15th Sep today,how doesn't my computer come to me yet?
    So,how can I check where the computer is at this moment?

    Call the online Apple Store.  You should have received an email with a FedEx tracking # if you are in the US.
    There is nothing anyone can do for you on a message board!  We are all end users just like yourself.

  • How do I "run" an ldt file for Service Contracts?

    Ref. BugNo. 4450150
    How do I “run” an .ldt file for Service Contracts?
    Do I use FNDLOAD and if so is this the way to do it
    FNDLOAD apps/apps_password 0 Y UPLOAD @FND:OKS_TOP/patch/115/import/US/okskfinv.ldt
    Thanks

    See Note:142483.1
    Subject: How to Define the ORACLE_SERVICE_ITEM_FLEXFIELD

  • Using PL/SQL Block how do you check if the character string value is aA-zZ

    I have a pl/sql block that I prompt the user for password and I load the string into an array and interrogate each index(entry) to see if it is "aA-zZ".
    How can I check if the value entered is Alpha.
    I need to do the same for number and Special character. Please advise. Thanks

    Thanks to All of you. The desired solution to verify complex password that enforces desired security policies. An example that I am using is the following:
    IF NOT (regexp_like(sz_complex_pw,'[[:digit:]]') AND regexp_like(sz_complex_pw,'[[:alpha:]]') AND regexp_like(sz_complex_pw,'[[:punct:]]') AND regexp_like(sz_complex_pw,'[[:upper:]]'))
    THEN
    --dbms_output.put_line('Password is not complex...');
    RAISE sz_err_pw_complex; -- Complex Password is not compliant
    END IF;
    DBMS_OUTPUT.PUT_LINE('Complex Password is in Compliance...');
    EXCEPTION
    This was helpful to me and I trust others will find helpful.
    Edited by: yakub21 on Oct 16, 2010 9:05 PM

  • How do I make a plot file for AutoCad to produce a PDF

    How do i make a plot file for AutoCad to produce a PDF

    Moving this discussion to the Creating, Editing, & Exporting PDFs forum.

  • How to modify & use Printer Defination files for Character Mode Report

    How can use & modify printer defination files for changing formats & orientation in character mode report. I donot know how to use printer defination files I tried to set the system parameter (Desformat) but it doesn't work.

    I m also faced same problem that u face,
    If u want to make character mode report so plz follow these instructions:
    1. Set the properties of Report Name Node in Character Cell is Yes.
    2. Change the mode of the System Parameter Mode is Character.
    3. Goto the Layout---> Main Section Properties and set the Character Report Width and Height like 132 and 66
    4. Create Formula Column and write this code "RETURN(CHR(14));"
    5. Goto Layout Model and map this formula column into Header of the Body Like If ur Company Name is "ABC COMPANY" attached with field and map Formula Column.
    5. Goto Printer Definition File DFLT.prt open in NotePad and set width and hieght that u set in Main Section of Report.
    6. At Last u Run the Report with Some System Parameter or User Parameter and View as Character Mode Report.
    In My Case I used EPSON LQ2180 Printer
    So, U Ask More Qustion and u have more knowledge About character mode report Plz Mail me at this address.
    Shahid Shafi
    [email protected]

Maybe you are looking for