BAPI_DOCUMENT_CREATE2 cv01n, cv03n, cv04n

I have a problem my program execute correctly the BAPI_DOCUMENT_CREATE2 without a return message but no document is
created and I am using the bapi_transaction_commit.
But documents are created correctly in CV04N.
They are nonexistent in CV03N.
Edited by: KhalidTaibi on Aug 25, 2009 3:37 PM

Hi
I am having  the same problem.
The return code from bapi is blank, so all ok there.
the commit works ok - , so all ok there
I have also tried the check in procedure, but when I try to access the document in CV04N i get the message, 26/136, 'Document XXX cannot be accessed'. -
Can anyone provide any help
Thanks
Tony

Similar Messages

  • How To send DMS(Documents cv01,cv03n,cv04n) from one sap system to othersap

    Hello Experts,
    I am working Document management system(CV01,cv02n,cv03n,cv04n)...
    I want to send the documents from one SAP system to Other SAP system
    Using ALE/Idocs....
    Please Help on this any sample programs....or function module....
    Thanks
    Preethi

    Hello,
    Please refer to the thread:
    How To send DMS(Documents cv01,cv03n,cv04n) from one sap system to othersap
    Best Regards, Murugesh AS

  • Can we add search filters to CV04N?

    Hi,
    What i am being asked to do is add different search filters to CV04N. Is it possible to add a search field at CV04N?
    My customers case: "We use CV04N to track vehicle software editions. What we need is a screen that we can track software edition documents according to vehicle and date and filter them. I have to be able to give a report like this:
    ___Vehicle type | Vehicle code | Document Type | Document | Output date__ | From date | etc..___
    _______A______|A001_______ | SFT__________ | S001____ | DD/MM/YY_ | DD/MM/YY| etc.._
    _______A______|A001_______ | SFT__________ | S002____ | DD/MM/YY_ | DD/MM/YY| etc.._
    _______A______|A002_______ | SFT__________ | S001____ | DD/MM/YY_ | DD/MM/YY| etc.._
    _______B______|B001_______ | SFT__________ | S002____ | DD/MM/YY_ | DD/MM/YY| etc.._
    When i double click to the document field at the report, i can reach Vehicle code (Equipment master column) at Object Links tab. But i have to double click and see the vehicle code then go back and see the date etc."
    - Is it possible to add Vehicle type and vehicle code to the basic report of CV04N?
    - Or what i have to do is create another report with a Z tcode?
    Thanks in advance.

    Hai...
    Your requirement is very genuine it is already availabale with SAP standards it self, but you have to do little bit configuration,
    you can follow the following steps
    1)  create a class with the tcode CL02, should have all the  attributres like  Vehical code, vehical type etc, by choosing proper characteristics.
    2) Attached this class to that document type in the configuration part.
    3) Then you will see Additional Tab in the cv01n, CV02N, CV03N & CV04N screen as soon as you select that document type.
    4) Automatically it will come in the output of CV04N.
    5) Create you own screen variant for that output
    you object will fulfill. Revert if any problem exists.
    Cheers
    KHS

  • PDF document not open and SAP logon closed by CV04N,

    Hello,
    When I try to open the PDF document by transaction CV03N/CV04N, it's  crash the SAP login.
    Please give anybody solution for this issue to fix
    Thank
    Surya

    Hi Surya,
    is it the same with CV03 as well?
    Is it the same crash using Display Document WebUI? (if you have EhP5+)
    You can uninstall your Adobe Reader from your computer and download the latest version from here:
    https://get.adobe.com/hu/reader/
    Which SAP Logon version do you have? You may have to upgrade it too.
    Best regards
    Tamas

  • Hide Document Sturucture Field

    Hi Gurus
    How can we hide the document structure field in DMS tcodes (CV01N/ CV02N/ CV03N/ CV04N)
    Regards
    Harris

    Hi Harris,
    Please remove the transactions codes pertaining to Document structure from Authorization profiles viz
    CV11                 Create Document Structure
    CV12                 Change Document Structure
    CV13                 Display Document Structure
    This will disable the options atleast.
    Hope this helps.
    Regards,
    Deepak Kori

  • DMS Integration in ME23N

    Hi gyz,
    I have configured the document managment system successfully and I can use the functionality through cv01n,cv03n. Now how can i integrate it with ME23N so any document attach from me23n should upload in DMS...???

    Hi,
    You may refer link http://help.sap.com/printdocu/core/print46c/en/data/pdf/BCSRVARLSC/BCSRVARLSC.pdf
    Regards,
    Deepak Kori

  • Document Browser Tab is not coming in CV01N,CV02N,CV03N.

    Dear Expert,
                      can anyone guide me for getting Document Browser Tab in CV01N,CV02N,CV03N. i have activated the Browser flage in DCSWITCH(Browser ACL Customizing Switch).
    Regards
    Bhuwan Tiwari

    Hi Bhuwan
    Go to SPRO>DMS>Control Data>Activate Browsers and ACLS.
    Tick the relevant selection.
    When you go to CV01N and press Button Select Document Via ( Ctrl + F7 ) you get new browser .You can togle between two browsers.
    With Regards
    Mangesh Pande
    Edited by: MANGESH PANDE on May 11, 2009 7:57 AM

  • CV01N/CV02N/CV03N DMS to open Word .dot document. The macro is desabled.

    Hello everyone
    We have created a ".DOT" Word document containing (Visual Basic) commands to ask the user to enter 2 fields.
    When that is done, the user can press on buttons to print or cancel.
    We stored that document in the DMS (CV01N)
    The document is working perfectly when it is opened from the OS.
    But when it is open using the CV02N or CV03N the (Visual Basic) commands doesn't work. In fact the document is open but the macro, in the document, is not launched.
    When we are trying to execute the Visual Basic commands, Word indicate that the macros are desabled by SAP at the openning of the document.
    How can we specify to SAP to open the .dot document and enable the macros?
    Regards
    dstj

    hi,
    Check did u set Application type for change display print in Defin workstation application.
    Application type
    1.Display
    2.Change
    3. Print
    Also check  in Set office integegration field
    Set flag, Export
                 Doc data
                 Text
    Also check
    wiki page,
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/plm/office2007formatsinDMS
    http://help.sap.com/saphelp_erp60_sp/helpdata/EN/e9/0be775408e11d1893b0000e8323c4f/frameset.htm
    http://help.sap.com/saphelp_erp60_sp/helpdata/EN/e9/0be775408e11d1893b0000e8323c4f/frameset.htm
    Benakaraj ES

  • Finding the BOR for CV01n,CV02n,CV03n

    Can anyone please tell me how can i find the BOR objects related to the transactions CV01n,CV02n,CV03n??

    take help of the development class to which it belongs search criteria of BOR gives u specific to a development class.
    Hope That Helps
    Anirban M.

  • BAPI_DOCUMENT_CREATE2 Drawing version Upload (CV01n)

    Hi All,
    While running the BAPI_DOCUMENT_CREATE2  the Documents are  not attaching from Presentation Server but Drawing Version is creating . This is my code
                    lt_files-storagecategory = 'SAP-SYSTEM'.
                    lt_files-docfile = 'C:\testfile.doc'.
                    lt_files-wsapplication = 'DOC'.
    CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
    EXPORTING: documentdata = ls_doc
    *pf_ftp_dest = 'SAPFTPA'
    IMPORTING: documenttype = lf_doctype
    documentnumber = lf_docnumber
    documentpart = lf_docpart
    documentversion = lf_docversion
    return = ls_return
    TABLES: documentdescriptions = lt_drat
    objectlinks = lt_drad
    documentfiles = lt_files.
    Drawing Version is Creating but the file is not creating ..
    Plz share ur ideas on this .

    As I could see in other threads, the file should be located on the application server as you use SAP-SYSTEM

  • Need to change the status indicator in CV01n,CV02n and CV03n

    Hi,
        When i am creating the document in CV01n,if the status set to Release then the status indicator need to change in to green.

    Transaction Code - CV01                     Create Document Info Record
    Exit Name           Description
    CV000001            Check-in enhancement for document management
    CV110001            DMS: Enhancements for DMS Dialog (FB: CV110)
    CVDS0001            User exits for ALE DMS (DOCMAS)
    No of Exits:          3
    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.sap-img.com/ab038.htm
    http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
    Rewards if useful.........
    Minal

  • Create document using BAPI_DOCUMENT_CREATE2

    Hi Experts,
    i am using BAPI_DOCUMENT_CREATE2 to create document like transaction CV01N. When i create it through CV01N, it is fine and I can see the attached file.
    but when i run my program, the document is created without attached file. can anyone have some solutions for me? following is the code.
    REPORT ztest_fw.
    DATA:
        lv_docnum           TYPE BAPI_DOC_AUX-DOCNUMBER,
        LW_DOCDATA    TYPE BAPI_DOC_DRAW2,
        LW_RETURN       TYPE BAPIRET2,
        LW_DSP             TYPE BAPI_DOC_DRAT,
        LW_OBJLINK      TYPE BAPI_DOC_DRAD,
        LW_DOCFILE      TYPE BAPI_DOC_FILES2,
        LT_DSP              TYPE STANDARD TABLE OF BAPI_DOC_DRAT,
        LT_OBJLINK      TYPE STANDARD TABLE OF BAPI_DOC_DRAD,
        LT_DOCFILE      TYPE STANDARD TABLE OF BAPI_DOC_FILES2.
    START-OF-SELECTION.
       CLEAR LW_DOCDATA.
        LW_DOCDATA-DOCUMENTTYPE = 'DRW'.
        LW_DOCDATA-documentversion = '00'.
        LW_DOCDATA-documentpart    = '000'.
        LW_DOCDATA-laboratory     = '001'.
       CLEAR LW_DSP.
        LW_DSP-DESCRIPTION = 'Test created by Fang wei-SD'.
       LW_DSP-LANGUAGE = 'E'.
        APPEND LW_DSP TO LT_DSP.
       LW_DOCFILE-DOCFILE = 'D:\Function study\Inbound & Outbound IDoc user exits.pdf'.
       LW_DOCFILE-ORIGINALTYPE     = '1'.
        LW_DOCFILE-STORAGECATEGORY  = 'SAP-SYSTEM'.
       LW_DOCFILE-STORAGECATEGORY  = 'DMS_C1_ST'.
        LW_DOCFILE-WSAPPLICATION    = 'PDF'.
        LW_DOCFILE-LANGUAGE         = 'E'.
        LW_DOCFILE-CHECKEDIN        = 'X'.
        LW_DOCFILE-ACTIVE_VERSION   = 'X'.
        APPEND LW_DOCFILE TO LT_DOCFILE.
       CLEAR LW_OBJLINK.
        LW_OBJLINK-OBJECTTYPE = 'IFLOT'.
        LW_OBJLINK-OBJECTKEY  = '1350'.
        LW_OBJLINK-DOCUMENTDIRECTION = 'X'.
        APPEND LW_OBJLINK TO LT_OBJLINK.
        CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
          EXPORTING
            DOCUMENTDATA         = LW_DOCDATA
          IMPORTING
            DOCUMENTNUMBER = lv_docnum
            RETURN               = LW_RETURN
          TABLES
            DOCUMENTDESCRIPTIONS = LT_DSP
            OBJECTLINKS          = LT_OBJLINK
            DOCUMENTFILES        = LT_DOCFILE.
        IF LW_RETURN-TYPE CA 'EA'.
          CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
          MESSAGE  ID LW_RETURN-ID
                          TYPE LW_RETURN-TYPE
                          NUMBER LW_RETURN-NUMBER.
        ELSE.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
             EXPORTING
               WAIT          = 'X'
          CLEAR lw_return.
          CALL FUNCTION 'BAPI_DOCUMENT_CHECKIN2'
            EXPORTING
              DOCUMENTTYPE            = 'DRW'
              DOCUMENTNUMBER          = lv_docnum
              DOCUMENTPART            = '000'
              DOCUMENTVERSION         = '00'
           IMPORTING
             RETURN                  = lw_return
            TABLES
              DOCUMENTFILES           = lt_docfile
          IF LW_RETURN-TYPE CA 'EA'.
            CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
            MESSAGE  ID LW_RETURN-ID
                            TYPE LW_RETURN-TYPE
                            NUMBER LW_RETURN-NUMBER.
          ELSE.
            CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
             EXPORTING
               WAIT          = 'X'
            WRITE: / 'document number = ', lv_docnum.
          ENDIF.
        ENDIF.

    Hi Wei,
    based on your description I would kindly ask you to check if the flag 'USE KPRO' is set for the document type 'DRW'. Because as storage category you hand over the value 'SAP-SYSTEM' and this is not a KPRO storage category. So if the 'USE KPRO' flag is set then this original won't be displayed in CV03N.
    Is there maybe a difference in display between transaction CV02N and CV03N?
    Best regards,
    Christoph

  • CV04N Dump in Object Link

    Hi,
    I have developed Object Link to ML81N. This linkage is working fine.
    when i go to CV04n by entering the Document type and then click on Object link and choose the tab as service entry sheet its going for dump.
    Dump history shows that Dynpro does not exist
    "DYNPRO_NOT_FOUND" " "
    "SAPLCV100" or "LCV100O01"
    "INIT_404"
    I hv included my custome screen in SAPLCV130. i dnt hv any issue in cv01n, cv02n,cv03n.
    Plz help me to resolve this issue.
    Regards
    Janani.

    Hi Janani,
    This error is typically observed incase a object maintained for one of the document types uses a non-existing screen number.
    This behavior can be corrected by entering the right screen number or removing the object in the customizing.
    You may find more details in the wiki links below:
    http://wiki.sdn.sap.com/wiki/display/PLM/PerformanceinCV04N-Timeout+Dump
    http://wiki.sdn.sap.com/wiki/display/PLM/DYNPRO_NOT_FOUNDDumpin+CV04N
    Regards,
    Pradeepkumar Haragoldavar

  • CV03N

    Dear Friends
    I'm able to upload the file using CV01N & I can change using CV02N & I can search using CV04N.
    But CV03N is not working fine with me.
    Let me give  you the details too:
    I run the transaction CV03N. In the next screen I enter the document name, type etcc. System goes to next screen where I can the Document description, document status etc..
    But in the "Originals" under "Document Data" tab, I can't the file.
    Am I missing any config? Why is that I can not see the file in the "Original" under "Document Data" tab?
    Any suggestion, inputs are welcome. I appreciate it.
    Thanks

    Hi..
    mostly some authorization may be missing..
    go inside cv03n, click on originals.. then open a new session and give su53 t-code.
    see wat it says
    check whether any authorisation is missing and if yes, get the same from basis team.
    regards
    aby

  • I am trying to save a DMS File through File upload UI element to CV01n Transactions....It works fine for .TXT file but other files it is not downloading coorectly and file is getting damaged

    Hi, I am downloading DMS file using following code and the file contents are getting damaged and cannot be retieved back. I am also getting hard time to open a DMS file in seperate browser.
    Can anybody please help me.
      TYPES : BEGIN OF ty_ts_raw_line,
    *                 line TYPE sdokcntbin ,
                line(2550) TYPE x,
               END OF ty_ts_raw_line.
      DATA: ls_documentdata TYPE bapi_doc_draw2,
            lv_doctype TYPE   bapi_doc_aux-doctype,
            lv_docnumber TYPE bapi_doc_aux-docnumber,
            lv_documentpart TYPE bapi_doc_aux-docpart,
            lv_documentversion TYPE bapi_doc_aux-docversion,
            ls_return TYPE bapiret2,
            gt_bapi_doc_files2 TYPE TABLE OF bapi_doc_files2,
            gs_bapi_doc_files2 LIKE LINE OF gt_bapi_doc_files2,
            lo_nd_nd_cost_rate TYPE REF TO if_wd_context_node,
            lt_nd_cost_rate TYPE wd_this->elements_nd_cost_rate,
            ls_nd_cost_rate TYPE wd_this->element_nd_cost_rate,
            lv_string TYPE string,
            lv_temp TYPE string,
            lv_input_file_name TYPE string,
            lv_size TYPE i ,
            lt_bindata TYPE STANDARD TABLE OF ty_ts_raw_line,"  STANDARD TABLE  OF zst_ts_raw_line,
            ls_bindata TYPE  sdokcntbin,
            ls_drao TYPE drao,
            lt_drao TYPE TABLE OF drao,
            lt_files TYPE cvapi_tbl_doc_files,
            ls_files TYPE cvapi_doc_file,
            ls_api_ctrl TYPE cvapi_api_control,
            ls_message TYPE messages,
            lv_dappl TYPE draw-dappl,
            lv_filename TYPE char200,
            lv_filename_draw_filep TYPE draw-filep,
            lv_doc_succ TYPE c,
            lv_tabix TYPE sy-tabix,
            lv_char_tabix(5) TYPE c,
    * get message manager
            lo_api_controller     TYPE REF TO if_wd_controller,
            lo_message_manager    TYPE REF TO if_wd_message_manager,
            lv_text TYPE string,
            lt_tabix TYPE STANDARD TABLE OF sytabix,
            lv_api_ctrl TYPE cvapi_api_control VALUE 'CV01N',
            lv_documentnumber TYPE draw-doknr,
            lt_drat TYPE TABLE OF dms_db_drat,
            ls_drat TYPE dms_db_drat.
      CONSTANTS: lc_cst(3) TYPE c VALUE 'CST',
                 lc_000(3) TYPE c VALUE '000',
                 lc_00(2) TYPE c VALUE '00',
                 lc_zng_test(8) TYPE c VALUE  'ZNG-TEST',
                 lc_desc(11)  TYPE c VALUE 'Cost Rate',
                 lc_test(4)  TYPE c VALUE 'Test',
    *             lc_file_path(31) TYPE c VALUE 'C:\FAKEPATH\COST_RATE_TABLE.TXT',
                 lc_x TYPE c VALUE 'X',
                 lc_blank TYPE c VALUE '',
                 lc_nd(2) TYPE c VALUE '&1'.
      FIELD-SYMBOLS <ls_wd_assist_mt_input> LIKE LINE OF wd_assist->mt_input.
      lo_api_controller ?= wd_this->wd_get_api( ).
      CALL METHOD lo_api_controller->get_message_manager
        RECEIVING
          message_manager = lo_message_manager.
    * navigate from <CONTEXT> to <ND_COST_RATE> via lead selection
      lo_nd_nd_cost_rate = wd_context->get_child_node( name = wd_this->wdctx_nd_cost_rate ).
    * @TODO handle non existant child
      IF lo_nd_nd_cost_rate IS NOT INITIAL.
        lo_nd_nd_cost_rate->get_static_attributes_table( IMPORTING table = lt_nd_cost_rate ).
      ENDIF.
      ls_documentdata-documenttype = lc_cst.
      ls_documentdata-documentnumber = lc_cst.
      ls_documentdata-documentversion = lc_00.
      ls_documentdata-documentpart  = lc_000.
      ls_documentdata-description  = lc_desc.
    *  ls_documentdata-
    *  ls_drat-dktxt = lc_desc.
    *  append ls_drat to lt_drat.
    *  clear ls_drat.
    *  lv_api_ctrl = 'CV01N'.
      LOOP AT lt_nd_cost_rate INTO ls_nd_cost_rate WHERE row_index IS NOT INITIAL.
        lv_tabix = sy-tabix.
    *           CALL FUNCTION 'CVAPI_DOC_CREATE'
    *         EXPORTING
    *           ps_draw              = ls_documentdata " wa_documentfiles
    *           ps_api_control       = lv_api_ctrl
    *         IMPORTING
    *           psx_message          = ls_message
    *           pfx_doknr            = lv_documentnumber.
    **         TABLES
    **           pt_drat_x            = it_drat.
        CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
          EXPORTING
            documentdata    = ls_documentdata
            defaultclass    = 'X'
          IMPORTING
            documenttype    = lv_doctype
            documentnumber  = lv_docnumber
            documentpart    = lv_documentpart
            documentversion = lv_documentversion
            return          = ls_return.
        IF ls_return-type CA 'EA'.
          ROLLBACK WORK.
        ELSE.
          COMMIT WORK.
        ENDIF.
        LOOP AT wd_assist->mt_input ASSIGNING <ls_wd_assist_mt_input> WHERE row_index = ls_nd_cost_rate-row_index.
          CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
            EXPORTING
              buffer        = <ls_wd_assist_mt_input>-file_data
            IMPORTING
              output_length = lv_size
            TABLES
              binary_tab    = lt_bindata.
          lv_filename_draw_filep = <ls_wd_assist_mt_input>-filename.
          WHILE lv_filename_draw_filep CA '\'.
            SPLIT lv_filename_draw_filep AT '\'
            INTO lv_temp lv_filename_draw_filep.
          ENDWHILE.
          LOOP AT lt_bindata INTO ls_bindata.
            CLEAR ls_drao.
            ls_drao-orblk = ls_bindata-line.
            ls_drao-orln = lv_size.
            ls_drao-dokar = lv_doctype.
            ls_drao-doknr = lv_docnumber.
            ls_drao-dokvr = lv_documentversion.
            ls_drao-doktl = lv_documentpart.
            ls_drao-appnr = '1'.
            APPEND ls_drao TO lt_drao.
            CLEAR ls_drao.
          ENDLOOP.
          CONDENSE lv_input_file_name.
    *      lv_input_file_name = 'Test.txt'.
          CALL FUNCTION 'CV120_DOC_GET_APPL'
            EXPORTING
              pf_file   = lv_filename_draw_filep
            IMPORTING
              pfx_dappl = lv_dappl.
          ls_files-appnr = '1'.
          ls_files-dappl = lv_dappl.
          ls_files-filename = lv_filename_draw_filep.
          ls_files-updateflag = 'I'.
          ls_files-langu = sy-langu.
          ls_files-storage_cat = 'SAP-SYSTEM'.
          ls_files-description = lv_filename_draw_filep..
          APPEND ls_files TO lt_files.
          CLEAR ls_files.
          ls_api_ctrl-tcode = 'CV01N'.
          CALL FUNCTION 'CVAPI_DOC_CHECKIN'
            EXPORTING
              pf_dokar           = lv_doctype
              pf_doknr           = lv_docnumber
              pf_dokvr           = lv_documentversion
              pf_doktl           = lv_documentpart
              ps_api_control     = ls_api_ctrl
              pf_content_provide = 'TBL'
              pf_http_dest       = 'SAPHTTPA'
              pf_ftp_dest        = 'SAPFTPA'
            IMPORTING
              psx_message        = ls_message
            TABLES
              pt_files_x         = lt_files
              pt_content         = lt_drao.
          IF ls_message-msg_type CA 'EA'.
            lv_doc_succ = lc_blank.
          ELSE.
            COMMIT WORK.
            lv_doc_succ = lc_x.
            CLEAR lv_text .
            lv_text = <ls_wd_assist_mt_input>-comments.
          ENDIF.
          CLEAR: ls_api_ctrl,ls_message,lt_files[],lt_drao[].
        ENDLOOP.
        IF lv_doc_succ = lc_x.
          ls_nd_cost_rate-dokar = lv_doctype.
          ls_nd_cost_rate-doknr = lv_docnumber.
          ls_nd_cost_rate-doktl = lv_documentpart.
          ls_nd_cost_rate-dokvr = lv_documentversion.
          ls_nd_cost_rate-comments = lv_text.
          MODIFY lt_nd_cost_rate FROM ls_nd_cost_rate INDEX lv_tabix TRANSPORTING dokar doknr doktl dokvr comments.
        ELSE.
          APPEND lv_tabix TO lt_tabix.
        ENDIF.
        CLEAR ls_nd_cost_rate.
      ENDLOOP.
    I am also having hardtime to show DMS file on browser.

    Hi I've done DMS Creation like below code. Just check it .
          LS_DOC-DOCUMENTTYPE    = LW_DMS_APP-DOCUMENTTYPE.
          LS_DOC-DOCUMENTVERSION = LW_DMS_APP-DOCUMENTVERSION.
          LS_DOC-DOCUMENTPART    = LW_DMS_APP-DOCUMENTPART.
          LS_DOC-STATUSEXTERN    = LW_DMS_APP-STATUSEXTERN.
          LS_DOC-LABORATORY      = '  '.
    CONCATENATE WD_THIS->LW_REQ-BUKRS LS_DMS-REQ_NO LS_DMS-CR_YR INTO LW_OBJKEY SEPARATED BY '\'.
          LW_DRAD-OBJECTKEY = LW_OBJKEY.
          LW_DRAD-OBJECTTYPE = 'ZAPR_REQ'.
          APPEND LW_DRAD TO LT_DRAD.
          LW_DRAT-LANGUAGE = SY-LANGU.
          LW_DRAT-DESCRIPTION = LS_STRIPPEDNAME.
          APPEND LW_DRAT TO LT_DRAT.
          CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
            EXPORTING
              DOCUMENTDATA         = LS_DOC
            IMPORTING
              DOCUMENTTYPE         = LF_DOCTYPE
              DOCUMENTNUMBER       = LF_DOCNUMBER
              DOCUMENTPART         = LF_DOCPART
              DOCUMENTVERSION      = LF_DOCVERSION
              RETURN               = LS_RETURN
            TABLES
              DOCUMENTDESCRIPTIONS = LT_DRAT
              OBJECTLINKS          = LT_DRAD.
    *--------Creating DMS Document Using BAPI-----------------*
          IF LS_RETURN-TYPE NA 'EA'.
            CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
              EXPORTING
                WAIT = 'X'.
          LS_DRAW-DOKAR = LW_DMS_APP-DOCUMENTTYPE.
          LS_DRAW-DOKVR = LW_DMS_APP-DOCUMENTVERSION.
          LS_DRAW-DOKTL = LW_DMS_APP-DOCUMENTPART.
          LS_DRAW-DWNAM = SY-UNAME.
          LS_DRAW-DOKST = LW_DMS_APP-STATUSEXTERN.
          LV_STORAGE_CAT = LW_DMS_APP-STORAGECATEGORY.
          LS_API_CONTROL-TCODE = 'CV01N'.
          IF LF_DOCNUMBER IS NOT INITIAL.
            CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
              EXPORTING
                BUFFER        = LS_DMS_FILE-FILE_CTGRY
              IMPORTING
                OUTPUT_LENGTH = LV_SIZE
              TABLES
                BINARY_TAB    = LT_BINDATA.
            LOOP AT LT_BINDATA INTO LS_BINDATA.
              CLEAR LS_DRAO.
              LS_DRAO-ORBLK = LS_BINDATA-LINE.
              LS_DRAO-ORLN  = LV_SIZE.
              LS_DRAO-DOKAR = LS_DRAW-DOKAR.
              LS_DRAO-DOKNR = LF_DOCNUMBER.
              LS_DRAO-DOKVR = LS_DRAW-DOKVR.
              LS_DRAO-DOKTL = LS_DRAW-DOKTL.
              LS_DRAO-APPNR = '1'.
              APPEND LS_DRAO TO LT_DRAO.
            ENDLOOP.
            CALL FUNCTION 'CV120_DOC_GET_APPL'
              EXPORTING
                PF_FILE   = LS_STRIPPEDNAME
              IMPORTING
                PFX_DAPPL = LS_FILES-DAPPL.
            LS_DRAW-FILEP = LS_STRIPPEDNAME.
            LS_DRAW-DAPPL = LS_FILES-DAPPL.
            LS_FILES-APPNR = '1'.
            LS_FILES-FILENAME = LS_STRIPPEDNAME.
            LS_FILES-UPDATEFLAG = 'I'.
            LS_FILES-LANGU = SY-LANGU.
            LS_FILES-STORAGE_CAT = LW_DMS_APP-STORAGECATEGORY. "'ZDMS_DI'.
            LS_FILES-DESCRIPTION = LS_STRIPPEDNAME.
            APPEND LS_FILES TO LT_FILES.
            CALL FUNCTION 'CVAPI_DOC_CHECKIN'
              EXPORTING
                PF_DOKAR           = LS_DRAW-DOKAR
                PF_DOKNR           = LF_DOCNUMBER
                PF_DOKVR           = LS_DRAW-DOKVR
                PF_DOKTL           = LS_DRAW-DOKTL
                PS_API_CONTROL     = LS_API_CONTROL
                PF_CONTENT_PROVIDE = 'TBL'
              IMPORTING
                PSX_MESSAGE        = LS_MESSAGE
              TABLES
                PT_FILES_X         = LT_FILES
                PT_CONTENT         = LT_DRAO.
            IF NOT LS_MESSAGE-MSG_TYPE CA 'EA' AND
                   LF_DOCNUMBER IS NOT INITIAL.
              CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
           ENDIF.
    Regards,
    Jack.  

