Assigning a Sales Order Number to a Purchase Order

My company has a requirement that for every purchase order we need to identify what sales order was created to generate the PR.
I have found that by using the Account Assignment C - Sales Order, this opens the "Account Assignment" Tab and the fields for Sales order, item, and schedule Line.
I have saved the PO and now am trying to receive the parts into inventory.  When doing so, the inventory needs to post to our inventory GL account, in our case is 135075.  By NOT assigning the GL with the sales order in the PO it doesn't post to this account it posts to a different GL account.
How do I go about using the "Sales Order" field in the purchase order so I can record which sales order the line item of the PO corresponds to, and when receiving the inventory into stock have it post to the correct GL account?
Thanks,
Karen

The company I work for is a distributor, and doing a Make to Order order type would not be in the best business practice for our company.  We tend to purchase stock for multiple orders and put them in inventory to be sold.  We are looking for a way to "document" what sales order the purchase order line item is being bought for, and sometimes their our multiple lines.
I understand what you are saying regarding posting to an stock GL vs a consumption GL.
I am going to research further and see how we can post to a consumption GL and then move the remaining stock over to a stock GL account after we have sold what we have purchased and received.
I was able to get the receipt posted to the GL 135075 by taking off the "post automatically" indicator in the configuration of the GL account, but this then posed problems when doing other inventory postings such as cycle counting or moving inventory.
Thank you,
Karen

