Spliting up the G/L account in time of Sales Order creation .

Hi,
I am an ABAPer. Please let me know using ABAP code how to split the G/L account in time of Sales Order creation for a Payment Card.
Shyamal.

Hiya,
Don't have the system before me, but I think the approx path is:
IMG --> Controlling --> Profitability Analysis --> Master Data --> Valuation --> Define and Assign Val Strategies (I think it is KE4U).
Look up the Val Strategy assignments and look for anything with Record Type "A".
Secondly, look for:
IMG --> controlling --> Profitability Analysis --> Actual Postings --> Active transfer of Sales Order Data
Under here, look for any assignments of Condition Types to Value Fields and Quantity Fields to COPA Value Fields (Qty.)
If these are present, they must have been put there on purpose. You should NOT JUST GO AHEAD AND DELETE them. Check why these are there and then check why these are flowing into your COPA report.
Normally COPA reports are defined by Record Type. If you used Record Type "F" in your reports, you should always get the proper PL report. However, if you assigned a combination of "F" and "A", you will find that your Order data is flowing into COPA along with the Billing data. So the third check point should be your report definition. Call up the form for the report you are running using transaction KE35 (Change Mode). Check the definition of the Sales quantity, etc. and look for any flows with Record Type "A". Since the form may be used by others, it is not a good idea to delete a form as it is. Copy the form into another and change the new one. Delete the "A" assignments and see if you get the correct result.
Broadly these are the areas you need to check. But COPA is vast and there could be other areas as well (e.g., KEDR Derivations, or some custom programs (SMOD)) which can trigger flows to COPA Value Fields.
Cheers.

