Customer Sales Order number & Customer PO number

Hi experts,
We are doing third party sales. So once we create Customer Sales Orders manually via VA01, users also manually create Purchase Req for it.
We do not automatically create PR from Sales Order, as this is not my clients requirement. So we don't use item category group BANS in the material master.
In the item level in the PR under the Contact Person tab, the creation indicator shows "V Sales & distribution document".  Once PR is created this updates the PR number under the item level Schedule lines in the Sales Order.
After PR creation, we run a job to create PO's.
But the new requirement from the client is to automate this PO creation thru EDI.
Our SAP is 4.6C & the Idoc type we use is ORDERS05 & Message Type is ORDERS. We are using EDIFACT std.
Once I get the idoc xml file for this PO, I find that my Customer PO number (from the Sales Order) & also the Customer Sales Order number is not copying to the xml output.
Please advise what needs to be done inorder to have it.
This will be great help & I will reward for the answers !
Rgds,
Pri

Hi,
In VOV8 you can only Check whether the purchase order number already exists or not.
If you want to do any other check like you said based on customer & PO number combination then follow steps below:
Ask your ABAPER to
1: Create a Z-table where you can store the required Customer No & PO No combinations.
2: Write a code to check the PO no & Customer No entered in Sales order with the entries in the Z-table & throw an error if there is no match.
This code needs to be written in the User exit Save_document_prepare by your ABAPER.
3: This will work at time of Save & not a point of entry. The result will be same "error msg will be thrown"
regards
Edited by: Innovation is key on Feb 28, 2011 6:08 PM

