CO-PA: Derivation of characteristics from classification values

Hello,
is it possible somehow to use classification values from the material master for the
derivation of customer-specific characteristics in CO-PA?
The SAP documentation doesn't mention them but is there a way to use them?
How can I do that?
Best Regards,
Christian

Hi,
Please consider the following:
1. Create table lookup to transfer VBAP-CUOBJ to origin "GLOBAL" - field "CUOBJ" (no need to create that field as CO-PA characteristic).
2. Create derivation of type enhancement and use function module 'CUCB_GET_CONFIGURATION'. Import parameter "INSTANCE" stands for "CUOBJ" whereas values per classification characteristic can be derived from Export parameter "CONFIGURATION". Loop at that with proper "ATNAM" (classification characteristic) and get the appropriate "ATWRT" (classification value), which for sure you can assign to an appropriate PA characteristic.
Regards,
Alex

Similar Messages

  • Deriving Time Characteristics from Date fields in ODS View

    Hi,
    I am creating ODS Views using HANA calculation views.
    is there any direct approach to derive time characteristics like cal week, cal quarter, cal month, calmonth 2, fiscal year, cal year etc from date fields?
    work around:
    Deriving them in HANA view in calculated columns and mapping them to IO created with respective time characteristics as reference.
    is there any standard and easy to use approach for this??
    Thanks in advance.

    Hi Ravi,
    Insteod deriving them in the ODS view you can derive them in tha Calculation View in SAP HANA itself using Time Dimention concept.
    Regards
    Jagan

  • How to read classification value from batch class

    Hi Gurus,
    In our material master we maintain Batch class (023) from all RM where 2 characteristics value is very important one is std.moisture and another is actual moisture.Now Std moisture value is fixed and we maintain this value in material master.Actual moisture is variable batchwise and thats why we maintain it by using MSC2N.Here the problem is the std moisture is not coming in classification data autometically from Material Master but we already maintain it.It shows in Material Data tab.But I need that it will come in Classification data tab autometically as we use this in report.I use VB_BATCH_VALUES_FOR_OUTPUT Function for classification value fetching from material and batch.Now as this value is not coming automatically coming user again put this data.I want to know how can it come autometically?If it is not possible please tell me how I can get this data from material and batch as the above function is not working.
    Please help me out.
    Regards
    Nirmal

    check your customizing in IMG > Logistics general > Batch Management > Batch Valuation > Valuation for Goods Movement in Inventory Management > Activate Batch Classification for Goods Movements in IM

  • How to derive Budget Period from Delivery date in PR/PO

    Hello Gurus,
    I have activated the Budget Period functionality in FM (BCS). I am deriving the budget period from Posting date but in case of PR/PO I want to derive it from Delivery date instead of Document/Posting Date.I know it is not possible while standard derivation. Could any one help me with some suggestion like if I can use some exit/BaDI in MM. Also I am creating a PM order and at the time of release of PM order system creates the PR in background hence I need to know some kind of exit/BADI which can be called to update the Budget Period field in PR.
    Thanks in Advance!
    Regards
    Rohit Goel

    Hello Eli,
    I have one more query to ask on the above scenario.
    The scenario is my delivery date in PO is say July but I did good issue in May hence the Budget Period should be May and not july in my GR and IV.
    Now when I am doing GR in May then system is showing the Budget Period as July in GR document but in FM Document it is populating as May. I have defined a derivation strategy to derive budget period from posting date so may be because of that.
    But when I am doing IV then it is again moving the amount from May to July. It may be right behaviour that system is deriving all the account assignment from Source document but is there any way to overwrite.
    I have defined the derivation strategy with the condition that overwrite with new value if already written (Deriving from Posting Date to Budget Period).
    Please guide me on this if possible.
    Thanks in Advance
    Regards
    Rohit

  • Batch Classification Values not getting changed

    Hi Gurus,
    I am using the following bapi ( BAPI_OBJCL_CHANGE ) to change Batch classification values Eg: Cut clarity etc.
    when i pass these values thru the function module in the program it is not getting changed while when i change it through msc2n it gets changed successfully...
    I have passed the following values in the parameters of the bapi :
    OBJECTKEY            = v_objectkey          
    OBJECTTABLE        = 'MCH1'          
    CLASSNUM             = V_CLASSNUM 
    CLASSTYPE           = '023'
    KEYDATE                = 30.04.2010
    ALLOCVALUESCHARNEW
    CHARACT = CLARITY
    VALUE_CHAR =  P040
    VALUE_NEW   = P040.
    Can some one help me solve this....
    Needed urgently..
    Edited by: NAVIN FERNANDES on Apr 30, 2010 12:31 PM
    Edited by: NAVIN FERNANDES on Apr 30, 2010 12:32 PM

    Hi Jacky,
    I am posting the code here.. Do let me know if u have ne queries:
    REPORT  ZNAVBATCH.
    SELECTION-SCREEN BEGIN OF BLOCK B1.
    PARAMETERS: P_MATNR TYPE MATNR,
                P_CHARG TYPE CHARG_D,
                P_WERKS TYPE WERKS_D,
                P_LGORT TYPE LGORT_D.
    SELECTION-SCREEN END OF BLOCK B1.
    START-OF-SELECTION.
      DATA: WA_BATCH TYPE BAPI1003_OBJECT_KEYS,
            WA_ALLOCCHAR TYPE BAPI1003_ALLOC_VALUES_CHAR,
            WA_ALLOCVAL TYPE BAPI1003_ALLOC_VALUES_NUM,
            INT_BATCH TYPE STANDARD TABLE OF BAPI1003_OBJECT_KEYS,
            INT_RET1 TYPE STANDARD TABLE OF BAPIRET2,
            INT_RET2 TYPE STANDARD TABLE OF BAPIRET2,
            INT_RET3 TYPE STANDARD TABLE OF BAPIRET2,
            LV_KEY TYPE BAPI1003_KEY-OBJECT,
            INT_ALLOCVAL TYPE STANDARD TABLE OF BAPI1003_ALLOC_VALUES_NUM,
            INT_ALLOCCHAR TYPE STANDARD TABLE OF BAPI1003_ALLOC_VALUES_CHAR,
            INT_ALLOCCURR TYPE STANDARD TABLE OF BAPI1003_ALLOC_VALUES_CURR.
      WA_BATCH-KEY_FIELD = 'MATNR'.
      WA_BATCH-VALUE_INT = P_MATNR.
      APPEND WA_BATCH TO INT_BATCH.
      WA_BATCH-KEY_FIELD = 'CHARG'.
      WA_BATCH-VALUE_INT = P_CHARG.
      APPEND WA_BATCH TO INT_BATCH.
      CALL FUNCTION 'BAPI_OBJCL_CONCATENATEKEY'
        EXPORTING
          OBJECTTABLE    = 'MCH1'
        IMPORTING
          OBJECTKEY_CONC = LV_KEY
        TABLES
          OBJECTKEYTABLE = INT_BATCH
          RETURN         = INT_RET1.
      IF SY-SUBRC = 0.
       WRITE: 'SUCCESSFUL'.
        CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
          EXPORTING
            OBJECTKEY              = LV_KEY
            OBJECTTABLE            = 'MCH1'
            CLASSNUM               = 'ZTBATCHCHR'
            CLASSTYPE              = '023'
            KEYDATE                = SY-DATUM
          UNVALUATED_CHARS       = ' '
          LANGUAGE               = SY-LANGU
        IMPORTING
          STATUS                 =
          STANDARDCLASS          =
          TABLES
            ALLOCVALUESNUM         = INT_ALLOCVAL
            ALLOCVALUESCHAR        = INT_ALLOCCHAR
            ALLOCVALUESCURR        = INT_ALLOCCURR
            RETURN                 = INT_RET2
        IF SY-SUBRC = 0.
          WRITE : 'SUCCESSFUL'.
          READ TABLE INT_ALLOCCHAR INTO WA_ALLOCCHAR WITH KEY CHARACT = 'CLARITY'.
          IF SY-SUBRC = 0.
            WA_ALLOCCHAR-VALUE_CHAR = 'C02'.
            WA_ALLOCCHAR-VALUE_NEUTRAL = 'C02'.
            MODIFY INT_ALLOCCHAR FROM WA_ALLOCCHAR INDEX SY-TABIX TRANSPORTING VALUE_CHAR VALUE_NEUTRAL.
          ENDIF.
          CALL FUNCTION 'BAPI_OBJCL_CHANGE'
            EXPORTING
              OBJECTKEY                = LV_KEY
              OBJECTTABLE              = 'MCH1'
              CLASSNUM                 = 'ZTBATCHCHR'
              CLASSTYPE                = '023'
             STATUS                   = '1'
             STANDARDCLASS            =
             CHANGENUMBER             =
             KEYDATE                  = SY-DATUM
             NO_DEFAULT_VALUES        = ' '
           IMPORTING
             CLASSIF_STATUS           =
            TABLES
              ALLOCVALUESNUMNEW        = INT_ALLOCVAL
              ALLOCVALUESCHARNEW       = INT_ALLOCCHAR
              ALLOCVALUESCURRNEW       = INT_ALLOCCURR
              RETURN                   = INT_RET3
          IF SY-SUBRC = 0.
            CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
             EXPORTING
               WAIT          = 'X'
            IMPORTING
              RETURN        =
            IF SY-SUBRC = 0.
              WRITE: 'SUCCESSFUL'.
            ENDIF.
          ENDIF.
        ENDIF.
    ENDIF.

  • Copa - text of material classification values to copa

    we will use copa for analysis.
    we want to have some material classification values to pa. we have the ausp value at copa by using
    kedr. but the problem is text of the classification values.
    When i try to create a value field with referance to the data element ATWRT than i have the error length 00030 of the data element is too big.also i know that there is no chance to create ATRWT with 30 chac length.
    when i create the value field without value maintanance then the text of the classification not comes to pa.
    At last i have created the value field as with own value maintanence and double the charecteristic names and text from kes1.
    But this solution is not suitable.
    Is there a way to take this text from cawnt table?

    we will use copa for analysis.
    we want to have some material classification values to pa. we have the ausp value at copa by using
    kedr. but the problem is text of the classification values.
    When i try to create a value field with referance to the data element ATWRT than i have the error length 00030 of the data element is too big.also i know that there is no chance to create ATRWT with 30 chac length.
    when i create the value field without value maintanance then the text of the classification not comes to pa.
    At last i have created the value field as with own value maintanence and double the charecteristic names and text from kes1.
    But this solution is not suitable.
    Is there a way to take this text from cawnt table?

  • What SAP table houses the Material Classification values?

    I cannot for the life of me figure out what SAP table actually stores the material classification characteristic values. These are the related tables I have found so far but none of them link the information to a material number:
    TABLE: CABN
    ATINN (characteristic ID)
    ATNAM (characteristic name code)
    MSEHI (UoM associated with characteristic)
    TABLE: CABNT
    ATINN (characteristic ID)
    ATBEZ (characteristic full name)
    TABLE: KLAH
    KLART (class type)
    CLASS (class name code)
    CLINT (class id)
    TABLE: KLAT
    CLINT (class id)
    TXTBZ (class full name)
    TABLE: KSML
    CLINT (class id)
    IMERK (characteristic id)
    POSNR (characteristic positional location for class)
    TABLE: CAWN
    ATINN (internal char.)
    ATZHL (int counter)
    ATWRT (char. value)
    TABLE: CAWNT
    ATINN (internal char.)
    ATZHL (int counter)
    ATWTB (description)
    I have also identified these structures, but I am no good at finding where values from a structure actually reside.
    STRUCT: RMCBC "I/O field for include screens from classification"
    contains MATNR, KLART, CLASS, KLTXT, ATWRT
    STRUCT: RMCLF "Classification I/O structure for Assgmt of Object to Class"
    contains KLART, CLASS, KLTXT
    Can anyone please help me and advise where the actual relationship between material number and classification information is? I'm trying to import this information from MDM to R/3 but I have no idea what to map it to or what Idoc segment to use.
    Thanks!

    Have a go with below table joint in SQVI or SQ01:
    KSSK (Allocation Table: Object to Class), joint together with KLAH (Class Header Data).
    Link will be field CLINT.
    Choose the below from KSSK:
    Key of object to be classified - KSSK-OBJEK: you will enter the material number here. Watch out - you have to add 10 leading zeros before your material number, eg. number 40524281 will be altered to 000000000040524281.
    Class Type - KSSK-KLART: here you can specify the class type which is 001 for material master.
    Choose the below from KLAH:
    Class number - KLAH-CLASS: this field will return the class number you assigned to your material in Classification view.
    HTH,
    Laszlo

  • FM to find sales order Characteristic Classification Value

    Hi friends,
    Iam having a requirement where I have to find Sales Order Characteristic Classification Value.
    Here is the Path from where I have to get that detail.
    sales order tcode va03 --> item detail : configuration --> Character Description --> Charcater Value
    I need to fetch this character value to classify my Sales Order in programming.
    With Regards
    Bhaskar

    if you call function module VC_I_GET_CONFIGURATION, with the value VBAP-CUOBJ for the sales order line item in parameter INSTANCE, all characteristic descriptions and values will be returned in table parameter CONFIGURATION

  • Replacing Null Values From existing values in table.

    Hi
    Using 9i R(2).
    Tbl_1
    Col_A varchar2
    Col_B varchar2
    Col_C varchar3
    (no PK/FK)
    I want to inset the missing values (null values) of columns B & C by taking values from filled values from same table on base of Col_A.
    Examples
    Col_A || Col_B || Col_C
    Item_1 || Red || 2Kg
    Item_2 || Blue || 1.5 Kg
    Item_1 || Null || Null
    I want to inset values in the Null value fields of Row3 (Col_B & CoL_C) from Row1 as Col_A is same at both rows.
    Please advise how to do it efficiently.
    Thanks
    Jawad

    http://www.orafaq.com/forum/m/160947/42768/#msg_160947

  • Varinat configuration copy of batch characteristics from Sale order to production batch

    hi experts ,
    below is the scenario :
    the characteristics and its value which are maintained in the sale order must be copied to batch produced during process order GR .
    it was not available in 4.7 but availbale in ECC 6.0 i guess by SAP.
    i have created configured material with class type 300 and KMAT . have mainatined CU41 . created material variant and have filled  MRP 3 fields.
    have created material variant with class type 023 . (also tried with class type 300) .
    created sale order for confgured material and item category is also correct . i do not get pop up for material variant which has same charcateristics as that of material configured.
    also on after MRP run and process order creation w.r.t Sale order i did GR . but the batch was created with 023 class type and no characteristics were copied .
    kindly guide  , i have not worked much on variant configuration.
    regards,
    satish

    Satish Yadav,
    the problem start as you havent got pop up saying there exist a material variant with values you selected for configurable material in sales order, so please check settings related to item catagory.
    Also as sales order is created for configurable material , for which material you run MRP?
    check below link for more information on material variant and its replacement in sales order.
    http://scn.sap.com/docs/DOC-31570
    checka nd reply back, Hope it will solve your issue.
    Thanks
    Ritesh

  • Error while deriving the currency from table

    i am getting the below error while simulating the payroll for india.
    Error while deriving the currency from table T001P & Error during Initialization of payroll.
    i am SAP HCM Trainee.. practicing at home.

    Pls check the currency in table T500C.
    You can use TCode OE00 for table maintenance T500C.
    Also check whether currency is there in table V_CURC and T510.
    Hope this will help.
    Regards
    Ghouse

  • Error while deriving the currency from table T001P.

    Hi Friends,
    I am trying to run payroll for NZ using schema NZ00 but i am getting an error stating "Error while deriving the currency from table T001P. Error during initialization of Payroll"
    I have checked V_T001P, V_T001 and have deleted the personnel area and subarea and again created it but still i am unable to solve this problem.
    Could you please help me as to where this error can be corrected.
    Thanks,
    Manj

    About the incidence, the problem might be related to the links between
    personnel area, company code and currency set up (table T001P, T500P and
    T001).
    Please check the following points:
    1- Have you assigned the Personnel area to the Company code under SPRO -
    IMG -> Enterprise Structure -> Assignment -> Human Resource Management
    -> Assignment of Personnel Area to Company Code.
    2- SPRO -> Personnel Management -> Personnel Admin -> Basic Settings ->
    Determine Currencies (Public Sector Currency Need to be maintained along
    with the other node).
    3- SPRO- Personnel Management -> Personnel Admin -> Payroll Data ->
    Basic Pay -> Define Hourly Rates for several decimal places. (Please
    maintain all the nodes).
    4- Maintaining the table t500c through transaction code OE00.
    Regards
    Ramana

  • Cannot add a new characteristics from the system catalog

    Hi,
    I am trying to pull and add a new characteristics from the existing characteristics catalog. However when i save and activate the new char, the system throwing a yellow warning message as "Field KMKDGR has the same name as field KDGRP". When i proceed to save it since its just a warning message the system says all fields are saved. However when i quit and come to the characteristics list of the op concern, i notice the new characteristic is not added into the list of characteristics. Why is it so?
    Is it because of the warning message?

    Hi
    The warning message can be ignored...
    Once you save the char, you need to reactivate your data structure in KEA0... Ideally, when you save and press the back button, system itself gives a pop up message to reactivate the data structure...
    1. Push the char from right to left
    2. There will be a "match-stick" icon at the top left of the screen.. Click it
    3. Then press back button
    4. Whether with our without pop up message, activate your data structure in KEA0
    Regards
    Ajay M

  • Classification values in Material master

    hi ,
    m using the BTE event to capture the values of material master but the characteristics name and value fields are not there.
    Is there any way to capture those values??
    i have one solution by assigning the program and table to the field symbols like--
    CLEAR field .
           field = '(SAPLCLFM)allausp[]' .
    ...but i need some more elaboration if someone has worked on this...or any other better solution...?
    Edited by: Jeetu@SAP on Jul 11, 2011 2:43 PM

    hello ganti,
    can u check ur MARC table and re-confirm, is thar really available....

  • Replacement from the Value of an Attribute*

    Replacement from the Value of an Attribute
    With formula variables you can set the processing type Replacement from the Value of an Attribute and create a reference to the reference characteristic for the variable. The attribute Reference to Characteristic (Constant 1) is a dummy attribute that is available with each characteristic. It serves to create a reference to the characteristic, by which it does not need to be aggregated. By choosing this attribute, you can influence the aggregation behavior of calculated key figures in a targeted way and can improve performance during calculation.
    1)what does this do in the query?
    2)what is the value of the variable created ?(like 1,2 etc {i.e.} it changes or is  a constant value like 1)?
    E.g. i have created a formula variable zvar , (replacement path  type) ref. char is wbselement, then what will be the value of the zvar if its used in a formula
    eg.  Formula 1 = kef1 kef2zvar.
    what will be the value(s)  of the variables in the these cases
    1. project = 1000,1000.30.
    2.project = 2000,2000.30.01
    3.proect = 3000,3000.30.01,3000.30.02.
    3.) as per the def. its a  number which refer to a wbs, then in the FORMULA , will it consider the zvar as a VALUE or what would happen?
    Edited by: jumboash on Oct 23, 2009 7:25 PM

    Hi,
    ZVAR is not considered as value in the calculation. It is used only to calculate the formula correctly without aggregation of the operands.
    For example there are two materials m1 and m2 . total amount has to be calculated for these materials whose quantitys are 10 and 20 and whose prices are 200 and 300 respectively.
    Case1:- if ZVAR is not used then the calculation of the fromula will be as follows
    qty   Price    amount
    10 * 200   = 2000
    20 * 300   = 6000
    30 * 500 =  15000     ->   The total amount shows is 15000 which is not correct
    Case 2: -  if ZVAR is used in the calculation of the formula
    qty   Price    amount
    10 * 200   = 2000
    20 * 300   = 6000
                       8000   -> The total amount shows is 8000 which is correct
    so using the ZVAR in the formula shows the correct result without considering the aggregation . This is useful in the case if the material is not part of rows.

