Custom field - Local Net Value Billing

Hello,
Could you please help me to understand how calculate correctly, in a query, the net value of billing in the system currency?
I've created the custom field Local-Net Value = VBRP-NETWR * VBRK-KURRF.
But, when i executed the query i had the following situations:
- The correct value when the exchange rate is from EUR to another currency.
- The value incorrectly when the exchange rate is from another currency to EUR, (the exchange rate, VBRK-KURRF, is expressed as a dividend).
Thank you in advance.
Best regards.
Antonio

Hi Antonio ,
DATA: V_LA  type vbrk-netwr,
      V_FA type vbrk-netwr,
      rate type vbrk-kurrf.
CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
  EXPORTING
  CLIENT                         = SY-MANDT
    date                         = SY-DATUM
    foreign_amount               = V_FA              " Foreign Amount
    foreign_currency             = 'USD'             " Foreign Currency Key
    local_currency               = 'EUR'             " Local Currency Key
    RATE                         = Rate              " Exchange Rate
IMPORTING
   LOCAL_AMOUNT                  = V_LA              " Local Amount
IF sy-subrc = 0.
*Map this V_LA  value to your final field .
ENDIF.
Regards,
Maruthi
Edited by: maruthi kona on Oct 25, 2011 10:27 PM
Edited by: maruthi kona on Oct 25, 2011 10:28 PM

