Data transfer routine in copy control

Hi Need to spli deliveries based on danger and non-danger goods.
Could any one suggest me on this.
I know that we have t-code VOFM.
But i am unable to know how should i proceed in this.

Hi,
It seems that you have good knowledge of data transfer routines.
I have a requirement to transfer LIKP-WADAT_IST into billing date in VF01 T-code to create invoice.I am passing this date into VBRK-FKDAT in data transfer routine.,but it is  not not getting copied.Plet let me know the correct way of doing it.
My routine looks like this:
DATA: BEGIN OF ZUK,
          MODUL(3) VALUE '001',
          VTWEG LIKE VBAK-VTWEG,
          SPART LIKE VBAK-SPART,
        END OF ZUK.
        break SHARMAM.
   IF VBRK IS NOT INITIAL.
  ZUK-SPART = VBAK-SPART.
  ZUK-VTWEG = VBAK-VTWEG.
  VBRK-ZUKRI = ZUK.
  VBRK-FKDAT = LIKP-WADAT.
  ENDIF.
Thanks in advance,
Meena

Similar Messages

  • Copy data transfer routine.

    13.01.2009
    Hello Gurus,
    How do we make a copy of data transfer routine ??? I dont find any copy option ??
    Regards,

    There is sort of a trick you can use. In VOFM transaction, find the routine you wish to copy. Switch to Change mode (Ctrl-F1), then place the cursor in the field with the routine number and simply type the new routine number (e.g. 901) over the existing one. When you hit Enter, you'll be prompted to enter an access key to create a new routine.
    Access key may be obtained on the SAP's website (if you have an authorization) or from your Basis admin, as mentioned above.
    Copy/paste would also work, of course, after you have created a new, blank routine.

  • Regd Data Transfer routine Transport

    Hello All,
    I have created a Copy Control Data Transfer routine 60X in the Development System. This created a Include RV45C60X in the Include RV45CNNN. When I check the where used list for RV45C60X it shows Include RV45CNNN. When I transported it to Quality System this Include was created but it was not in the Include RV45CNNN and the system was giving a short dump when SO created with reference to Quote.
    I executed the program RV80HGEN and than also generated the Program RV45CNNN in the Quality system. Than the Include RV45C60X was shown in Include RV45CNNN and the system works fine. The where used list for RV45C60X does not show RV45CNNN even though it is in the Include RV45CNNN. Is that ok or something more needs to be done.
    Can you please clarify.
    Thanks,
    SNK.

    Hello friends,
    Any suggestions for this. Or is this not an issue.
    Thanks,
    SNK.

  • Data Transfer Routine

    Hi,
    We have a requirement i,e In third party sales scenario we want to make a invoice based on each Good's Receipt Document ( Material Document ) for this we are trying to write a routine but could not able to succeed as we are not able to restrict one GR in invoicing its clubbing all the GR's happened.
    Ex: If there is one Sales Ord with one line item and coressponding one Purcase order based on SO & If there are two GR's happened against this PO. Then while invoicing it is clubbing the material in the two GR documents, Where as we want only only invoice for one GR. ( One unique invoice for one unique GR )
    If anybody finds solution for this kindly help us. Point's rewarded.
    Thank's
    Chakri

    Hi Kishore,
    It is not possible to make an invoice in Sales using the Goods Receipt which happens in MM. If it happens in your project, I am sure it happens through some IDOCs or background jobs and when invoice is created, the data is taken either from order or from delivery, not at all from Goods receipt document.
    If you want to create different invoices for different deliveries of a single sales order, you should go for delivery related billing and want one invoice per each delivery document, then you have to do a Copying requirement routine in VOFM and assign teh routine to copy control between delivery and billing in VTFL at item category level.
    You may also have to work on the invoice split routine by copying the routine 007 and modify it to your reqmt.
    Hope this helps.

  • VOFM - Shipment Data Transfer Routine

    Hi Guru,
    I have a requirement to create a routine in VOFM - Data Transfer - Shipment to copy the INCO1 to VTTS-INCO1 (item level). I have the checked the standard routine and it is all changing the header. Can anyone tell me the coding to use? Many many thanks.
    Regards,
    Janet

    Hi.
    The standard routine is as follows:
    FORM DATEN_KOPIEREN_900
                       USING    c_XVTTP   TYPE v56i1_vttp_tab
                                c_XVTTS   TYPE v56i1_vtts_tab
                                c_XVTSP   TYPE v56i1_vtsp_tab
                                c_XTRLK   type v56i1_vtrlk_tab
                                c_XTRLP   type v56i1_vTRLP_tab
                                I_XVTTK   STRUCTURE VTTKVB
                                VALUE(I_TVTK)  LIKE TVTK
                                g_imp_data type v56I1_IMP_DATA
                       CHANGING C_XVTTK_tmp structure VTTKVB
                                g_exp_data type v56I1_exp_DATA.
    VTTKVB is the header structure. Doesn't seems to have a item structure.
    Regards,
    Janet

  • Data Transfer Workbench can copy sales & purchase modules's data?

    Hi,
    Just wondering that,any way to copy the Sales & Purchase Modules's data from existing company to new company? Copy Express can't do it. But how about Data Transfer Workbench can copy?
    Thanks
    Regards,
    Danny
    Edited by: Danny Gan on Mar 18, 2008 5:21 AM

    Danny,
    How many field from the ORDR or RDR1 have to exported depends on the business logic implemented and what was being used.  No one can really provide a standard set of 5 or 10 fields as you know the clients business better than anyone in the Forum.
    If the Client used User fields then data from the user fields should also be exported.
    The base fields from ORDR would be CardCode, DocDate, DocDueDate, Transpcode (shipping code), SlpCode, GroupNum (Payment terms code), etc.
    Similarly on RDR1, ItemCode, Quantity, Price and any additional row level information that may pertain to their business
    Suda

  • What is the difference between copy requirement and data transfer routines

    Hi Experts,
    I am writing a copy control routine for maintainence quote
    from sales quote.Where do i have to write it in VOFM?
    Is it in copying requirements or data transfer.
    Actually according to the business all the line items from the sales quote are copied
    into the maintainence quote and additional line items are added into maintainence quote
    and the line items copied from the source document are linked to the two newly added
    line items.
    Please advise.
    And is it possible to add the 2 new line items to the new document into VBAP at the runtime?
    Regards,
    Chitrasen

    First of all you have to have a link between the sales documents. You can check it in Tcode: VTAA. if not, talk to your functional people. Try to make this equal to quote to order but instead make it quote to quote.
    You need to put break point in copy requirement as well as in data transfers and check for your requirement.
    Well, the code you want to put in will be the requirement
    I am not sure if you can add 2 line items runtime into quote. this has to go through different checks and i dont think it is possible.
    Good luck

  • Data transfer VBRK/VBRP - copying requriement (VOFM)

    Hi I need help in defining data transfer for copy control between delivery to billing documents.
    Currently i want to change the parameters for which it is doing invoice split. It is considering few set of feilds like billing date, and foriegn trade data.
    I want to create new data transfer to by pass billing date and forieng trade data.
    Anyone who is experienced in this, please help.
    Regards,
    Neil

    Thanks, Tamas,
    This is a useful suggestion.
    With your suggestion, we can include the splitting criterias. But how to exclude them is where i am stuck at.
    I looked at control routine 007, it includes certain set of fields with help of VBRK-ZUKRI. How do i exclude certain fileds.
    Any suggestions are welcome from your end. Thanks for the help.
    Neil

  • Pricing routine in copy control from quotation to contract

    Hi Team,
    I have a requirement where price from a particular condition type of a quotation needs to be copied to another condition type in contract when a contract is created in VA41 with reference to a quote. I am unable to find a routine for this. Can any one help me in this regard?
    Thanks in advance.
    Regards,
    SP

    Hi
    For your requirement you have to create a new subroutine with the help of ABAP'er and assign that new subroutine to the condition type. While creating the subroutine give your requirement to the ABAP'er.
    Regards
    Srinath

  • "Copy Control" for different customer and also different sales area

    Hi, expert.
               I would like to copy sales order from one to the others. However, I would like to change only "Partner Information and its sales area". For "Item Data", I would like to keep it same as original document.  <b>For example</b>,
    Sales Order1:  Customer ID = "1111111" and Sales area = "1000/10/10". 
    I would like to copy to Sales Order2:
    Sales Order2:  Customer ID = "1111112" and Sales area = "2000/20/20".
    <u>P.S</u> "Sales Organization 1000 assigned to company code 1000. And Sales Organization 2000 assigned to company code 2000"
    I have tried to do combination between different "Data transfer routines and Copy requirements". However, I am still not get my solution
    Everyone please share idea.
    Thank you,

    Dear John,
          Actually, I have tried with copy requirement 2.However, it works for copying a different customer with the same sales area as original. Yes, I may need to ask developer to solve my solution. But I would like to keep it to be the last choice. I tried to search "How to copy document between inter-company businees"; but the I still not get what my custome's want.  Anyways, thank you very much for sharing idea.

  • How redetermine Partners in Copy controls (VOFM Routines) ?

    Hi All,
    I have a requirement.
    In all Sales to Sales copy control (all documents included) we need to redetermine Partner data from Customer Master on the creation date of new sales order. Basically partner data will not be copied from Old referenced document (except for sold to party)
    please reply .
    Thanks
    Revanth

    Hello,
    you could use some own data transfer routines ( in VOFM -> data tansfer -> orders).
    In standard there are the routines 1 (Partners Header) and 2 (Partners Item), which you could copy
    into the customer namespace and adjust to your requirements.
    In the customing of the copy control you only maintain the number of
    your data transfer routine on header  and /or on Item level.
    Regards Wolfgang

  • Copy control routines in Sales Order and Debit Memo Req.

    Hi,
    I have a scenario wherein, I am creating a Debit Memo Request with reference to a Sales Order. DMR(Debit Memo Request ) & SO (Sales Order)will not be created on the same day. I want to have Pricing date in the DMR (both at item and Header level) as current date and dont want it to be copeid from SO.
    Can it be possible with the standard available routines in copy control between SO and DMR? IS there a need for creation of separate routine.
    Thanks.

    Hi,
    As per the business requirement it is ok to change the Pricing since based on the pricing date the Exchange rate is calculated.
    The exchange rate at the DMR level should be calculated on the date of creation of DMR and so the pricing date from the Sales order should not be copeid.
    Any suggestions pls.

  • 051 routine between sales order and delivery copy control

    Hi,
    The copy control routine 051 in copy control from sales order to delivery defines four combination criteria.
    1) delivery types same in config of sales doc type
    2) sales org same of the sales orders
    3) delivery indicator same
    4) billing type same as defined in sales doc type.
    my question is if i have the follwoing copy control defined between sales order and delivery :-
    sales       del           sales       deliv         bill      routine
    order        type         org        agreement       type     in copy ctrl
    type
    ZOR          ZLF          1000         SAME          ZF2         051
    ZTSD          ZLF          1000         SAME          ZF2         051
    my question is how will the routine combine  all the sales doc type into a single delivery.  my confusion is since the rotuine is attached to every combination of sales doc type and delivery type in copy control, how will the routine identify that it has to combine the sales doc type ZOR and ZSTD into a single delivery.
    one of the statements wriiten in routine 051 is that " check sales org is same for all document ". does this mean that the routine will identify sales orders with doc type ZOR only  if the routine is attached in config for copy contol between zor and zlf and  i remove the routine for copy control belwteen zstd and zlf.
    regards
    sachin

    Sales order is the order from your customer and delivery is when you are delivering the item.
    Shipping: In general  when the item is dispached from the warehouse, we can say the item is shipped,where as delivery is item/product reaching to the end customer.
    Hope it helps,
    Kiran

  • Field symbols not working in data transfer VOFM routine

    Hi,
    I have been trying to set a value using field symbols, however for some reasons its not working. I am using a field symbol in a data transfer routine and the value which I am trying to set is a standard field outside the VOFM routine code.
    I am trying to set a  field gla_subrc which is actually a changing parameter.
    The actual paramter is gn_subrc of type sy-subrc and within the form the name is gla_subrc. I need to set this changing parameter gla_subrc using the data transfer routine.
    Is there a specific rule that field symbols dont work for changing paramters within subroutine or is there a specific syntax.
    The syntax I am using is
    ASSIGN ('(SAPLV50S)gla_subrc')  to <fs>. 
    I also used the local program name instead of main program but still that does not work. Tried using the actual parameter as well.
    Can someone please help me in this.
    Thanks & Regards,
    Naresh.

    I need to stop outbound delivery creation against STO using vl10b transaction. The only way to stop creation is using data transfer delivery VOFM routine.
    If i give an error message MESSAGE E001, this will give a hard error which is not acceptable. To avoid this, i use a perform message statment with message id and certain parameters which can displayed in a log.
    However to make sure this message is displayed in log, I am clearing a work area having specific data needed for delivery creation.
    Because of this clear, my error message gets captured in log but along with this another fake message is displayed in log which caused by the clear message.
    The user gets confused as he now sees 2 messages, 1 which is correct and other 1 which is fake and that confuses him.
    Data transfer routine is not the best place to give messages in log but we have very few options. The only way the system can give 1 message is if i set gla_subrc to 1. This is a variable which will help the system understand that the delivery should not be created as there is something wrong because the value is 1. Hence it will stop the creation and instead display whatever message i had passed to the log.
    I need to somehow set this variable to 1 based on lot of analysis that has been done in the past.
    Please let me know if there is any way by which we can fix this.
    Thanks & Regards,
    Naresh.

  • How to delete a Item line in a Sales Order during Copy Control

    I want to delete a Line item (VBAP ) record for a certain condition during Copying from reference  . I am writing the code in the Data Transfer Routine 151 which is called through VOFM Transaction  . I  cannot delete it as it . it is a work area VBAP . When i Clear it in debugging i am only able to clear the Line items . I want to completely remove the line . Is there a user exit for the same .

    Hi,
    You should create a new copy requirement routine at item level in order to exclude the unwanted item.
    Assign the requirement routine to each item category type in the copy control .
    Regards,
    Andrea