Maybe you are looking for

  • HT3945 Aperture 2 library "cannot be upgraded" to work with Aperture 3; why not?

    Just bought and installed Aperture 3,latest version. Before loading new program, I unplugged external hard drive where my Aperture library is stored. Just wanted to make sure nothing happened to the content, in excess of 60,000 images. After booting

  • "Invalid file name" error when trying to load the report in IIS/CR 2008

    We have deployed our application to many installations with no problem however in one particular case we get this error whenever we try to load any reports in our web app. I made sure that the DefaulAppPool user (Network Service) has read+excute on a

  • Troubleshooting itunes after upgrade to Lion 10.7 (Macbook white)

    Hi, I have a MacBook (white model 2008). I updated the OS X 10.5.8 to Lion 10.7 . Everything seems ok, except that itunes is not working, the app doesn't even open. A message appears saying that the app is not compatible with the OS X. I tried to uni

  • Leopard takes almost 4 minutes to start

    Every since I upgraded to Leopard, after starting up, the rainbow wheel spins for about 4 minutes and then the desktop folders pop up. Every single time I reboot the machine. Can someone tell me what the problem could possibly be. Thanks

  • Zoom bug ?

    I am experiencing problem that PE9 looses where the mouse is when I zoom in. It occurs after I have zoomed in and out a few times and the only answer seems to be to shut PE9 and restart which is a real pain. Using clone, brush etc I paint in an image