Account Assignment Group in DBM Order

Hey Experts,
When I change the account assignment group (AcctAssgGr) in DBM order split screen for the customer in the transaction level it is not taking the changed accont assignment group. Basically I want to overwrite the account assignment group given in the customer master record. Please advice.
This requirment is basically since the customer is defined as a credit customer, but at times the customer will have cash sale transactions as well. Thus the account that needs to be posted is different. For this I need to change the account assignment group in the transaction level without changing the master record.
Hope the question is clear.

Hi,
yes I found that this is standard behavior programmed, i.e. AAG is picked from customer master while passing to billing document. Only way I think is to use user exit
USEREXIT_FILL_VBRK_VBRP in program SAPLV60A
Below is sample code:
   DATA: lo_order   TYPE REF TO /dbm/cl_order.
   FIELD-SYMBOLS:  <ls_splhdr>   TYPE /DBM/SPLIT_COM.
   if xkomfkgn-/dbm/vbeln IS NOT INITIAL.
   and xkomfkgn-/dbm/splnr IS NOT INITIAL.
   PERFORM get_order_object_for_billing IN PROGRAM /dbm/saplorder_int
                                                USING fkomfkgn-/dbm/vbeln
                                             CHANGING lo_order.
   CHECK lo_order IS BOUND.
* transport charg from order item to the invoice
   READ TABLE lo_order->MT_SPLHDR_COM WITH KEY vbeln = fkomfkgn-/dbm/vbeln
                                            SPLNR =  fkomfkgn-/dbm/splnr
                                              ASSIGNING <ls_splhdr>.
    VBRK-ktgrd = <ls_splhdr>-ktgrd.
   endif.

