Purchase orders and automatic GL Account

Hi,
In a PO, I try to automatically enter the GL account using user fields. I want the users to select a userfield and to setup the account number associated into the PO Line GL Account field.
My configuration is :
- user table (PROJ) with a code, an name, and a account number.
- a user field in the PO form displaying the PROJ table content,
- a query which returns the account number of the PROJ selected in the userfield,
- in the PO Lines, the GL Account field is automatically defined by the previous query on exiting Price column,
The process is ok, the GL Account line is filed with the account number of the PROJ table field selected but there is a red error message : "Character number is greater than allowed [2000-1]"
Then I can Add the PO, but It is saved without GL Account Number..
thanks for your help

The GL Account field in PO Line is not a UDF, it's a standard field.
other information, if I try to fill the GL Account field using the SAP orange arrow, it's ok(by selecting the same account number)
Franck

Similar Messages

  • Automatic account postings (for Intercompany Purchase order and Sales order

    Hi all,
    I need some help related to the automatic account postings (for Intercompany Purchase order and Sales order)which i can set for the follwoing scenarios. I have looked on the forms and searched alot but not able to a single solution to solve both the pupose. if one scenario works the other doesnt. Please advise.
    I have created the master data
    Customer receiving--G001
    Sales Org.--GXIN
    Distr. Channel- 01
    Division - 00 
    Company code receiving - G1
    customer supplying- V001
    company code for supplying- V1
    2 different scenarios
    1- Intercompany Purchase order in which a Customer receiving- G001, gets stock replenishment NB purchase order from supplying company V1- GI  and GR of stock is done. Biling document for customer receiving G001 is created. But now I need a way to do the opposite side posting at the supplying customer -V001-- this I do using an Idoc which creates a Invoice receipt for creditor(supplying customer) V001.
    2. Sales order-- A customer X001 of company code G1 buys stock from the company code V1. the customer G001 of company code G1 bills the customer X001, but the intercompany billing doc/ invoice is created for the customer G001 by company code V1.  then now i want an automatic account posting to be created at the supplying customer V001 via idoc.
    Can this be achivable via Idoc with automatic account postings.   
    Please let me know if it doesnt make sense. thanks to all in advance
    cheers
    Jasmeet

    Hi all,
    For the Sales order and automatic posting we have created an output type ZR4N- this is creating a batch input session which can be triggered to be processed autmatically.
    For the intercompany Purchase order -from Invoice we are creating a different output RD04 (sap standard) which creates invoice receipt at the vendor side.
    Rest of the settings are defined using SAP standard functionality within transaction OBCA, OBCB, OBCC, OBCD,OBCE
    thanks for viwing the post
    Cheers
    Jasmeet

  • Automatically adding  purchase orders and maintenance contracts

    We are actually doing our purchase requisition and quotation externally through a procurement agent.  We get an excel sheet extract from our proquriement agent of all our purchases.  We want to be able to automatically enter these purchases into the system for record keeping.  Is there a way SAP can automatically read the extract file and enter purchase orders and maintenance contracts into the system?  Any help would be greatly appreciated.

    The GL Account field in PO Line is not a UDF, it's a standard field.
    other information, if I try to fill the GL Account field using the SAP orange arrow, it's ok(by selecting the same account number)
    Franck

  • Purchase order and Account assignement category- Change

    hi.,
    We are trying to receive the Purchase order of High value components into INVENTORY.
    However, most of these Purchase Orders were created with account assignments.
    Because of that, if we receives these PO’s, they will be consumed against the object identified in the account assignment.
    Additionally, some of these have been invoiced already and would need to be backed out from the finance side.
    Question: How can we receive these STO Purchase orders and then make changes through Movement type ( or any other way ) so that the HIgh Value Components that are consumed against that AC assignment can be subsequently moved into Invenotory.
    Also, what are the other options ( FI will not open Previous period) so that the PO's which have been invoiced  can be reversed against that AC assignment.
    Thanks All

    hi Rajesh.,
    As mentioned earlier, these  Purchase orders are STO's which have been already created and we are waiting to do the GR for the same. Items in the STO PO are of  High value which we need to bring into  INVENTORY.
    But, because these STO PO's were created with account assignments, if we do GR now, they will be consumed against the object identified in the account assignment.
    Some of these STO PO's have been invoiced already and  FI has indicated that they could cancel the invoices for those STO PO's in previous posting period.
    Question again : How can we receive these STO Purchase orders and then make changes through Movement type ( or any other way ) so that the HIgh Value Components that are consumed against that AC assignment can be subsequently moved into Inventory and not to a cost Center (202)
    Step (1) Can we cancel the Invoiced items> reverse the GR for invoiced Items>reverse STO for PO ?
    Step (2) Can we reverse the STO for PO for which GR has not been done? then
    Step (3) Change the PO through ME22N, remove the Account assignment category?
    Or how do we correct this situation for
          (1) PO's already invoiced.
          (2) PO for which GR has not been made. How can we receive them into Stock and not Cost center.
    Anticipating a reply
    Thanks
    Sri

  • Old Purchase orders and template - Price Information not taken into account

    Hi experts,
    In MDM catalog, I have a product with 'Price Information' and with 'Contract price'. I create a shopping cart with the 'Price Information'.
    Then, I create another shopping cart using the anterior througth the functionality 'Old Purchase orders and template'.
    The price taken into account is the 'Contract Price'
    Is this the standard procedure?
    Thanks in advance,
    R Silva

    as far as i know the price preference is in this order
    1. Contract price
    2. Purchase Info record
    3. list price
    so in that case - this is standard procedure
    you can confirm - by doing the same process for an item that  has ONLY price information (list price) and see if that price is copied from old to new SC
    thanks
    -Adrivit

  • Want to see combination of Purchase Order and A/P report at material level

    Hello,
    Anyone familiar with an InfoProvider that will show a combination of Purchase Order and A/P data combined?
    I'm specifically looking for a source that includes the PO information at the <b>Vendor / Material</b> level with order value and quantity at the time the PO was created AND accounts payable data at the <b>Vendor / Materia</b>l level with the invoiced amount and quantity (which may vary for the PO amounts).<b></b>
    Thank you,
    Jim

    Hi
    Have you seen all of the follwoing datasources......
    http://help.sap.com/saphelp_nw04/helpdata/en/df/fbb0d62f3a794d98d23609d17e1610/frameset.htm
    Hope this helps
    Regards
    N Ganesh

  • Table for open Purchase order and pending invoices for vendors

    Hi,
    Are there any table to know open Purchase orders and pending invoices for vendors.
    Quick response will be appreciated.
    Thanks & Regards

    hi,
    Purchase Order:
    S011:(PURCH: Purch. Group Statistics)
    Statistics (SSOUR)
    Version (VRSIO)
    Month (SPMON)
    Day (SPTAG)
    Week (SPWOC)
    Posting Period (SPBUP)
    Purchasing Org (EKORG)
    Purchasing Group (EKGRP)
    Vendor No (LIFNR)
    S012: (PURCHIS: Purchasing Statistics)
    Statistics (SSOUR)
    Version (VRSIO)
    Month (SPMON)
    Day (SPTAG)
    Week (SPWOC)
    Posting Period (SPBUP)
    Purchasing Org (EKORG)
    Purchasing Group (EKGRP)
    Material No (MATNR)
    Plant (WERKS)
    Info Record Category (ESOKZ)
    Material Group (MATKL)
    Info Record (INFNR)
    Country (LAND1)
    EINE: (Purchasing Info Record: Purchasing
    Organization Data)
    Info Record (INFNR)
    Purchasing Org (EKORG)
    Info Record Type (ESOKZ)
    Plant (WEKS)
    EKET: (Delivery Schedules)
    Purchasing Doc (EBELN)
    Item (EBELP)
    Delivery Schedule (ETENR)
    EKPO: (Purchasing Document Item)
    Purchasing Doc (EBELN)
    Item (EBELP)
    EKKN: (Account Assignment in Purchasing
    Document)
    Purchasing Doc (EBELN)
    Item (EBELP)
    Account Assignment (ZEKKN)
    EKKO: (Purchasing Document Header)
    Purchasing Doc (EBELN)
    EORD: (Purchasing Source List)
    Material No (MATNR)
    Plant (WERKS)
    Source List No (ZEORD)
    thx,
    Ganpat

  • Jump from Sales Order to Purchase Order and back again (all in change mode)

    Hi,
    Situation is this:
      - Sales Order is created with 10 items. 4 items are created with connection to Purchase Order.
      - User open Sales Order in change mode
      - User goes to item 20 that has a related Purchase Order
      - User wants to jump to related Purchase Order and make an update here
      - User wants to be able to jump back to Sales Order Item 20 from Purchase Order
    When user jumps to Purchase Order in change mode, then this Purchase Order will also block the same Sales Order, that was open. This can be handled with dequeue and enqueue.
    Problem is that when Purchase Order is saved it will make an update to the Sales Order in the background. When user jumps back to Sales Order then this Sales Order is still open with old data and these data does not reflect data that can have been updated by the Purchase Order.
    Also: When Purchase Order is making updates to the Sales Order then e.g. Message Out Table NAST is automatically updated (insert and delete records). If user then manually updates the Sales Order with old information, then System Dump appears as Sales Order tries to insert NAST records, that have already been inserted or delete NAST records that have already been deleted via the Purchase Order.
    This means that when user jumps back from Purchase Order to Sales Order Item 20 then Sales Order needs to be refreshed with new data after Purchase Order has saved the Sales Order.
    Are there any solution to do this in a standard way (from within SAPMV45A) ?  
    I prefer not to reopen Sales Order using syntax like CALL TRANSACTION.

    Hi,
    Thanks for reply.
    In third party PR gets created automatically but PO gets create manually.So changes get refelect in PR only not in PO.
    Can you give me the solution for completing this task.
    Thanks & Regards
    Jalaj garg

  • Fetching the price of the purchase order and charge it in my SO

    Dear, gurus
    I am doing services mto and even Repair services of customers machinery. I would like to fetch the price incase of purchase order and charge the customer for that purchase in my Sales Order. Is there a way to automatically fetch the price? Or how can I cover this scenario?
    Ex: I receive customers machine and in my plant or workshop I do not have the tool needed or a specialist so I hire someone for the job so I buy or rent it or him from a vendor and in return I want to charge my customer for that purchase.
    Any Ideas?
    P.S. this is not a 3rd party sale scenario its just a simple Sales Order. I was able to fetch the price from the production order with condition type EK02. Is there any condition type for purchase order price fetching?
    Thanks

    Amitesh
    How did the outcome come out as? meaning did that user exit price fetch appear in a condition type in the billing document? If so which one?
    Also, where is the relationship or linkage made from PO to SO? Like how in the world would your sales order know that a purchase order was done. I mean it really is a weird process I mean first the SO should be created then that should trigger the PR and that gets converted to a PO as rightly stated in book terminology. But in this case of first a regular sales order, then out of sap we give our requirement to mm purchasing dept and tell them we need such and such. Once they buy it there is a price which in return we need to charge our customer. Everything can be done manually.
    From my own logic of looking at what you described in the user exit. I presume that from abap side they will only pull a table and field data and populate it where I want it?
    In the PR there is a place where you can assign acct cat C to the sales order and item line what exactly is this for? GL acct are assigned for which purpose or What is it doing? Also, the purpose of that cost center?
    Edited by: Muhammad Ali Lozada on May 31, 2010 12:14 PM

  • Standard report in SAP to see the Purchase Order and corresponding PR

    Dear All.
    Is there any Standard Report in SAP , which can provide details of the Purchase Order and the corresponding Purchase Requsition.
    Regards
    Shyam.

    Hi
         ME2L     Purchasing Documents per Vendor
         ME2M     Purchasing Documents per Material
         ME2K     Purchasing Documents by Account Assignment
         ME2W     Purchasing Document by Supplying Plant
         ME5A     List Display Of Requistions
         ME2W     Purchasing Document by Supplying Plant
                        ME80FN     General Analysis of Purchasing Documents

  • How to link asset with purchase order and PO Item.

    Hello,
           I have to generate a report which contains columns
    Asset No , po no(ebeln) ,PO Item(ebelp),Material no etc
    My query is how to link asset with purchase order and      PO Item.
    I am selecting asset and po no. from anla  but how to get
    po item no(ebelp)?
    po line item is important in this report because every line item has differrent asset and material no.
    i tried to match asset no in mseg table but i am not getting asset no in mseg .
    how should i proceed ?

    Thanks Thomas & Srimanta for the quick response.
    When I checked EKKN table by entering PO there is no asset no. in anln1 field.
    Also I would like to add that, In me23n for a PO, account assignment category we are entering 'F' for internal order settlement.
    Where can i find the link between asset and po no(ebeln) and po item(ebelp)?
    Regards,
    Rachel
    Edited by: Rachel on Aug 11, 2008 7:23 AM

  • Purchase order using balance sheet accounts

    Hi there,
    We have a need to create purchase orders using balance sheet accounts instead of expense or cost of sales accounts.  Any pointers will be greatly appreciated.
    Thanks in advance

    Hi Raymond
      Not realy clear which scenario u r trying to address here. But you can post the Goods receipt to a balance sheet account. U can ideally create a separate valuation class and use the same for account determination. The materials for which you are making the PO have to be asigned to that particular valuation class. The rest of the configurations will remain as they are. But in the transaction key you will include the new valuation class and assign it to balance sheet account.

  • No Purchase order and sales order from trading contact

    Hi Gurus,
    I am new to this module and i am trying to create a Trading contract. As I understand that the trading contract should create Purchase order and Sales order automatically. But in my case, this didn't happen.
    In this regard, I want to know,
    i. Are info records mandatory or mentioning the required purchasing and sales data during contract creation is sufficient.
    ii. What are the configurations required to do for GTM functionality and which are the points should I check for this.
    help me out.

    HI
    there are some status that is required to be set while you save a  trading contract.
    your trading contract must be approved or released..only then follow-on docs will be created.
    regards,
    Yadesh

  • Linking field between purchase order and inbound delivery

    Hi
    I have to enter some data in the purchase order and it has to automatically updated in the inbound delivery.
    For eg: if we enter bill of ladding number in purchase order, it has to get automatically populated in inbound delivery.
    Regards
    shaker

    Hi,
    Is the example provided by you, just for example purpose or is that the field you want to copy? If that is the field you want to copy from PO to Inbound document, then how would you know the BoL no. / details at the time of PO creation?
    However if it is just an example & you want to copy some other field, then you might want to evaluate the below exits:
    MM06E001  User exits for EDI inbound and outbound purchasing documents
    LMELA010  Inbound shipping notification: Transfer item data from IDOC
    Check with your abaper.
    Regards,
    Vivek

  • Table for picking PURCHASE ORDER field corresponding to accounting document

    Dear All
    Table for picking PURCHASE ORDER field corresponding to accounting document.
    Thanks
    Rahul Jain

    Dear Jayram
    I know that Purchase order field can be picked from BSEG table but i am not able to capture the data into it. Whenever i book a invoice through FB60 or MIRO i give the reference PO number which is not getting updated in BSEG, BSAK and other relevant tables.
    Thanks
    Rahul Jain

Maybe you are looking for