Get SAKTO based on MBEW-BKLAS

Hi Experts,
   How to derive the value of GL account (SAKTO) based on valuation class (MBEW-BKLAS) on the material master.
Regards,
Aditya
Moderator message: please do some research before asking.
Edited by: Thomas Zloch on Feb 24, 2011 10:30 AM

Hi
Perhaps I don't understand yet, but you have several select-options in your selection-screen, every select-options can be assigned to different tables (MARA, MARC, MBEW), so you need to decide if to use a JOIN o single SELECTION in order to get all data in one step or many steps.
IF you need to do several selections, these have to be linked in order to get the data for the records selected in the previous selection, something like that:
SELECT matnr mtart INTO TABLE t_mara
    FROM mara
      WHERE matnr IN s_matnr
        AND mtart IN s_mtart.
  IF sy-subrc = 0.
    SELECT matnr werks ekgrp INTO TABLE t_marc
      FROM marc
        FOR ALL ENTRIES IN t_mara
          WHERE natnr = t_mara-matnr
            AND ekgrp IN s_ekgrp.
    IF sy-subrc = 0.
      SELECT matnr bwkey lbkum salk3 INTO TABLE t_mbew
        FROM mbew
          FOR ALL ENTRIES IN t_marc
            WHERE matnr = t_marc-matnr
              AND bwkey = t_marc-werks.
    ENDIF.
  ENDIF.
But you can use an single join with all tables
Max

