Copy Control for EEWB fields not working

Hi Experts,
I have added one custom field to CRMD_ORDERAM_H using EEWB, now i want this field to be copied from Quotation to Sales order. I have tried with the following options:
1. Created new implementation Ztest for the Badi CRM_COPY_BADI with new filter value.
2. Assigned the implementataion in Copy control for transaction types.
3. Badi is getting triggered, but I am not able to copy the value to the sales order.
I have written the following code in ORDERADM_H method:
METHOD if_ex_crm_copy_badi~orderadm_h.
constants
  INCLUDE crm_object_kinds_con.
  INCLUDE crm_object_names_con.
  INCLUDE crm_appointment_types_con.
local data
  DATA:
    ls_orderadm_h_com    TYPE crmt_orderadm_h_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.
IF cs_orderadm_h is not INITIAL.
    lv_ref_kind = gc_object_ref_kind-orderadm_h.
    CALL FUNCTION 'CRM_ORDERADM_H_OBJ_ALLOWED_OW'
      EXPORTING
        iv_ref_guid            = cs_orderadm_h-guid
        iv_objectname          = gc_object_name-orderadm_h
      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 = 'ZZDEP2PVNDPGM'.
    INSERT ls_input_field_names INTO TABLE lt_input_field_names.
ls_orderadm_h_com-guid = cs_orderadm_h-guid.
ls_orderadm_h_com-ZZDEP2PVNDPGM = is_ref_orderadm_h-ZZDEP2PVNDPGM.
    CALL FUNCTION 'CRM_ORDERADM_H_MAINTAIN_OW'
      EXPORTING
        is_orderadm_h_com             = ls_orderadm_h_com
   IV_EXTERNAL_CALL              = FALSE
IMPORTING
   EV_GUID                       = cs_orderadm_h-guid
      CHANGING
        ct_input_field_names       = lt_input_field_names
   CT_DOC_LINKS                  =
   CT_DOC_FLOW_FIELD_NAMES       =
EXCEPTIONS
   HEADER_CREATE_ERROR           = 1
   HEADER_CHANGE_ERROR           = 2
   PARAMETER_ERROR               = 3
   PROCESS_TYPE_ERROR            = 4
   DELETION_NOT_ALLOWED          = 5
   NO_AUTHORITY                  = 6
   OTHERS                        = 7
    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.
ENDMETHOD.
able to get the values to ls_orderadm_h_com  and lt_input_field_names, but the value is not getting copied.
Any idea on this?
Thanks in advance.
Regards,
S Reddy

Hi Reddy,
You don't need to call functions like 'CRM_ORDERADM_H_MAINTAIN_OW' to update that attributes.
All you have to do is to fill changing structure CS_ORDERADM_H that belongs to your target document, with the values you desire (the value for ZZDEP2PVNDPGM field for example). Then fill changing structure CT_INPUT_FIELD_NAMES with the field names that you want to update ('ZZDEP2PVNDPGM' for example).
Kind regards,
Garcia

