Reg valuation class

Hi,
      i had created a G/L account with reference to an account linked to valuation class, but i have a doubt how to identify that this account is for this material as there is no link between valuation class an G/L account.
regards.
venkat.

Configure Automatic Postings
In this step, you enter the system settings for Inventory Management and Invoice Verification transactions for automatic postings to G/L accounts.
You can then check your settings using a simulation function.
Under Further information there is a list of transactions in Materials Management and their definitions.
What are automatic postings?
Postings are made to G/L accounts automatically in the case of Invoice Verification and Inventory Management transactions relevant to Financial and Cost Accounting.
Example:
Posting lines are created in the following accounts in the case of a goods issue for a cost center:
Stock account
Consumption account
How does the system find the relevant accounts?
When entering the goods movement, the user does not have to enter a G/L account, since the R/3 System automatically finds the accounts to which postings are to be made using the following data:
Chart of accounts of the company code
If the user enters a company code or a plant when entering a transaction, the R/3 System determines the chart of accounts which is valid for the company code.
You must define the automatic account determination individually for each chart of accounts.
You must define the automatic account determination individually for each chart of accounts.
Valuation grouping code of the valuation area
If the automatic account determination within a chart of accounts is to run differently for certain company codes or plants (valuation areas), assign different valuation grouping codes to these valuation areas.
You must define the automatic account determination individually for every valuation grouping code within a chart of accounts. It applies to all valuation areas which are assigned to this valuation grouping code.
If the user enters a company code or a plant when entering a transaction, the system determines the valuation area and the valuation grouping code.
Transaction/event key (internal processing key)
Posting transactions are predefined for those inventory management and invoice verification transactions relevant to accounting. Posting records, which are generalized in the value string, are assigned to each relevant movement type in inventory management and each transaction in invoice verification. These contain keys for the relevant posting transaction (for example, inventory posting and consumption posting) instead of actual G/L account numbers.
You do not have to define these transaction keys, they are determined automatically from the transaction (invoice verification) or the movement type (inventory management). All you have to do is assign the relevant G/L account to each posting transaction.
Account grouping (only for offsetting entries, consignment liabilities, and price differences)
Since the posting transaction "Offsetting entry for inventory posting" is used for different transactions (for example, goods issue, scrapping, physical inventory), which are assigned to different accounts (for example, consumption account, scrapping, expense/income from inventory differences), it is necessary to divide the posting transaction according to a further key: account grouping code.
An account grouping is assigned to each movement type in inventory management which uses the posting transaction "Offsetting entry for inventory posting".
Under the posting transaction "Offsetting entry for inventory posting", you must assign G/L accounts for every account grouping, that is, assign G/L accounts.
If you wish to post price differences to different price difference accounts in the case of goods receipts for purchase orders, goods receipts for orders, or other movements, you can define different account grouping codes for the transaction key.
Using the account grouping, you can also have different accounts for consignment liabilities and pipeline liabilities.
Valuation class of material or (in case of split valuation) the valuation type
The valuation class allows you to define automatic account determination that is dependent on the material. for example: you post a goods receipt of a raw material to a different stock account than if the goods receipt were for trading goods, even though the user enters the same transaction for both materials.
You can achieve this by assigning different valuation classes to the materials and by assigning different G/L accounts to the posting transaction for every valuation class.
If you do not want to differentiate according to valuation classes you do not have to maintain a valuation class for a transaction.
Requirements
Requirements
Before you maintain automatic postings, you must obtain the following information:
1. Valuation level ( plant or company code)
Establish whether the materials are valuated at plant or at company code level
When valuation is at plant level, the valuation area corresponds to a plant.
When valuation is at company code level, the valuation area corresponds to a company code.
Define valuation level
2. Chart of accounts and valuation grouping code per valuation area
Find out whether the valuation grouping code is active.
Activate split valuation
If it is not active, determine the chart of accounts assigned to each valuation area (via the company code).
If it is active, determine the chart of accounts and the valuation grouping code assigned to each valuation area.
Group valuation areas
You must define a separate account determination process for chart of accounts and each valuation grouping code.
. Valuation class per material type
If you wish to differentiate the account determination process for specific transactions according to valuation classes, find out which valuation classes are possible for each material type.
Define valuation classes
4. Account grouping for offsetting entries to stock accounts
Under Define account grouping for movement types, determine for which movement types an account grouping is defined for the transaction/event keys GGB (offsetting entry to stock posting), KON (consignment liabilities) and PRD (price differences).
Default settings
G/L account assignments for the charts of accounts INT and the valuation grouping code 0001 are SAP standard.
Activities
1. Create account keys for each chart of accounts and each valuation grouping code for the individual posting transactions. To do so, proceed as follows:
a) Call up the activity Configure Automatic Postings.
The R/3 system first checks whether the valuation areas are correctly maintained. If, for example, a plant is not assigned to a company code, a dialog box and an error message appear.
From this box, choose Continue (next entry) to continue the check.
Choose Cancel to end the check.
Choose Cancel to end the check.
The configuration menu Automatic postings appears.
b) Choose Goto -> Account assignment.
A list of posting transactions in Materials Management appears. For further details of the individual transactions, see Further information.
The Account determination indicator shows whether automatic account determination is defined for a transaction.
c) Choose a posting transaction.
A box appears for the first posting transaction. Here you can enter a chart of accounts.
You can enter the following data for each transaction:
Rules for account number assignments
With Goto -> Rules you can enter the factors on which the account number assignments depend:
- debit/credit indicator
- general grouping (= account grouping)
- valuation grouping
- valuation class
Posting keys for the posting lines
Normally you do not have to change the posting keys.  If you wish to use new posting keys, you have to define them in the Customizing system of Financial Accounting
Account number assignments
You must assign G/L accounts for each transaction/event key (except KBS). You can assign these accounts manually or copy them from another chart of accounts via Edit -> Copy.
If you want to differentiate posting transactions (e.g. inventory postings) according to valuation classes, you must make an account assignment for each valuation class.
Using the posting transaction "Offsetting entry for inventory posting", you have to make an account assignment for each account grouping
If the transaction PRD (price differences) is also dependent on the account grouping, you must create three account assignments:
- an account assignment without account grouping
- an account assignment with account grouping PRF
- an account assignment with account grouping PRA
If the transaction KON (consignment and pipeline liabilities) is also dependent on the account grouping, you must create two account assignments:
- an account assignment without account grouping (consignment)
- an account assignment with account grouping (pipeline)
d) Save your settings.
2. Then check your settings with the
2. Then check your settings with the simulation function.
With the simulation function, you can simulate the following:
Inventory Management transactions
Invoice Verification transactions
When you enter a material or valuation class, the R/3 system determines the G/L accounts which are assigned to the corresponding posting transactions. Depending on the configuration, the SAP system checks whether the G/L account exists
In the simulation you can compare the field selection of the movement type with that of the individual accounts and make any corrections.
If you want to print the simulation, choose Simulation -> Report.
To carry out the simulation, proceed as follows:
a) Choose Settings to check the simulation defaults for
- the application area (Invoice Verification or Inventory Management)
- the input mode (material or valuation class)
- account assignment
Instructions
b) Choose Goto -> Simulation.
The screen for entering simulation data appears.
c) Depending on the valuation level, enter a plant or a company code on the screen.
d) When you simulate Inventory Management transactions, goods movements are simulated. The R/3 system suggests the first movement type for simulation. If several movements are possible with this movement type, you can select a line.
When you simulate Invoice Verification transactions, a list
The screen for entering simulation data appears.
c) Depending on the valuation level, enter a plant or a company code on the screen.
d) When you simulate Inventory Management transactions, goods movements are simulated. The R/3 system suggests the first movement type for simulation. If several movements are possible with this movement type, you can select a line.
When you simulate Invoice Verification transactions, a list appears on the screen of the possible transaction types. Select a line.
e) Then choose Goto -> Account assignments.
A list appears of the posting lines which can be created by the selected transaction. For each posting line, the G/L account for the debit posting as well as the G/L account for the credit posting are displayed.
f) From this screen, choose Goto -> Movement+ to get a list of the posting lines for the next movement type or transaction type.
If you work with valuation classes, choose Goto -> Valuation class+ to receive the simulation for the next valuation class. This function is not possible when simulating with material numbers.
Choose Goto -> Check screen layout to compare the movement type with the G/L accounts determined by the system and make any necessary corrections.
Note
The simulation function does NOT obviate the need for a trial posting!

