Copy contract PO number and Date to Sales Order

Hi freinds,
I have one requirement. I want to copy contract PO number and date to Sales order PO Number and Date while creating the sales order with reference to contract.
Thanks,
Satya

Hi,
You have to modify your data transfer routine with the help of ABAPer.
You have to give him the requirement that these value should be copied to sales order from contract.
He will do the needful changes in the data transfer routine.
Then assign that routine to the copy control of sales order from contract.
Regards
Raj.

Similar Messages

  • Copy purchase order number and date from one sales order to other sales ord

    Hi,
    I am creating sales order in va01. here i am entering purchase order number (p100) and date. Sales order number ex: 42000
    I am creating another sales order with reference to 42000. when creating sales order with reference to 42000, purchase order number (p100) and date has to be copied automatically from that order.
    Can anyone please give me a solution?
    Thanks in advance
    Babu

    Dear Babu,
    Currently, PO number is being mentioned in copy routine 101 but this  
    field VBKD-BSTKD is being cleared out.                                
    If we check this routine code:                                                                               
    FORM DATEN_KOPIEREN_101.                                              
    Data which is not copied                                            
    Pricing date for consignment issue by external service agent from   
    the scheduling agreement                                            
      IF CVBAK-VBTYP CA VBTYP_LP_EDL.                                     
        CLEAR VBKD-PRSDT.                                                 
      ENDIF.                                                              
    PO data should not be copied                                        
      CLEAR: VBKD-BSTKD,                    <<<<<                         
             VBKD-BSTDK,                                                  
    In order to achieve your requirement, you need to consider creating you
    own copying routines for VBKD fields copying standard copying routines
    (for example copying routine 101) according your business requirements
    and change them via transaction VOFM, in order to:                    
      - deactivate the LOCAL: statement                                   
      - delete the clear statements                                                                               
    Once you have created those two routines to match your business needs,
    you can insert them in transaction VTAA, so the sales order will copy 
    the PO date at item level.                                            
    I hope I was able to help you.
    Kind regards,
    Zsuzsanna

  • To copy data from Sales order to subsequent purchase order

    Hi all,
    My requirement is to copy Ship-to party address and Incoterms from sales order to subsequent Purchase order.
    I am using exit EXIT_SAPFV45E_001 for this.
    My doubt is - in which tables, Ship-to party address and Incoterms for a purchase order are stored? So that I can copy them from Sales order and update Ship-to party address and Incoterms for corresponding purchase order.
    In exit I can access sales order number and corresponding purchase requisition.
    Thanks,
    Sachin

    what business scenario is this? third-party-order-processing? in that case SAP standard would submit the data from the sales order to the purchase order (via purchase requisition) automatically, see documentation: http://help.sap.com/saphelp_erp60_sp/helpdata/en/dd/560287545a11d1a7020000e829fd11/content.htm

  • User exit to copy the data from sales order to billing document

    hi everyone,
    Is there an user exit to copy the data from sales order to billing document?
    Regards
    Prabudh

    hi
    copy control would be the better option to choose.. but still u can a give a search in list below and opt for the right one..Refer to the link below..
    http://www.planetsap.com/Userexit_List.htm
    User exits for Sales order
    1•USEREXIT_DELETE_DOCUMENT
    2•USEREXIT_FIELD_MODIFICATION
    3.•USEREXIT_MOVE_FIELD_TO_VBAK
    4.•USEREXIT_NUMBER_RANGE
    5.•USEREXIT_SAVE_DOCUMENT
    User exits for billing
    1.•USEREXIT_ACCOUNT_PREP_KOMKCV (Module pool SAPLV60A, program RV60AFZZ)
    2.•USEREXIT_ACCOUNT_PREP_KOMPCV
    3•USEREXIT_NUMBER_RANGE_INV_DATE (Module pool SAPLV60A, program RV60AFZC)
    4•USEREXIT_PRINT_ITEM (Module pool SAPLV61A, program RV61AFZB
    5.USEREXIT_PRINT_HEAD (Modulpool SAPLV61A, Programm RV61AFZB)
    Reward if Useful
    Thanx & Regards..
    Naren..

  • Tax date in sales orders and invoices (Billing)

    Hello Experts,
    I have an issue related to Tax date in sales orders and Billing documents.
    In our environment we calculate taxes at the time of sales order creation and billing document (invoice) creation.
    Currently we modified 'ZXFYTU03' exit to pass tax date which is system date. Our business processes are such that, there is a gap of 3-5 days between sales order creation and billing creation. So for some orders we see tax discrepancies between order and billing.
    Through forums I understand that we can use 'service rendered date' at sales order item level. Solution would be passing date in 'service rendered date', we can pass date in 'service rendered date' field in sales order.
    The problem is to copy same date in billing document 'service rendered date'
    Does anyone have any idea how we can copy the sales order service rendered date to invoice service rendered date?
    Through forum i understand that we can use copy controls, data transfer routines etc...Appreciate if someone can guide me on how i can use these...
    Thanks in advance
    Pradeep

    Tried 2 options...
    1. Modify program RV60AFZC (FORM USEREXIT_FILL_VBRK_VBRP) to pass VBRP-FBUDA = VBKD-FBUDA. But in later part of the process, in SAPLV60A-LV60AA21 (perform fakturadaten_lieferbezogen), VBRP-FBUDA is overwritten by LIKP-WADAT_IST which is goods movement date. So this is not solving my problem.
    2. Modify program ZXVVFU08, to get service rendered date from VBKD-FBUDA based on CVBRK-XBLNR (Sales order) and populate CVBRP-FBUDA. But unfortunately this user exit is being called after user exit 'ZXFYTU03' where tax related data including tax date which is being passed. Somehow tax date in this user exit 'ZXFYTU03' is document creation date which is system date.
    With 2nd option, service rendered date from sales order is copied to invoice doc, but the tax is calculated based on document creation date since the tax user exit 'ZXFYTU03' is being called first...
    Per this, coustom routine did not work...
    Refer: Service Rendered Date (VBRP-FBUDA) for SD Invoice

  • Not able to convert string attribute to number and date please help me out

    not able to convert string attribute to number and date attribute. While using string to date conversion it shows result as failure.As I am reading from a text file. please help me out

    Hi,
    You need to provide an example value that's failing and the date formats in the reference data you're using. It's more than likely you don't have the correct format in your ref data.
    regards,
    Nick

  • Number Range issues with sales orders in CRM and R/3

    Hi,
    We are currently using CRM4.0. I have sales orders created in R/3 and they are replicated into CRM.  These sales orders can only be created in R/3.  I have given them a number range of 0000000001 and 0005899999, however we have reached the number 0005899999 so we increased the internal number range for the sales orders in R/3 to 0009499999, however we forgot to update the number range for the corresponding sales transaction type in CRM so we are getting the following error in CRM:
    +Enter a business transaction number between 0000000001 and 0005899999
    Message no. CRM_ORDERADM_H532
    Diagnosis
    You have attempted to enter a transaction number which is not allowed for the transaction type.
    Procedure
    Enter a number between  &1 and &2. Make sure that you issue a number which has not already been issued.+
    We have now updated the CRM number range to match that in R/3 to 0000000001 and 0009499999 but we are still getting the error above on our existing sales orders in CRM.  I thought that increasing this number range it will remove the error but when I open sales orders in CRM the error is still there. 
    Is there any way to remove this error message?  Any tips or advice would be much appreciated.
    Please note we've already checked the post Re: Number Range Problem and note 427289.
    Kind Regards
    JoJo

    Hi Sirisha,
    The solution depends on the exact issue you are facing.
    The CRM Sales Order is created OK, but you only see the error when you open the Sales Order?
    If this is the case, then you can follow the steps below:
    1. Find the Message ID and Message No for the error message
    2. Use Program - CRM_MESSAGES_DELETE to delete error messages from the error producing Sales Orders.
    Let me know if this is not the issue you are facing.
    Regards,
    Nelson

  • Copy mode of payment from customer master data to sales order,

    Hi Gurus,
    Hope all is fine.
    I have a small doubt. If we want to transfer the mode of payment from customer master data to sales order, do we have to use Exit- MV45AFZZ.
    Can't we transfer the data without the exit?

    Hi,
    I have tested this in sand box.Thought the customer master is having payment method ( payer ) ,It is not copying from customer master to sales order but if you maintain manually in sales order ,it is copying into billing document level.FYI see below snap shot.
    Note:If you want it from customer master into sales order,may be you need to take help of abaper on this.
    BR's,
    Naren

  • Dbms_crypto package for number and date data type

    Hi,
    I am using Oracle 10g 10.2.0.3 on Linux 64 bit
    I am tryiing to use dbms_crypto package for the first time to encypt my tables column
    Following are my table columns
    NAME1 VARCHAR2(2000),
    ID1 NUMBER,
    SCORE number
    This table is already populated
    i want to encrypt Name1 and Score column. Following are the functions i have created for Encryption and decryption.
    --For Encryption
    create or replace function get_enc_val
    p_in in varchar2,
    p_key in raw
    return raw is
    l_enc_val raw (2000);
    l_mod number := dbms_crypto.ENCRYPT_AES128
    + dbms_crypto.CHAIN_CBC
    + dbms_crypto.PAD_PKCS5;
    begin
    l_enc_val := dbms_crypto.encrypt
    UTL_I18N.STRING_TO_RAW
    (p_in, 'AL32UTF8'),
    l_mod,
    p_key
    return l_enc_val;
    end;
    --For Decryption
    create or replace function get_dec_val
    p_in in raw,
    p_key in raw
    return varchar2
    is
    l_ret varchar2 (2000);
    l_dec_val raw (2000);
    l_mod number := dbms_crypto.ENCRYPT_AES128
    + dbms_crypto.CHAIN_CBC
    + dbms_crypto.PAD_PKCS5;
    begin
    l_dec_val := dbms_crypto.decrypt
    p_in,
    l_mod,
    p_key
    l_ret:= UTL_I18N.RAW_TO_CHAR
    (l_dec_val, 'AL32UTF8');
    return l_ret;
    end;
    Key: I have stored a key in other schema and calling it by using function get_key().
    Following is my insert
    INSERT INTO Score_table VALUES
    (get_enc_val('John',get_key()),25,get_enc_val(79,get_key()))
    it is giving me following error
    ORA-00932:Inconsistent Datatypes:Expected number got binary.
    I checked, it is an error due to Score field, which is of number type. So do i need to change type of Score field to varchar or is there any other way to encrypt number and date field.
    If i need to change the type then what will happen to the data already in Table and how do i encrypt data already in table.

    Hi,
    Is there any one who can tell me that, do i need to change my table column data type as the encrypted value will be character.

  • To display execise number and date in smartform

    Hi Abappers,
    i want to display execise number and date in smartform and by using driver program also.
    i have taken fields from vbrk,vbrp and send to final internal table,but now i want to display execise number in my Smartform also.
    Thanking u,
    sri.

    Create a window inside window create text element inside that insert field your excise number and date field names.
    Go to form interface -> import parameters declare your internal table name type vbrp/vbrk.
    In your print program smart form function module pass this table.

  • How to set a report culture for number and date

    Hi,
    Is there a way to change the report locale for the number and date?
    I've tried using both CrystalDecisions.Share.SharedUtils.RequestLCID and CrystalReportViewer.SetProductLocale and neither work
    The only one that work is to use the Thread.Culture. But that also change the application culture, not just the report.
    Anyone have a solution?
    Thank

    Hi Michel,
    I don't believe you can do this within just the report itself but I haven't played with this very much. Because the App hosts the Viewer it's based on it's culture.
    You should be able to mix if you create a separate thread for each report job that way they are in their own space.
    Search the Object browser on celocale and you'll find more info. Also the SDK help file should have examples.
    No API's to use the Engine, had to use RAS.
    Need to know what version you are using also and WEB or Windows app?
    Here are some samples using RAS:
    rpt1.ReportClientDocument.LocaleID = CrystalDecisions.ReportAppServer.DataDefModel.CeLocale.ceLocaleGerman;
    CrystalDecisions.ReportAppServer.DataDefModel.CrFieldDisplayNameTypeEnum.crFieldDisplayNameFormula, CrystalDecisions.ReportAppServer.DataDefModel.CeLocale.ceLocaleUserDefault);
    And using this way you may have to alter every object in the report.
    Thanks
    Don

  • How to get from Apple (officially) details on my iphone 5 (knowing the serial number): model, date of sale, the date of activation, etc.

    How to get from Apple (officially) details on my iphone 5 (knowing the serial number): model, date of sale, the date of activation, etc. I bought a new iphone 5 on ebay.com - he was used. For a decision on my case ebay asks for this information ...

    Apple will never reveal that info to you, since you were not the originally purchaser. However, you can get the date of sale by entering the SN here:
    https://selfsolve.apple.com/agreementWarrantyDynamic.do
    Warranty starts on the date of sale, which is most likely the date of activation, but not necessarily so.

  • Change Delivery date in Sales Order

    Hi all
    I want to change Request Delivery Date in Sales Order. But when I changed Request Delivery Date system appear" The default date is not copied into existing schedule lines"
    And Delivery Date didn't change.Could you tell me how to change Delivery Date ?
    I setup Request Delivery Date - September 21th but Availability Date is September 19th. Could you tell me how to setup loading time, picking time, packing time ?
    Thank and Best regards,
    Thang

    Hi,
    When you change the Request Delivery Date, it automatically changes the schedule line date of all the materials, but by default does not change the schedule line date of the ordered material.
    So just check the ordered material schedule line date and change it manually in the order.
    Similarly maintain the same date in all the resp fieldsi in the delivery, wherever you see the date.
    Regards,
    Siddharth.

  • Posting date on sales order to invoice

    hi all,
    I hope any can help, i need pass the posting date from sales order to an invoice,
    this is after made an sales order this sales order convert to invoice so i need the same posting date i have on sales order in the invoice.
    thnks for the help
    Humberto

    Another way of using is going deeper and modifying the SP_SBO_TransactionNotice store procedure to pull up the sales order posting date and passing that value to the invoice posting date.
    I know that this answer belongs in the SDK section of the forum, but its also another way of doing it; besides formatted searches have there restriction and it not always work in certain circunstances like using copy to.
    Regards,
    WB

  • First Date on sales Order Line item problem

    I am having a problem with understanding why am I getting different First Date at the line Item every time I create an order using VA01.
    Our lead time for order type OR is set to 3 days in the TVAK table and field VLAUF.
    If I go to VA01 and enter a sales order OR, the date should be today's date (04/02/2014) + 3 work days = 04/07/2014 because 04/05/2014 is a Saturday.
    Today when I calculate the order it brings in the first date as 04/05/2014 in some cases.
    But if I put in the Sales Org in the VA01 screen along with the order type OR, the first date comes in as 04/07/2014.
    Can someone please  explain it?

    """""Users may or may not enter the sales org when creating an order"""""
    You cannot create a sales order without the sales organization.....
    Even though you missed system will always redetermine after entering the Sold to party number in sales order from your master data...
    Phanikumar

Maybe you are looking for

  • Unable to modify Report using JRC alone

    Hi I am trying to modify the report generated thru Crystal reports 2008 programmatically using JRC. I dont see any API in com.crystaldecisions.reports.sdk.DataDefController to modify filters,groups,parameters,sort objects and summaries. I could find

  • Purchase Order History Reference not filled

    Hello everyone, we are using BAPI_INCOMINGINVOICE_CREATE to create an invoice for an purchase order. It works just fine except that there no Reference filled in the Purchase Order History. We fill the number of the reference to the BAPI (headerdata-r

  • My ipad went dead and i put on charge and it still didnt turn on what should i do

    Please help

  • Hide bundle icon from selected workstaions

    I have two bundles A and B. A has a relationship to all users and B has has a relationship to a group of workstations called X. When a user logs in on a workstation in the group X they see both icons for bundle A and B. I only want them to see the ic

  • Basic Question related to future purchase of iMac

    Sorry for the stupid question but I just want to know if GarageBand is included as part of the software bundle included with purchasing a new iMac (Intel Duo Core). I was looking at a demo unit in the store and the iMac appeared to have it installed