Similar Messages

  • AT END OF for char field not working

    Hi all,
    AT END OF (char field) not working,
    I sorted the itab and also avoid the stars(*) problem also, but its not working.
    Thanks in advance.
    Edited by: Vijay Babu Dudla on Jan 28, 2009 11:01 PM

    Hi, Niranjan
    Test the following Sample Code it will solve out your Problem,
    " This is not working properly right now.
    TYPES: BEGIN OF t_name,
      name1(10),  " if You Change Cut the Name2 from the 2nd line and past it up to the Name one will work fine
      name2(10),
      amount1 TYPE p,
      amount2 TYPE p,
      END OF t_name.
    DATA: it1_sum TYPE STANDARD TABLE OF t_name WITH HEADER LINE,
          wa_it1_sum TYPE t_name,
          it2_sum TYPE STANDARD TABLE OF t_name WITH HEADER LINE,
          wa_it2_sum TYPE t_name.
    wa_it1_sum-name1 = 'AAAAAA'.
    wa_it1_sum-name2 = 'AAAAAA'.
    wa_it1_sum-amount1 = 500.
    wa_it1_sum-amount2 = 200.
    APPEND wa_it1_sum  TO it1_sum.
    wa_it1_sum-name1 = 'AAAAAA'.
    wa_it1_sum-name2 = 'AAAAAA'.
    wa_it1_sum-amount1 = 500.
    wa_it1_sum-amount2 = 200.
    APPEND wa_it1_sum  TO it1_sum.
    wa_it1_sum-name1 = 'BBBBBB'.
    wa_it1_sum-name2 = 'AAAAAA'.
    wa_it1_sum-amount1 = 100.
    wa_it1_sum-amount2 = 200.
    APPEND wa_it1_sum  TO it1_sum.
    wa_it1_sum-name1 = 'AAAAAA'.
    wa_it1_sum-name2 = 'AAAAAA'.
    wa_it1_sum-amount1 = 500.
    wa_it1_sum-amount2 = 10000.
    APPEND wa_it1_sum  TO it1_sum.
    wa_it1_sum-name1 = 'BBBBBB'.
    wa_it1_sum-name2 = 'AAAAAA'.
    wa_it1_sum-amount1 = 105000.
    wa_it1_sum-amount2 = 20500.
    APPEND wa_it1_sum  TO it1_sum.
    wa_it1_sum-name1 = 'BBBBBB'.
    wa_it1_sum-name2 = 'AAAAAA'.
    wa_it1_sum-amount1 = 21000.
    wa_it1_sum-amount2 = 22000.
    APPEND wa_it1_sum  TO it1_sum.
    SORT it1_sum BY name1 name2.
    LOOP AT it1_sum INTO wa_it1_sum.
      APPEND wa_it1_sum TO it2_sum.
      AT END OF name2. " When you will use this in this Condition it will give you wrong Because this row is on number two and
                       " it is not changing but the Row one is Changing so it will work fine if LEFT MOST
        SUM.
        wa_it1_sum-name1 = 'End Name 2'.
        wa_it1_sum-name2 = 'End Name 2'.
        APPEND wa_it1_sum TO it2_sum.
      ENDAT.
      AT LAST.
        SUM.
        wa_it1_sum-name1 = 'At Last'.
        APPEND wa_it1_sum TO it2_sum.
      ENDAT.
    ENDLOOP.
    Please Reply if need more help about it.
    Kind Regards,
    Faisal

  • Help for date field not working after upgrade

    hi experts,
    In our BSP application for a page we had an inputfield (date).
    Onvaluehelp for input field we were calling the saphelpdate function.
    however after upgrade this functionality is not working properly as no pop up comes after clicking on the icon.
    we have upgraded to SPS 16 recently.
    please help me.
    regards,
    Arvind.

    Hi, I try upper case but nothing happen. This is all my code by far, I hope you can help me:
    DATA: BEGIN OF T_PCONT OCCURS 0,
          PCONT LIKE ZPSPERMISOS-PSOBKEY,
    END OF T_PCONT.
    DATA: BEGIN OF T_FIELDS OCCURS 0.
            INCLUDE STRUCTURE help_value.
    DATA END OF T_FIELDS.
    DATA: BEGIN OF T_VALUES OCCURS 0,
          VALUE(60) TYPE c.
    DATA: END OF T_VALUES.
    DATA: N TYPE i.
    SELECTION-SCREEN BEGIN OF BLOCK  b20 WITH FRAME TITLE text-b02.
      SELECT-OPTIONS:
        P_CONT FOR  ZPSPERMISOSH-PSOBKEY OBLIGATORY NO-EXTENSION NO INTERVALS,
        P_INT  FOR  ZPSPERMISOSH-PARTNER OBLIGATORY NO-EXTENSION NO INTERVALS,
        P_FEC  FOR  ZPSPERMISOSH-ZFINICN NO-EXTENSION NO INTERVALS,    
        P_RAZ  FOR  ZPSPERMISOSH-ZRAZONFINIC NO-EXTENSION NO INTERVALS.
    SELECTION-SCREEN END OF BLOCK b20.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_CONT-LOW.
      PERFORM P_HELP_P_CONT USING P_CONT-LOW.
    *&      Form  P_HELP_P_CONT
    FORM P_HELP_P_CONT  USING P_P_CONT.
      DESCRIBE TABLE T_PCONT LINES N.
      IF N EQ 0.
        T_FIELDS-FIELDNAME  = 'PSOBKEY'.
        T_FIELDS-TABNAME    = 'ZPSPERMISOS'.
        T_FIELDS-SELECTFLAG = 'X'.
        APPEND T_FIELDS.
        CLEAR T_FIELDS.
        SELECT PSOBKEY FROM ZPSPERMISOS
        INTO  TABLE T_PCONT.
        SORT T_PCONT BY PCONT.
      CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE'
        EXPORTING
          CUCOL        = 10
          CUROW        = 1
          TABNAME      = 'T_PCONT'
          FIELDNAME    = 'PCONT'
        IMPORTING
          SELECT_VALUE = P_P_CONT
        TABLES
          FIELDS       = T_FIELDS
          VALUETAB     = T_VALUES.
    ENDFORM.                    " P_HELP_P_CONT
    Edited by: J. Garibaldi on Nov 25, 2009 11:14 AM
    Edited by: J. Garibaldi on Nov 25, 2009 11:16 AM

  • CRM extractor 0CRM_SERV_PROCESS_H delta for ZZ-fields not working

    Dear all,
    We are experiencing trouble with a extractor 0CRM_SERV_PROCESS.
    We have extended the extract structure of this extractor with an append structure containing some custom date and text fields.
    When doing a full load or a delta init, all fields arrive properly in SAP BW.  In RSA3 in CRM, everything appears to be correct.
    When performing a delta update however, the custom fields appear as null in SAP BW while the standard fields are updated normally (null as in empty or 00000).
    After browsing thru this forum and some sap notes (661340, 692195, 871930, 887724, 892022) I still haven't found a solution.
    Does anyone have an idea of how to solve this?
    Thanks in advance
    Jan W

    HI,
    What is the logic you ahve used to populate the values for new appended fields ?
    Is it BADi, User Exits or mapping module enhancement ? Value population to custom field code should be checked throughly.

  • 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 ?

  • Maintain Copy Control for Document Types.

    Hi Gurus,
    My Client has two customized documents both are order Types and wants to maintain Copy control between them.
    If i see VTAA i can find either New Entries option or copy option.
    When i go for new entries option it asks me Requirements and Routines which needs to be set for this copy control and i am not aware of those.
    The Other option is Copy as but since it's customized document types so i am not getting which document should i take as refernce for copying.
    Please suggest me how to proceed.
    Thanks in Advance!!!!

    Hi
    Ideally we don't gamble with standard settings. Not only in copy control but for all other settings related to document types, conditions, movement types etc etc. If standard settings or configuration has been deleted by human error then we should restore standard settings first. May be BASIS guy can do it and if it is not possible then open some other server where these settings are there and you should do all settings manually by copying the standard ones.
    Why we recommend to always copy standard settings and make necessary changes is that standard settings are done by SAP and they have tested it thoroughly and they have hundreds of consultants who have worked on these settings. Standard settings are reliable and we can copy them without any fear of mistake. Whereas if you copy some Z settings or create new one then there are more chances of some wrong or missing settings. Logically may be it sounds not that important or useful but technically it is really fruitful to do this.
    In standard settings system copies all subsequent settings and you don't need to do those settings again and you are already aware of this fact.
    One more benefit is that you only need to change document names and in create new entry you'll have to enter all the fields one by one and you don't know which value is more appropriate for this field. It also saves time efforts and people like me always prefer to save efforts
    Thank$

  • 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 Opportunity

    Folks,
    I have set up Copy Control for the 10 different Opportunity Types that I have, and have ensured that each oppty type is listed in as the Source and Target.  When I click on the 'Copy' icon for an existing opportunity, I am not prompted to select the opportunity type.  The new opportunity that is being created defaults to the same opportunity type as the opportunity being copied.  I would like the users to be prompted to select the opportunity type.  This should work the way that it's configured, but it's not.  Any ideas as to what I should check?
    Thanks!

    Hi,
    Copy Control for Transaction copies transaction data from source to target transation to use this you will have to use option Button Create Follow-Up  NOT Button Copy.
    Copy Button create only copy of same transaction with using same transation type which has no reference to source transaction but if u r creating follow-up from one transaction to another u will get option to select Transaction types which u have maintained in Copy control.
    Revert for any queries
    Regards,
    Dipesh

  • 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

  • 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 controls for Consignment

    Hi ,
    I  have been working on all the  consignment types,i have tried to copy the standard document types i.e. cf,ci,cp,cr to zcf,zci,zcp,zcr but what happens is i am able to process the order by in delivery i get an error saying that tables have not been copied ,i went to "maintain copy controls for sales document" and checked if all the tables have been copied or not in the item and schedule line  ,and i found out that it was not , so i am trying to create a new copy control for zcf ,zcp....etc ,i have checked my cp ,ci they are all blank so if any body could send me some details across for the same or suggest any other alternatives it would be great so that i could key in the details in the respective category
    Thank you,
    sneha

    Hi,
    If you are getting the Table name in which the Entry is missing, Goto -> SM31, Enter the Table name -> Select Customizing -> Continue without Specifying Project.
    System will take you to the desired node in which the entry needs to be maintained.
    Please check with this and confirm.
    Reward Points if it Helps !!!!!
    Harsh

  • Copy control for invoice list cancellation

    Hi Friends,
    I wish to maintain the copy control for invoice list cancellation, as the case study as follows
    My client maintain invoice list, but due to certain reasons ,one of the invoice from invoice list has to cancel , the error I am getting as "Sales document F2 cannot be invoiced with billing type LRS."
    Also , explain as to what fields  need to maintain in copy control for the same.
    Kindly help me at the earlist
    Thanks in advance
    Shailesh

    Hi
    As far as I know, invoice cancellation or invoice list cancellation is not done by copy control. or...that is the one and the only document in SD which can be created without copy control.
    I think it is only sufficient if you include the cancellation document type in the invoice list type in the configuration of Billing document types.
    I think that alone should solve your problem.
    Reward if this helps you.

  • Copy control for conditions

    Hi Guys,
    i am having one requirement.
    My client is using one condition from so long time,  they defined so many condition records for that condition type.
    Now the case is,  if i am using the other condition type with the resemblence of that condition type(exactly same with key combination) in another pricing procedure(because of some constraints we are not using  same condition type).  I want all condition records to be copied of that old condition type to this new condition type.
    So, in this process i came to know, there is a configuration for copy control of condition.  Plz share some config points in this regards.
    Regards,
    Rajesh.

    Hi Raj In,
            Jacqueline's solution is good for your requirement. The field RefConType is on Master data Box. Bear in mind, if you'll use this solution you should continue loading condition records for the old condition not by the new. If you don't want that, so you need to define condition copy rule for those condition in:
    Sales and distribution --> Basic Functions --> Pricing --> Copy control for conditions
    Then, to make the copy of the condition records use trx VK32.
    Thanks in advance,
    Mariano.

  • Copy control for texts

    Hi experts,
    I am trying to copy control for text objects between ZSMN (Copy of SLFN) & ZNSR(Copy of SLFN). In transation type "ZSMN", i have maintained text object "ZUZZ-Log", which copies all the text entries(Description, Internal Note & Query).
    I have maintained the text object "ZCPY-Log of ZSMN " in the transaction type "ZNSR".
    The requirement is:
    All the texts which has been captured in "ZUZZ" in the transaction type "ZSMN" to be copied to "ZCPY" in the transaction type ZNSR.
    I have made the copy control in the SPRO for these text objects. But still the texts are NOT getting copied from ZSMN to ZNSR.
    Need your valuable inputs
    Regards
    Senthil

    Hi Andy,
    sorry to say but Daniels way doesn't work. In 7.1 ChaRM and Incident the transaction type copy has changed in a way that we invoke the CRM standard Copy Control and have a BadI there only for specific things.
    Partner copy runs via CRM standard partner copy. That means:
    1.) You have assigned an access sequence in each partner Determination (area Partner Functions in Procedure) for the partner function: 
    2.) You have customized an access sequence is defined here:
    So, please just customize the partner copy as you would in CRM standard.,
    Best regards,
    Michael

  • 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.