Similar Messages

  • Add customer fields on item level billing document VF01

    Hi gurus,
    Does anybody know a user exit (or another way) to add 3 customer fields on a subscreen during creation of a billing document (transaction VF01) ? I'm afraid I need to do a modification for this but maybe there is a better solution.
    Thanks for your reaction.
    Serge

    Hi
    These are the userexits
    SDVFX007            User exit: Billing plan during transfer to Accounting
    SDVFX008            User exit: Processing of transfer structures SD-FI
    SDVFX009            Billing doc. processing KIDONO (payment reference number)
    SDVFX010            User exit item table for the customer lines
    SDVFX011            Userexit for the komkcv- and kompcv-structures
    V05I0001            User exits for billing index
    V05N0001            User Exits for Printing Billing Docs. using POR Procedure
    V60A0001            Customer functions in the billing document
    V60P0001            Data provision for additional fields for display in lists
    V61A0001            Customer enhancement: Pricing
    may be you can look into this SDVFX010
    Please reward if useful.

  • Custom field accepts unlisted values

    We have a customer filed "location" maintained in coding block. The values of this field are maintained in Z table. While making entry to this filed, it accepts invalid / unlisted values as well. If location Pune is not maintained in Z table, still in document entry and documnet change transactions "Pune" is accepted in location field and also gets saved.
    How can we avoid this issue and have only values from table be able to enter ?

    Hi,
    Check the coding block table COBL in transaction SE11.
    Go to tab "Entry help/ Check". In this tab, againest your field "Location" your ztable should be entered in the columnn "Check Table" and activate the check box in column "Foreign Keys" for this line.
    It should solve your problem.
    Regards,
    Gaurav

  • How to get custom field name and value in data table using csom

    i am using using this code but iam not getting FieldValues property..
     internal void ReadProjectCustomFields(string strProjectName)
                string url = "https://techwhizepm.sharepoint.com/sites/rnd/";
                using (ProjectContext projContext = new ProjectContext(url))
                    SecureString passWord = new SecureString();
                    foreach (char c in "Pass@word123".ToCharArray()) passWord.AppendChar(c);
                    projContext.Credentials = new SharePointOnlineCredentials("[email protected]", passWord);
                    projContext.Load(projContext.Projects, o => o.Where(i => i.Name == strProjectName));
                    projContext.ExecuteQuery();
                    foreach (PublishedProject _t in projContext.Projects)
                        DraftProject dftproj = _t.Draft;
                        //CustomFieldCollection custs = dftproj.CustomFields;
                        CustomFieldCollection custfs = dftproj.CustomFields;
                        projContext.Load(dftproj);
                        projContext.Load(custfs);
                        projContext.ExecuteQuery();
                        ddlcfields.Items.Clear();
                        if (!custfs.Count().Equals(0))
                            ddlcfields.DataSource = custfs.AsEnumerable().Select(o=>o.Name);
                            ddlcfields.DataBind();
                        DataTable dt = new DataTable();
                        dt.Columns.Add("Name", typeof(string));
                        dt.Columns.Add("InternalName", typeof(string));
                        dt.Columns.Add("FieldType", typeof(string));
                        //dt.Columns.Add("FinishDate", typeof(string));
                        DataRow dr = null;
                        foreach (CustomField _cust in dftproj.CustomFields)
                            dr = dt.NewRow();
                            dr["Name"] = _cust.Name;
                            string intername = _cust.InternalName;
                            dr["FieldValue"] = dftproj[intername].ToString();
                            //dr["FinishDate"] = _task.Finish;
                            dt.Rows.Add(dr);
                        GridView1.DataSource = dt;
                        GridView1.DataBind();

    I am looking through the API calls in FDM Workbench, but cannot see the table (tPOVPartitions) you mentioned listed. Is this the correct name? And do I just use the function listed in the object browser to run the query?
    Furthermore (going back to my initial thoughts of using strFile), it appears that although the variable contains the .Dat filename and path, the actual file is non-existent when "BefExportToDat" is executed:
    Error:
    Error: Export failed.
    Detail: File not found.
    This would make sense, but it does make the variable "strFile" a little pointless since one cannot make use of the file in this particular event script. Do you please have any thoughts on this?

  • Security using custom field in PCUI

    We would like to create a custom field on the header of the business partner to store information that would then be used in the security roles.
    For example, we want to create a branch field on the header of the business partner and then use this field to restrict access to specific accounts within the sytem using a CRM Security role.
    Does anyone know if you can use a custom field in the CRM system to restrict security within the PCUI application?
    If anyone has any information, I would greatly appreciate it as we are on a crunch to get this implemented!
    Thanks!

    Hi Darcie,
    If you add custom field and maintain value in it, i'm not sure if you can restrict access by CRM Security role.
    If your users are going to be entirely based only on portal/pcui (i.e. they would not use SAP-GUI log-in) then you can consider the option of tweaking your Accounts advanced search and not letting users see certain accounts (based on the value in EEWB / custom field)
    Hope this helps.
    Regards,
    Raviraj

  • SRM Portal - Search help for a custom field

    Hi,
    I have added a custom field to the SRM Portal (5.0) shopping cart, by adding the field to structures INCL_EEW_PD_ITEM_CSF INCL_EEW_PD_ITEM_CSF_SC.
    However, I need to filter the search help for that custom field, based on values & relationships stored in a Z table.
    Is this possible? How? Please help.
    Thank You.

    Currently, my idea would be to create a search help for the custom field & filter the values in a search help exit. However, would I be able to get other field values (standard) from SRM into my search help exit?

  • Data entered in the custom field in the SRM portal not getting saved..

    Hi Experts,
    I have added a custom field in Contract Screen of the SRM portal by adding the field as an append structutre in structure INCL_EEW_PD_HEADER_CSF_CTR.
    The custom field now appears in the header (basic data ) of the 'Process contract' screen.
    NOw It allows me to enter data in the custom field .
    The problem is ..
    When I  'CHECK' or "RELEASE'   the contract, the value entered in the custom field disappears..
    How do i capture the data entered in the custom field ...please HElp!!!
    Thanks in Advance.
    Vidya

    Hi Pradeep,
    Thanks for the reply!!
    We have upgraded our SRM system from 3.0 to 5.5
    I have added the custom field in structures INCL_EEW_PD_HEADER_CSF_CTR  and
    INCL_EEW_PD_HEADER_CSF  as the field has to appear in the basic data tab of 'Process Contract'.
    Regarding debugging:
    1. I tried to debug in BBP_DOC_CHECK_BADI by calling the FM BBP_PD_CTR_GETDETAIL. inside the badi and the parameter e_header of the function module contained the custom field but had no value...!!
    2. I tried to debug the badi BBP_CUF_BADI_2  method MODIFY_INPUT..
       The import variable iv_fieldname contains the field name amd the variable iv_value has the value entered in the custom field .........but another import structure ls_header also contains the custom field but no value....
    Method  MODIFY_INPUT has only one export parameter ev_value,,,,,,,,,,,,,,,,!!!!!!!!!!!!
    Edited by: vidya vidya on Apr 24, 2009 6:06 PM

  • Populating Custom Field in T005

    Hi All,
    I have a question... I recently appended a custom field in table T005 (countries table) (under ZAT005 structure).
    So I want to popualte this field... How do I expose for edit? I don't want to do SE11 edit mode... and I was hoping some way I can do it thru SPRO under countries section. That way, I can made modification on country all at once.
    But I don't know how to add my field to those SPRO screens. Ideas anyone?
    Charlie

    Hi,
    I believe the only option is to get the access key for the view V_T005 which has the table maintenance..
    Then go to the change mode and re-generate the table maintenance..
    But the danger in doing this is you might loose the screen layout of the detail screen...Meaning arrangement of the fields..
    How often are you going to change this data...It is just master data right...
    Also I would prefer to have a custom view to maintain this data...
                                          OR
    Another Idea...You can use the SM30 events to trigger a popup with a input field when they save the data..Then update T005 in the custom field with the value given in the popup.
    Thanks,
    Naren

  • 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

  • Updating Custom field in Table BUT000 using BAPI 'BAPI_ISUPARTNER_CHANGE'.

    Hi,
    I have added a new custom field in table BUT000. Now i want to update that field with 'X' and i have used EXTENSIONIN parameter in the BAPI 'BAPI_ISUPARTNER_CHANGE'. i have populated the field name(Custom field name) and value 'X' to that structure and passed to BAPI. But that field value was not getting updated. So can any one help me how to resolve this issue.
    Thanks,
    Sushma

    Hi Ravi,
    Thanks for your response.
    I have passed the Structure name  in parameter EXTENSIONIN, but still i am facing the same problem.
    Thanks,
    Sushma

  • Related to CJ20N custom fields

    Hi Everybody,
    Its a query related to CJ20N.There we have created Project definition and WBS element wth the help of data transfer technique.Now later on we have added some more custom fields.For that respective Project and WBS element we need to upload the data from the excel sheet.
    Please let me know how to approach.
    Thanks in advance,
    Sreeharsha Singuru

    Hello,
    To update Customer fields in a WBS element you can use LSMW recording mode for Tx: CJ02
    Enter the WBS element definition on the initial screen and cheese 'enter'
    in the WBS element overview, choose first line and select from menu: ' Details -> <Customer Fields> (This is an exit and you may see a different text over here) and you see the customer fields. fill the values in the fields and save.
    Hope this helps.
    Best Regards, Murugesh AS

  • Instantis 9.0 - Can Custom Fields be updated on import

    Pretty sure the answer is no, but thought I would check to make sure.
    The Project Custom Field are available on the Instantis_Financial_Parameters tab when exporting the Financial Template for a project. That is a one way push, right?  You can't update the field within Instantis by changing it on the spreadsheet and importing, correct?

    I did not wish to create an API interface for this.
    When using the Finances Import / Export feature Instantis generates a spreadsheet.  The second tab of the spreadsheet (Instantis_Financial_Parameters) lists custom fields and their values.  I was hoping that by updating the values in the spreadsheet, importing it will auto-magically update the custom fields.
    I don't believe that is possible.

  • Billing doc. NET VALUE & TAX FIELD

    IN THE BILLING DOCUMENT ,CONDITIONS TAB on wat basis does the net value & tax field gets populated i.e what is the customisation done for that fields

    Dear Vipin
    System will understand <b>ONLY</b> based on the value you are assigning in the fields "<b>From" and "To".</b>
    For example, my sales price would be lke PR00 + 2% of PR00 towards Packing.  Now you have to define your pricing procedure in such a way that your duty is PR00 + 2% of PR00.  Assume I define "Step 100" for PR00 and "120" for Packing. In the next step, you create one column called "Sub-total" in Step "130" and in "From" tab, you have to give 100 and 120 in "To" tab.
    Now for tax calculation, you have to take the "130" step value and assign 130 in both "From" and "To" column.  By this way, you have to assign.
    Hope this is clear to you now and if so, reward points please.
    Thanks
    G. Lakshmipathi

  • Got multiple values for non null local custom field

    Hi,
    I get the following error message while saving a MPP from Project Professional to MS Project Server:
    Got multiple values for non null local custom field.
    I checked the MPP and found that there are fields with same alias as Enterprise field names. However, these fields are at a Task level, whereas the Enterprise fields are at a Project Level.
    I would like to know why this is happening and the resolution for this issue. I don't want to delete the local fields.
    Any help in this regard will be appreciated.

    Then try to find any inconsistencies in the project plans with the issues, like required values not entered. Also try to save the plan as XML format and save it back as an mpp file to see if it helps (be aware that any formatting will be lost).
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Current net value is zero in retro billing VFRB

    Hi Friends,
    we have used some z fields in pricing, almost all the fields are z fields in price determination includes condition base value.
    we are able to create sales order and billing document and price is also getting determined as required.
    Now the issue is we are unable to use retro-billing functionality, there the system is showing current net value as zero.
    Ex : My price is basing on weight (it is a service material), this weight is a z field.
           Landing Charges - 60 MT @ 100/mt, condition base value is 60 MT and price is getting determined as 60MT@100 equal to 6000.
    Z field is available in VBAK table and not in VBRK table.
    Now i am changing weight in sales order and running retro-billing, then it is showing current net value as zero.
    i am unable to find out the reason, what could be ????, pl help
    thanks in advance,
    Srini

    FYI -
    Retro Billing is used when you go for mass change of Base Pricing Condition Type in Billing doc(complete) based on Sold-to party & Material for a given range Billing date from & to. To do this you need agreement of your customer, and accordingly you make necessary changes in Base Pricing Condition Type condition record with proper validity date. Open ending validity date, might not be of much help to you in retro billing. So, when you execute Retro billing transaction for a particular date range, it considers condition records for Customer & Material key combination with validity of record laying in the date range provided.
    So, that might give insight, why retro billing is working for you scenario.
    Regards
    JP