Maybe you are looking for

  • Aperture not working following upgrade to Snow Leopard 10.6.3

    Until now I have been running OS X 10.5 and have regularly checked and updated software. For photo's I originally purchased Aperture 2 and recently upgraded to Aperture 3 (using an upgrade disc rather than a full version) and all was working fine. To

  • Help with page size and dpi

    hello, i am about to render an autocad drawing in Photoshop, i need to print this out on a piece of paper that is 36 x 48, pretty large should the image be 300 dpi to not be pixelated when i print it out? also, i am doing this on a laptop, the file s

  • Cancellation of Subscripion

    Hi,  I subscribed to Europe subscription I think over 2-3 years ago, but I want to cancel it now and purchase only "1 country" subscripion. I followed all the directions on how to cancel my subscripion but the button "cancel" is just not there (under

  • Cannot take address of register - How to use register address in Solaris 10

    Hi , I am getting following error when i compile the code in Solaris10 /Studio 10 on sunblade 1500. The same code gets compiles in Solaris 8 / Studio Workshop 6 . Please let me know the way to overcome ..the requiremnt is to use register variable onl

  • Error while change name of server

    Hi all! Today I match an error and still can not resolve, I need you help me to correct it When I change server name (old is dipasrv to domsrv) the OC4J_PORTAL can not start and when access portal page the following error appear. If you know, plz hel