Maybe you are looking for

  • Opening link in a new tab disables back navigation to the first page

    If I am on page A (for an example, let's say it is www.yahoo.com) and I chose a link on that page and by right-clicking open pop-up menu and choose '''Open Link in New Tab''', the page B (let's say finance.yahoo.com) opens in a new tab. Now, if I cli

  • XP x64, all surround speaker signals going to front speakers

    Wanted to document an issue I found while trying to use my audigy 4 card with XP x64. Yes, I know you are probably looking at my spec at the bottom and asking why use XP x64. Or why after spending so much money on the pc, could you not afford a bette

  • Plug macbook air 2,1 to 27' screen

    Hello I've got a Macbook air 2,1 (2009 ?) and I just bought a Macbook Pro 15' with a Thunderbolt Display 27'. Since my Air is not equiped with a thunderbolt plug, (but with stricly similar shape plug for VGA adaptor), do you know if there is a altern

  • Error While Searching Web Repository

    Hi All, I created a webrepository and an index for it. index is working fine,it has populated 500 items. but when i try to search i get an error message saying <i>"ONLY_IF_CACHED lookup mode cancelled operation getResource before network access was i

  • Using Summary Columns in Reports 9I

    Hi I am using Oracle 9i Reports I want to use Summary cols in the report I have a table with the flwg data: TRANS_ID   ACC_ID DEL               AMT LEL0002045 SLEND  RECEIVE          1200 LEL0002053 SLEND  DELIVER          1000 LEL0002100 SLEND  DELI