<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: DMS document attachment in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dms-document-attachment/m-p/5852788#M1319950</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using this function module mentioned below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'CV120_KPRO_MASTER_DATA_GET'  " Checking whether the document already have any originals&lt;/P&gt;&lt;P&gt;                                                                                " attached on it or not&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      pf_dokar       = i_data_final-doc_type   "document type uploaded into an internal table from the external file&lt;/P&gt;&lt;P&gt;      pf_doknr       = i_data_final-doc_no      "document number uploaded into an internal table from the external file&lt;/P&gt;&lt;P&gt;      pf_dokvr       = i_data_final-doc_ver     "document version uploaded into an internal table from the external file&lt;/P&gt;&lt;P&gt;      pf_doktl       = i_data_final-doc_part      "document part uploaded into an internal table from the external file&lt;/P&gt;&lt;P&gt;      pf_active_only = ' '&lt;/P&gt;&lt;P&gt;      pf_comp_get    = ' '&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      ptx_data       = i_data  &lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      not_found      = 1&lt;/P&gt;&lt;P&gt;      error          = 2&lt;/P&gt;&lt;P&gt;      OTHERS         = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i_data[] is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*- Documentdata&lt;/P&gt;&lt;P&gt;  doc_data-documenttype    = i_data_final1-doc_type.&lt;/P&gt;&lt;P&gt;  doc_data-documentnumber  = i_data_final1-doc_no.&lt;/P&gt;&lt;P&gt;  doc_data-documentversion = i_data_final1-doc_ver.&lt;/P&gt;&lt;P&gt;  doc_data-documentpart    = i_data_final1-doc_part.&lt;/P&gt;&lt;P&gt;  doc_data-statusintern    = i_data_final1-doc_stat.&lt;/P&gt;&lt;P&gt;  doc_data-username        = i_data_final1-drwng_creator.&lt;/P&gt;&lt;P&gt;  IF NOT i_data_final1-doc_desc IS INITIAL.&lt;/P&gt;&lt;P&gt;    doc_data-description   = i_data_final1-doc_desc.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND doc_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*- ClassAllocations&lt;/P&gt;&lt;P&gt;  doc_class_alloc-classtype     = c_classtype.&lt;/P&gt;&lt;P&gt;  doc_class_alloc-classname     = c_classname.&lt;/P&gt;&lt;P&gt;  doc_class_alloc-standardclass = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND doc_class_alloc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Adding Primary, SUBtye and Design Project Characteristics to the DRAWING Class&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLEAR it_char_val.&lt;/P&gt;&lt;P&gt;  it_char_val-classtype = c_classtype.&lt;/P&gt;&lt;P&gt;  it_char_val-classname = c_classname.&lt;/P&gt;&lt;P&gt;  it_char_val-charname  = 'PRIMARYTYPE' .&lt;/P&gt;&lt;P&gt;  it_char_val-charvalue = i_data_final1-prim_type.&lt;/P&gt;&lt;P&gt;  APPEND it_char_val.&lt;/P&gt;&lt;P&gt;  CLEAR it_char_val.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  it_char_val-classtype = c_classtype.&lt;/P&gt;&lt;P&gt;  it_char_val-classname = c_classname.&lt;/P&gt;&lt;P&gt;  it_char_val-charname  = 'SUBTYPE' .&lt;/P&gt;&lt;P&gt;  it_char_val-charvalue = i_data_final1-sub_type.&lt;/P&gt;&lt;P&gt;  APPEND it_char_val.&lt;/P&gt;&lt;P&gt;  CLEAR it_char_val.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  it_char_val-classtype = c_classtype.&lt;/P&gt;&lt;P&gt;  it_char_val-classname = c_classname.&lt;/P&gt;&lt;P&gt;  it_char_val-charname  = 'DESIGN_PROJECT' .&lt;/P&gt;&lt;P&gt;  it_char_val-charvalue = i_data_final1-design_proj.&lt;/P&gt;&lt;P&gt;  APPEND it_char_val.&lt;/P&gt;&lt;P&gt;  CLEAR it_char_val.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Bapi called to create the document using tcode CV01N&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      documentdata              = doc_data&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       hostname     = gv_hostname&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      pf_http_dest              = 'SAPHTTPA'&lt;/P&gt;&lt;P&gt;      pf_ftp_dest               = 'SAPFTPA'&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     documenttype               = i_data_final1-doc_type&lt;/P&gt;&lt;P&gt;     documentnumber             = i_data_final1-doc_no&lt;/P&gt;&lt;P&gt;     documentpart               = i_data_final1-doc_part&lt;/P&gt;&lt;P&gt;     documentversion            = i_data_final1-doc_ver&lt;/P&gt;&lt;P&gt;     return                     = ls_return&lt;/P&gt;&lt;P&gt;   TABLES&lt;/P&gt;&lt;P&gt;     characteristicvalues       = it_char_val&lt;/P&gt;&lt;P&gt;     classallocations           = doc_class_alloc&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: MANSI  ASNANI on Oct 15, 2009 7:09 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Oct 2009 05:09:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-15T05:09:30Z</dc:date>
    <item>
      <title>DMS document attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dms-document-attachment/m-p/5852785#M1319947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to DMS &amp;amp; I have to attached scanned images of invoices through MIRO transaction to SAP object. How should I go with it? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone has worked on DMS???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly help...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 05:03:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dms-document-attachment/m-p/5852785#M1319947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-22T05:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: DMS document attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dms-document-attachment/m-p/5852786#M1319948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhijeet Shinde,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For reading document from DMS you can use below FMs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CVAPI_DOC_VIEW&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CVAPI_DOC_VIEW2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code to use it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'CVAPI_DOC_VIEW'
       EXPORTING
            pf_dokar      = wa_dokar 
            pf_doknr      = wa_doknr
            pf_dokvr      = wa_dokvr
            pf_doktl      = wa_doktl
            pf_appl_start = ' '
            pf_filename   = l_file_src
       IMPORTING
            pfx_file      = g_filep
       EXCEPTIONS
            error         = 1
            not_found     = 2
            no_auth       = 3
            no_original   = 4
            OTHERS        = 5.
  IF sy-subrc  0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check in function group &lt;STRONG&gt;CVAPI01&lt;/STRONG&gt; you will get some other useful FMs which may satisfy your requirement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope it will solve your problem..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ilesh Nandaniya&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jul 2009 12:33:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dms-document-attachment/m-p/5852786#M1319948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-04T12:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: DMS document attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dms-document-attachment/m-p/5852787#M1319949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I am using the  CVAPI_DOC_VIEW this function module to findt the attached documents by passing DOKAR,DOKNR,DOKVR,DOKTL&lt;/P&gt;&lt;P&gt;fileds values in my database table draw there is no data for filename(filed : draw-fliep).&lt;/P&gt;&lt;P&gt;I am able to see the available documents as a popup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but my requirement is to see the filename also . how get it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please sugest the solution,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;padmja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 04:37:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dms-document-attachment/m-p/5852787#M1319949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-15T04:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: DMS document attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dms-document-attachment/m-p/5852788#M1319950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using this function module mentioned below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'CV120_KPRO_MASTER_DATA_GET'  " Checking whether the document already have any originals&lt;/P&gt;&lt;P&gt;                                                                                " attached on it or not&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      pf_dokar       = i_data_final-doc_type   "document type uploaded into an internal table from the external file&lt;/P&gt;&lt;P&gt;      pf_doknr       = i_data_final-doc_no      "document number uploaded into an internal table from the external file&lt;/P&gt;&lt;P&gt;      pf_dokvr       = i_data_final-doc_ver     "document version uploaded into an internal table from the external file&lt;/P&gt;&lt;P&gt;      pf_doktl       = i_data_final-doc_part      "document part uploaded into an internal table from the external file&lt;/P&gt;&lt;P&gt;      pf_active_only = ' '&lt;/P&gt;&lt;P&gt;      pf_comp_get    = ' '&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      ptx_data       = i_data  &lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      not_found      = 1&lt;/P&gt;&lt;P&gt;      error          = 2&lt;/P&gt;&lt;P&gt;      OTHERS         = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i_data[] is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*- Documentdata&lt;/P&gt;&lt;P&gt;  doc_data-documenttype    = i_data_final1-doc_type.&lt;/P&gt;&lt;P&gt;  doc_data-documentnumber  = i_data_final1-doc_no.&lt;/P&gt;&lt;P&gt;  doc_data-documentversion = i_data_final1-doc_ver.&lt;/P&gt;&lt;P&gt;  doc_data-documentpart    = i_data_final1-doc_part.&lt;/P&gt;&lt;P&gt;  doc_data-statusintern    = i_data_final1-doc_stat.&lt;/P&gt;&lt;P&gt;  doc_data-username        = i_data_final1-drwng_creator.&lt;/P&gt;&lt;P&gt;  IF NOT i_data_final1-doc_desc IS INITIAL.&lt;/P&gt;&lt;P&gt;    doc_data-description   = i_data_final1-doc_desc.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND doc_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*- ClassAllocations&lt;/P&gt;&lt;P&gt;  doc_class_alloc-classtype     = c_classtype.&lt;/P&gt;&lt;P&gt;  doc_class_alloc-classname     = c_classname.&lt;/P&gt;&lt;P&gt;  doc_class_alloc-standardclass = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND doc_class_alloc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Adding Primary, SUBtye and Design Project Characteristics to the DRAWING Class&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLEAR it_char_val.&lt;/P&gt;&lt;P&gt;  it_char_val-classtype = c_classtype.&lt;/P&gt;&lt;P&gt;  it_char_val-classname = c_classname.&lt;/P&gt;&lt;P&gt;  it_char_val-charname  = 'PRIMARYTYPE' .&lt;/P&gt;&lt;P&gt;  it_char_val-charvalue = i_data_final1-prim_type.&lt;/P&gt;&lt;P&gt;  APPEND it_char_val.&lt;/P&gt;&lt;P&gt;  CLEAR it_char_val.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  it_char_val-classtype = c_classtype.&lt;/P&gt;&lt;P&gt;  it_char_val-classname = c_classname.&lt;/P&gt;&lt;P&gt;  it_char_val-charname  = 'SUBTYPE' .&lt;/P&gt;&lt;P&gt;  it_char_val-charvalue = i_data_final1-sub_type.&lt;/P&gt;&lt;P&gt;  APPEND it_char_val.&lt;/P&gt;&lt;P&gt;  CLEAR it_char_val.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  it_char_val-classtype = c_classtype.&lt;/P&gt;&lt;P&gt;  it_char_val-classname = c_classname.&lt;/P&gt;&lt;P&gt;  it_char_val-charname  = 'DESIGN_PROJECT' .&lt;/P&gt;&lt;P&gt;  it_char_val-charvalue = i_data_final1-design_proj.&lt;/P&gt;&lt;P&gt;  APPEND it_char_val.&lt;/P&gt;&lt;P&gt;  CLEAR it_char_val.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Bapi called to create the document using tcode CV01N&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      documentdata              = doc_data&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       hostname     = gv_hostname&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      pf_http_dest              = 'SAPHTTPA'&lt;/P&gt;&lt;P&gt;      pf_ftp_dest               = 'SAPFTPA'&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     documenttype               = i_data_final1-doc_type&lt;/P&gt;&lt;P&gt;     documentnumber             = i_data_final1-doc_no&lt;/P&gt;&lt;P&gt;     documentpart               = i_data_final1-doc_part&lt;/P&gt;&lt;P&gt;     documentversion            = i_data_final1-doc_ver&lt;/P&gt;&lt;P&gt;     return                     = ls_return&lt;/P&gt;&lt;P&gt;   TABLES&lt;/P&gt;&lt;P&gt;     characteristicvalues       = it_char_val&lt;/P&gt;&lt;P&gt;     classallocations           = doc_class_alloc&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: MANSI  ASNANI on Oct 15, 2009 7:09 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 05:09:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dms-document-attachment/m-p/5852788#M1319950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-15T05:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: DMS document attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dms-document-attachment/m-p/5852789#M1319951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for attachment in dms you need to have doc type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have you attached document in DMS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2009 13:00:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dms-document-attachment/m-p/5852789#M1319951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-21T13:00:07Z</dc:date>
    </item>
  </channel>
</rss>

