<?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: Document number generated from function module K_COSTS_PLAN_INTERFACE_TOTAL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-number-generated-from-function-module-k-costs-plan-interface-total/m-p/7700234#M1577944</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 this function module..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'BAPI_DOCUMENT_GETLATEST2' "
  EXPORTING
    documenttype =              " bapi_doc_aux-doctype  Document type
    documentnumber =            " bapi_doc_aux-docnumber  Document number
    documentpart =              " bapi_doc_aux-docpart  Documentation - text lines
    documentversion =           " bapi_doc_aux-docversion  Document version
    multilevelexplosion = 'X'   " bapi_doc_aux-flag  Document management indicator
*   docbomchangenumber = SPACE  " bapi_doc_draw2-ecnumber  Change number
*   docbomvalidfrom = SY-DATUM  " bapi_doc_draw2-validfromdate  Valid-From Date
*   docbomrevisionlevel = SPACE  " bapi_doc_draw2-revlevel  Revision level
*   loadlatest = 'X'            " bapi_doc_aux-flag  Document management indicator
*   loadlatestreleased = 'X'    " bapi_doc_aux-flag  Document management indicator
*   search_new_maindoc = SPACE  " bapi_doc_aux-flag  Document management indicator
*   getdocdata = SPACE          " bapi_doc_aux-flag  Document management indicator
*   getobjectlinks = SPACE      " bapi_doc_aux-flag  Document management indicator
*   getdocdescriptions = SPACE  " bapi_doc_aux-flag  Document management indicator
*   getlongtexts = SPACE        " bapi_doc_aux-flag  Document management indicator
*   getstatuslog = SPACE        " bapi_doc_aux-flag  Document management indicator
*   getdocfiles = SPACE         " bapi_doc_aux-flag  Document management indicator
*   getcomponents = SPACE       " bapi_doc_aux-flag  Document management indicator
*   getclassification =         " bapi_doc_aux-flag  Document Management Indicator
*   getstructures =             " bapi_doc_aux-flag  Document Management Indicator
*   getwhereused =              " bapi_doc_aux-flag  Document Management Indicator
*   sortf_exclude = SPACE       " stpox-sortf   Sort string
*   sortf_stop_expl = SPACE     " stpox-sortf   Sort string
*   expl_docs_only_once = 'X'   " bapi_doc_aux-flag  Document management indicator
*   stop_on_first_error = SPACE  " bapi_doc_aux-flag  Document Management Indicator
  IMPORTING
    return =                    " bapiret2      Return parameter
    newversion =                " bapi_doc_aux-docversion  Document version
  TABLES
    docstructure =              " stpox         BOM Items (Extended for List Displays)
*   changedversions =           " tchg_vers     Table for Transferring Changed Document Versions
*   statuslist =                " tstate_order  Sequence of Status Check
*   documentdata =              " bapi_doc_draw2  BAPIS DMS: document data
*   objectlinks =               " bapi_doc_drad_keys  BAPIS DMS: document data
*   documentdescriptions =      " bapi_doc_drat_keys  BAPIS DMS: document data
*   longtexts =                 " bapi_doc_text_keys  BAPIS DMS: document data
*   statuslog =                 " bapi_doc_drap_keys  BAPIS DMS: document data
*   documentfiles =             " bapi_doc_files2_keys  BAPIS DMS: document data
*   components =                " bapi_doc_comp_keys  BAPIS DMS: document data
*   all_returns =               " bapiret2      Return Parameters
*   characteristicvalues =      " bapi_char_values_keys  BAPI Structure for Characteristic Value Assignment (Docs)
*   classallocations =          " bapi_class_allocation_keys  BAPI Structure for the Assignment of Classes to Several Objects
*   documentstructures =        " bapi_doc_structure_keys  BAPIs DMS: Structure Data for Several Documents
*   whereusedlists =            " bapi_doc_structure_keys  BAPIs DMS: Structure Data for Several Documents
    .  "  BAPI_DOCUMENT_GETLATEST2
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also check this link..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1392246"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jhings&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Feb 2011 13:52:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-02-03T13:52:39Z</dc:date>
    <item>
      <title>Document number generated from function module K_COSTS_PLAN_INTERFACE_TOTAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-number-generated-from-function-module-k-costs-plan-interface-total/m-p/7700233#M1577943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear friends,&lt;/P&gt;&lt;P&gt;  I am using function module &lt;STRONG&gt;K_COSTS_PLAN_INTERFACE_TOTAL&lt;/STRONG&gt; to upload the Planning costs, After this function module call I need the document number generated for that item, but &lt;U&gt;there is no return parameter from this function module which would give me the document number&lt;/U&gt; generated. Please let me know how to get the document number after this function module call.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 08:16:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-number-generated-from-function-module-k-costs-plan-interface-total/m-p/7700233#M1577943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-03T08:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Document number generated from function module K_COSTS_PLAN_INTERFACE_TOTAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-number-generated-from-function-module-k-costs-plan-interface-total/m-p/7700234#M1577944</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 this function module..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'BAPI_DOCUMENT_GETLATEST2' "
  EXPORTING
    documenttype =              " bapi_doc_aux-doctype  Document type
    documentnumber =            " bapi_doc_aux-docnumber  Document number
    documentpart =              " bapi_doc_aux-docpart  Documentation - text lines
    documentversion =           " bapi_doc_aux-docversion  Document version
    multilevelexplosion = 'X'   " bapi_doc_aux-flag  Document management indicator