Similar Messages

  • Reg Valuation class creation

    Dear SAP Genius
    pls explain how to create the valuation class and how to assign G/L account to the valuation class.
    pls explain this step by step.
    Regards
    irshath

    Dear CB
    i have create cost element as 4000108.
    i create a purchase order.
    i get error when i post goods receipt in MIGO t-code
    Error is below
    Account determination for entry ECCI EIN ____ ___ 4072 not possible
    Message no. M8147
    Diagnosis
    The system did not find an account for this transaction. This means that the account determination for key ECCI EIN ____ ___ 4072 is not maintained in MM Customizing (Valuation). The key is made up of:
    Chart of account
    Transaction key (= Posting transaction)
    Valuation grouping code
    Account grouping code
    Valuation class
    System Response
    The system cannot update a G/L account for this transaction. You cannot post the transaction.
    Procedure
    Contact your system administrator.
    If you have the authorization, check the Account determination in Customizing for Valuation.
    Proceed
    Note
    The relevant posting transaction can be found in Table T030A.
    pls help me to update Goods Receipt

  • Valuation class changes for open orders

    what are the reason SAP doesn't recommend to change the Valuation class for open orders or when the  material is in transit.

    Hi,
    System will not allow to change the Valuation classes of a Material in the Following cases:
    1. Material Stock should be zero. If any stock is there it wont allow to change vc.
    2. Material should not have any open Purchase Requisitions/ Purchase orders/ Reservations etc.
    So, If if you want to change the Valuation class Transfer allthe stock of the material to another plant and delete all the related Transactions.
    Reg,
    Ashok
    Assign points if useful.

  • De-linking (Valuation class & GL A/c) automatic posting in Invoice booking

    Experts,
    I have a issue regarding link between FI & MM
    From what I understand,
    there is a link between Service & Valuation class
    & also a link between valuation class & GL.
    This link enables automatic FI line item posting while invoice booking.
    My question:
    1. Can we break the linkage between valuation class & GL i.e. we want to stop the automatic posting
    2. What is the effect of above
    3. Would you advise to do this .. ? Why?
    Regards,
    KPS007

    Hi,
    SAP standard process are the best business practises and it should changed only when we have genuine business problem and not for people issue.
    There are several scenarios will occur during MIGO and MIRO. For each scenario system should determine a correct Inventory account, GR/IR clearing account, Price difference account and etc. First you need to prepare an excel sheet with all your possible business scenario, valuation area/valuation grouping code and their respective GL accounts. Once you have listed out all the scenarios and correct GL accounts, you can configure the system as per your requirement. Initial home work is needed to avoid any difference in account posting. Hence try to fix the source of your problem rather than changing the best practise. Account determination is vast and it cannot be explained here but please refer the below link.
    http://help.sap.com/saphelp_46c/helpdata/en/12/1a39516e36d1118b3f0060b03ca329/content.htm
    Regards,
    Senthil

  • Problem with project stock valuation class

    Dear All,
    We have an issue regarding the Revenue Inventory and Capital Inventory. There is a certain balance amount which should be in capital but system is showing in Revenue and vice versa.
    The reason for this is that when the material was created, in some materials the main valuation class was 3032(Project) and in some it was maintained as 3030(revenue). But project stock valuation class was not maintained.
    Now the problem persists in the G/L balances, the G/L of project stock (132006)displays some amount of revenue(132000) and vice versa.
    We tried to maintain the project stock valuation class (3032) for materials for which the main valuation class is 3030 (Revenue),but still the G/L for revenue (132000) is getting hit.
    At the end, the requirement is that G/L for revenue (132000) should hit when revenue procurement is there and G/L for capital (132006) should hit when capital procurement is there.
    Kindly suggest the way forward.
    Regards,
    Harsh

    Thanks Venkat, we have thought of the same as a last stop but there are hundreds of materials which has this problem and there would be many open documents for them.
    If anything could be suggested other then this, and I wanted clarification on one more point that the materials for which main valuation class was 3030 and later we added 3032 in project stk Val class but after maintaining it. When we procure(Capital procurement), it is still showing the balance in G/L 132000(Revenue).
    Regards,
    Harsh

  • Valuation class wise stock report for opening and closing stock

    Dear all,
       My Clint is asking the report for the opening stock and closing stock with respect to valuation class is there any standard report is available please guide me
    regards
    pramod

    Dear sir,
    in my case matarial is split valuated matarial, matarial is maintained with two valuation classes
    when  seeing the report  MB5B its not showing the price valuation class vise, its showing combined together only, again i am using the MC.9 there also same problem its not showing both the valuation class vise price its showing only one valuation class price, if we check for another valuation class price for that particular matarial its telling no data is availabel for the valuation class
    regards
    pramod

  • Changeing Valuation class-what happens to deleted open docs.

    Hello,
    we are planning to change the valuation class for material. In order to change the class we would have to delete all open items that trace back to the material (PO, GR, IR). I run me2m to identify the open documents for that material.
    My issue is when I reverse or delete the IR, GR, and PO what happens to the those documents.? We have documents that go back to 2007.
    Do we have to recreate the PO, GR, IR after we change the class.?What are the long term effects when doing this change (Audit)?
    Please advise.
    Thanks.

    You don't need to worry about old documents as long as they are not open.
    You just need to invoice out all the open GRs or cancel all those GRs. In case of POs, you have to ensure the GR qty is equal to IR qty for each PO line, then you can mark the line as deleted so that the system will allow you to change the val. class. You also need to make the stock to zero.
    Once val. Class is changed, you can undo all the above.

  • Change Valuation class

    We have a need to change the valuation class of the material master with tcode MM02, and the material has a lot of open Purchase Orders and Sales orders, and many batches created for this material.  This material use by many countries, and we cannot replace it with a new material number for my plant.
    System issue message Valaution class cannot be changed because of a lot of open doc and batches exists,  in this situation how to change the Valuaiton class, it will be quite impossible to delete all those open doc and batches. ?? What can we do in order to change the valuaiton class of the material master MM02.??

    Hi,
    You have to eliminate those problems that is reported by SAP.
    E.g.:
    - no stock in current and previous period has to exist (eliminate stock: MB1A201posting date in the past; reset stock level: MB1A+202)
    - transactional data has to be deleted
    - if there are goods movement in current period you have to cancel all of them or you have to wait till the first day of the next period
    If you want to change valuation category as well, you have to archive batch master records.
    This is not an easy thing to do, you may face several difficulties...
    Mass transaction can be used if you have several transactional data to delete (check transaction MASS)
    You can search for threads on this forum or for OSS notes too.
    Regards,
    Csaba

  • GR/IR clearing per valuation class

    Hey all,
    I was trying to post the GR/IR clearing account per valuation class, so i changed the rule in OBYC in WRX to be per valuation class and account modifier, i entered the correct combination (WRX + VBR + V.Class + G/L a/c) but it's not picking the correct G/L in case of service purchasing, it's doing it with material purchasing only not service purchasing. even in the error the valuation class is not mentioned as it's saying ( WRX Z000 is missing ) and it's ignoring that there is a valuation class assigned to the service master, it works fine with material master records.
    Does anyone have a clue ?
    Thanks and regards all...

    Hi Jitesh,
    I believe, that though there are several debit and credit line amounts pertaining to GR/IR Clearing account. System will do clear with transaction F.13 based on sort key information at GL Account.
    If the GL Account Sort Key gets changed, then to be cleared manually with T.Code F-03. Here you will not be in a position to clear if the debit and credit items are huge.
    Then go to FBL3N, match the both credit and debit with same information at Assignment field and do Clearing with F.13
    As we know, it is very big taks. You have to struggle for which the mistake was happend and ensure that the sortkey should not be changed where there are line items to be cleared.
    Regards
    VG

  • Invalid Valuation Class for Plant

    Hello,
    I'm creating a material using t-code MM01, and when I enter a valuation class in the Accounting 1 view, I get error message ZA 038 "Invalid valuation class for this plant".  This valuation class was working before, so I want to look into the configuration to see what may have been changed.  Can anyone point me in the right direction?
    Thanks,
    Cynthia

    Hi,
    the message u got is custom defined message.
    The reason for the designing the message may be that the material that u want to create is not to be meant for the plant u used.
    i hope this will solve the issue.
    Thank You,
    Purnachandra RM

  • Currency problem in BAPI_MATERIAL_SAVEDATA while uploading valuation class

    Hello Experts,
    I am uploading valuation class using BAPI_MATERIAL_SAVEDATA.
    While uploading it is showing runtime error "Unable to interpret KG as a number".
    I have used the FM CONVERSION_EXIT_CUNIT_INPUT to convert the UOM from the file to Field symbol.
    still the same. please guide me.
    I have pasted my code below.
    Kindly go through and help would be highly appreciated.
    *& Report  ZPRI_MAT_PRICE_UPLOAD
    REPORT  ZPRI_MAT_PRICE_UPLOAD no standard page heading line-size 150.
    tables : mbew,      " Material valuation
             makt,      " Material description
             mara.      " General material master
    data : begin of t_matvclass occurs 0,
           material type matnr,     " Material
           ind_sec type mbrsh,      " Industry sector
           mat_typ type mtart,      " Material type
           val_class type BKLAS,    " Valuation class
           MOV_PR TYPE VERPR,       " MOVING PRISE
           STD_PR TYPE STPRS,       " STANDARD PRISE
           base_uom like mara-meins,     " Material unit
           mat_desc type maktx,     " Material description - MAKTX
           plant type werks,        " Plant
           langu(2),
           end of t_matvclass.
    data : wa like line of t_matvclass.
    data: begin of it_makt occurs 0.
          include structure bapi_makt.
          data end of it_makt.
    data :bapi_head like bapimathead,     " Header Segment with Control Info
          bapi_clientdata like bapi_mara,    " Material Data at Client Level
          bapi_clientdatax like bapi_marax,  "Checkbox Structure
          bapi_valclass like BAPI_MBEW,      " Valuation class
          bapi_valclassx like BAPI_MBEWX,    " Checkbox Structure
    *      BAPI_MOVING_PR LIKE BAPI_MBEW,     "MOVING PRISE
    *      BAPI_MOVING_PRX LIKE BAPI_MBEWX,   "MOVING PRISE
    *      BAPI_STD_PRISE LIKE BAPI_MBEW,     "STANDARD PRISE
    *      BAPI_STD_PRISEX LIKE BAPI_MBEWX,   "STANDARD PRISE
          bapi_return like bapiret2,         " Bapi return structrue
          returnm type table of bapi_matreturn2 with header line.
    data : it_excel type alsmex_tabline occurs 0 with header line.
    data: begin of it_ret occurs 0.
           include structure bapiret2.
          data end of it_ret.
    * Data objects for exception handling.
    data : lv_converr type ref to CX_SY_CONVERSION_ERROR,
           lv_dynerr type ref to CX_SY_DYN_CALL_ERROR.
    data : txt_converr type string,
           txt_converr_l type string,
           txt_dynerr type string,
           txt_dynerr_l type string.
    data : char_uom(4) type c.    " Global UOM after conversion
    * Declaring selection screen for selecting a data file
    * for uploading valuation class
    selection-screen begin of block b1 with frame title text-001.
    parameter : file_nam type rlgrap-filename obligatory default
                  'C:\master data UPDATED_test.xls'.
    parameter : p_begcol type i default 1,        " no-display,
                p_begrow type i default 2,        "   no-display,
                p_endcol type i default 9,        " no-display,
                p_endrow type i default 267.      " no-display.
    *parameters: p_valare type mbew-bwkey obligatory.    " Valuation area
    selection-screen end of block b1.
    at selection-screen on value-request for file_nam.
    perform F_get_file using file_nam.
    start-of-selection.
    perform F_xls_itab using file_nam changing it_excel.
    perform F_move_data.
    *perform F_get_data.
    perform F_Display_data.
    *&      Form  F_xls_itab
    *       text
    *      -->P_FILE_NAM  text
    *      <--P_IT_EXCEL  text
    form F_xls_itab  using    p_file_nam changing p_it_excel.
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      EXPORTING
        filename                      = file_nam
        i_begin_col                   = p_begcol
        i_begin_row                   = p_begrow
        i_end_col                     = p_endcol
        i_end_row                     = p_endrow
      tables
        intern                        = it_excel
    EXCEPTIONS
       INCONSISTENT_PARAMETERS       = 1
       UPLOAD_OLE                    = 2
       OTHERS                        = 3.
    endform.                    " F_xls_itab
    *&      Form  F_get_file
    *     Subroutine to get the file on F4
    *      -->P_FILE_NAM  text
    form F_get_file  using    p_file_nam.
    CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
    EXPORTING
       PROGRAM_NAME        = SYST-REPID
       DYNPRO_NUMBER       = SYST-DYNNR
    *   FIELD_NAME          = ' '
    *   STATIC              = ' '
    *   MASK                = ' '
      CHANGING
        file_name           = file_nam
    EXCEPTIONS
       MASK_TOO_LONG       = 1
       OTHERS              = 2.
    endform.                    " F_get_file
    *&      Form  F_Display_data
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form F_Display_data .
    skip 2.
    *write:/2 'Valuation area :', p_valare.
    *write:/2 'Standard price :', p_stdprc.
    skip 2.
      write:/29 sy-uline(120).
      write:/29 sy-vline,
             30 'Material' color 1,               " Material - MATNR
             50 sy-vline, 'Ind_sector' color 1,   " Industry sector  - MBRSH
             62 sy-vline, 'Mat_typ' color 1,   " Material type - MTART
             75 sy-vline, 'Valuation class' color 1,  " Valuation class
             85 sy-vline, 'Base UOM' color 1,          " Base UOM
             95 sy-vline, 'Material Decp' color 1,     " Material descp
             120 sy-vline, 'Mov Price',                 " Moving price
             130 sy-vline, 'Std Price',                 " Standard price
             140 sy-vline, 'Plant',                     " Plant
             150 sy-vline.
      write:/29 sy-uline(120).
    loop at t_matvclass into wa.
      write:/29 sy-vline,
             30 wa-material color 2,               " Material - MATNR
             50 sy-vline,
             55 wa-ind_sec color 2 right-justified, " Industry sector
             62 sy-vline,
             66 wa-mat_typ color 2,                " Material type - MTART
             75 sy-vline,
             78 wa-val_class color 2 right-justified, " Valuation class
             85 sy-vline,
             88 wa-base_uom color 2 right-justified,  " Base UOM
             95 sy-vline,
             98 wa-mat_desc color 2 left-justified,  " Material Desc
             120 sy-vline, wa-MOV_PR,                 " Standard price
             130 sy-vline, wa-STD_PR,                 " Moving price
             140 sy-vline, wa-plant,                     " Plant
             150 sy-vline.
    endloop.
    write:/29 sy-uline(64).
    endform.                    " F_Display_data
    *&      Form  F_move_data
    *      Subroutine to move data from excel to internal table
    *  -->  p1        text
    *  <--  p2        text
    form F_move_data .
    data : lv_index type i.
    field-symbols <fs>.
    * Sorting the internal table
    sort it_excel by row col.
    clear it_excel.
    loop at it_excel.
      move it_excel-col to lv_index.
    * Assigning each record to the internal table row.
      assign component lv_index of structure wa to <fs>.
    * Assigning the field value to a field symbol
    if lv_index eq 5.
    CALL FUNCTION 'CONVERSION_EXIT_CUNIT_INPUT'
      EXPORTING
        INPUT                = it_excel-value
       LANGUAGE             = SY-LANGU
    IMPORTING
       OUTPUT               = char_uom.
    ** Moving the converted UOM to  field symbol
    move char_uom to <fs>.
    else.
       move it_excel-value to <fs>.
    endif.
      at end of row.
      append wa to t_matvclass.
      clear wa.
      endat.
    endloop.
    endform.                    " F_move_data
    *&      Form  F_get_data
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form F_get_data .
    loop at t_matvclass into wa.
    try.
    * BAPIHEAD --- > Header Segment with Control Information
    bapi_head-material = wa-material.
    bapi_head-ind_sector = wa-ind_sec.
    bapi_head-matl_type = wa-mat_typ.
    bapi_head-account_view = 'X'.
    * For Clien Data
    bapi_clientdata-BASE_UOM = wa-base_uom.
    bapi_clientdatax-base_uom = 'X'.
    bapi_clientdatax-base_uom_iso = 'X'.
    * For Valuation Class.
    bapi_valclass-val_area = wa-plant.
    bapi_valclass-val_class = wa-val_class.
    bapi_valclass-std_price = wa-STD_PR.
    bapi_valclass-MOVING_PR = wa-MOV_PR.
    * For Valuation Class control checkbox.
    bapi_valclassx-val_area = wa-plant.
    bapi_valclassx-val_class = 'X'.
    bapi_valclassx-std_price = 'X'.
    bapi_valclass-MOVING_PR = 'X'.
    refresh it_makt.
    wa-langu = SY-LANGU.
    it_makt-langu = wa-langu.
    it_makt-matl_desc = wa-mat_desc.
    append it_makt.
    clear it_ret.
    refresh it_ret.
    if t_matvclass[] is initial.
      write:/ 'Cannot be updated'.
    else.
    perform F_call_bapi.
    endif.
    catch CX_SY_CONVERSION_ERROR into lv_converr.
       txt_converr = lv_converr->get_text( ).
       txt_converr_l = lv_converr->get_longtext( ).
       write:/ 'Error:', txt_converr color 5.
       write:/ 'Error:', txt_converr_l color 3.
    endtry.
    endloop.
    endform.                    " F_get_data
    *&      Form  F_bapi_commit
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form F_bapi_commit.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    * EXPORTING
    *   WAIT          =
    * IMPORTING
    *   RETURN        =
    if sy-subrc eq 0.
      write:/2 ' Transaction commited' color 4.
    else.
      write:/2 'Unable to commit the transaction' color 4.
    endif.
    endform.                    " F_bapi_commit
    *&      Form  F_call_bapi
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form F_call_bapi .
    CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
      EXPORTING
        headdata                  = bapi_head
        CLIENTDATA                 = bapi_clientdata
        CLIENTDATAX                = bapi_clientdatax
        VALUATIONDATA              = bapi_valclass
        VALUATIONDATAX             = bapi_valclassx
    IMPORTING
       RETURN                     = it_ret
    TABLES
       MATERIALDESCRIPTION        =  it_makt
       RETURNMESSAGES        =  returnm.
       IF it_ret-type eq 'E' or it_ret-TYPE eq 'S'.
         Write:/1 it_ret-type,
                8 it_ret-id,
                30 it_ret-number,
                38 it_ret-message,
                190 it_ret-parameter,
                210 it_ret-row,
                220 it_ret-field.
       endif.
    endform.                    " F_call_bapi
    Regards,
    Ranjith N

    resloved.
    issue with the internal table structrue.

  • Service "No valuation class exists for account reference"

    Hi,
    in AC01 trx, I cannot create a Service.
    The error is:
    No valuation class exists for account reference
    I tried with trx OMSK to link the account category reference to material type but won't work.
    The error is always: No valuation class exists for account reference

    Hi,
    try also to check from SPRO, Materials Management, External Services Management, Service Master, "Define Service Category", you have to set the standard "Account category reference" 0006 or the one (custom) you have set in customizing also check (Valuation and Account Assignment trx OMSK)
    Regards

  • Split GR/IR accounts by Valuation Class (PO without material master)

    Hi Experts,
    I've an issue here, when I'm tried to do GR posting (PO without material master), system doesnt able to post GRIR account by valuation class.
    Scenario: PO issue without masterial number, enter description and with material group.
    In the configuration, I've configure "Entry aids for item without material master", assign material group "Asset" and material group "Services" into 2 different clearing account. However, when GR posting, system prompt error message and not able to do posting.
    Kindly advice.

    Yes , you can post to different GR/IR accounts based on the valuation class . In OBYC for WRX , you can choose your rules . In the Rules , select valuation class . Then the system will allow you to choose different GR/IR accounts for each valuation class .
    During the GR , the system will pick the corresponding GR/IR account based on the material grp valuation class .
    Regards,
    Hari.

  • How to shift valuation class from one material type to another material type ?

    I have came across following weird scenario:
    We already created huge no.of materials of material type say ZABC with two valuation classes say 1100 and 1200(GL accounts for these VCs for different posting keys in OBYC settings are same). Account category reference for this material type is 0010.
    After that we created new material type say ZPQR  with new Account category reference 0025, and valuation class 1200 is linked with this ACR 0025. Because of this, valuation class 1200 disappeared from material type ZABC. In order to avoid inconsistency, we need to have valuation class 1200 linked with older material type i.e.ZABC.How we can do this ? What impacts must have happened in this period (from MM/FI) in the system, where valuation class get shifted from one material type(ZABC) to another material type(ZPQR)....please help us in this scenario.

    Thanks Sana,
    We are also looking for the solution provided by you i.e. reassign ACR 0010 to Valuation class 1200.
    Your are also correct in terms of  statement "config doesnt allow me to assign same valuation class to 2 different AREF (Account reference number/Account category reference).
    I wanted to know, what are the possible impacts in the system during this re-assignment of ACR to old material type ZABC.
    Regards,
    Sudarshan.

  • How to change Valuation class in material master(have stock)

    HI,
    I would like to change the valuation class in material master, How to change VC? is there any process before changing VC?
    I heared when Material have nil stock then only it's possible to change VC, Is it correct? which TC can I use for change VC?
    Regards,
    venki

    Dear venki,
    To change Valuation class you must have zero stock in the current period, and zero stock at the end of the last period, plus no open PO lines .  flag for deletion all open PO lines,
    Regards
    shankar

Maybe you are looking for

  • Limitations in using a function within a select statement

    I have a function which retrieves various data elements from the database and formats it accordingly. The data (varchar2) returned could be in excess of 2,000 characters length. I need to use the returned data as part of a view. I am able to use the

  • Random library shuffle Question

    Is there a way to "force" the library to be played all the way through, randomly, before repeating? On my laptop 273 songs have been played more the once while 799 songs been played once leaving 1957 songs that have not been played at all. I'm hoping

  • I want an easy to use program to change a face from one body to another, what would be best for me and my mac?

    I need a program to change a face on one body to another, I need something that is easy to use but will produce a good look.  Any suggestions?

  • Replace Text In SQL Scripts

    Hi, I would like to search and replace text in files when I run .sql files. E.g. When user provide scripts xyz.sql, they would put table name like INSERT INTO  xyz abc VALUES ('text');I would like to replace xyz abc with mytablename. INSERT INTO  myt

  • User Exit in PO & PR

    Hi all, I have a requirement where I have to populate the Material Group and purchasing group of the PO based on the user-selected General Ledger Account Number automatically .      The change is required when:       The user has added or changed the