Maybe you are looking for

  • Dynamic forms in AIR/Flex

    OK, this is another of those "Is AIR the right tool for the job" questions. And I have zero previous exposure to Flash/Flex, just doing a fast forward through all available information, to reach an assessment. The app in question is mainly a vanilla

  • External Display is pixelated

    After the 10.6.8 MacOS update, the external display via the Thunderbolt port is extremely pixelated. Everything looked great prior to this update and I have seen others complain about this too. Anybody at Apple Support care to comment? Paul

  • Preview iView In Portal

    Dear all:       when i previewed iView in the portal, i  got some problems. please give me some advices.Thanks~ 1. Exception caught: com.sap.ip.bi.base.service.connection.ConnectionException: No connection exists for system "BP5" com.sap.ip.bi.base.s

  • IPhone 5 turned off, and will not turn back on.

    My iPhone 5s turned off (battery life was approximately 30%).  I can not turn it back on, even after trying to charge.  The phone will not show that the battery is charging.  Tried plugging in to computer to attempt charging and sync, but iTunes does

  • Why won't Firefox 29 open downloads?

    Ever since that blasted Heartbleed came on the scene, Firefox 29 has been driving me baka nuts! First it blocks legitimate websites. Now it won't let me install downloads of software and programs! It won't even let me open programs in my Start Bar or