Addition of UDF field amount in document total

Dear All,
we have created 2 UDF's in A/R invoice. user enters amount in this udf which is to be added in document total.
scenario is as follows:
Document total ....................1000 (A/R invoice total)
Row level UDF1.......................100
Row level UDF2........................200
Final total must be..................1300
we want this udf amount to be added in document total. we have already tried with help of FMS instead of that we want it to be calculated as an when UDF amount is entered by user.
Is their function to solve this. Solutions will be highly appreciable
manohar
Edited by: Manohar Patil on Mar 27, 2009 8:24 AM

Hi,
     First of all thanks for the solution...
But while using that query i had some wrong amount in the total field.
The scenario is as follows :
I had set the query to the TOTAL field and set auto refresh regularly on "U_Other Charges" field.
The another UDF is "U_Packing Charges".Now when first time i enter the values in the these 2 UDF's
the total is automatically calculated and that is coorect but when i updated the values in the any of the 2
UDF's  then  the amount displayed in the total field is wrong one....
Means it only woking fine at the first time entry of the amount in UDF's but after updated the amount in
the UDF's that displays the wrong amount in the "Total" field.
Please help to solve the problem which is required to be urjent and will be highly appreciable.
Thanks....
Manohar

Similar Messages

  • Total calculation based on unit price and UDF field values

    Hi All,
    This is for a construction related company. Please find attached screen shot for details.
    My scenario is when we are creating sales order my client wants to calculate the total amount based on unit price towards the UDF fields defined. For example user will give the unit price  per sqft in Unit price ie 2800 as per screen shot column and constructed area in Sqft in he will enter the area like cons area in sqft =1500. So this 1500 need to calculate with unit price and will display in total. So in Total field it should show like 2800*1500= result. Like wise other amount values in udf needs to be calculated and displayed in total field  .
    Is this possible in SAP B1. Please help me with your valuable suggestions.

    Hi,
    Try this:
    SELECT ($[$38.U_Price.number]* $[ORDR.U_CArea.number)+ $[ORDR.U_EBexp.number]+ $[ORDR.U_RO.number]+ $[ORDR.U_Maintenance.number]+ $[ORDR.U_CorpFund.number]
    Thanks & Regards,
    Nagarajan

  • Additional fields in FI Document - BAdI FI_HEADER_SUB_1300

    Hi,
    I need to add some additional fields in FI document via transaction F-43.
    I added them in an append structure in BKPF, implemented BADI FI_HEADER_SUB_1300 and programmed the screen with the corresponding fields.  But it didn´t work with my new fields, the only fields that are updated in BKPF are XREF1_HD and XREF2_HD.
    Does anyone know if it's possible to add new fields with badi FI_HEADER_SUB_1300 ? Do I need to consider something extra?
    Best Regards,
    Natalia

    Hello Natalia,
    Did you solve your problem?
    I got a similar one, I'm trying to add some Z fields (added to BKPF via append struc.) to screens of transactions: F-43, F-63, FV60, FB60 (this badi could work for F-43, but I need to find another exit / badi for the others transactions).
    I implemented the mentioned badi, but after debugging it, it looks like that after exiting the Z implementation, the only fields enabled to be transfered in the end, are XREF1_HD and XREF2_HD, no matter if you add any other else.
    Please, let me know if you got further information.
    Thanks in advance.
    José Gabriel.
    Edited by: José Gabriel on Oct 14, 2009 11:13 AM

  • How to hide document total amount

    Hi all,
    does anyone know how to hide document total amount in Delivery form?
    thanks

    Hi Fransisca,
    you can hide in Total amount in that table by clicking form settings then select table format and uncheck total amount and click ok.This is possible upto my knowledge and i dont have any idea about to hide in hearder level.
    Edited by: Preme on Dec 29, 2007 10:30 AM

  • Purchase Order Document Total query

    Hi all
    I need some help with a query to copy the P.O. Document Total field to a UDF U_DOC_Total in the header level of the P.O.
    Thanks
    Bongani D

    Hi Steffen
    Thanks for your help.
    When I try and add the doc i get this error :-
    03/12/2008  18:18:48: [Microsoft][SQL Native Client][SQL Server]Conversion failed when converting the nvarchar value 'ZAR 15,001.00' to data type int. (CINF)
    Maybe I should have explained earlier that this field will be linked to a SP that will evaluate if the Doc Total is above R 15 000.
    So please check my Sp below.
    IF @transaction_type = 'A' AND @object_type = '22'
    BEGIN
    IF EXISTS (SELECT T0.CardCode FROM dbo.OPOR T0
    WHERE T0.U_DOC_TOTAL > 15000 AND T0.DocEntry=@list_of_cols_val_tab_del AND (T0.U_TAXCLEAR IS NULL OR (T0.U_TAXCLEAR IS NOT NULL AND T0.U_EXPIRYDATE IS NULL)))
    BEGIN
    SET @error = 10
    SET @error_message = 'Amount greater than R 15,000, need a valid Tax Certificate'
    END
    END
    Thanks

  • Difference between local amount and document amount in the same currency

    Dear All,
    Why different between local amount and document amount with the same currency in some FI document line items? Both currency is 'TWD' and update currecy(BSEG-PSWSL) is 'USD'.
    What is the purpose of update currency(BSEG-PSWSL) and update amount(BSEG-PSWBT) ?
    Does update curreny cause the difference mentioned above?
    Thanks all in advance.
    Best regards,
    SAP user

    Dear Sir,
    Thanks for your kindly response!
    These fields of the FI document header are following:
    Local currency 1(BKPF-HWAER) : TWD
    Local currency 2(BKPF-HWAE2) : null
    Local currency 3(BKPF-HWAE3) : null
    Document currency (BKPF-WAERS) : TWD
    Transcation currency means which field ?
    Transaction code (BKPF-TCODE) : FB1S
    The line items as following :
    Itm PK Account    Account  short text   Amount
    1   40   21302500  A/E-Maintenance     1,119,350
    2   50   21302500  A/E-Maintenance     1,119,350-
    Amount in document currency is 1,119,350(TWD) but amount in local currency is 1,087,998(TWD).
    The line item's additional data :
    Amount for Updating in General Ledger : 33,894.02(USD)
    Thanks a lot !!
    Best regards,
    SAP user

  • There is a difference between the document total and its components

    Hi!
    I have an error message "There is a difference between the document total and its components" when I want to create an InventoryGenEntry
    the problem arises from time to time and my customer must do the document two or three times before it is created.
    I have seen in this forum and in notes that this is probably being caused by a Rounding.
    I am using 2 digits for amounts, 4 digits for prices, 6 digits for rates and 3 digits for quantities.
    For information my customer use SAP 2005 and the patch level 46.
    This problem happened only in InventoryGenEntry. how can I modifiy parameters to resolve this problem?
    thank you for your help.
    Best Regards
    Séverine

    Hi Séverine,
    Do you find any additional code added to SBO_SP_Transaction stored procedure. A similar issue with stock transfer fixed in later patch. Please test in latest patch.
    Regards,
    Vijay kumar
    SAP Business One Forums Team

  • UDF field in Crystal in Sales Order Layout

    Hi,
    I want to Include UDF field in sales order layout, when i open default layout it shows only standard in RDR1(UDF for rowlevel ) it doesn't shows UDF fields. Now i connected database and re-established OLE DB connection and pulled the RDR1 table, here i can get those UDF created by me. but if i use this UDF field in report details area and this results no values in the layout while preview the report in SAP B1.
    Anyone guide me on this....
    Regards
    sree

    Hi Ivan,
    If you want to populate UDF fields into crystal reports layout then you have to do wat i mentioned earlier.
    1. Go to Menu
    2. choose Database
    3. choose verify database
    4.enter Object Id and Document Number as a input
    5.system will retrieve the values from database and pull all the fields including UDF
    but this doesn't change field length of UDF you have to change it on UDF fields management in SAP by updating the field properties.
    Note: later you can't reduce the length
    Regards
    Sree

  • Applying Tax code on document total as a whole.

    will it be possible to apply tax on a document total as a whole?
    for eg.
    I want to generate a purchase order for 3 items and doesn't want to apply tax code on line level.
    The document total will be say 5000 now i want to put tax code on this value.
    will it be possible.

    Hi,
    In SAP B1, You should link the Tax codes in row level (ie., for every item it's tax code should be defined in that row itself). We cannot define or calculate the tax amount for overall amount.
    Raja.S

  • While creating the UDF in the Marketing Document  ERRor

    Dear to ALL
    Please give me some solution to the my problem
    My problem is
    While i am creating the UDF in the marketing document I am getting the error message 131-183 could not able to create the data base.
    Any one can help me out releated to this problem
    Please  .....................................................
    With regards to all ........................
    Gopi J N
    [email protected]
    [email protected]

    Hi JN,
    There is no limit in number of UDF but in record length. This a SQL        
    Server 2000 limitation which establish 8060 bytes as maximum for a         
    record. This limitation does not exist in MSSQL 2005.                                                                               
    Therefore, in order to be able to add more UDFs you should reduce the      
    size of the existing UDFs or upgrade the system to MSSQL 2005.                                                                               
    Please refer to the SAP note 816387                                                                               
    The solution to this problem is to decrease the size of the                
    User Defined Fields. Either by decreasing the length or changing           
    the definition of "Alpahnumeric" fields to Text, or the last resort        
    is to remove the fields.                                                                               
    All these actions have to be done via the SAP Business One application.    
    The change of field type alphanumeric to Text might influence the          
    performance.

  • Addition of New Fields to CG36VEN Transaction - Import of Vendor MSDS

    Hi Guys,
    I have a business requirement for addition of New fields (text field and check box) in the CG36VEN transaction (Import vendor MSDS) in SAP EHS.
    (Something like in the attached screenshot )
    Are there any User Exits/Enhancements points available for the same? (we tried checking but couldn't find any).
    If no, should we copy the function group into a custom function group and make the changes?
    Please suggest the best way forward. any pointer are really appreciated.
    Regards,
    Gaurish Dessai

    Dear Gaurish
    if you check the normal process to upload "pdf" files using SAP standard import you are able to create additional data (using a SAP standard class; but you can change that using a custom specific class) by standard without the need to "modify" screens etc. . I would prefer to do the upload in a "document" class and not to ESTDH as the use of a class is standard; but yes you can use append fields in ETSDH (or use custom driven own table); In e.g. DOC-X and similar interfaces you can download then the data from the class (e.g. as in your case for "reuse" in a different data base). PLease check SAP online help or the many threads which are related to the topic of "mass bulk download of pdf SDS/MSDS files (e.g. Bulk MSDS Download))
    The "correct" (best solution depending on the real customer needs) solution depends a little bit on your further use of the "on top" data which you would like to upload (and the potential risk that after e.g. 6 months user would like to get a third, fourth etc. checkbox inthe screen).
    E.g. the two check boxes could be implemented as "identifiers". The "pro" of this solution is this:
    a.) you can execute easily inquiries in EHS database
    b.) you can extract the identifiers easily (e.g. as part of an output variant or other similar options (combination of ALE with XI/PI)
    Second option: you can generate an own EHS class as part of the property tree; then you can use as well inquiry options (and ALE or other options to download the data).
    As mentioned before: the "best" option (near to the SAP standard) is to use a customer exit in Cg50 (check e.g. Customer Exits in SAP EHS MANAGEMENT
    and these two exits as mentioned there:
    C1G20001
    EHS: Menu exit 1: Report management
    Yes
    C1G20002
    EHS: Menu exit 2: Report management
    Yes
    One "disadvantage" of the transaction CG36VEN is that you can upload only one document in one run. Using the exists as mentioned you can generate a more "user friedly" option to do mass uploads as well (based e.g. on key files (similar to the "Standard option" but more user friendly)..
    Using this option you are as well flexible to use own customer document classes (e.g. you can/could define per "document type" one class; e.g. for REACH exposure scenarios you can use a different class in comparison to SDS upload.
    A well known shortfall of transaction CG50/CG54 is the limitation in the available search options. You could not select reports based on the "check" boxes in your screen (therefore if you use "append" fields for ESTDH there is very limited option available to sue an inquiry standard SAP function to select reports of a specific type)
    Therefore in most cases it is better to change your process or your approach (how you would like to store the data); e.g. to store the check boxes data on spec level (e.g. as identifier) and then by using CG02 "switch" to CG54/CG50 transaction (which is now easily possible) to check the reports (and content of the reports).
    C.B.

  • Rounding of document total in draft A/R Invoice

    Hi All,
    I am creating document draft of A/R invoice through user defined screen (DI API). after creating the draft document, when I see the actual draft document through document draft report in SAP, the document total has the difference of 0.1. where should the rounding be changed in system? document and system currency is INR. there is no rounding given in currency setup. i have not given any rounding in document also.
    the values in user defined draft are :
    total before discount : 19144.8
    discount % = 40
    total after discount : 11486.88
    tax (12.5 % for all items in the document )
    tax = 1435.86  (12.5% of total after discount)
    rounding = 0.00
    doctotal : 12922.74
    when it is saved, the system draft document shows following value:
    total before discount : 19144.8
    discount % = 40
    total after discount : 11486.88
    tax = 1435.85  (12.5% of total after discount)
    rounding = 0.00
    doctotal : 12922.73
    if you check, the value is different in tax field. system has calculated tax on 11486.8. whereas, I have calculated tax on 11486.88. and this only gives the difference of 0.1 in doctotal. now, anybody can guide on why this is so?
    thanks and regards,
    Binita
    Edited by: Binita  Joshi on Oct 8, 2009 11:05 AM

    Hi Dwarak.....
    Run time total sum is not possible throgh FMS else you would have to to SDK work. But if you want it to be displayed then you can display it into the simple PLD. Whenever your client requires he will fill the AR invoice details and just click on the print preview. This way you can solve the purpose.......
    Regards,
    Rahul

  • Adding the Document Total to Detailed Liabilities Aging Report

    Hi,
    On the Detailed Liabilities Aging Report(Vendor Aging), I would like to add the Document Total from AP Invoice. How can I link to the AP invoice table(OPCH).
    Thanks
    Krishnan

    Hi Krishnan,
    This PLD is hard coded report.  You don't have any options to link to other fields in the report.  If you need that info on the report, you need to create your own.
    Thanks,
    Gordon

  • Report painter- Amount in Document currecy instead of LC

    Hi,
       Am new to report painter. i created report painter in FDI4. this report is to display the due amount.
       when i click on table cell, which is amount field . Am chosen cell type as  'Select with Key figure' option .
       After then i try to select key figure for that cell (Popup:Element definition).
       In F4 selection there is only one Key figure which is Amount in LC.
       I need to display the field value as Amount in Document currency.
       How to bring Amount in Docment curreny in that F4. Is it possible.
      I didnt get any thread related to my requirement in SDN.
      pl help.

    Solved by myself..
    Two steps to be taken to bring Amount in Doc. currency as a key figure(F4 help).
    1. Added new field 'WRSHB' , data element for this field WRSHB_D (Used Append Structure) in RFRRD20 structure. FDI4 used this structure only.
    2. create new entries in TKAF table under application class Account receivable FBRD. field value WRSHB ,data element  value WRSHB_D, and others field value are as same as DMSHB record.
    After these steps, now u check in FDI4 tcode.  U can get Amt in doc. currency as key figure.

  • Not able to keep defualt value in UDF Field

    Hello Frnds,
    I have one question to you, I want to keep default value in one of the UDF field which is ContNo which is exist in A/R invoice.
    I want to keep default value =9999999
    So to do this I have followed the following process:-
    First I went to ToolsUser-Defined FieldsManage User FieldsMarketing DocumentsTitleContNo
    then pressing update button there is an option to enter Default value and press OK button.
    After that its taking some 30 mins and giving error of "SEWSY"
    Please help me to let me know the solution.
    Regards,

    Hello Gordon,
    Please note that as per your suggestion now im not updating the udf  by the sql query.
    As i was already trying to update it from as a exclusive user of B1, but its not updating.
    Its always give the error of SEWSY.  At the time of updating there is not user logged on SAP also im updating with the adminstrator role.
    Please suggest me.

Maybe you are looking for