Similar Messages

  • One Time Customer Mandatory field during Sales Order Creation

    Hi
    My client has lots of one time customer and they need to capture the phone number  and name of the individual customer at the time of sales order creation using one time customer code.
    They want only "NAME & PHONE NO" as mandatory field so that the Person who creates a Salesorder should enter the NAME & PHONE NO" . Please let us know where the configuration for teh above is?
    We have tried in Account Group One time customer settings which is working at the time of creation of order and not at the time of creation of Sales Order, please help us on the above..
    Regards
    Anis

    Hi Anis,
    In the Account group , if you check the one-time customer then while creating the sales order itself it will appear to change the address for that customer.
    By the time you can enter your required fields.
    I think you mentioned as
    We have tried in Account Group One time customer settings which is working at the time of creation of order and not at the time of creation of Sales Order, please help us on the above..
    Order creation and creation of sales order are both same.
    May be you would have confused.
    regards,
    santosh

  • Sales order creation, standard event trigger is taking long time .

    We have a requirement where we are sending data to CRM system using RFC function module. This data is sent while sales order creation or change. We have used standard event BUS2032.CREATED to trigger CRM FM in sales order creation mode. In sales order change mode, we are using custom event. In production system, our custom change event is getting triggered fine and data is sent to CRM system with small time lag of around 1 minute. But, while sales order creation, standard event trigger is taking long time ( sometimes about 20 minutes) in production system.
    We tried triggering same custom event at the time of sales order creation using FM u2018SWE_EVENT_CREATE_IN_UPD_TASKu2019 as well but, still we are not able to improve performance of the event trigger at sales order creation.
    Regards,
    Sushee Joshi

    HI,
    we have written SWE_EVENT_CREATE in update task
    I think instead of calling in update task simply call to function module CALL FUNCTION "SWE_EVENT_CREATE" might trigger the event immediately.. Did you try to check in this way..
    OR
    And I also suggest you to check the entry in SWE2 txn with respect to your workflow tempalte, may be you have enable the option ENABLE EVENT QUEUE, this could be one of the reasons.. If it is enabled please disable it (uncheck)
    Please check..
    Regards
    Pavan

  • 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

  • Selection Of BOM & Routing at the time of production order creation

    Hi guys,
    Please clarify how i can go about for the following mentioned scenario
    I have one Master BOM(Finished Product Level) & alternative BOMs for that,similarly i have one Master Routing & alternate routings for the same finished product
    At the time of production order creation is it possible for me to choose one of the BOMs & One of the routings of that particular finished product without creating a production version?
    Awaiting for a quick response
    Vijai

    Hi vijai prasad shanmugam ,
                                              In the material master MRP-4 view under the BOM selection you can maintain on what fatcors you want the BOM to be selected  Viz. Selection by order quant.,Selection by explosion date.Selection by production version etc.
    As far as the master recipe is concerned ........ I guess that if there are more than one valid master recipe maintained then SAP will prompt to select the one manually.........
    But it the standard practice to maintain the production version ....... for the similar situation to the one that you have mentioned.
    Please Let me know if I can help you in any way regarding this........
    Please reward the points......... in you find the ans helpful.....
    Thanks
    Kaushik

  • One time Discount Coupon to be used during the Sales Order Creation

    I need help to configure a one time coupon to be used during a Sales Order creation. During 2009 our customers that have purchased more than certain amount we are going to give them a discount Coupon with a code that they can use just one time during his next purchase. I need help to configure this request.
    Thanks

    Hi Gilberto
    Go VK11.
    After maintaining the material & price, please go to -->Additional data.
    You will be displayed with Validity, Assignments, Assignments for retail promotion, Limits for Pricing, Payments.
    In the 'Limits for Pricing' you have three options - Max. condition value, Max number of orders & Max condition base value.
    In the Max number of Orders - enter 1 to avail this special price only for first order.
    Importent Note: to activate the ' Limit of Pricing' -- you need to tick 'Condition update' for the particular contion type, in condition type customising.
    FOr eg. condition type - ZR00 - you need to have special price for this condition type & want to limit only for first order order.
    In the customising for ZR00 - 'condition update' need to be ticked, then only you can get the above option.
    i hope it is clear to you
    thank you
    Anirudh

  • 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

  • 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

  • Account Determination Procedure in Sales Order

    Hi All,
    I have a problem regarding account determination procedure in sales order.
    When I create a new sales document, and go to menu Environment --> Analysis --> Account Determination, the information about the procedure is blank.
    For your information, I already assign this sales document type to a billing type.
    This billing type also already has an account determination procedure, which is KOFI00.
    The G/L Account in VKOA also already been set up for the combination of Condition Type - Chart of Acct - Sales Org - Account Assignment Category in Customer and Material - Account Key.
    But every time I create a new sales order, I cannot get the account determination procedure.
    Anyone can please help me to solve this problem?
    Thank you in advance

    Hi Surya,
    Have you assigned Billing type For Ex: F2 or F1 to respective Sales Order Type in Sales Document Type controls VOV8.
    Assign these F2 against Delivery Related billing and F1 is for Order Related billing.
    Assign KOFI0000 to respective Billing Types F2 and F1.
    And check, hope issue may resolve.
    Revert if u have any query.
    Regards
    Durga sana.

  • 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

  • User exit to control the sales order creation

    Hi All,
    I have a business scenario, where a specific account group customers Business doesn't want to sell the goods .SAP should not allow you to create a sales order.
    Which user exit will solve my requirement?
    could you please help me..
    Regards,
    SK

    Hi Prakash,
    Thanks for the reply. Actually these customers are created as a Agents and we are using these customers in Commission rebates. So at the time of Rebate partial credit memo, then these agents should be active otherwise system will give the error.
    So what i am thinking is, Standard sales order creation needs to be restricted so that users can not able to create standard order.
    So can you suggest is there any user exit can be used to prevent creation of standard order for these account group and order type xxx?
    Regards,
    SK

  • Account detemination possible at sales order level

    Is revenue account detemination possible at sales order level ? When I created the sales order and checked account detrmination analysis, most of the screen is blank. Is it expected to happen at sales order level ?

    Hi,
    Account determination should take place at billing doucmnet level.
    Sales order doesn't give you the idea of how much did you sell to the customer.actual sales comes into picture when yu receive the money from customer after the billing is done.
    Accounts will be hit at the time of PGI but those are controlled from the configuration of valuation class which you put in your material master.
    Reward if it helps.
    Regards
    Karan

  • Delivery lead time in Sales Order--URGENT

    Hi SAP GURUS,
    How the Delivery lead time works in Sales Order  i.e
    "From the time a confirmed Sales order is punched till the time we have delivered the material"
    How to confgure to use effectively

    When you create sales order, system automatically proposes data based on configuration settings.
    1. Check the schedule line proposed by system in sales order. Let's say CP. Go to transaction VOV6 and see if availability check is checked.
    2. Check the requirement type proposed by system in sales order. Let's say 041. Go to transaction OVZH and see what requirement class has been assigned to it. Let' say 041.
    3. Go to transaction OVZG and see if availability check has been checked for this requirement class 041.
    4. Check the shipping point proposed by system in sales order.
    Go to transaction OVLZ and check Loading time & pick pack time maintained there for this shipping point. If there is nothing let's say we have 24 hours and 24 hours respectively.
    5. Check the route proposed by system in sales order. Let's say route selected is 000003. Go to transaction 0VTC and see Transit duration & Transportation lead times maintained there. Let's say timings maintained are  2  days and 1 days respectively.
    Now let's say a customer calls and says he wants a material delivered on Apr 25. Now what the system does is that it does backward scheduling. i.e. it goes backward from delivery date i.e. 25th April. It reduces 3 days for transit time, reduces time taken for loading time, reduces days taken for arranging transport, reduces time taken for pick pack. After calculation it arrives at date Apr 21. Now it checks whether material is available on this date i.e. Apr 21.
    If material is available, it confirms delivery date.
    Otherwise, if material is not available on Apr 21, it determines date on which material is available. Let's say material is available on Apr 23. Now, system immediately carries out forward scheduling. So it starts calculating from Apr 23 and adds time and dates maintained for picking & packing; transportation lead time, loading time and transit time.
    Also note that system takes into account factory holidays, factory timings when it is calculating above. If factory works 24 hours and is closed on Saturday & Sunday, system arrives at date Apr 30. It now confirms delivery date as Apr 30 to customer.
    I have given a simple example. There are many other aspects you can configure on scheduling.

  • Account determination error in sales order

    Dear all,
    Please help. Trying to release a billing document to accounting. Getting the error:
    Document 90000004 saved (error in account determination)
    Message no. VF051
    While analysing: going to Environment - Accnt determination analysis - Revenue accounts :- no condition types are coming under the procedure KOFI000. Checked settings in vkoa. All G/L accounts are mapped. There are invoices of the same document type, with the same condition types in production with correct account determination.
    On further analysis, found that  no condition types are coming  not determined in the sales orders. Yet there is no incompletion log. Quite baffled. The users are punching in cut over sales orders into production. Please help me rectify the situation.
    Thanks,
    Kasturi

    I hope you have incompletion log (OVA2) maintain for WBS element in your sales order.
    Like
    Table
    Fld Name
    Desc
    Screen
    Status
    VBAK
    PS_PSP_PNR
    WBS Element
    KKNT
    Based your requirement , say, 01
    VBAP
    PS_PSP_PNR
    WBS Element
    PKNT
    Based your requirement , say, 06
    Regards
    JP

  • Deleting Partners from the Customer Master that are on Open Sales Orders.

    Does SAP handle removing the Partner from Open Sales Orders when a Partner is deleted in the Customer Master.  For us, this is not happening, this there some config that must be turned on for this to happen ? 
    Or do we have place in code in a User Exit in the Customer Master to check for Open Sales Orders and if so, block the Deleting of the Partner ?  If so, what User Exit should be used ?
    Looking to see how others have handled this.
    Thanks,
    David

    Hi David,
    Try this user exit.
    RFDRRANZ  User exits: Accounts Receivable Information System
    Regards,
    Vijay

