Copy control for copying sales transactions

Dear all,
I want to copy document X (complaint) to document type Y (sales order) in CRM online but the requested delivery date should be cleared and not copied from document X.
I am trying this with BADI "CRM_COPY_BADI" but in this BADI I can't find the field for the requested delivery date.
Anybody know which field to use or a better solution?
Regards, Maarten

Hello Maarten,
CRM_COPY_BADI is the right spot. When you are implementing this BADI, you have to add code to the method DATES
Hint: Ddates are mostly available in the APPOINTMENT SET of the CRM 1O objects.
You may add some code like this:
method if_ex_crm_copy_badi~dates.
* constants
  include crm_appointment_types_con.
  include crm_object_kinds_con.
  include crm_object_names_con.
* local data
  data:
    ls_sales_com         type crmt_sales_com,
    lv_allowed           type crmt_boolean,
    lv_ref_kind          type crmt_object_kind,
    ls_input_field_names type crmt_input_field_names,
    lt_input_field_names type crmt_input_field_names_tab.
  field-symbols:
    <fs_ref_dates>       type crmt_date_wrk.
* start processing
* special behaviour only for REQ_DLV_DATE
* --> copy REQ_DLV_DATE to the default delivery date on header level
  if    ( not ( is_orderadm_h     is initial ) )
    and ( not ( is_ref_orderadm_h is initial ) )
    and (       is_orderadm_i     is initial )
    and (       is_ref_orderadm_i is initial )
    and ( cs_date-appt_type = 'REQ_DLV_DATE' ).
    lv_ref_kind = gc_object_ref_kind-orderadm_h.
* is the sales set allowed for this transaction type
    call function 'CRM_ORDERADM_H_OBJ_ALLOWED_OW'
      exporting
        iv_ref_guid            = is_orderadm_h-guid
        iv_objectname          = gc_object_name-sales
      importing
        ev_allowed             = lv_allowed
      exceptions
        admin_header_not_found = 1
        others                 = 2.
    if sy-subrc <> 0 or lv_allowed <> 'X'.
* nothing to do
      return.
    endif.
    clear ls_input_field_names.
    clear lt_input_field_names[].
    ls_input_field_names-fieldname = 'REQ_DLV_DATE'.
    insert ls_input_field_names into table lt_input_field_names.
    ls_sales_com-ref_guid = is_orderadm_h-guid.
    ls_sales_com-ref_kind = lv_ref_kind.
    read table it_ref_dates
      with key  appt_type = 'REQ_DLV_DATE'
      assigning <fs_ref_dates>.
    if sy-subrc = 0.
      ls_sales_com-req_dlv_date = <fs_ref_dates>-timestamp_from.
      call function 'CRM_SALES_MAINTAIN_OW'
        exporting
          is_sales_com                 = ls_sales_com
*          IS_SALES_COM_INT             =
*          IV_FIELD_SELECTION_OFF       = FALSE
        changing
          ct_input_field_names         = lt_input_field_names
        exceptions
          error_occurred               = 1
          others                       = 2.
      if sy-subrc <> 0.
*        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endif.
  endif.
endmethod.
Easwar Ram
http://www.parxlns.com