Maybe you are looking for

  • Formatting C: - Can I use a software like DBAN?

    QuestionAs soon as my laptop is heavily infected, I need to format my C: partition. Now I would like to avoid using OneKey Recovery and selecting a recovering from a backup. Instead I'd like to format C: by using a software like: DBAN and reinstall w

  • CCM 2.0 Simple search on CSE does not show any result

    Hello guys, I'm trying to search items by means of simple text search in CSE. Unfortunately, the system returns no result, though I can see the items by means of category search (that makes me thing that it's not a problem of views). I search for a p

  • Green Screen shows when trying to play videos?

    Since downloading itunes 8, all of my videos don't work. When you click on them to play, a green screen shows up, and nothing else. And, if I try to play them on Quicktime Player, it doesn't work, either. I tried to enable the Direct3D video accelera

  • Global level Exception Message

    Hi, I am using global level error handling concept, I want to know about how to display error message in JSP page for different kinds of Exception such as SqlException, ArithmeticException etc... and which area this exception raise from.(which contro

  • Problema con formulario php museCC

    Hola tengo un problema, Hice un formulario en el adobe museCC, con un widget de formualrio, la web esta en un servidor propio, no está en el adobe catalyst y tengo problemas: No funciona, me hace un error, cuando se envía el formularío, me sale una v