<?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: How to use function module K_ORDER_SRULE_ADD? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module-k-order-srule-add/m-p/5381816#M1237658</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 for a Where used List for this FM and see how a SAP Standard Prog using this or any Zprog might also be using this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this also:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_rules    TYPE srules_ext OCCURS 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'K_SRULE_CREATE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_objnr                   = caufvd_imp-objnr&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     rule_already_exists       = 1&lt;/P&gt;&lt;P&gt;     OTHERS                    = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    srules-settl_type = 'FUL'.&lt;/P&gt;&lt;P&gt;    srules-percentage = 100.&lt;/P&gt;&lt;P&gt;    srules-amount     = 0.&lt;/P&gt;&lt;P&gt;    srules-costcenter  = caufvd_imp-kostl.&lt;/P&gt;&lt;P&gt;    APPEND srules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'K_ORDER_SRULE_ADD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      object_no                  = caufvd_imp-objnr&lt;/P&gt;&lt;P&gt;   TABLES&lt;/P&gt;&lt;P&gt;     srules                     = srules&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     wrong_input                = 1&lt;/P&gt;&lt;P&gt;     error_occurred             = 2&lt;/P&gt;&lt;P&gt;     object_not_found           = 3&lt;/P&gt;&lt;P&gt;     activity_not_allowed       = 4&lt;/P&gt;&lt;P&gt;     OTHERS                     = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 Apr 2009 07:31:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-04T07:31:00Z</dc:date>
    <item>
      <title>How to use function module K_ORDER_SRULE_ADD?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module-k-order-srule-add/m-p/5381815#M1237657</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;   Can you provide me the details on how to use K_ORDER_SRULE_ADD especially criteria parameter? If possible, attached wit sample code? Thanks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Chee Boon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Apr 2009 07:19:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module-k-order-srule-add/m-p/5381815#M1237657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-04T07:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to use function module K_ORDER_SRULE_ADD?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module-k-order-srule-add/m-p/5381816#M1237658</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 for a Where used List for this FM and see how a SAP Standard Prog using this or any Zprog might also be using this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this also:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_rules    TYPE srules_ext OCCURS 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'K_SRULE_CREATE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_objnr                   = caufvd_imp-objnr&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     rule_already_exists       = 1&lt;/P&gt;&lt;P&gt;     OTHERS                    = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    srules-settl_type = 'FUL'.&lt;/P&gt;&lt;P&gt;    srules-percentage = 100.&lt;/P&gt;&lt;P&gt;    srules-amount     = 0.&lt;/P&gt;&lt;P&gt;    srules-costcenter  = caufvd_imp-kostl.&lt;/P&gt;&lt;P&gt;    APPEND srules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'K_ORDER_SRULE_ADD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      object_no                  = caufvd_imp-objnr&lt;/P&gt;&lt;P&gt;   TABLES&lt;/P&gt;&lt;P&gt;     srules                     = srules&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     wrong_input                = 1&lt;/P&gt;&lt;P&gt;     error_occurred             = 2&lt;/P&gt;&lt;P&gt;     object_not_found           = 3&lt;/P&gt;&lt;P&gt;     activity_not_allowed       = 4&lt;/P&gt;&lt;P&gt;     OTHERS                     = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Apr 2009 07:31:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module-k-order-srule-add/m-p/5381816#M1237658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-04T07:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to use function module K_ORDER_SRULE_ADD?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module-k-order-srule-add/m-p/5381817#M1237659</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 did try such coding but it returned me a runtime error, mentioned criteria parameter is missing. Therefore, do you have recommendation what should i put for criteria parameter?&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;   Besides that, can you tell what data type does caufvd_imp belong to?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Chee Boon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: chee boon cheang on Apr 4, 2009 9:40 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Apr 2009 07:39:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module-k-order-srule-add/m-p/5381817#M1237659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-04T07:39:21Z</dc:date>
    </item>
  </channel>
</rss>

