Processing Logic for custom fields to CRMD_OPPORT_H

Hi all,
I have a requirement to add two new custom fields to the Opportunity Table in CRM. I was able to successfully add these fields using EEWB and the fields are displayed in the corresponding PC-UI in the portal.
I have an additional requirement of performing a  calculation based on these new added fields and updating or refreshing the "Expected Sales Vol" field in the Forecast tab on "Opportunity" Business Transaction
Can anyone provide some inputs on how we can add the processing logic for acheiving? Is this possible via the BADI? Or Do we require to modify the BSP?
Thanks

Thanks for providing the solution. I have awarded you the points as it helped me to solve my problem. thanks once again.
I have implemented the BADI and the corresponding PCUI displays the calculated amount when i enter values in the custom fields and hit ENTER.
I just wanted to understand why we require to use function module CRM_ORDER_MAINTAIN_SINGLE_OW?. In my BADI implementation i did not have to use it so additional details would be useful for me to determine if i am missing anything.
implemented BADI code:
method IF_EX_CRM_OPPORT_H_BADI~CRM_OPPORT_H_MERGE .
Constant Declarations
  CONSTANTS :
    c_BOX      TYPE CRMC_OPPT_TYPE-TYPE             VALUE '0001'.
Processing Logic
  IF IS_OPPORT_H_WRK-TYPE EQ c_BOX.
Perform the calculations for the Expected Sales Volume field
    CS_OPPORT_H_BADI-EXP_REVENUE = IS_OPPORT_H_WRK-ZZNOOFUNITS *
                                   IS_OPPORT_H_WRK-ZZPRICE .
  ENDIF.
endmethod.