Similar Messages

  • Assigning multiple sales order in ME38

    Hi,
    We have the following scenario with one of our clients
    The business is "Make to order"
    For externally procured materials the system generates PR's .
    The PR's are having account assignment category "M"
    The client follows Scheduling agreements for external procurement.
    In ME38 the PR number generated through MRP is adopted. Here the requirement is to assign multiple sales order for the same line item for a material.
    When I try to assign multiple Sales order then system gives an error " With multiple acct. assignment, enter GR non-val. or cancel GR" Message no. 06417
    . Without ticking GR Nonvaluated is there any other option for assigning mutiple sales order in scheduling lines?
    Regards,
    Naveen Goveas

    Hi Heng,
      The sales orders can be combined in one delivery if the following parameters are same for those orders:
    1) Delivery date for the materials( schedule line tab)
    2) Ship to party is same for them
    3) Shipping point is same for all of them.
    If all the above parameters are same then you can goto transaction VL10A and can put your aboce 3 parameters and execute the transaction.
    All the orders will have one delivery order in that case.
    Reward points if it helps.
    Regards
    Karan

  • How to activate FM Account assignment in Sales Order

    Dear All,
    How to activate FM Account assignment in Sales Order at item level in account assignment category.
    Plz provide some solution for the same.
    Thanks & Regards,
    Pankaj

    Hi,
    Thanks for your reply.
    I am not asking of account assignment group for material.
    My problem is when i am creating Sales Order at item level in Account assignment category there is one field for Fund Mangement account assignment grp.
    I want to activate this field and i have to enter FM area in that field.
    Plz send some solution for the same.
    Thanks & regards,
    Pankaj

  • Table of accounting assignment in sales order

    Hi,
    can anyone show me the table where i can find the accounting assignment in sales-oder position.
    We have some position which have an entry on accounting assignment in sales order which is an quotation.
    thanks.
    Regards, Dieter

    Hello Dieter,
    Is it account assignment category then it is available in VBAP-KNTTP
    Regards
    Farzan

  • Addl Account assignment in Sales order

    We are in Make-to_order Scenario.
    Following is an item which as generated from a SD invoice:
    marketing and management Free : 1300
    In the additional account assignment data, sales order = 1500989
    Cost centre & Internal order fields are blank.
    Can I assign a default Cost centre for this GL account through OKB9 ?  Will it work ?

    Hi Nikki
    Cost center does not work for revenue accounts...  You can assign IO in the additional acct assignments tab
    However, by default the account assignment is to PSG if you have COPA activated
    br, Ajay M

  • WBS Element ( Billing element ) assignment  at sales order header level

    HI,
    There is provision of assign WBS Element at sales order header as well as item level , If Project WBS Element is assigned for each line item delivery  and stock updating is happening from the project, But WBSE will assign at sales order Header  system will not allowing to create project delivery( moment type 601Q), and stock updation ftom project.
    Please let me know how this will happen ,
    Regards,
    Gangi
    Edited by: Gangi Reddy Botchu on Jul 7, 2008 4:50 PM

    SPRO - SD - Billing - Billing Plan - the first 5 config nodes (Define Billing Plan types / Define Date descriptions / Assign Date categories / Maintain Date Proposals / Assign Billing Plan types to Sales Doc types) are applicable to you.
    this is pretty tranparent for a reference.
    What else is required?

  • System allows for closed WBS to be assigned on sales order!

    Hi Experts,
    I have a WBS that has user status of 'Closed', however the system still alows a user to assign on that sales order that closed WBS element.
    How can I make the system NOT allow a user to assign a closed WBS on a sales order?
    Thanks

    Hi
    Ok, I just tried to select business txn Assign order/WBS, flagged 'Forbidden. But it still allowed the user to assign that WBS to a sales order.
    Do I still need to select business transaction 'Complete' and flag the 'SET' radio button, to prevent the WBS from being assigned to sales order? Or should forbidding Assignment Order/WBS be enough?
    Look forward to your responses.
    Thanks
    Edited by: Ehab Mansour on Jan 30, 2009 9:52 AM
    Edited by: Ehab Mansour on Jan 30, 2009 9:59 AM
    Edited by: Ehab Mansour on Jan 30, 2009 1:08 PM

  • Serial number assignment in sales order

    Good afternoon,
    We have a requirement that we must assign a special number "mask" (<sequence number> - <sales doc item> - <sequence number per quantity>) in the moment of the raising of the sales order. I really dont know if in the standard we can do that. If not, is there an user exit that we can use in the sales order for such?
    Thanks in advance.
    Adriano Cardoso

    Hello Adriano
    Not fully sure about your requirement.
    But you can definitely assign Serial numbers to sales order items by selecting the item and  choosing  menu path Extras/Technical objects.
    Firstly you have to set up the Serial Number Profile ( T Code OIS2)  or use the standard delivered ones GG00/GG01. Both have the Serialization Procedure SDAU - Serial numbers in SD order and in case of GG00, the serial numbers are assigned automatically. I am not sure how automatic assignment works but you can test it. Of course, you need to specify the Profile  in the material master to use the functionality.
    Hope this helps.

  • VPRS Costs From Purchase Order Account Assignment To Sales Order

    Hi,
    If i assign a purchase order costs to a sales order using the account assignment category C or E, can the purchase order costs be passed on to VPRS condition type of the sales order?
    This is different from third party order processing. I know for third party order processing the VPRS costs can be passed from the purchase order, but my above scenario is different from third party order function whereby i create a purchase order and a sales order separately and then link them using the account assignment category of the purchase order and need to know if the VPRS cost can be updated from the purchase order.
    Has anyone tried this?

    Has anyone tried this?
    I never tried this, but looks like similar to third party scenario only. You can just test the scenario to understand the system behavior. For details on how the VPRS is calculated by the system, you can refer OSS Note 372772 - How is the cost determined?
    Regards,

  • Assignment on Sales Order creation using a BAPI

    hi,
    i m new 2 bapi,so i usually knw how 2 create BAPI
    1.     Create a sales order using BAPI with the header details from selection screen and item details from the file.
    2.     Have the minimum required header fields for a sales order  – Sales order type, sales org, distribution channel, division, customer, purchase order type, purchase order number as the selection screen parameters.
    3.     Have a field to enter the presentation server path on the selection screen where the file with item details is stored. File will have material, size and quantity required.
    4.     Validate all the relevant selection screen entries.
    5.     Create a sales order with the obtained details using the BAPI
          BAPI_SALESORDER_CREATEFROMDAT2
    6.     Catch all the BAPI errors and display a report. If the BAPI call was successful display the sales order document number and the items. If the call fails, display all the error message encountered.

    Hi Priya,
    Here is the sample program , it may helpful check,
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text FOR FIELD p_auart.
    PARAMETERS: p_auart TYPE auart OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    Sales organization
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text1 FOR FIELD p_vkorg.
    PARAMETERS: p_vkorg TYPE vkorg OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    Distribution channel
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text2 FOR FIELD p_vtweg.
    PARAMETERS: p_vtweg TYPE vtweg OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    Division.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text3 FOR FIELD p_spart.
    PARAMETERS: p_spart TYPE spart OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SKIP 1.
    Sold-to
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text4 FOR FIELD p_sold.
    PARAMETERS: p_sold TYPE kunnr OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    Ship-to
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text5 FOR FIELD p_ship.
    PARAMETERS: p_ship TYPE kunnr OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SKIP 1.
    Material
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text6 FOR FIELD p_matnr.
    PARAMETERS: p_matnr TYPE matnr OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    Quantity.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text7 FOR FIELD p_menge.
    PARAMETERS: p_menge TYPE kwmeng OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    Plant
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text9 FOR FIELD p_plant.
    PARAMETERS: p_plant TYPE werks_d OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    Data declarations.
    DATA: v_vbeln LIKE vbak-vbeln.
    DATA: header LIKE bapisdhead1.
    DATA: headerx LIKE bapisdhead1x.
    DATA: item LIKE bapisditem OCCURS 0 WITH HEADER LINE.
    DATA: itemx LIKE bapisditemx OCCURS 0 WITH HEADER LINE.
    DATA: partner LIKE bapipartnr OCCURS 0 WITH HEADER LINE.
    DATA: return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
    DATA: lt_schedules_inx TYPE STANDARD TABLE OF bapischdlx
    WITH HEADER LINE.
    DATA: lt_schedules_in TYPE STANDARD TABLE OF bapischdl
    WITH HEADER LINE.
    Initialization.
    INITIALIZATION.
    v_text = 'Order type'.
    v_text1 = 'Sales Org'.
    v_text2 = 'Distribution channel'.
    v_text3 = 'Division'.
    v_text4 = 'Sold-to'.
    v_text5 = 'Ship-to'.
    v_text6 = 'Material'.
    v_text7 = 'Quantity'.
    v_text9 = 'Plant'.
    Start-of-selection.
    START-OF-SELECTION.
    Header data
    Sales document type
    header-doc_type = p_auart.
    headerx-doc_type = 'X'.
    Sales organization
    header-sales_org = p_vkorg.
    headerx-sales_org = 'X'.
    Distribution channel
    header-distr_chan = p_vtweg.
    headerx-distr_chan = 'X'.
    Division
    header-division = p_spart.
    headerx-division = 'X'.
    headerx-updateflag = 'I'.
    Partner data
    Sold to
    partner-partn_role = 'AG'.
    partner-partn_numb = p_sold.
    APPEND partner.
    Ship to
    partner-partn_role = 'WE'.
    partner-partn_numb = p_ship.
    APPEND partner.
    ITEM DATA
    itemx-updateflag = 'I'.
    Line item number.
    item-itm_number = '000010'.
    itemx-itm_number = 'X'.
    Material
    item-material = p_matnr.
    itemx-material = 'X'.
    Plant
    item-plant = p_plant.
    itemx-plant = 'X'.
    Quantity
    item-target_qty = p_menge.
    itemx-target_qty = 'X'.
    APPEND item.
    APPEND itemx.
    Fill schedule lines
    lt_schedules_in-itm_number = '000010'.
    lt_schedules_in-sched_line = '0001'.
    lt_schedules_in-req_qty = p_menge.
    APPEND lt_schedules_in.
    Fill schedule line flags
    lt_schedules_inx-itm_number = '000010'.
    lt_schedules_inx-sched_line = '0001'.
    lt_schedules_inx-updateflag = 'X'.
    lt_schedules_inx-req_qty = 'X'.
    APPEND lt_schedules_inx.
    Call the BAPI to create the sales order.
    CALL FUNCTION 'BAPI_SALESDOCU_CREATEFROMDATA1'
    EXPORTING
    sales_header_in = header
    sales_header_inx = headerx
    IMPORTING
    salesdocument_ex = v_vbeln
    TABLES
    return = return
    sales_items_in = item
    sales_items_inx = itemx
    sales_schedules_in = lt_schedules_in
    sales_schedules_inx = lt_schedules_inx
    sales_partners = partner.
    Check the return table.
    LOOP AT return WHERE type = 'E' OR type = 'A'.
    EXIT.
    ENDLOOP.
    IF sy-subrc = 0.
    WRITE: / 'Error in creating document'.
    ELSE.
    Commit the work.
    COMMIT WORK AND WAIT.
    WRITE: / 'Document ', v_vbeln, ' created'.
    ENDIF.

  • No inquiry items and project assignment to sales order

    Hi Friends?
    I am using DP81 to create sales pricing but getting error message when entering project number that
    No inquiry item exist for project
    There are no inquiry items for project A1
    Message no. VPK1111
    Diagnosis
    A project-assigned inquiry is a prerequisite for sales pricing.
    To access sales pricing, choose Logistics or Accounting -> Project System  -> Controlling -> Planning .
    Procedure
    Check your entries.
    If required, create a customer inquiry and assign it to a WBS element for your project definition.
    *Further we assign the the project in sales order via( VA01-->account assignment tab here we can assign the WBSE to sales order).*
    Is there any other way to assign project to sales order?
    Regards

    The error message clearly states that you have not created any sales inquiry...You wanted to carry out sales pricing, for that you need an enquiry from customer...So first create inquiry in VA11, there you assign WBSE and then do DP81

  • Handling Unit assignation to sales order

    Hi you all,
    I am facing with a problem when trying to create a handling unit assigned to a sales order. I want to have the functionality of transaction HUP32. The problem with this transaction is that it is possible to include only one batch in the handling unit. I want to do this process but creating handling units with more than one batch.
    The other option I've tried is to create the handling unit with transaction HU02. This handling unit is created with the batches and material that I want but then I can't assign the handling unit to the sales order item.
    When I create the deliveries of this sales orders with handling units assigned, the handling unit is automatically assigned to the delivery. That's the functionality I want to keep.
    If anybody could help me I would thank it very much
    Regards,
    Javier Romano

    Multi-level Packaging in Delivery
    Before creating the packaging material you have to go to:
    IMG-Logistics Execution-Shipping -Packing.
    1. Define packaging material types- it can be anything like boxes crates, etc. in this you have to maintain the output determination procedure, output type, plant determination, packaging material category, generate delivery items, number assignment. you can copy from standard also.
    2. Then go to _define material group for packaging materials_ - here you maintain the four digit code and the description. Actually, this group is nothing but similar products which require similar packing products. For Ex. Nokia Phones all types they are basically packed first into a polythene bag. So here nokia phones can become a material group for packaging materials and polythene bag can become the packaging material type which can include different sizes and types of polythene bags.
    3. _Define Allowed Packaging Materials_ - Here you assign the shipping group for packaging materials to the packaging material type. This is related to your material master data of the packaging material which you create.
    Now go to MM01 to create a packaging material. use material type as Packaging material then inside the system will take the item category group as VERP.
    Then in the Basic Data1 screen you have the material group for packaging material (MGPM). Select the proper one. Now in the Sales:General/ Plant screen you have to maintain data regarding the packaging. you select the MGPM same as the basic data 1 screen, then select the packaging material type, the allowed pkh weight, allowed pkg volume.
    This is important because if the weight of your finished item is 2 KG and in the allowed pkg weight you enter only 1.5 KG, then while you carry out the packing process in delivery, the system will give you error," packaging weight exceeded."
    The assignment in the IMG creen for Define allowed packaging materials should be same as u mention in the material master. Then save your material master for packaging material.
    VA01 create the order, save it.
    VL01N enter shipping point, go to edit - pack- you will face a screen with 2 parts. In the top part you select your packaging material in which you want to pack your finished item, enter the system will assign a number to that material. Now select the Material in the top part and the finished one in the lower part and click on the Icon Pack. Here one thing has to be taken care of.
    Suppose if you want to pack only one finished item in one packaging material, then in the lower part of the screen you have a field for partial quantity here you change it to 1. system will prompt quantity changed. now you select the material in the top part and the one in the lower part and click on the PER PART. QTY ICON. In this way the system will pack only one finished item in a single packaging material. Packing is done go back, select the picking and do the PGI. save the delivery and create the invoice.
    HANDLING UNITS. (Used for Multi level packing)
    Basically handling units come into picture when you want to carry out multi level packing. suppose you want to pack Nokia phone first into a polythene bag, then this polythene bag is again packed in to box. like that. then this box will become a handling unit. For this go to :
    IMG - Logistics General - Handling Unit Management - Basics.
    First create all your packing materials using MM01 and type as packaging material. Maintain all the assignments in IMG in Logistics General.
    In basics you do the same thing as you did in the packing in logistics execution. like you create the packaging material type, then MGPM and their assignment.
    Then go to External Identification - and maintain the number ranges for the handling units that you want and assign the same to your packaging material type.
    Now that you have done everything, create the order, save it, in VL01N, enter shipping point, go to edit - pack - do the same thing as i have told you in the step no. 6 (above). now after doing select the PACK HUs TAB . NOW IN THIS SCREEN IN THE TOP PART YOU WILL SEE THE ALREADY PACKED MATERIAL. In that same part again select your next packaging material that is BOX. enter the system will assign the number to the BOX.
    Now select the material which you have just entered and the materials which were already packed in the lower part of the screen and click on the ICON PACK.
    In the same way again in the top part of the screen you select your next level packaging material and press enter. the system will assign a number to it. now select the material you have just entered and the previously packed material in the lower part of the screen and click on the icon PACK.
    In this way you can carry out multilevel packing. just take care of the allowed packing weight and the number of units you have to pack in the next packaging material.
    Regards,
    Anbu

  • Characteristic Value Assignment in Sales order

    Hi Pals,
    I am using the Variant configuration scenario in the sales order. My problem is, when ever i try creating a new sales order and enter a material, it suppose to display the Characteristic Value Assignment screen but for me it is showing the "Display Characteristic Values" Screen. Because of this i am unable to enter the data at the sales order level. what might be the problem for this case.
    Kindly help me out in this issue.
    Thanks & Regards,
    Srinivas.D

    Dear,
    I hope the following link will help u in giving a good understanding of Characteristic values
    help.sap.com/printdocu/core/Print46c/en/data/pdf/CACLCHR/CACLCHR.pdf
    Regards,
    R.brahmankar

  • Validate account assignment in Sales Order

    How do we get the account assignment (cost centre or internal order) validated in the sales order?
    By 'validated' I mean to have them pass the CO account assignment rules where for us the accounts that are going to be posted to by this type of sales order are accounts that must have either a cost centre, or an internal order (real type) or both a cost centre and a (statistical) internal order.
    The full details are ... we have a certain sales order type that is used whenever we are processing a 'no charge' (no charge to the customer) sales order and for these orders we want the goods issue from the delivery to charge the inventory value of the goods to the cost centre or internal order within the sales order, then also when the billing document is created (which is needed to post the additional conditions we have added to these no charge items) likewise this is to post those conditions to that same cost centre or internal order.
    We have found that a user can supply both a cost centre and a real internal order, and of course when it comes to billing it will not post through.
    Can the account assignment logic be checked at the sales order (create or change mode) and error message the user if they have supplied an invalid account assignment?
    Thanks,   Ken

    hi,
    can you check is there any user exit or enhancement available which can be used

  • Account assignment in Sales order

    Hi Experts
    Please can I make an account assignment of a sales order item to a cost center.
    If so, how do I customize the required fields.
    Thanks, felix

    Hi Sivanand
    Many thanks for your swift response.
    I have gone to transaction OVF3 to set up my cost center details but im not able to see it in the 'Account Assignment tab' of the item line of the sales order.
    Pleae could you direct me to a place in customising where i can activate the cost center field to show in the Account assignment tab ofthe sales order item line.
    Thanks, Felix

