<?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: classification view not getting activated by using bapi and rfc in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/classification-view-not-getting-activated-by-using-bapi-and-rfc/m-p/7636717#M1571791</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jun 2011 12:41:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-06-06T12:41:31Z</dc:date>
    <item>
      <title>classification view not getting activated by using bapi and rfc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classification-view-not-getting-activated-by-using-bapi-and-rfc/m-p/7636715#M1571789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as i have created material for halb by using bapi and rfc &lt;/P&gt;&lt;P&gt;material_get_initnumber&lt;/P&gt;&lt;P&gt;material_save_data&lt;/P&gt;&lt;P&gt;the thing is i am not ablle to update classification view in material creation as i am taking data from reference material and some fileds we are taking from input parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and next one is in sales org 1 we have tax data column in that for in we need to get vales like 11 r some thing becuse we r taking from reference material as that column also not getting updated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me in this ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you,&lt;/P&gt;&lt;P&gt;ragrds &lt;/P&gt;&lt;P&gt;prabhanjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 04:04:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classification-view-not-getting-activated-by-using-bapi-and-rfc/m-p/7636715#M1571789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-03T04:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: classification view not getting activated by using bapi and rfc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classification-view-not-getting-activated-by-using-bapi-and-rfc/m-p/7636716#M1571790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This for tax classigication. Following is the code to retrieve all tax codes which are going to appear for a material:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:                                                                   
      BEGIN OF I_TAX OCCURS 0,                                          
        WERKS LIKE TVKWZ-WERKS,  " Plant                                
        VKORG LIKE TVKWZ-VKORG,  " Sales Organisation                   
        VTWEG LIKE TVKWZ-VTWEG,  " distrib.channel                      
        SPART LIKE T001W-SPART,  " Division                             
        LAND1 LIKE T001W-LAND1,  " Country                              
        LFDNR LIKE TSTL-LFDNR,  " Sequence of possible taxes for country
        TATYP LIKE TSTL-TATYP,  " Tax category                          
        TAXKD(5) TYPE C,  " Tax Classif. Code                           
      END OF I_TAX,                                                                                
BEGIN OF I_TAX_F OCCURS 0,                                        
        VKORG LIKE TVKWZ-VKORG,  " Sales Organisation                   
        VTWEG LIKE TVKWZ-VTWEG,  " distrib.channel                      
        LAND1 LIKE T001W-LAND1,  " Country                              
        LFDNR LIKE TSTL-LFDNR,  " Sequence of possible taxes for country
        TATYP LIKE TSTL-TATYP,  " Tax category                          
        TAXKD(5) TYPE C,  " Tax Classif. Code                           
      END OF I_TAX_F,                                                                                
BEGIN OF I_KEYS OCCURS 0,                                         
        WERKS LIKE TVKWZ-WERKS,  " Plant                                
        VKORG LIKE TVKWZ-VKORG,  " Sales Organisation                   
        VTWEG LIKE TVKWZ-VTWEG,  " distrib.channel                      
        SPART LIKE T001W-SPART,  " Division                             
        LAND1 LIKE T001W-LAND1,  " Country                              
      END OF I_KEYS,                                                                                
I_TSTL type standard table of TSTL WITH HEADER LINE.              

SELECT   a~WERKS a~VKORG a~VTWEG b~SPART b~LAND1                        
     INTO CORRESPONDING FIELDS OF TABLE I_KEYS                              
     FROM TVKWZ as a inner join T001W as b on a~werks = b~werks.            
     SELECT *                                                               
    INTO CORRESPONDING FIELDS OF TABLE I_TSTL                               
    from TSTL.                                                              
    SORT I_TSTL by talnd lfdnr ASCENDING.                                   
    LOOP AT I_KEYS.                                                         
      LOOP AT I_TSTL WHERE talnd = I_KEYS-LAND1.                            
         I_TAX-WERKS = I_KEYS-WERKS.                                        
         I_TAX-VKORG = I_KEYS-VKORG.                                        
         I_TAX-VTWEG = I_KEYS-VTWEG.                                        
         I_TAX-SPART = I_KEYS-SPART.                                        
         I_TAX-LAND1 = I_TSTL-talnd.                                        
         I_TAX-LFDNR = I_TSTL-LFDNR.                                        
         I_TAX-TATYP = I_TSTL-TATYP.                                        
        APPEND I_TAX.                                                       
      ENDLOOP.                                                              
    ENDLOOP.                                                                
      LOOP AT I_TAX.                                                        
      MOVE-CORRESPONDING I_TAX to I_TAX_F.                                  
      APPEND I_TAX_F.                                                       
      ENDLOOP.                                                              
    sort i_tax_f by vkorg vtweg land1 lfdnr.                                
    delete adjacent duplicates from i_tax_f.                                
    delete i_tax_f where vkorg ne Material VKORG.                              
    delete i_tax_f where vtweg ne Material-vtweg.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;             &lt;/P&gt;&lt;P&gt;After the above code internal table I_TAX_F will tax code lines exactly in same sequence which are going to appear in screen. After that we need not to pass tax dode in BDC. We just need to pass values for each tax code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 09:39:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classification-view-not-getting-activated-by-using-bapi-and-rfc/m-p/7636716#M1571790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-03T09:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: classification view not getting activated by using bapi and rfc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classification-view-not-getting-activated-by-using-bapi-and-rfc/m-p/7636717#M1571791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 12:41:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classification-view-not-getting-activated-by-using-bapi-and-rfc/m-p/7636717#M1571791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-06T12:41:31Z</dc:date>
    </item>
  </channel>
</rss>