Similar Messages

  • How to copy Customer Sales Order number to Purchase Order for 3rd party sal

    Hi experts,
    We are doing third party sales. So once we create Customer Sales Orders manually via VA01, users also manually create Purchase Req for it.
    We do not automatically create PR from Sales Order, as this is not my clients requirement. So we don't use item category group BANS in the material master.
    In the item level in the PR under the Contact Person tab, the creation indicator shows "V Sales & distribution document". Once PR is created this updates the PR number under the item level Schedule lines in the Sales Order.
    After PR creation, we run a job to create PO's.
    But the new requirement from the client is to automate this PO creation thru EDI.
    Our SAP is 4.6C & the Idoc type we use is ORDERS05 & Message Type is ORDERS. We are using EDIFACT std.
    Once I get the idoc xml file for this PO, I find that my Customer PO number (from the Sales Order) & also the Customer Sales Order number is not copying to the xml output.
    Please advise what needs to be done inorder to have it.
    This will be great help & I will reward for the answers !
    Rgds,
    Pri

    Tables are related.
    MATNR
    WERKS
    MBDAT
    LGORT
    CHARG
    etc fields are common in both VBBS and VBBE.
    May be you can generate a condition a fetch data using this.
    I hope it helps.
    thanks

  • Customer Sales Order number to display in Purchase Order idoc

    Hi experts,
    I have the Customer Sales Order number in the PO item level under "account assignment" tab.
    But it does not show in the idoc xml ouput of the PO.
    Could you let me know if it is not standard field to display in the ORDERS05 idoc type of the PO?
    If not what print program or form that can be used to show the sales order number.
    Also I want to show the Customer PO number into the Purchase Order idoc VBKD-BSTKD and the PO date will be in VBKD-BSTDK.
    This is very urgent !  Will reward.
    Rgds,
    Pri

    Hi experts,
    I have the Customer Sales Order number in the PO item level under "account assignment" tab.
    But it does not show in the idoc xml ouput of the PO.
    Could you let me know if it is not standard field to display in the ORDERS05 idoc type of the PO?
    If not what print program or form that can be used to show the sales order number.
    Also I want to show the Customer PO number into the Purchase Order idoc VBKD-BSTKD and the PO date will be in VBKD-BSTDK.
    This is very urgent !  Will reward.
    Rgds,
    Pri

  • Table name for sales order with Customer info

    Hi Gurus,
    Could you please provide me table name for  sales order with customer no and customer name.
    I have list of sales order number (more than 1000 no's ) i need to identify customer number and customer name (ship to party and sold to party information). I am running this report every week. so i plan to create sqvi for this report.
    Thanks and regards,
    B.Deethya.

    Hello,
    Access Tables VBAK & VBAP.
    From the above tables you will get Solt to Party & Ship to Party Codes.
    For Customer names you have to pass the Customer Codes to Table - KNA1
    Hope this clarifies.
    Thanks,
    Jignesh Mehta

  • Customer/Sales order stock

    Hi,
    The requirement is,
    1.The Scenario is to create a Sales order and block the Stock with batches to the particular Customer/Sales order.
    How to process this, can 412 E thru MB1B tcode can be used or any other way?
    any diff if we block with reference to the customer or sales order stock ?
    2.Before creating delivery and PGI the stock ownership will be transfered to the customer? any solution for this.
    thanks
    sr

    Hi
    In availabity check controls in OVZ9 if you tick include sales requirements then stocks will get reserved for your sales order
    This is quiet sufficient to meet your requirement
    But in MMBE it will not show as reservation agaist that order number
    For this you have to do MB1B movement type 412 E or 413
    you can also create delivery and dont do PGI that will also take care of reservation
    Before creating delivery and PGI the stock ownership will be transfered to the customer?
    any solution for this.
    I am not able to understand this
    In standard SAP only after Billing the ownership is transferred to customer
    even after PGI it will be Cost Of Goods Sold COGS  only
    Check this thread whether this is useful to you
    Forum post in ERP - Sales and Distribution (SD) General: reservation
    reservation
    Regards
    Raja

  • MRP - Sales order and customer fields grey-out

    Hi there,
    The Sales order and customer fields are grey-out for all MRP generated production orders. Can the SAP programmers please get this fixed? It should either read in the sales order number and the customer number or allow user to type in the sales order, just like the manually created production order.
    cheers

    Hello Gordon,
    If production is make-to-order rather than make-to-stock, the MRP should read in the sales order number and the customer, since it is specific to the sales order. Even for make-to-stock production, where it cannot read in the specific sales order number, it should at least not grey out the field, don't you think so? By greying out the field, users are not allowed to type in the sales order number even when the production order directly relates to a particular sales order. As such, we are not able to link it back to the sales order where other info such as customer's purchase order, etc... can be found.
    Could you please advise alternative way of linking MRP generated production orders to the sales orders? thanks

  • Populating the Partners from Sales document (Customer/Sales order/delivery)

    Hi All,
    Is there any way to Populate the Partners which are mantained in Sales document (Customer/Sales order/delivery) into Customer Quality notification (Q1)
    Presently only Sales to party and ship to party is getting populated when we create Q1 notification.
    Thanks in advance
    jay

    Explore :
    Quality notification>Notifcation creation->partner->Define partner fuction procedure->Assign Partner Functions to Notification Type--->
    Check here whether you can get here the partner function.

  • How to Generate sales orders with custom Fields using BAPI_BUSPROCESSND_CREATEMULTI

    Hi,
    I need to generate sales orders with custom fields on table CRMD_ORDERADM_H using BAPI_BUSPROCESSND_CREATEMULTI, after changing the structure BAPI_TE_CRMD_ORDERADM_H, and feed the  EXTENSIONIN table of the BAPI with data, the order is created, but any value on custom fields.
    After debuging, I saw that the BAPI search for structure conversion in table CRMC_OBJECTS_GEN, but we haven't entry with BAPI_TE_CRMD_ORDERADM_H in this table. is that the problem ?, Is there any way to fix it?
    Best Regards,
    Salah.

    That depends on where do you have the customer fields, check the table CRMD_CUSTOMER_H, if your custom fields are there, you need to use the changing parameter CUSTOMER_HEAD, I guess your already checked that one, right? but there's no custom fields, well...AET/EEWB doesn't enhance the strcuture of the BAPI, so you should do it manually, check the note following note for further details.
    988410 - FAQ: User-defined fields in the BAPI
    If you don't have access to the SAP Marketplace, in resume you should create an append on the structure BAPIBUS20001_CUSTOMER_H and include the following strcutrue CI_EEW_CUSTOMER_H
    Cheers!
    Luis

  • Changing Payment terms for customer Sales Order

    Hi,
    I have a requirement like scenario below :
    1. Customer sales orders are billed with X payment terms (Not installment).
    2. Subsequently, Customers agree for installment terms.
    3. A need arises to change ONLY the payment terms on the  existing billing document (without cancelling existing billing document)
    4. Is this achievable ? Via VF02 or FB02 ? Or any other means ?
    Thanks in advance.
    Bala

    You cannot change the terms through the VF02; however, you can change under FB02.  Go into the accounting document you would like to change, double click on the customer account posting and you should see the payment terms highlighted for you to change.
    If you do not see it changeable, it is due to security.
    Hope that helped.

  • MRP Generated production orders greys out Sales Order and Customer fields

    Hi there,
    The MRP generated production orders greys out the Sales Order and Customer fields for some reasons. These fields are really important as they link the production order to the sales order and the customer's purchase order. Could the SAP team please fix this or advise alternative way of getting the sales order and customer info on production order? Thanks.

    Hello
    MRP only poulated this fields in case the material master has been set up with a strategy group hich is make to order (normally 20). Otherwise MRP summarizes all the requirements from different Customer orders and creates a production order
    Stephan

  • Count sales order of customer

    Hi All,
    In Sales Order, i want a UDF with Running serial No of document.
    For example if i add 10 sales order for customer C001 then UDF should contain 11.
    I try below FMS but not working.
    Declare @Var as nvarchar(10)
    select @Var = count(T0.DocNum)  FROM ORDR T0 where cardcode = $[ORDR.CARDCODE]
    Select @Var = @var+1
    Thanks
    Shiv

    Hi ShivSen.....
    Try This.....
    select Count(T0.DocNum)+1 FROM ORDR T0 where T0.cardcode = $[$4.0.0]
    Regards,
    Rahul

  • Find customer sales order

    Hi
    please help me on this.
    how will I find customer sales order ?
    means actually I want to distinguish between customer sales order and stock transport order.
    what table i will use??????

    Hi,
    check AUTLF in table VBAK.
    AUTLF is for Complete delivery defined for each sales order.
    in ur select query give
    WHERE AULTF NE ' '.
    if the goods r deliverd then the value of AULTF will b 'X'
    hope it'll help u.
    Edited by: sneha kumari on Jul 30, 2009 1:48 AM

  • SALES ORDER AND CUSTOMER INDEPENDENT REQUIREMENT

    What is the difference between sales order and customer independent requirement?
    Where these are used?

    Hi Sachin,
    If you get an order from your customer you create a sales order in your system. Refering to this SO you can create (e.g.) delivery document and issue your goods from your stock.
    In case of PIR (planned independent requirements) you don't know who your customer is. You can use these requirements e.g. for forecasts, MTS environment.
    In MTO environment SO will generate PrdOrd, and after the confirmation your goods will get to SO-special stocks from where you can ship them out. You won't produce in this environment independently from SO.
    In MTS environmnet you can use both SO and PIR. E.g. in case of planning startegy 11 MRP doesn't calculate with your SO, only PIRs are considered. This strategy is very simple: you input your production plan as PIRs. These PIRs will generate PldOrd, then production orders will be issued and after confirmation your PIRs will disappear. It doesn't matter how many SOs you have, it doen't matter how high your stock levels are...MRP displays them only for information purpose.
    In strategy 40 (MTS) both PIRs and SOs (and stock levels) are considered, and (one) purpose of PIRs is to level your production (you will produce even thiough your slaes figure are low > later you can fulfill high demands from stock and you won't have to increase your production quantities). SOs will consume PIRs based on the rules you define.
    Please check this link:
    http://help.sap.com/saphelp_46c/helpdata/en/60/9ea1536fbd11d191820000e8a5f6e6/frameset.htm
    BR
    Csaba

  • User exit: sales order  VA01: Customer number

    Hi friends,
    While creating Sales order, before saving the document, I need to check the Customer (Sold to pary?) details in KNEX table. KNEX-KUNNR KNEX-TDOCO KNEX-DHRCO. if condition fails, I need to display an error message V1525,
    which should contain
    1)customer(sold-to -party?KNEX-KUNNR)
    2)partner function PARVW (VBPA-PARVW?)
    3)country LNDEX KNEX-LNDEX
    Functional spec says, 1)V45A0002
    2)V45A0003
    3)V45S0001
    4)V50EPROP User exits can be levaraged.
    1)triggers before we enter customer (sold-to-party) in VA01. so may not be used.
    2)V45A0003: i am able to fetch KUNNR, LNDEX(land1), and able to validate KNEX Fields.
    But I need to fetch partner function (PARVW), which exist in VBPA , KONP etc tables. But I am not able to write the query, which sould have all the primary keys of the table.
    Please help me the way.
    i) the above user exits can be used?if not, help me with user exit name.
    ii)if yes, how to fetch PARVW ..as all the primary keys must be used in the select query.
    Please help me ASAP.

    You can try with the form USEREXIT_SAVE_DOCUMENT or USEREXIT_SAVE_DOCUMENT_PREPARE in the program MV45AFZZ (this program contains the userexits for SD).
    You can access work aread VBAK and internal tables XVBAP, XVBPA with latest data for that transaction.
    Regards,
    Naimesh Patel

  • Automatic mailing of sales order to Customer

    hi,
    My client is using version 4.6B and wants a solution to this problem.
    When a sales order is created,there should be an option to mail the sales order,i.e soft copy of the sales order to the customer.
    Also certain branches do not have SAP, but theyw ant to mail certain reports related to billing (ZReprts and standard reports) everyday to the branches via e-mail
    How can this be accomplished?
    Is it possible to achieve this in the above said version?if yes then how?
    plz mail me at [email protected]
    Can someone please advise.
    Thanks in advance

    Dear Priyanka
    If you want Simple solution without ABAP , I will suggest you following
    We will divide it in two steps
    1. Create PDF file of your report.
    2. Mailing it to particular email address - This will be done manually , it will not pickup from customer master
    1. Create PDF File
    go to SPAD and define new output device ZPDF1, and select Device type PDF- if that is not visible you can implement note Note 317851 - Creating PDF format using the SAP spooler in 4.6C/4.6B/4.5B
    Or there is other manual method, you can run report RSTXPDFT4 in SE38 and execute, give the spool number of your report and then give the path to save the report in PDF file in your desktop.
    2.  Email
    in SPAD you have now defined ZPDF1, for that in HostSpoolAccMethod, check in Host Spool Access method M: Email to receiver owner is there if it is avaiable then save it
    if it is not available execute report RSPO0075 in SE38 and activate access method 'M' by enabling check box for M. Then you can go to SPAD and edit your ZPDF1 Output device.
    Now you are ready to use ZPDF1, run your report select Output device ZPDF1, your output will go to spool request , when you select it and click on printer icon, it will ask you for email address, just type it
    But now your Email should have access to Internet
    So in SCOT - i.e SAP Connect for define node in INT and define RFC Port (TCP/IP)for your Node in SM59, if you are not able to do it take help of BASIS
    I think this settings will be enough.
    if you have any issues you can write back
    Regards
    Jitesh

Maybe you are looking for

  • Deactivate Idoc packaging in PI 7.1

    Hi, We know that Packaging by default enabled in PI 7.1 but we want to turn off this feature for Idoc processing. Could you please help me in turning off this feature? Thank you very much in advance.

  • Resize and crop images to a specific width and height

    Hi, I want to convert images to thumbnails with a 'standard' format - I need all images to have the same width and height. So I need to resize and then crop the images. Is this possibe with JAI? Are there other libraries which can do this better? I'v

  • Audio Buffering problem

    Hi,      I am trying play a real time audio received from server. I am using custom DataSource and sourcestream to cretae player and I observed that the when the data is given to the player through the read method player is not playing the data until

  • Performance BAPI vs. IDoc

    Hello, i don't now if this is the correct forum for my question, but i also don't know which i have to take instead of this. I have the following problem. At the moment i try to compare the BAPI and the IDoc interface with regard to performance and s

  • Desktop Manager update? Naah!

    Hi - I hope that somebody may be able to help me. I am using what I believe to be the updated version of Desktop Manager ie. Version 1.0.3 (build 19). It allows me to back up and restore however when I click the applications button in order to  load