Maybe you are looking for

  • Why do videos in my camera roll have a circle icon instead of video camera icon?

    The last 2 videos I took last night (I took 11 in total), show a gray circle icon on them instead of the normal camera icon. The running time on those 2 vidoes is not correct, sound is missing in part of the videos, all of the video is not there, and

  • A question in threading

    Hi everybody, my problem is as follow, I have two classes myClass and myGUI myClass code is public class MyClass      public void start()           while (true)                // do some stuff      public void stop()           System.out.println("Hel

  • Deploying applications to glassfish using Maven.

    Hello, I am both a glassfish and maven newbie. I want to know if there's away to automatically deploy my .war in glassfish via the .pom file. (My current solution: an ant script to copy my target .war to glassfish/domains/domain1/autodeploy is not th

  • Raise Business Events based on condition.

    Hi, Is there a way to raise a Seeded Business event(oracle.apps.jtf.cac.task.updateTask) based on a condition. I want to raise the business event only if there is a update on a certain type of records( if attribute1 is not null or something like that

  • Can you splice AUDIO files with QuickTime v10?

    I just upgraded from a G4 (non-intel) Power Book with QT v 7.7, to a new MacBook Pro with QT v 10.1.  My old G4's QT v 7.7 let me edit audio files - stitch and splice using cut and paste.  But QT v10.1 on my new MacBook Pro apparently will only let m