<?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: Function module to generate condition record number in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-generate-condition-record-number/m-p/6726307#M1456326</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Malathi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this you should know your pricing condition type. Use the following FM to get the table name for the condition type and inside the table you will all the fields mentioned with condition record KNUMH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'RV_GET_CONDITION_TABLES'
      EXPORTING
        application            = 'V'      " For sales 
        condition_type         = 'KA00'
        condition_use          = 'A'
        get_text               = 'X'
      IMPORTING
        table_t681             = gs_t681
        table_tmc1t            = gs_tmc1t
      EXCEPTIONS
        invalid_condition_type = 1
        missing_parameter      = 2
        no_selection_done      = 3
        no_table_found         = 4
        table_not_valid        = 5
        OTHERS                 = 6.
    IF sy-subrc &amp;lt;&amp;gt; 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.

" Here  gw_t681-kotab will have the table name&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Mar 2010 09:21:57 GMT</pubDate>
    <dc:creator>former_member1292715</dc:creator>
    <dc:date>2010-03-08T09:21:57Z</dc:date>
    <item>
      <title>Function module to generate condition record number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-generate-condition-record-number/m-p/6726305#M1456324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to get condition record number field KNUMH=system generated unique key.&lt;/P&gt;&lt;P&gt;based on the following fields.&lt;/P&gt;&lt;P&gt;MATNR=STYLENAME&lt;/P&gt;&lt;P&gt;LIFNR=VENDOR NUMBER&lt;/P&gt;&lt;P&gt;EKORG=Default from LIFNR in Vendor Master&lt;/P&gt;&lt;P&gt;KSCHL=PB00&lt;/P&gt;&lt;P&gt;DATAB=System Date     &lt;/P&gt;&lt;P&gt;DATBI=12.31.9999.&lt;/P&gt;&lt;P&gt;Please help me in finding the function module to generate the condition record number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards,&lt;/P&gt;&lt;P&gt;Malathi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Mar 2010 07:48:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-generate-condition-record-number/m-p/6726305#M1456324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-08T07:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to generate condition record number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-generate-condition-record-number/m-p/6726306#M1456325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chk the bapi, BAPI_PRICES_CONDITIONS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample pgms.&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="679680"&gt;&lt;/A&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="134336"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&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;Anish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Mar 2010 08:03:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-generate-condition-record-number/m-p/6726306#M1456325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-08T08:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to generate condition record number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-generate-condition-record-number/m-p/6726307#M1456326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Malathi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this you should know your pricing condition type. Use the following FM to get the table name for the condition type and inside the table you will all the fields mentioned with condition record KNUMH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'RV_GET_CONDITION_TABLES'
      EXPORTING
        application            = 'V'      " For sales 
        condition_type         = 'KA00'
        condition_use          = 'A'
        get_text               = 'X'
      IMPORTING
        table_t681             = gs_t681
        table_tmc1t            = gs_tmc1t
      EXCEPTIONS
        invalid_condition_type = 1
        missing_parameter      = 2
        no_selection_done      = 3
        no_table_found         = 4
        table_not_valid        = 5
        OTHERS                 = 6.
    IF sy-subrc &amp;lt;&amp;gt; 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.

" Here  gw_t681-kotab will have the table name&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Mar 2010 09:21:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-generate-condition-record-number/m-p/6726307#M1456326</guid>
      <dc:creator>former_member1292715</dc:creator>
      <dc:date>2010-03-08T09:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to generate condition record number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-generate-condition-record-number/m-p/6726308#M1456327</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;Check the below bapi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'BAPI_PRICES_CONDITIONS'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more [Click Here|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="134336"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nehruu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Mar 2010 09:25:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-generate-condition-record-number/m-p/6726308#M1456327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-08T09:25:11Z</dc:date>
    </item>
  </channel>
</rss>