Maybe you are looking for

  • How can i do to solve the jboss and mysql

    when i deploy the mysql-service.xml to the C:\jboss-3.2.1_tomcat-4.1.24\server\default\deploy i get the exception as org.jboss.deployment.DeploymentException: exception in init of file:/C:/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/mysql-service

  • About the for period

    hi,     can u tell me the diff.  for -period and in-period in the sap-abap-hr. wt is the use of these in hr-payroll

  • Deploy Endpoint Protection for 40+ laptops

    Hey there smart people!  I am in the process of bringing 40+ laptops out of workgroup mode onto the domain, and want to design a security solution for them other than named AV accounts.  I've worked with SC products before but in a Dev environment, n

  • IS-U Schema and rates steps configuration Guide

    Dear Gurus, I am new in IS-U I will be very thankful to you guys if any one can give a confiiguration guide regarding the schemas. I am very muck lost in Rates Steps. Thank you for your Help. Regards Saeed Moderator note - thread locked.  No research

  • Problem with sending sms with FM SO_NEW_DOCUMENT_SEND_API1

    Hi All , I'm facing a peculiar issue where the SMS is being sent to one document type but not for second document type. When the code is executed at this FM SO_NEW_DOCUMENT_SEND_API1  in the working scenario  I see that table SOSC is updated with tra