Similar Messages

  • Search Help for Custom field in Sourcing Cockpit

    Hi SRM Experts,
    I added custom field "rush order" in the Structures as per requirement. I added code in MODIFY_SCREEN function module. Search help is working for "rush order" in Process Purchase Orders (to search PO) and Check Status (Searching Shopping Cart). But it is not working in sourcing cockpit. Please guide or suggest me is there any additional settings or programming is required to have search help for custom fields in Sourcing Cockpit.
    Thanks a lot in advance.
    Thanks,
    Koyya

    Hi SRM Experts,
    Please let me know any suggestion on this issue.
    Thanks a lot in advance.
    Thanks,
    Koyya

  • Process steps for customer incoming payment w.r.to Billing.

    Hi all,
    Can some body help me in by providing the process steps for customer incoming payment w.r.to Billing.i want to know the process from open items to cleared item , if possible pl give table names also and thier data flow using tables.
    thanks

    Dear Sai,
    Use the transaction code F-28.Give the document date, Bank account, amount received, Value date, and the customer code. In case you know which are the document numbers against which you have received the payment, select the "Document numbers" in the "Additional selection" tab and then click on "Process open items".
    Fill the document numbers in the next field, press enter and then click on "Process open items". Select the open items, simulate and then save.
    In case you do not have the document numbers, then directly click "Process open items", select the line items and click "Document > Simulate" and then save.
    Assign points if useful.
    Regards
    Venkatesh

  • Approval process workflow for Customer XBO

    Hi experts,
    We have a client requirement which asks for multilevel approval process for Accounts (when a new Account is created/ existing Account is changed). As per my knowledge, there is no standard approval process defined for Customer XBO as of now by SAP.
    Also, if the Account creation/modification is 'Rejected' by any manager, then how will the Account be reverted back to its original version? (kind of a rollback)
    I had raised an incident for this asking the SAP team whether they will be adding any approval processes for Customer BO in the near future C4C releases. But they do not have any plans of implementing it sooner.
    They suggested a workaround as follows:
    Add 1 extension field "approval status code" in Account with code values:
    1 - To be approved by L1 manager
    2 - Approved by L1
    3 - Approved by L2......etc for more levels of approval
    Reverting 'Rejected' Account to previous state is not possible via PDI. In principle you would have to read the changehistory data and revert to the state before the change was done. But the changehistory BO is/will not be PSM released.
    Any workaround or suggestions on how can I go about implementing this requirement? I need to put validations like L2 can approve only after L1 approval.
    Please guide and help.
    Thanks,
    Ambuja Prabhudessai
    Persistent Systems Ltd.

    Hi,
    why don't you create a screen from which user will create or modify the accounts. after submitting the custom screen , you should start the approval process, once all the approval is done, create or modify the account in SAP.
    Regards.
    Sanchari

  • Reg : F4 help for custom fields in ALV report

    hi friends..
    in my internal table i have fields including 1 custom field..
    DATA : BEGIN OF i_final OCCURS 0,
      pernr LIKE p0000-pernr,
      begda LIKE p0000-begda,
      plans LIKE ZPOSITION-plans,  (custom)
      werks LIKE pspar-werks,
      end of i_final.
    i want to display this i_final table in alv. for that i genetrate one fieldcatalog
    PERFORM fcat USING:
                      'I_FINAL' 'PERNR' 'P0000' 'PERNR' '15' 'X' '',
                      'I_FINAL' 'BEGDA' 'P0000' 'BEGDA' '10' 'X' '',
                      'I_FINAL' 'PLANS' 'ZPOSITION' 'PLANS' '8' 'X' '',
                      'I_FINAL' 'WERKS' 'PSPAR' 'WERKS' '14' 'X' ''.
    in custom table zposition, i maintain serch help for custom field "PLANS".
    then i used reuse_alv_grid_display.. for all the std fields along wit custom fields
    i got f4 all std fields but for my custom i am not getting the f4 help
    how can i get the F$ help for this custom fields Zposition-plans..
    plz give some idea

    Hi
    In that Ztable against the field
    PLANS give the check table name as  <b>T528B</b>
    then it will automatically give the search help
    or you can create your own search help(elementary) and add to that field
    Reward if useful
    regards
    Anji

  • Icon for customer field (field group)

    Hello!
    We have a need to follow-up one indicator through a customer field thanks to icon (like severities).
    Do you know if it's possible to manage that with the field groups for customer field (I couldn't achieve that yet), or if we have to develop a dedicated webdynpro application for that?
    Thanks!
    Matthias

    Hi
    You need to use programs provided by SAP  to handle dynamic behaviour.
    The idea is to store your BDC data into a file. (If you are already reading
    from a file, you still may have to write to a file suitable for the
    program).
    The SAP standad program can be called using a SUBMIT.
    Here are two programs that you can try :
    For creation of Customers : RFBIDE00
    For creation of Vendors : RFBIKR00.
    Regards
    Neha

  • Process flow for customer services

    Hi ,
    I want to know the process flow for customer services.Means when customer return the product for repair or replacement,then how we run the complete process in system.What is the various tcode for this process.
    Please ASAP
    Regards
    Prabudh

    Have a look at this [link|http://help.sap.com/saphelp_crm40/helpdata/en/b0/87e20ee4f20148acc496c5525f4399/content.htm] if it for any help. couldn't find anything better
    Regards

  • Change Log for Custom fields

    Hi All,
    I need the change log for custom fields added in BP transaction codes.
    Basically, for tracking the changes of master data in CDHDR and CDPOS tables we will enable the checkbox of dataelement related to custom field.
    As for SAP fields in BP transaction code the change history is reflecting in CDHDR/CDPOS tables. i have enabled that for custom fields added to BP transaction code but i could not see the change history for such fields.
    Please let us know if iam missing any other thing?

    Hi Amit Singh,
    Apart from clicking the checkbox in dataelement...
    There are some settings need to be done by BASIS
    and some settings and entries should be made in SCOD t-code
    create entriy for change document here..
    also hv a look on below links...
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2a/fa015b493111d182b70000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2004/helpdata/en/db/7a2a40ce93185de10000000a1550b0/content.htm
    Custom Table values in CDPOS and CDHDR
    scdo
    wat do these fields in scdo stand for?
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7

  • Strategy for Custom Fields

    Hi Everyone,
    I've a question related to handling of custom fields during upgrade.
    Scenario:
    9.0 delivered record has a custom field added to it.
    After initial pass, following happened.
    1. 9.0 delivered record was replaced by 9.2 delivered record structure
    2. Custom Field was deleted
    3. Data for the custom field was dropped too..
    Q1 What should be the best strategy to get the data and field back... Here is what I understand.
    Keep 9.2 record
    Add custom field to it.
    Import data for custom field from another 9.0 environment.
    Suggestions welcome.

    during initial move don't drop the custom added fields which are needed.
    This way you will not lose the data

  • Changed document for custom fields

    Hi All,
    For business transactions we can see <b>changed documents</b> under <b>Extras</b> menu.
    I have custom tabs & custom fields in business transaction. We need to see the custom field changes by value & user in the above menu. Is it possible? how?
    thanks,
    Bhushan

    Hi Murlidhar,
    My question is related to SAP CRM. The notes you suggested are not for CRM.
    Others, do you have any idea how to add/show records in "Extras-> Change Documents" of business transactions like Sales order, activities for custom fields not using EEWB.
    thanks,
    Bhushan

  • Master Datasource Update for custom fields

    I have a standard master data source for 0customer, I need some custom fields that are enhanced in the same SoURCE TABLE KNA1. please let me know if
    1.  i can create the generic data source Z_DS_CUSTOMER for custom fields only from KNA1
    2. Create transformation 1 to Map the data source Z_DS_CUSTOMER to Ocustomer to load the custom fields only and set no transformation for other standard fields
    3. Create transformation 2 to Map the data source 0customer_attr to same Ocustomer to load the standard fields.set no transformation for other custom fields
    4. Then Load via DTP Standard fields first via transformation 2
    5. Then Load via DTP custom fields first via transformation 1
    Will the above will work fine, and I can avoid any enhancement to master datasource 0customer_attr
    please help me with solution.
    Regards
    Soniya
    null

    Hi all my dear friends,
    I have seen the recommendation by my SAP collegue and Anil
    1. infoobject as Target and
    2. in between Standard DSO
    1 transformations as you mentioned from 1 IS
    3. Common Info source
    2 transformations as you mentioned from 2DS
    4. Datasources (2no's ) as source to splly to data to DSO
    <b>Please tell me what is the need to do all the above why can't I feed directly the Infoobject with the below PLEASE tell me what will be the bad impact on design if I do the below</b>.since my client is asking<b> justification for build of each BI object</b>
    1. infoobject as Target and
    1 transformations as  mentioned from 1 IS
    2. Common Info source
    2 transformations as mentioned from 2DS
    3. Datasources (2no's ) as source to splly to data to DSO
    I am not going for enhancement since it is not populating the datasource in rsa3. if you can correct that it would be great.
    I have the same code for all custom fields none of them is working no records are pulled in RSA3 For custom field ZZSTAT.
    Please help me with this
    Thanks
    Soniya Kapoor
    *data: l_BIW_KNA1_S like BIW_KNA1_S
    *case i_datasource.
    *WHEN ' 0CUSTOMER_ATTR'.
    *loop at C_t_data into l_BIW_KNA1_S
    *l_tabix = sy-tabix.
    *clear  I_KNA1.
    *select single * from KNA1 into i_KNA1 where kunnr = l_BIW_KNA1_S-kunnr.
    *if sy-subrc = 0.
    *l_BIW_KNA1-ZZSTAT = I_KNA1-ZINSTAT.
    *modify C_t_data from l_BIW_KNA1 index l_tabix.
    *endif.
    *endloop.
    *endcase.

  • Negative values for Custom field in SAP coding block !

    Hi All,
    Hope all of you are doing fine.
    I need your valuable suggestion/possible workaround for the following requirement.
    u2022 The project requires me to add a custom new field to SAP coding block, which can take negative numeric values.
    u2022 The standard u201Caddition of custom fieldu201D configuration allows me to have the data type of the newly added custom field as either NUMC or CHAR. NUMC data type does not allow negative values. Standard configuration does not allow me to choose other data types (for custom field addition) like QUAN which can allow negative values (by checking the Sign at domain level in data type).
    u2022 Moreover, once I have added the custom field, itu2019s not possible to change the data type of the newly added field (say from NUMC to QUAN).
    I wanted to know if anyone of you have any project experience/knowledge about possible workaround, where we can add a custom field in SAP coding block, which can accept negative numeric values (through standard configuration or otherwise).

    No experience on that, but I strongly advise you to not trying to do something else than what was designed by SAP. So, you can create a character type field, with for example a field exit (though this technology is obsolete, it's very useful in that case) to validate its content (and reformat it if needed).
    Note that from a functional perspective, I think an amount is strange in the coding block, so maybe ask the functional people to know why they need it...

  • Transfer OTL to Payroll is not working for Custom Field Values

    Hi,
    We have Extended the Payroll and Project layout in OTL to include custom fields.
    Now linked the fields to Element entries input values.
    The issue happens when a retro batch is processed and transfered to Payroll the input values are not getting pulled properly.
    i.e. The retro batch creates a positive value for the new retro entry and a Counter negative value for the old record.
    Only in the case of Negative value, the issue is happening. For the positive value it is pulling the record properly from the custom fields.
    Can you please let me know, how to debug the same.
    Also this issue happens randomly not all the employees are facing this issue.
    Thanks,
    Raja Rajan

    Hi Rsn,
    just check the put this code in
    1st way--
    jjust import the api in your custom Action class
    import com.sap.isa.core.logging.IsaLocation;
    private final static IsaLocation log = IsaLocation.getInstance(ZcustomeAction.class.getName());
    then
    log.error("value"+value);
    in this  way you can debug the code...if not possible thenn...
    you can write...
    System.err.println("value"+value);
    you can also try to this  way..i think it will work now
    Thanks
    Jati

  • How to set screen properties for Customer fields in PO(Enhanced using BADI)

    Hi All,
    I have added one custom tab with seven fields in the PO item level using the BADI 'ME_GUI_PO_CUST  and ME_PROCESS_PO_CUST'.
    Now i want to change the screen property dynamically. According to some calculation i need to change the customer fields in display mode and change mode. when ever it is in change mode i need to set the fields as mandatory.
    How can i implement this logic using this BADI. Please help in solving this issue.
    Best regards,
    Kannan. B

    Hi,
    Try adding the code in the PBO part of your custom program used for the custom screen which you have created and added inside the BADI.
    Regards,
    Harish

  • Processing log for customer_H fields

    Dear all,
    We are cusomizing the Processing Log for Service Request.
    In the customizing, we can add some fields coming from the CUSTOMER_H table.
    However, after adding those fields , they are not in the processing log of the transaction type in CRM7. It seems that it does not take into account the customizing. When we modify the created fields, they are not shown in the processing log history.
    Would anyone had already meet this problem?
    Thank you,
    Regards,
    Anaïs Jaussaud

    Hi,
    Just closing the question as I have my answer. when developpers create the fields in AET, they have a possibility to track it in the history tab.
    regards,
    Anaïs

Maybe you are looking for