<?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: User Exitt for sales order processing (TKOMP) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exitt-for-sales-order-processing-tkomp/m-p/1573825#M259077</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can actually trigger your code in TKOMP_PREPARE only if repricing is called from save_document_prepare, just set the flag in save_document_prepare and check it in tkomp_prepare.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have NO way to know in advance in VA01 for example how many items you are going to have in your sales order ... in save_document_prepare you have all items already.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Oct 2006 18:15:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-18T18:15:55Z</dc:date>
    <item>
      <title>User Exitt for sales order processing (TKOMP)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exitt-for-sales-order-processing-tkomp/m-p/1573817#M259069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;User exit is sales order processing where all the line item data in accessible before saving the sales order, before USEREXIT_PRICING_PREPARE_TKOMP..&lt;/P&gt;&lt;P&gt;Objective is to fill the Z field in the TKOMP structure(in the line item level) with a value which can be determined from seeing all the line items.ie.. All the line item data should be visible in processing a single line item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example , if i have 5 materials with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;material Pricing Group Zcount &lt;/P&gt;&lt;P&gt;M1 PG1 3&lt;/P&gt;&lt;P&gt;M2 PG2 2&lt;/P&gt;&lt;P&gt;M3 PG1 3&lt;/P&gt;&lt;P&gt;M4 PG1 3 &lt;/P&gt;&lt;P&gt;M5 PG2 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the above example , i've five line items (materials ) where M1,M3,M4 belong to one pricing group PG1 and M2 and M5 belong to another pricing group. Now As 3 materials belong to one PG1 , the respecive line items should be filled the count value 3 (3 materials belogn to PG1 ) .&lt;/P&gt;&lt;P&gt;and based on the TKOMP values (material,sales org,zcount) , my pricing conditions are maintained.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here , when i've entered 5 line items and press "enter", i want to populate the M1 line item with 3 in the form USEREXIT_PRICING_PREPARE_TKOMP, i could not able to caliculate the zcount as 3 as i'm able to access only one line item in TKOMP and one line item in XVBAP. so i cannot get the visibility of all the line items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so we need the right exit for this requirement before &lt;/P&gt;&lt;P&gt;USEREXIT_PRICING_PREPARE_TKOMP where all the line item visibility is there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 08:44:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exitt-for-sales-order-processing-tkomp/m-p/1573817#M259069</guid>
      <dc:creator>satishgunda</dc:creator>
      <dc:date>2006-10-17T08:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: User Exitt for sales order processing (TKOMP)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exitt-for-sales-order-processing-tkomp/m-p/1573818#M259070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if you can use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USEREXIT_SAVE_DOCUMENT inside MV45AFZZ in SO user exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;HR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 10:22:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exitt-for-sales-order-processing-tkomp/m-p/1573818#M259070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-17T10:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: User Exitt for sales order processing (TKOMP)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exitt-for-sales-order-processing-tkomp/m-p/1573819#M259071</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;Did you try putting item level data with needed count for individual line item in one internal table using 'USEREXIT_PRICING_PREPARE_TKOMP'&amp;amp; update xvbap before saving sales order(exit for save) using the new internal table ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 15:26:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exitt-for-sales-order-processing-tkomp/m-p/1573819#M259071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-17T15:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: User Exitt for sales order processing (TKOMP)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exitt-for-sales-order-processing-tkomp/m-p/1573820#M259072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cannot use USEREXIT_SAVE_DOCUMENT inside MV45AFZZ in SO user exit ,as i need to that before saving the document. ie.. when all the line items are entered and pressed enter ,for each line item, TKOMP_PREPARE is triggered and for calculating the zcount , all the line item data should be visible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example , if we have 5 line items in the order and i've entered 5 line item data and press "enter" , in the first interation , i'm able to see only the first line item data where i want all line item data to calculate ZCOUNT. this data is not availble either in TKOMP or XVBAP in the first iteration.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 15:36:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exitt-for-sales-order-processing-tkomp/m-p/1573820#M259072</guid>
      <dc:creator>satishgunda</dc:creator>
      <dc:date>2006-10-17T15:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: User Exitt for sales order processing (TKOMP)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exitt-for-sales-order-processing-tkomp/m-p/1573821#M259073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rushali , I'm not trying to update VBAP table but TKOMP table which has got a z field zzcount. but the value of zcount depends on the data of all the line item data which is not availabe when the item level data is accessed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 15:40:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exitt-for-sales-order-processing-tkomp/m-p/1573821#M259073</guid>
      <dc:creator>satishgunda</dc:creator>
      <dc:date>2006-10-17T15:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: User Exitt for sales order processing (TKOMP)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exitt-for-sales-order-processing-tkomp/m-p/1573822#M259074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;add your form to determine the vlaue of your field to SAPMV45A (to any include or userexit).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in userexit_pricing_prepare_tkomp just perform your_form(sapmv45a) using z_count. In this case XVBAP will be visible in your form.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 19:13:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exitt-for-sales-order-processing-tkomp/m-p/1573822#M259074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-17T19:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: User Exitt for sales order processing (TKOMP)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exitt-for-sales-order-processing-tkomp/m-p/1573823#M259075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , actually in the TKOMP_PREPARE also , XVBAP is visible but suppose i i've five line items , in the first iteration of TKOMP_PREPARE , i'm able to see only one line item (ie.. first ) and in the second iteration , i'm able to see 2 line items and in final iteration , i'm able to see all the 5 line items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but my requirement is in the first iteration itself , i should be able to all the line item data by which i can calculate the zcount for  the TKOMP line item. I hope it is clear now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 06:59:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exitt-for-sales-order-processing-tkomp/m-p/1573823#M259075</guid>
      <dc:creator>satishgunda</dc:creator>
      <dc:date>2006-10-18T06:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: User Exitt for sales order processing (TKOMP)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exitt-for-sales-order-processing-tkomp/m-p/1573824#M259076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try the following :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add the code to set your field to tkomp_prepare. Works fine only if all line items have different groups &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add some code to userexit_save_document_prepare to call repricing in case if there are more than 1 item in the document with the same group... when you call repricing -&amp;gt; your code in tkomp_prepare will be triggered again and you'll have all items in xvbap at this point.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 18:12:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exitt-for-sales-order-processing-tkomp/m-p/1573824#M259076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T18:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: User Exitt for sales order processing (TKOMP)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exitt-for-sales-order-processing-tkomp/m-p/1573825#M259077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can actually trigger your code in TKOMP_PREPARE only if repricing is called from save_document_prepare, just set the flag in save_document_prepare and check it in tkomp_prepare.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have NO way to know in advance in VA01 for example how many items you are going to have in your sales order ... in save_document_prepare you have all items already.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 18:15:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exitt-for-sales-order-processing-tkomp/m-p/1573825#M259077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T18:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: User Exitt for sales order processing (TKOMP)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exitt-for-sales-order-processing-tkomp/m-p/1573826#M259078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,How do we trigger the repricing from save_document_prepare. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could able to find the repricing only in MV45AFZB ,but its not triggering repricing,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 07:28:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exitt-for-sales-order-processing-tkomp/m-p/1573826#M259078</guid>
      <dc:creator>satishgunda</dc:creator>
      <dc:date>2006-10-19T07:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: User Exitt for sales order processing (TKOMP)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exitt-for-sales-order-processing-tkomp/m-p/1573827#M259079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MV45AFZB &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM USEREXIT_NEW_PRICING_VBKD CHANGING NEW_PRICING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if vbak-auart eq 'ZTA0'.&lt;/P&gt;&lt;P&gt;   new_pricing = 'C'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a specific order type you can trigger the repricing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Reward if helpful ***&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2006 13:49:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exitt-for-sales-order-processing-tkomp/m-p/1573827#M259079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-20T13:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: User Exitt for sales order processing (TKOMP)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exitt-for-sales-order-processing-tkomp/m-p/1573828#M259080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem has been solved by triggering the repricing in MV45AFZB, this will help the user to see the correct prices even before saving.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2006 14:08:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exitt-for-sales-order-processing-tkomp/m-p/1573828#M259080</guid>
      <dc:creator>satishgunda</dc:creator>
      <dc:date>2006-10-27T14:08:18Z</dc:date>
    </item>
  </channel>
</rss>