Similar Messages

  • USER-EXIT / ENHANCEMENT / BADI -- Material Valuation Class (MBEW-BKLAS)

    Hi,
    I m looking for any user-exit, enhancement or BADI  which is triggered while executing MIGO!!!! .
    For example, for good movement 101related to a purchase order.
    If  MIGO item (material) have batch management we have to inform the batch number (mandatory). When material document is posted system updates material master data with a new valuation type (MBEW-BWTAR) with the same name of the batch number.
    We need to inform the valuation class (MBEW-BKLAS) related to this valuation type (MBEW-BWTAR) but we don´t know where it´s possible.
    Thanks and sorry for my english!!

    Hi Orion,
    You can refer to the following user exits for MIGO:
    Exit Name           Description                                                                               
    MBCF0002            Customer function exit: Segment text in material doc. item   
    MBCF0005            Material document item for goods receipt/issue slip          
    MBCF0006            Customer function for WBS element                            
    MBCF0007            Customer function exit: Updating a reservation               
    MBCF0009            Filling the storage location field                           
    MBCF0010            Customer exit: Create reservation BAPI_RESERVATION_CREATE1   
    MBCF0011            Read from RESB and RKPF for print list in  MB26              
    MB_CF001            Customer Function Exit in the Case of Updating a Mat. Doc.   
    Hope this will help you...

  • Can't get version based downloads to work

    I am new to JNLP and trying to get version based downloads to work. I have read everything I can find, but I still seem to be missing something. My setup:
    Tomcat 4.1.18 (running in JDK 1.4.0)
    Java WebStart 1.2
    Win 2k
    files in .war
    -launch.jnlp
    -+1.0
    |-testapp.jar
    |-version.xml
    -+images
    |-Save.gif
    -+META-INF
    |-MANIFEST.MF
    -+WEB-INF
    |-+lib
    | |-jnlp-servlet.jar
    |-web.xmllaunch.jnlp
    TS: 2002-04-23 19:21:05
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp codebase="$$codebase" href="$$name">
       <information>
          <title>ljtest 1</title>
          <vendor>Lance</vendor>
          <description>just an example</description>
          <icon href="images/Save.gif"/>
       </information>
       <resources>
          <j2se version="1.2+"/>
          <jar href="1.0/testapp.jar" version="1.0"/>
       </resources>
       <application-desc main-class="Main"/>
    </jnlp>version.xml
    <jnlp-versions>
       <resource>
          <pattern>
             <name>testapp.jar</name>
             <version-id>1.0</version-id>
          </pattern>
          <file>testapp.jar</file>
       </resource>
    </jnlp-versions>web.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
        "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
      <web-app>
         <servlet>
            <servlet-name>JnlpDownloadServlet</servlet-name>
            <servlet-class>com.sun.javaws.servlet.JnlpDownloadServlet</servlet-class>
            <init-param>
               <param-name>logLevel</param-name>
               <param-value>DEBUG</param-value>
            </init-param>
         </servlet>
         <servlet-mapping>
            <servlet-name>JnlpDownloadServlet</servlet-name>
            <url-pattern>*.jnlp</url-pattern>
         </servlet-mapping>
      </web-app>Things I have discovered (possibly in error?):
    1) I do not need to include the jaxp.jar and parser.jar files because I am using JDK 1.4
    2) I do not need to change my testapp.jar to testapp_V1.0.jar because I have included the the version.xml file in the 1.0 directory
    I keep getting the following error in WebStart when I loadup the jnlp:
    JNLPException[category: Download Error : Exception: null : LaunchDesc: null ]
         at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
         at com.sun.javaws.cache.DownloadProtocol.getDownloadSize(Unknown Source)I can get everything to work without version based downloads. Does anyone have any clue what I am doing wrong?
    Lance

    I found my own error. After loading up sun's reference implementation server in NetBean's debugger I noticed that it was only handling .jnlp files. Going back to the "Packaging JNLP Applications in a Web Archive" document I found my mistake. My web.xml files should have looked like this.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
        "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
      <web-app>
         <servlet>
            <servlet-name>JnlpDownloadServlet</servlet-name>
            <servlet-class>com.sun.javaws.servlet.JnlpDownloadServlet</servlet-class>
            <init-param>
               <param-name>logLevel</param-name>
               <param-value>DEBUG</param-value>
            </init-param>
         </servlet>
         <servlet-mapping>
            <servlet-name>JnlpDownloadServlet</servlet-name>
            <url-pattern>*</url-pattern>
         </servlet-mapping>
      </web-app>The difference being the <url-pattern> tag. It now tells the web server to handle all files not just .jnlp.
    This allowed me to download version based jnlp entries. I still can't get jarDiff things to work, but I will keep banging my head against the wall till I figure that out.
    Lance

  • How to get PERNR based on user ID

    Hi All,
    How to get PERNR based on userid.
    please help me in resolving this.
    Thanks for the support.
    Regards,
    Dhananjaya R E

    hope this will help u
    DATA:   t_pernr LIKE pa0105-pernr,
              t_email LIKE pa0105-usrid_long.
    STEP 1 - Find personnel number for UNAME
       SELECT SINGLE pernr
                 INTO t_pernr
                 FROM pa0105
               WHERE subty = '0001'
              AND endda >= sy-datum
             AND begda <= sy-datum
             AND usrid = p_uname.
    Employee record found*
    IF sy-subrc = 0.
    STEP 2 - Find email address for personnel number*
    SELECT SINGLE usrid_long
             INTO t_email
             FROM pa0105
            WHERE pernr = t_pernr
              AND subty = '0022'
              AND endda >= sy-datum
              AND begda <= sy-datum.

  • BAPI_MATERIAL_GET_DETAIL retrieve MBEW-BKLAS

    Hi,
    today we call BAPI_MATERIAL_GET_DETAIL from a third party system. We have discovered a need to also retrieve the valuation class, MBEW-BKLAS, and it does'nt seem like this is possible via this bapi.
    Does anyone know if there is a standard bapi that I could use for this?
    Regards
    Arne Jakob
    Edited by: Arne Jakob Hidle on Sep 13, 2008 11:32 PM

    Hi Ram,
    looking at the corresponding XML interface specification at <a href="http://ifr.sap.com/catalog/query.asp">the SAP interface repository</a> there are only simple import parameters for Material.GetDetail. According to Web Dynpro model creation conventions, you should be able to set the parameters directly in the Bapi_Material_Get_Detail_Input instance like:
    Bapi_Material_Get_Detail_Input input = new Bapi_Material_Get_Detail_Input();
    wdContext.nodeBapi_Material_Get_Detail_Input().bind(input);
    input.setPlant("yourPlant");
    input.setValuationArea(...);
    Hope that helps.
    Regards
    Stefan

  • PAM-KRB5: account:  unable to get host based service name for realm

    I want a custom service to authenticate via PAM with Microsoft Active Directory Services on Windows 2003. kinit appears to work:
    Myserver% klist
    Ticket cache: /tmp/krb5cc_200
    Default principal: [email protected]
    Valid starting Expires Service principal
    Tue 01 Aug 2006 10:42:23 AM CDT Tue 01 Aug 2006 08:42:23 PM CDT krbtgt/[email protected]
    renew until Tue 08 Aug 2006 10:42:23 AM CDT
    Running a sample PAM consumer using 'winsamp' as its service name complains that Kerberos doesn't know the user. syslog reports: PAM-KRB5: account: unable to get host based service name for realm 'EXAMPLE.COM'.
    I'm stuggling to get any additional logging out of either PAM or Kerberos. Any advice appreciated.
    /etc/pam.conf:
    winsamp auth required pam_krb5.so.1 debug
    winsamp password required pam_krb5.so.1 debug
    winsamp account required pam_krb5.so.1 debug
    winsamp session required pam_krb5.so.1 debug
    /etc/krb5/krb5.conf:
    [libdefaults]
    default_realm = EXAMPLE.COM
    default_tkt_enctypes = des-cbc-md5 ; or des-cbc-crc
    default_tgs_enctypes = des-cbc-md5 ; or des-cbc-crc
    [realms]
    EXAMPLE.COM = {
    kdc = mykdc.example.com:88
    admin_server = mykdc.example.com
    default_domain = EXAMPLE.COM
    [domain_realm]
    .example.com = EXAMPLE.COM
    [logging]
    default = FILE:/var/krb5/kdc.log
    kdc = FILE:/var/krb5/kdc.log
    kdc_rotate = {
    # How often to rotate kdc.log. Logs will get rotated no more
    # often than the period, and less often if the KDC is not used
    # frequently.
    period = 1d
    # how many versions of kdc.log to keep around (kdc.log.0, kdc.log.1, ...)
    versions = 10
    [appdefaults]
    kinit = {
    renewable = true
    forwardable= true
    PAM sample application synopsis:
    pam_start("winsamp", "someuser", &conv, &pamh);
    err = pam_authenticate(pamh, 0);
    if (err == PAM_USER_UNKNOWN)
    printf("don't know that user\n"); // <-- we always arrive here
    logout();
    }

    Part of the problem was that the Sun server's domain was not an exact match for the ADS domain. One was XXXX.EXAMPLE.COM and the other was just EXAMPLE.COM. Adding the equiv. domains in krb5.conf improved that situation.
    The sample PAM application still doesn't behave the way I want. When pam.conf is configured to authenticate against /etc/passwd, it works. Not when authenticating against ADS alone. I've come to the conclusion that PAM is for authenticating ONLY access to Solaris accounts.
    My application does not need a Solaris account. Am I using the wrong authentication API?

  • SC-Sourcing getting contracts based on category_id? BADI-bbp_sos_Badi?

    Hi,
    In Shopping Cart-Sourcing, by default it is selecting contracts based on ORDERED_PROD,PRODUCT (material no).
    But I want to implement search logic to get contracts based on CATEGORY_ID.
    All the contracts related to this category_id I want to get that contracts.
    Can any one give idea how I can get this?
    I tried to implement BADI -BBP_SOS_BADI
    Method -BBP_SOS_SEARCH
    I tried to use the FM - BBP_PD_INDEX_FIND and pass the contracts to the BADI but it is not working.
    Did anyone worked on this method, please let me know how to get the complete contracts info and sending back to BADI?
    Thanks in advance.

    Hi,
    there is one open point for me in your question. Would you like to search:
    1) only for product category contracts (which don't have product ID)
    2) for contracts, which category equals to the category ID of the SC item (practically also contracts should appear, which have from the SC items product ID different product ID)
    For the first case you only need to modificate the coding in the form SOS_LOCAL_CALL_PD (LBBP_SC_APPF87):
    Kontext-Block                                          
      else.                                                
        clear ev_error.                                    
    *   Delete heade contract from the SOS                 
    Delete-Block                                           
        DELETE et_con_list WHERE ctr_item_number = space.  
    Insert-Block                                           
    *    DELETE et_con_list WHERE ctr_item_number = space. 
    With this change in addition to the ORDERED_PROD search also product category contracts will be found.
    Regards,
    Peter

  • SC-Sourcing getting contracts based on category_id?

    Hi,
    In SC-Sourcing, by default it is selecting contracts based on ORDERED_PROD,PRODUCT (material no).
    But I want to implement search logic to get contracts based on  CATEGORY_ID.
    All the contracts related to this category_id I want to get that contracts.
    Can any one give idea how I can get this?
    I tried to implement BADI -BBP_SOS_BADI
    Method -BBP_SOS_SEARCH
    I tried to use the FM - BBP_PD_INDEX_FIND and pass the contracts to the BADI but it is not working.
    Did anyone worked on this method, please let me know how to get the complete contracts info and sending back to BADI?
    Thanks in advance.

    Hi,
    please see the answer:
    SC-Sourcing getting contracts based on category_id? BADI-bbp_sos_Badi?
    Regards,
    Peter

  • Can 'Region' field gets defaulted based on owner of account?

    Hi
    Can 'Region' field in Account sales information gets defaulted based on owner of account?
    Owner belongs to 'West' region then account should get defaulted with same region.
    I have defined 'West' as territory for this owner.
    Do anybody has expression available for making field default ?
    Thanks
    Santosh

    Mahesh,
    Read-only is an option, but only if you never want users to change the values. If your users always work in the same Div, Region, and Sub-Region, then it would be reasonable to lock it so they don't feel like they have to update it. If,however, you have users that work in more than one sub-region, and they need to update it, then you wouldn't make it read-only.
    As far as workflow is concerned, you would need it to update the values when the ownership changes, if that is a requirement. If you choose not to update it, then it might not reflect the correct values for the new owner. Your decision on whether or not to implement the workflow would be based on whether or not your business rules require it. Most of the time, customers want the data to reflect the correct values for the current owner, but not always, so check with your customers and let the requirements drive the decision.
    Good Luck,
    Thom

  • How to get CHARG based on matnr

    Hi Experts,
              I want to get PO batch(CHARG) based upon matnr.I am using BAPI_PO_GETDETAIL and receiving PO details by providing purchase order number.The line item table there is no field called charg. ..
    So How to get Charg based upon matnr
    Thanks & Regards
    Mathi

    Hello,
    Get from the table
    MCHA - Batches
    Regards,
    Vasanth

  • How to get data based on selection screen on the output

    Hi Expert,
    Can any one tell me based on material number on slection screen correspondind field i.e on selection scren
    WERKS,MTART,EKGRP,DISPO,BESKZ,MATNR should also get. i.e if i give mtart on selection screen corresponding to material number mtart shoul get.
    NOTE: I HAVE WRITTEN SELECT QUERY FOR TWO TABLES I.E MARA,MBEW.
    Below is my code
    TABLES:MARA,MARC,MARD.
    TYPES: BEGIN OF ty_mbew,
          matnr TYPE matnr,
          bwkey TYPE werks_d,
          lbkum TYPE lbkum,
          END OF ty_mbew.
    TYPES: BEGIN OF ty_close_stk,
           mandt TYPE mandt,
           matnr TYPE matnr,
           cdate TYPE zwkdate,
           bwkey TYPE werks_d,
           meins TYPE meins,
           zlbkum TYPE lbkum,
           WERKS  TYPE WERKS,      "
           MTART  TYPE MTART,
           EKGRP  TYPE EKGRP,
           DISPO TYPE  DISPO,
           BESKZ TYPE BESKZ,      
           salk3 TYPE salk3,
           END OF ty_close_stk.
    TYPES: BEGIN OF ty_mbewh,      
           matnr type matnr,
           bwkey type bwkey,
           lbkum type lbkum,
           lfmon type lfmon,
           end of ty_mbewh.        
    TYPES: begin of wa_matnr,
                matnr type matnr,
           end of wa_matnr.
    dATA : it_matnr type standard table of wa_matnr.
    DATA : it_close_stk_del TYPE STANDARD TABLE OF zclose_stock WITH HEADER LINE.
    DATA : it_close_stk TYPE STANDARD TABLE OF ty_close_stk,
           it_mbew TYPE STANDARD TABLE OF ty_mbew,
           wa_close_stk TYPE ty_close_stk,
           wa_mbew TYPE ty_mbew,
           it_mbewh TYPE STANDARD TABLE OF ty_mbewh,            "89286
           wa_mbewh TYPE ty_mbewh.                              "89286
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE TEXT-001.
    89286*********************
    SELECT-OPTIONS: WERKS FOR MARD-WERKS,    "Plant
                    MTART FOR MARA-MTART,    "Material type
                    EKGRP FOR MARC-EKGRP,    "Purchasing group
                    DISPO FOR MARC-DISPO,    "MRP Controller
                    BESKZ FOR MARC-BESKZ,    "Procurement type
                    s_MATNR FOR MARA-MATNR.  "Material number
    ************89286***************
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE TEXT-002.
    select MATNR INTO CORRESPONDING FIELDS OF TABLE IT_MATNR
           FROM MARA
           WHERE MATNR IN S_MATNR.
    SELECT matnr
             bwkey
             lbkum
             salk3            "MSK25072011
             FROM mbew INTO CORRESPONDING FIELDS OF TABLE it_mbew
            WHERE lfgja = fis_year
              where matnr  in s_matnr
               and  bwkey in werks.

    Hi
    Perhaps I don't understand yet, but you have several select-options in your selection-screen, every select-options can be assigned to different tables (MARA, MARC, MBEW), so you need to decide if to use a JOIN o single SELECTION in order to get all data in one step or many steps.
    IF you need to do several selections, these have to be linked in order to get the data for the records selected in the previous selection, something like that:
    SELECT matnr mtart INTO TABLE t_mara
        FROM mara
          WHERE matnr IN s_matnr
            AND mtart IN s_mtart.
      IF sy-subrc = 0.
        SELECT matnr werks ekgrp INTO TABLE t_marc
          FROM marc
            FOR ALL ENTRIES IN t_mara
              WHERE natnr = t_mara-matnr
                AND ekgrp IN s_ekgrp.
        IF sy-subrc = 0.
          SELECT matnr bwkey lbkum salk3 INTO TABLE t_mbew
            FROM mbew
              FOR ALL ENTRIES IN t_marc
                WHERE matnr = t_marc-matnr
                  AND bwkey = t_marc-werks.
        ENDIF.
      ENDIF.
    But you can use an single join with all tables
    Max

  • Fields not getting rendered based on fire partial action

    Dear Friends
    I have req like based on the selected value in message choice input (UOM), the other values(BOX,EACH,VOLUME) in page sholud render .
    These are my codes in AM and CO.
    ******************************AM***********************
        public void xxcreaterow() {
            OAViewObject vo = getuomVO1();
            System.out.println("am is getting executed");
            //Number=null;
             Number val = 1;
                if (vo != null)
                  if (vo.getFetchedRowCount() == 0)
                   vo.setMaxFetchSize(0);
                   vo.executeQuery();
                   vo.insertRow(vo.createRow());
                   OARow row = (OARow)vo.first(); 
                    //  row.setAttribute("RowKey", new Number(1));
                      row.setAttribute("RowKey", val);
                      row.setAttribute("BoxAttr", Boolean.FALSE);
                      row.setAttribute("EachAttr", Boolean.FALSE);
                      row.setAttribute("VolumeAttr", Boolean.FALSE);
    ************************   CO *********************************
      public void processRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processRequest(pageContext, webBean);
          OAApplicationModule am = pageContext.getApplicationModule(webBean);
          OAViewObject vo = (OAViewObject)am.findViewObject("uomVO");
          am.invokeMethod("xxcreaterow");
       * Procedure to handle form submissions for form elements in
       * a region.
       * @param pageContext the current OA page context
       * @param webBean the web bean corresponding to the region
      public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processFormRequest(pageContext, webBean);
         OAApplicationModule am = pageContext.getApplicationModule(webBean);
         OAViewObject vo = (OAViewObject)am.findViewObject("uomVO1");
                 OARow row = (OARow)vo.getCurrentRow();
                      if ("HandleUom".equals(pageContext.getParameter(EVENT_PARAM)))
            if (pageContext.getParameter("UnitOfMeasure").equals("Box"))
             row.setAttribute("BoxAttr", Boolean.TRUE);
                row.setAttribute("EachAttr", Boolean.FALSE);
                row.setAttribute("VolumeAttr", Boolean.FALSE);
               else
                     row.setAttribute("BoxAttr", Boolean.FALSE);
               if (pageContext.getParameter("UnitOfMeasure").equals("Each"))
                row.setAttribute("BoxAttr", Boolean.FALSE);
                   row.setAttribute("EachAttr", Boolean.TRUE);
                   row.setAttribute("VolumeAttr", Boolean.FALSE);
               else
                     row.setAttribute("EachAttr", Boolean.FALSE);
               if (pageContext.getParameter("UnitOfMeasure").equals("Gallon"))
                row.setAttribute("BoxAttr", Boolean.FALSE);
                   row.setAttribute("EachAttr", Boolean.FALSE);
                   row.setAttribute("VolumeAttr", Boolean.TRUE);
               else
                     row.setAttribute("VolumeAttr", Boolean.FALSE);
    How to resolve this plz help.
    Thanks
    Aravinda

    Have a fire partial action event enabled on text field 2, capture the event in processFormRequest of CO, throw an exception using throw OAException when textfield1 < textfield 2 or your required condition is met. You don't need javascript for this. I don't recommend using javascript in OAF. You have most of the features available in OAF (except popup alerts though which can be achieved as mentioned above but no popup window).
    Thanks
    Shree

  • Get Rows based on  value of a certain Attribute

    Hi guys,
    i was trying to get all the rows from the cache as well as the Database for my VO
    For that i used getFilteredRows() as well as findByKey() method.
    But i could not get any rows.
    Also i had a doubt for the findByKey() method. Do we need to use Primary key as Key or do can we use any attribute as the Key?

    Hi Pradeep,
    I think getFilteredRows() works only after executeQuery() has brought the rows to cache. I do not know if getFilteredRows() runs executeQuery() implicitly. Maybe you can use a ViewCriteria object in order to create a criteria based on the attribute, and then find it by this criteria.
    As for your other question, findByKey acts upon all attributes of the view object that are marked as Key attribute. You can mark any attribute as key, whether or not it is a primary key constituent, by setting the Key Attribute Checkbox on the Attribute Definition, inside the View Object Wizard.
    Hope it helps,
    Thiago

  • Query to get values based on a date range.

    11g.
    Hi there,
    I have a simple requirement(hopefully).
    I have a parameter which is basically a count range which when I pass the sql query should fetch the values from a column falling in that range.
    My table is item details
    Item                  cost          
    item1                   1
    item2                   10
    item3                   20
    item4                   3
    .I have a parameter which I have to pass to this query where items are listed based on the cost.
    So I want to select items which cost between 0 -10, 11-20, 21-30 and 31-40
    Now I am using Apex to show the count report like
    0-10      11- 20    21- 30   31- 40
      3             2           0          0            
    The numbers are hyperlinked and I pass the parameters based on which another report shows the details. So if the user clicks on number 3 in the report. The underlying query would be something like
    select * from item_Details where cost between 0 and 10.So I was wondering how do pass the parameter to the sql in the best possible way to get the costs based on the range?
    Maybe the parameters should be some code which can be decoded in the SQL?
    Any help or suggestions please?
    Thanks,
    Ryan

    Hi,
    Try this to pass the parameter in the query...
    select * from item_Details where cost between to_number(substr('0-10',0,instr('0-10','-')-1)) and to_number(substr('0-10',instr('0-10','-')+1,length('0-10'));
    Regards,
    Niha

  • Warranty id not getting determined based on the warranty counter

    Hi,
    We are trying to determine the warranty id from the counter reading.
    Scenario:
    We are confirming the vehicle and the business partner and create a service order . We are entering the reading in the service order and want to get the warranty product determined based on the counter reading.
    First free service at counter reading of 5000 kms
    Second free service at counter reading of 10,000 kms
    We have followed the following steps:
    1. Warranty product with Warranty basis as Counter dependant and Warranty counter data with the value.
    2. For the Vehicle object in relationships we have assigned a counter id.
    However we are unable to determine the warranty id
    Is there something that we are missing. Would really appreciate a solution.

    Hi Ayan,
    Firstly, whlich version of SAP CRM you are working on?
    If it is CRM 5.0
    Apply Note 1009244 - 'Counter attribute' field missing in CRM 5.0.
    This note will get the counter attribute field in the Counter creation screen.
    Check these steps again:
    1.  Create a counter warranty. Ensure nothing is excluded.
    2. Create a counter  and assign it prouct master or installed base component.
    3. If you have assigned it to a product master, in the service transaction enter the reference data as well.
        Ensure that warranty check profile has been assigned
    4. Once you enter a service product your warranty must get determined.
    5. If not, check the log in the warranty tab, it shall give u the details.
    Wish it helps.
    Regards,
    Shalini Chauhan

Maybe you are looking for