Similar Messages

  • Dual Control for Sensitive fields  Transaction FD08?

    Hi all,
    When configuring the dual control for sensitive fields, Transaction i have a few questions:
    a) Is there a way (work around) by which I can add the sales area data fields to the catalogue of fields.
    b) More importantly, system allows to create the sales order even if the changes have not been confirmed by the respective approving authority, this alone beats the logic of configuring the sensitive fields.
    Is there some more setting or user exit which needs to be put in to prevent the user from creating the sales order unless the changes to the sensitive fields have been confirmed.
    Userfull answers will be rewarded!
    Thanks
    Kind Regards

    Hi,
    Please go through the following path for configuration :
    Point No. 1
    1> Customer
    IMG --> Financial Accounting (New) --> Accounts Receivable and Accounts Payable --> Customer Accounts --> Master Data --> Preparations for Creating Customer Master Data --> Define Sensitive Fields for Dual Control (Customers)
    2> Vendor
    IMG --> Financial Accounting (New) --> Accounts Receivable and Accounts Payable --> Vendor Accounts --> Master Data --> Preparations for Creating Vendor Master Data --> Define Sensitive Fields for Dual Control (Vendors)
    Point No. 2
    You can execute transaction code FD08 in background with a periodic job for each User ID who has authorization and tick on Accounts to be confirmed by me and send the output via mail through distribution list or each user can view output by viewing spool by going to transaction code SP01.
    Point No. 3
    Same as point 2 only need to select option Accounts refused.
    Point No. 4
    Yes
    Point No. 5
    Same as point 1
    Hope your issue gets resolved.
    Regards,
    Tejas

  • Authorization Control for Physical Inventory Transactions

    Hello,
    Can we control the authorization for Physical Inventory Transactions especially MI01, MI02, Mi04, MI07, MI08, MI31 etc. at Storage Location level instead of Plant Level.
    If it's not possible at Sloc level does anyone knows the user exit/code we can use enable the authorization check at Storage Location level.
    Regards,

    hi,
    yes u can do it.
    check
    M_MSEG_LGO     Goods Movements: Storage Location
    mvt type 701/702

  • Item Status can be controlled for open Sales Order

    Hi All,
    Is there anyway we impose restriction on changing the status of the item if there are any open Sales Order against it? Example: If an item A is in Active Status and has a Sales Order with Awaiting Shipping Status. Before the order is booked if someone changes the item status to Inactive, is there anyway we can prevent it from changing the status if there are any open Orders against it?
    Version: 11.5.10.2
    This is urgent please.
    Thanks,
    Ashish

    Hi Sandeep,
    Thx for the quick update. I have tried to update the status of an item to obsolete when Sales Order Line exist against the item. It is giving the following error. I have tried with Custom Code off. So my assumption is there should not be any personalization. Can you please look into it further.
    This is quite urgent, pls.
    Error: "This field can not be updated as there are either Open Sales Order Lines or Pending Delivery Transactions"
    Thanks,
    Ashish

  • Issue with number of lines in Table control for an web transaction in ITS

    Hi,
    We have acustom web transaction ZC03 where we have used table controls. Recently a kernal patch has been installed and after that the number of lines appearing in table control has got changed. Earlier table control was coming with 5 lines and presently its coming with 3 lines. Can you please help me to fix the issue.
    The  code used in HTML template for table controi is given below:
    `SAP_DynproLayerBegin(005,013,067,006)`
      `SAP_TableControl("TC_TIME1")`
        `SAP_DynproLayerEnd()`
    I have tried other alternatives like  `SAP_DynproTableControl("TC_TIME1")`, `D_TableControl("TC_TIME1') but did n't get any fruitful result also.
    Thanks and Regards,
    Ranadev

    What where the precise Kernel updates? What where you on and what did you upgrade too?
    Did you apply any BASIS Support Pack corrections during the Kernel upgrade?
    If you applied a new BASIS support pack - check the following WIKI:
    [How to check the publishing Date of an Internet Service|http://wiki.sdn.sap.com/wiki/x/OYG8BQ ]
    if you need to republish - use the following WIKI:
    [How to activate, publish and test ITS services in the integrated ITS?|http://wiki.sdn.sap.com/wiki/x/kmE ]
    Regards,
    Oisin

  • COMMIT UNDER MY CONTROL FOR MORE ONE TRANSACTION

    Hi Colleague,
    I have to do one unique Commit at the end of two transactions. For example : I have to call the transactions J1B1 and FB01 and only after FB01 to make a commit command. I'd like to know if is possible ?  How ?
    To call the transactions I am using the CALL TRANSACTION command.
    Thanks.

    Hi,
    I think in call transaction this is not possible. If you are calling a transaction using call transaction internally system calls for BDC for the transaction J1B1 that have already saved the data, while control comes out of that transaction,
    Please find some function modules or BAPI and use the commit work after the FB01 BAPI call.
    aRs

  • Outbound Order Confirmation - Output control for incomplete sales orders

    Hi EDI Folks,
    I have a simple question. I want to send EDI 855 for only the completed sales orders.
    Whenever inbound sales order is processed and if the order is incomplete. I don't want to send the order confirmation for the order at that point of time. When that order is made complete, then only i want to send the order confirmation (EDI 855).
    How can we do it??
    What is the output determination requirement for this??
    Right now i am using requirement '02' which proposes EDI output for both complete and incomplete sales orders.
    Please respond to the above quesition.
    Thanks and waiting for your reply,
    Creasy Matt

    MxG,
    For both plant and pricing condition functional config was already done. If any of these two fields are missing, the status of sales order will be incomplete.For incomplete orders also, the EDI output is being proposed.
    Now just tell me, in which SAP program, do i have to put the break point?
    Where exactly ??
    Thanks and kind regards,
    Creasy Matt

  • SQVI Report for generating Sales Transaction's Action status

    Hi
    I have a requirement to generate a report to get Sales order's 'ACTION' details like its Status (mandatory).
    I tried the tables:
    CRMC_LOG_PROF - Customising table to maintain log profile
    CRMC_OBJ_LOG - Customising Table for linking log profile to Business obj
    but
    no result.
    Can anyone tell in which table I should work on it?
    Please ask me, if my question is not clear.
    Regards
    Pravin

    Hi
    Only Basis team have the access for Sp01 t-code.
    so Is there any alternative t-code for SP01 to check the spool request for Print and Fax ?
    please help
    Regards
    Pravin

  • Need to hide tabs in CRM 5.0 SAP GUI for a business transaction

    Hi all,
       I've created a custom complaint transaction in CRM 5.0, and I need to hide some tabs and fields when I create it or edit it via SAP GUI. I've searched through the help, and I figured out that probably I have to use transaction CRMV_SSC, but than I'm blocked.
    Has anyone some hints or guides that can help me?
    I you have any documentation, please send to [email protected]
    Thank you a lot,
    Daniele.

    Hi,
    if you activate the technical names in the menu, you'll see that transction for maintaining sales transactions is called:
    crmd_bus2000115
    So there you have it, it's BO BUS2000115
    regards, Rob Dielemans

  • Copy control for opportunity to Sales order not working

    Guys,
    I am working on CRM 2007. I set up the copy control for transaction types so that I can convert my Custom Opportunity type to a Sales order.
    However when I am in my Opportunity and click on Follow of transactions, my order type is not availabel in the selection list.
    I was able to set it up for Lead to Opportunity but opportunity to Sales order is not working.
    Any help on this?
    Ani

    HI Anirudh,
    I have a similar requirement such as Copying line item from Complaints to Returns application.
    Procedure:
    1. Firstly i create an complaint
    2. create a follow up document as Returns
    3. I enter an product in the complaints and when i click on Copy to returns the line item has to be copied.
    Here is the requirement. The line item is copied, but here the problem is, .... The line item doesn't get copied unless and until the instance of the target is retrived.
    Could u please help me on this ?

  • Follow-up transaction copy control for opportunities

    Our CRM system is currently configured to permit follow-up opportunity creation.  When follow-up transactions are created all product categories are copied to the new opportunity.  We would like to stop this.  All header and business partner data should be copied as present, however product information should not be copied.  (i.e. follow-up transactions currently work, we only want to switch off product data copying)
    I am not familiar with follow-up transaction customization, and not sure exactly where to start.  Should I be modifying the current BAdI or is there a standard customizing option to switch off copying of product categories?

    Hi Derek,
    Just try this:-
    Go to SPRO->IMG->CRM->Transactions->Basic Settings->Copying Control for Business Transactions->Define Copying Control for Transaction Types.
    Search for entry Source=oppt and target=oppt.In this entry, uncheck the check box-Copy Item Number and see if it resolves your issue or not?
    Thanks and Regards,
    Rohit

  • Copy Control for Transaction Types

    Hi,
    Was wondering if someone could help on following topic. We need to specify the possibility of copy control (follow-up) for certain transaction types in CRM 6.0. I've specified the source TT (ZAPP) and the target TT (ZCON) in customizing activity : Define Copying Control for Transaction Types.
    ZAPP = Custom Appointment Activity
    ZCON = Custom Opportunity
    Now, when I want to create a follow-up for ZAPP in the WebUI (via dropdown 'More' and action 'Follow-Up'), I always get an extensive list of transaction types (about 30) rather than only the opportunity that I originally specified. Any ideas?
    Thank you,
    Sebastiaan.

    Hi Kai,
    Many thanks for your answer. Indeed, the COPY_DOCUMENT is a very good alternative as it also directs the flow for follow-up. However, I have a question in regards to using this method. I can see that there are parameters that need to be provided (like PROCESS_TYPE etc) but apart from that is it also possible to change fields in the copied document.
    e.g. Currently the description of the copied document gathers the description of the action definition, but how can you pass the description of the previous document for instance? Is this also done via the actual parameters?
    Thank you,
    Sebastiaan.

  • Copy control for Text in Sales Order

    Hi All,
    i would like to check with you guys.
    I have a scenario where by, we create sales order and maintain item text. This is copied to the delivery. Here the text if modified to enter more text.
    But when it comes to invoice, it is copying the text from the sales order instead of the delivery.
    How can I configure it to copy from delivery?

    Hi,
    Kindly check the following points:
    1) Same text ids are present at Delivery item & Billing Item.
    2) It at you want it at Item level text only then try through the ABAP routine at Copying Control between Delivery to Billing.
    3)As u must have checked at Delivery --> Billing Document Copying control at item level , I didn't find any control for text.
    Similarly for the Header. But by default Header text will overlap the item text as well due to the missing routine. But I have verified it in the past, if you maintain the same text at Delivery Header and it will populate at your billing document Header text as well.
    Please try and confirm the same.
    Thank You,
    RB.

  • Copy control for sale office in delivery

    Hi,
    In our delivery note the field sale office is blank... we need that this field will be filled by copy control or user exit from document sale (order sale)... always the deliveries are for the same sales office.
    Any clues for achiving this?
    Best Regards
    Juan

    Hi
    As mentioned in the above answer, please follow the following steps.
    1. Got VOFM - > Data Transfer -> Deliveries.
    2. Copy Routine 1 to 601.
    3. Go in the code of routine 601 and add the following line.
    MOVE CVBAK-VKBUR TO LIKP-VKBUR.
    4. Activate the routine.
    5. Go to copy control for deliveries Tcode - VTLA.
    6. Select the necessary combination of order type and delivery type.
    7. change the assignment of routine for header data to 601 and save.
    you shud be abe to achieve the desired result.
    Regards
    Yatin

  • Copy Control for Sales Order

    If you want to copy one particular pricing type (say "H") to a limited number of sales order (say 10). How would you do it without letting it take effect on all the other sales orders ?
    Let me rephrase the question.
    In the copy control settings, there is a pricing type that you can define for Sales Document to Sales Document at the Item Category Level.
    Originally it would be at "A".
    So now you want to change the pricing type for 10 sales orders previously created without affecting any other. How would you do that?
    Thanks

    Hi Noel,
    You can control through copy control settings for the future documents not for the already created document.
    And you also mentioned that the specific pricing type only for ten orders that you can do it manually,you put the pricing type what you want in the copy control settings then create 10 sales orders then change that pricing type to standard one then it will continue the stanadrd process
    I hope it will help you
    Rwegards,
    Murali.

Maybe you are looking for

  • My new mac is stuck on "looking for source" in Migration Assistant.

    My new MacBook Pro arrived today and I am so excited to finally have a new Laptop. I made it through the startup process okay, until i made it to the screen that says "Transfer information to this Mac." My previous laptop was a windows 7 HP brand lap

  • Please advise others of NOWS 64bit issues

    For all NOWS SBE 2.0 - 2.3 users, please verify whether you are using the 32 or 64 bit versions prior to downloading SP2 patches and updating to SBE 2.5. The NOWS SBE 64 bit 2.5 version is still NOT available at this writing. The NOWS SBE available o

  • Adding a new text field in Shopping Cart screen

    Hi, I am new to SRM and I am working on SRM 5.0 My requirement is to add a text field for buyer's note with unlimited length similar to Approver's note in Shopping Cart screen. I have seen in the forum that many have done this earlier and i need step

  • Problems with Ai opening (in Windows 7)

    After Ai installation, I tried to open it. Unfortunately, the window opens and after some seconds closes. No error messages occur. I've tried to reinstall application. Nothing changed – still not opening. Does anyone have any suggestions? Thanks!

  • Setting up Multi server environment in Sql Server 2012 - Enlist Failed Error

    I am trying to Configure the Master target server / Multi server environment in Sql Server 2012. I changed :  - `MSXENCryptChannnelOptions`-->Changed from 2 to 0  - `AllowDownloadedJobsToMatchProxyName` - changed from 0 to 1 on the target When I run