Similar Messages

  • About account assignment group in Sales Order.

    Hi gurus,
    I am working in SD for the first time and I am facing below problem
    1. Material code was created  with account assignment group (MVKE-KTGRM)  as blank (Sales Org 2 view)
    2. Later this material was entered in Sales Order.
    3. Subsequently Sales Order BOM and Production Order were made against this material.
    4. We maintained account assignment group in material master after creation of Sales order but account assignment group was not updated in Sales Order.
    5. Now the field is gray out or non-editable is there any way by which we can maintain account assignment group in the sales order.
    6. As the field is non editable we are unable to do Invoice by VF01.
    Is there any way by which we can maintain account assignment group in Sales Order??
    Edited by: Deepak Kulkarni on Mar 6, 2012 2:09 PM

    Hi
    As you have mentioned that you have maintained the acct assignment grp in the material master after the order was created, it will not appear in the sales order item already created and it will only reflect in new orders and changes to existing orders for that material.
    Proposed solution:
    If it is order related billing that you are doing, then goto VA02 and delete and re-enter the item with same material and qty.
    The account assignment group will appear.
    If the item is delivery related and if the delivery has already been created but PGi not done, then delete the delivery and then delete the item in the sales order and re-enter the item as told above. If PGI also done, then reverse the PGI, delete the delivery and re-enter as suggestd in above scenarios.
    The account assignment group will appear in the billing document document tab in item level.
    Regards
    Madhu

  • Material Account Assignment Group, in Sales Order Mass Update

    Sd Experts,
    We just went live, our consultant updated Account assignment group at the material level but did not updated existing materials. When we caught the problem and updated exisisting materials there were some existing orders already created. Which now I am getting an account determination error due to this field being empty at the material level.
    We have some sales orders that I need to update but they are just too many, currently I have been fixing them thru VF02, for to the material and update manually.
    Does anyone has any idea how to mass update this field for all existing orders, to update "Account Assignment Group" field automatically
    Your help will be greatly appreciated.

    Hi
    In Mass transaction choose object type as #BUS2032,after executing in the next screen from the tables choose#Sales Order Item Data, and from the fields choose#AcctAssgGr (MASSSDHE)-MASSSDHEAD_S-KTGRD, now execute to find fields Sales document and Sales Document item , here load all the Sales Orders for which the change is needed along with the items for which the changes are needed execute again to find the next screen with Sales Documet, Sales Document item and Account assignment which needed to be changed,now select the entire block enter new values in the Account assignment  box in the above, click on the 'Carry out MAss change button ' and then save, it will take some time basing the change tobe carried and issues a log as to how many documents were changed
    Hope this is clear,please do a test run before.
    Regards
    Chandra

  • An incorrect default value of account assignment group in sales order

    I created a new sales order; however, the default value for account assignment group is not the same value maintained in customer master.
    Any idea how could this happen?

    have you checked user exit MV45AFZZ? Maybe there is a coding inside, changing the default value when creating a new sales order.
    regards
    Ralf

  • Purchase order creation - Account assignment group C (Sales Order)

    Hello Gurus
      During the purchase order creation in Me21N, account assignment category C (sales order) is available. In which scenario we will use it. When I assign C system is asking for a GL account. Why system needs a GL account, and how the posting will be at the time of goods receipt. Thanks for your help in advance.

    Hi,
    Creation of Purchase Order with t.code: ME21N  with account assignment category C (sales order) is used for Time and Material Expenses with third party scenario and you need to enter sales order number and respective G/L account . In this scenario 1st a  sales order is created with a material( material created DIEN material type) & then purchase order created with respect to sales order.
    Here you provide service to your customer and this service you procure from your vendor, you just play middle role  for providing and getting service.Standard DIEN material type designed for Sales usage only, so you create sales order  for service material.Service master is used to get service from vendor with item category D with proper account assignment category as C
    Example:
    Material type DIEN is used for when you offer "SERVICE" to your customer.( The steps are (VA01,VF01,VF04,F-28), If u used HR module( you can used with sales order with t.codes are: CAT2,CATS_APPR_LITE,CAT7,PR05,PRRW,PRFI)
    Service Master records(AC01)ESM is used when you procure "SERVICE" from your vendor.( Steps are: ME21N with Item Cat. "D" with Acc. ***. Cat. "C", ML81N,MIRO & F-53).
    Regards,
    Biju K

  • Mass change of account assignment group in sales order

    Dear All.
    We have created a new Account assigement group and assigned revenue accounts to it.When the orders are registered this data will flow from the master data automatically.Where as in the open orders i need to make the changes manually.Is there a provision in std SAP to Mass change a filed in  sales order .Like we do in MM17 or XD99 .Kindly let me know.
    Thanks in advance .
    regards,
    K.Vivek

    Hi,
    Go to XD99,
    1. Select the table ie KNVV in the tables tab, select the fields tab and select the fields u would like to change for eg Acct assignment group
    2. Execute the report
    3. U will come to the screen where u can restrict the entries.
    Enter the criterion say
    Cust: Test 1
    Sales Org 8000
    Dist 08
    Div 08
    4. Again press execute
    5. Enter the new values you would like to have
    6. Now select columns of the new values and press carry out mass maintainence button in the new values area
    7. Press Save
    8. u will then receive a success message
    Best regards
    Mahesh

  • Change in Account Assignment group in Open Sales orders

    Dear All
    In SAP 4.7 there are 100 nos of Sale order item having Account Assignment Group .
    I need to change the account assigment group field from open sale orders, but the field is grey.
    Is it possible to change the subject field.? Please help
    Regards
    BGLimaye

    If I am correct, even in creation mode, this field (Account Assignment Group) will be in grey mode and cannot be maintained manually in sale order. 
    Whatever you maintain in material master, that only will flow.  Due to some reasons, if the same is not flowing in sale order and you want to rectify this,  if you ask me, the only option is close those line items, maintain the account assignment group in material master, create LSMW for VA02 and include as new line items.
    thanks
    G. Lakshmipathi

  • The material account assignment group is missing in sales Order creation

    Hi Gurus,
    When creating the sales order the material account assignment group is not copied in the sales order line item. 
    For eg: when the sales order has 5 line item for one of the line item the material account assignment group is not getting copied. 
    I checked the material master - A/C assignment group was maintained.
    I checked the revenue account determination every entry is maintained with respect to GL account. 
    But even though while creating the sales order the line item does not have account assignment group. Due to this i could not able to release the billing doc to accounting.
    Please if any one can help in this regard to solve why the account assignment group is not copying in the sales order line item while creating.
    Thanks in advance.
    Jack

    Hi,
    May be the system is not updating the data. Try creating a new sales order to check. Also check the division of the product for which the acct *** grp is not showing.
    Check whether the acct assgt group which you have maintained in the matl master and that in the acct determination (VKOA) is the same.
    Reward points if solution helps.
    Regards,
    Allabaqsh G. Patil

  • G/L account determination through material account assignment group

    Hi ,
           I would really appreciate any help on this . The scenario is .
    We changed the account assignment group of maetrial to 01 just 2 days back.
    We have old open sales order line up for this particular material . When I am trying to Bill these open orders , the system is not recognizing the account assignment grp change which happened 2 days back ,because of which I am getting a A/C determination error .
    This is a I/C order and we have PO linked to it. I am suggesting to back out everything (Do Invoice reversal,MIGO cancellation,PO cancellation , then cancel invoice ,delivery and sales order ) so that we can create a new cycle and  the system will recognize the account assignment grp change and determines  the G/L whwn it comes to acounting .
    1. Is this the right way
    2. Is there any other way by which I can make the accounting happen
    It was very obvoius that when I see the account determination analysis ,the system wasn't able to find the account assignment grp for the material .
    Thanks
    Sridhar

    Dear Sridhar
    First of all, I dont think, you will be able to change the Account Assignment Group of a material in sale order if any subsequent document is generated bcoz the said field will become uneditable.  Moreover, via MASS, this is not possible as the field name of Account Assignment Group for material (KTGRM) is not available in MASS.
    So the other option is via MASS, you can assign Reason for Rejection for existing orders.  To assign Reason for Rejection in bulk is run T.Code MASS, input [BUS2032]  as Object Type and execute.  There block he Sales Order Item Data and click on Fields and block the field MASSVBAP-ABGRU and execute.  Input the sale orders if possible otherwise leave it blank and once again execute.  Now you can assign Reason for Rejection in mass.
    Meanwhile, you have to create new orders for all those open items.
    thanks
    G. Lakshmipathi

  • Account Assignment Group for Customer........

    Hi Experts,
    We have created few new account assignment groups as per our customer requirement.....now if we want to update those new AAG for the already created documents like open sales order,sale order with delivery & open billing,how to proceed with that?.....any transctions do we have to execute this?.........Looking forward for your reply..........
    Regards,
    S.Kumar

    Hi,
    You can change the account assignment group in completely open orders via tcode "MASS" by selecting object type BUS2032.
    since the account assignment group will be picked from sales order, need not to be changed in open delivery or billing.
    Also for partial processed order would advise pls do not change the account assignment group. Another option could be to close the open orders and creat equivalent qty new order with correct account assignment group.
    Pls check & revert.
    Regards
    Sanjay

  • How to grey out the Account Assignment Group Fld  in Billing Doc Line Item

    Hi SD Guru's
    I have a small doubt.
    I have maintained account assignment group in material master. Now when i create an order , the account assignment group gets picked from material master into this sales order.
    Now i go to VF01 for doing the invoicing.
    Now i can still go to billing document line item against the material and change its account assignment group before raising the invoice. When i change this field, i can still post to accounts.
    I want to know is there any way in which we can restrict the way in which this field is greyed out and is made non-editable, so that only correct entries with account assignment group maintained in material master are posted.
    Answers will be appreciated.
    Kind Regards
    Ravi

    Hi,
    Sandeep can you please give me step by step process of using SHD0 in this case.
    Now if i apply this to transaction VF01 and VF02, would it apply for all billing document types? I dont want that, i want it to work for a specific billing type
    Kind Regards
    Ravi

  • Change Material account assingment group in sales order

    Dear Experts,
    In sales order material account assignment group field is gray, we want to change it as per our requirement. How to do?
    Please guide
    Regards
    BK GAIKWAD

    Hi,
    could you please take a field and explain how to do in Screen variant?
    e.g. VA02, item level, Tab Billing Document, field VBAP-KTGRM
    currently you can not change this (greyed out), what steps to do, so that you can then change in this field?
    Many thanks!
    actually the question which I am asking now is the original question......
    Edited by: Typewriter on Jun 25, 2011 5:54 PM

  • Account Assignment group is blank in billing dcoument !

    Hi,
    In some order Account assignment group is blank in billing document which led to Account determination error in production system .
    I have checked account assignment group is already maintained for material(mm03) and customer(xd03) in the PEC.
    In VF02 for only one item in order AAG is coming as blank . that is why in account determination analysis for that item 'No G/L account found in Account determination type KOFK' is coming . And User is getting Account determination error . I have checked in VKOA G/L account is maintained.
    I know manually I can enter the value of AAG in VF02 for the item &  error will get resolved but I want to find the reason since it is in PEC system.
    Can anyone provides solution k why AAG comes blank for  billing document that led to  account determination error. ?
    thanks in adv.
    Reg,
    Rahul.

    Hi Rahul,
    Kindly refer the answers below:
    Q. Can you suggest where/how to check all condition table which is being used to determine G/L account
    A. After creating the invoice, go to VF02 transaction code by providing your billing document nnumber and enter it. In main menu bar, you need to choose Environment --> Acc.determ.analysis --> revenue Accounts. Here you will get on what level GL code is getting determined. Further in transaction VKOA, you can check on what basis / selection parameters G/L codes are aligned. In VKOA initial screen, you will have the table column. If table is showing as 230, that means in SE16 transaction code, it will be C230.
    Q. Why  AAG value is  blank in Billing document.
    Regards. 

  • How to Assignment between Material and Account Assignment Group

    Hi,
    When we are creating a sales order with material ABCD, then in material line item -->under Billing Document Tab --> in Accounting screen, there is field Acct asgnmt grp (Account Assignment Group).
    From where we can assign between Material and Account Assignment Group, after that it automatically pick in sales order creation.
    Please guide..

    Please refere to below link it may help.
    Re: how to configure new account assignment group of material
    Thanks Dev.

  • Report as per Customer Account Assignment group or Material Account Assig

    Hi,
    I require report as per customer account assignment group or material account assignment group.
    Can you please tell me how to fullfill this requiremetn.
    I have go for ZReport or any standard report is available.
    Regards,
    ch.srinivas

    Hi,
      You could have gone for a query but unfortunately,you cannot use table TSTMT in a query so I think ZREPORT would be a better option.
    Regards
    Karan

Maybe you are looking for

  • Variable Frame Rate

    If I have clips that were recorded at different frame rates, say 24fps and 60fps, and I put them in the same video project, how does PE11 handle this? Will it cause issues or lower the quality?

  • Adobe flash player times out on download before installation

    Have tried to download and install new Adobe flash player many times w/o success, either on my desktop (3.4 GHZ win-7 64-bit with 16 GB ram) or my laptop.  I use Norton IS, but should not be a problem.   Finally tried removing old version first, but

  • Unable to discover wordpress file in CS5

    Hello everyone, This is the first time I have dabbled with wordpress for CS5. I have XAMPP set up and have created my wordpress log in to view the dashboard.  I went in and activated a theme and it is in my file structure under my website name in the

  • Problems with Importing / Exporting Keywords and Meta Datas

    Hi to all! I recently upgraded to Aperture 3 and upgraded my referenced library. Today I opened the Keyword HUD and noticed some keywords splattered in my list, which seem to be any older ones, since the new numbering indicated that they are not appl

  • Downloading CS6 : Error 110

    I'm trying to download the trial ver. of CS6. It stopped. got an 110 error. I'm using windows XP Pro.I want to know what error 110is?