*   docbomchangenumber = SPACE  " bapi_doc_draw2-ecnumber  Change number
*   docbomvalidfrom = SY-DATUM  " bapi_doc_draw2-validfromdate  Valid-From Date
*   docbomrevisionlevel = SPACE  " bapi_doc_draw2-revlevel  Revision level
*   loadlatest = 'X'            " bapi_doc_aux-flag  Document management indicator
*   loadlatestreleased = 'X'    " bapi_doc_aux-flag  Document management indicator
*   search_new_maindoc = SPACE  " bapi_doc_aux-flag  Document management indicator
*   getdocdata = SPACE          " bapi_doc_aux-flag  Document management indicator
*   getobjectlinks = SPACE      " bapi_doc_aux-flag  Document management indicator
*   getdocdescriptions = SPACE  " bapi_doc_aux-flag  Document management indicator
*   getlongtexts = SPACE        " bapi_doc_aux-flag  Document management indicator
*   getstatuslog = SPACE        " bapi_doc_aux-flag  Document management indicator
*   getdocfiles = SPACE         " bapi_doc_aux-flag  Document management indicator
*   getcomponents = SPACE       " bapi_doc_aux-flag  Document management indicator
*   getclassification =         " bapi_doc_aux-flag  Document Management Indicator
*   getstructures =             " bapi_doc_aux-flag  Document Management Indicator
*   getwhereused =              " bapi_doc_aux-flag  Document Management Indicator
*   sortf_exclude = SPACE       " stpox-sortf   Sort string
*   sortf_stop_expl = SPACE     " stpox-sortf   Sort string
*   expl_docs_only_once = 'X'   " bapi_doc_aux-flag  Document management indicator
*   stop_on_first_error = SPACE  " bapi_doc_aux-flag  Document Management Indicator
  IMPORTING
    return =                    " bapiret2      Return parameter
    newversion =                " bapi_doc_aux-docversion  Document version
  TABLES
    docstructure =              " stpox         BOM Items (Extended for List Displays)
*   changedversions =           " tchg_vers     Table for Transferring Changed Document Versions
*   statuslist =                " tstate_order  Sequence of Status Check
*   documentdata =              " bapi_doc_draw2  BAPIS DMS: document data
*   objectlinks =               " bapi_doc_drad_keys  BAPIS DMS: document data
*   documentdescriptions =      " bapi_doc_drat_keys  BAPIS DMS: document data
*   longtexts =                 " bapi_doc_text_keys  BAPIS DMS: document data
*   statuslog =                 " bapi_doc_drap_keys  BAPIS DMS: document data
*   documentfiles =             " bapi_doc_files2_keys  BAPIS DMS: document data
*   components =                " bapi_doc_comp_keys  BAPIS DMS: document data
*   all_returns =               " bapiret2      Return Parameters
*   characteristicvalues =      " bapi_char_values_keys  BAPI Structure for Characteristic Value Assignment (Docs)
*   classallocations =          " bapi_class_allocation_keys  BAPI Structure for the Assignment of Classes to Several Objects
*   documentstructures =        " bapi_doc_structure_keys  BAPIs DMS: Structure Data for Several Documents
*   whereusedlists =            " bapi_doc_structure_keys  BAPIs DMS: Structure Data for Several Documents
    .  "  BAPI_DOCUMENT_GETLATEST2
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also check this link..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1392246"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jhings&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 13:52:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-number-generated-from-function-module-k-costs-plan-interface-total/m-p/7700234#M1577944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-03T13:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Document number generated from function module K_COSTS_PLAN_INTERFACE_TOTAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-number-generated-from-function-module-k-costs-plan-interface-total/m-p/7700235#M1577945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jhings,&lt;/P&gt;&lt;P&gt;  Thanks for your reply, but i am not looking for the DMS document number, instead I am looking for the &lt;U&gt;CO document number&lt;/U&gt; which gets generated after posting the planning cost.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Feb 2011 08:12:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-number-generated-from-function-module-k-costs-plan-interface-total/m-p/7700235#M1577945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-06T08:12:59Z</dc:date>
    </item>
  </channel>
</rss>

