Data display from BAPI

Hi Experts,
When i am testing a BAPI , the data from infotype is displayed as 1265.00 .
But when i am displaying the same data on portal through webdynpro code  , the zeros are getting trauncated and it's getting displayed
as 1265 only .
Can anbody please tell me regarding this difference .
Secondly if i want to display my data as 1265.00 only (exactly same as in infotype) , then what modification i need to do in my webdynpro code ?
Thanks a lot in advance .

Hi Pradip,
I changed the code as per your suggestion . Since then it's not working .
I have pasted the code below . Please help .
IWDMessageManager manager = wdComponentAPI.getMessageManager();
          float totalAmount;
          float total=0;
          int n = wdContext.nodexxx().size();
          for (int i = 0; i < n; ++i) {
               BigDecimal OrderAmount = wdContext.nodexxx().getxxxAt(i).getxxx();
               try {
               totalAmount =(OrderAmount.floatValue());
               total = total + totalAmount;
               } catch (NumberFormatException nfe) {
                    logger.errorT(nfe.getMessage());
                    totalAmount = 0;
     DecimalFormat twoPlaces = new DecimalFormat("0.00");
*     twoPlaces.format(total);*     
               wdContext.currentContextElement().setTotalOrderAmount(total);

Similar Messages

  • While Creating New Insert Form Existing Data Display from the Table

    Hi
    I am New To Sun Java Studio Creator and New to Java Also While Creating New Insert Form Existing Data Display from the Table while i am Run the Form. Can any one help me to Solve this one

    Dear Giri,
    As per your Advise, Literally I have Search the Properties for the Components to set value Null, but I am Unable to find the Value in Properties palate. I have tried in various options like
    In the Properties Palate
    TextField1_onselect use Value null
    TextField1_text I have selected use Value option and I have manually Keyed-in null;
    In the JSP Page, I have manually keyed in the null value below said
    <ui:textField binding="#{BI.textField2}" id="textField2" style="position: absolute; left: 240px; top: 96px" text="#{BI.bDataProvider.value['ISSUENO'] = null}"/>
    <ui:textField binding="#{BI.textField2.Value = null }" id="textField2" style="position: absolute; left: 240px; top: 96px" text="#{BI.bDataProvider.value['ISSUENO'] = null}"/>
    At last I am Failure. I am ignorant of it. Can you please help me on this where I have to set null value for the components? I will be very kind of you

  • Is there a way to filter a drop down list by using the result main data display from"GetUserProfileByName" when open the form.

    Hi 
    Is there a way to filter a drop down list by using the result main data display from"GetUserProfileByName" when open the form?
    The second source has a huge list of company names that can be narrrow by email work. 
    background:SP 2010 and Infopath 2010
    CRISTINA&amp MICROSOFT Forum

    I'm not sure if I understood your question clearly but here is a good resource on how to get attributes from "GetUserProfileByName" web services:
    http://blog.mangroveweb.com/pre-populating-an-infopath-from-with-mysql-data-using-a-net-web-service/using-sharepoints-getuserprofilebyname-web-service-to-retrieve-ad-account-information/
    Regarding filtering dropdown list then this could be done by applying form on-load rules. 
    Hope this helps

  • Show alert after data display from the form

    After query, if date of birth is NULL then display message, but this message must pop up after data displays on the form.
    I try different post triggers, when-new-item-instance, when-validiate-item trigges, they all display message BEFORE the data. Any suggestion?
    Thanks

    hi kathy,
    What you have to do is after the commands to display the data, you give the builtin SYNCHRONIZE; then give message statement. It should work.
    Murthy

  • Transfer data displayed  from a standard tcode into an exl file

    hi all,
    my requirement is to transfer data displayed  in tcode vf03 to an exl file.
    using the list option it is not possible .
    plz help.
    regards

    you can write small query in SQ01 with all required fileds and download it to Excel

  • Date display from int.

    Hi,
    How can I display the date and time from a int value like 1046011659.
    So I have the value 1046011659 and I need to display these in the format Sun Feb 23 15:13:23 or something simular.
    Thanks in advance,
    Pieter

    You want reinvent the wheel?

  • Data display from search help.

    Dear All,
    I create a search help from T005 table with 2 parameter LAND1 and LANDX.
    I have a zempinfo table which have a field LAND1.
    when I want to insert data in zempinfo table  I get data for LAND1 from search help. In the meantime I want to display LANDX 's data in a screen by a DISPLAY_ITEM.
    DISPLAY_ITEM is not a zempinfo table field. IT is a screen element only.
    Now help me please, to display data LANDX into DISPLAY_ITEM.
    Thanks
    Rayhan

    Pls try to understand.
    Though land1 landx are same table fields. I want to use only one search help.
    When I enter value in LAND1 from search help, DISPLAY_ITEM automaticaly get data crossponding value of land1 from landx.
    e.g. when we create a SO by tcode VA01. in this screen we enter the MATNR value & crossponding other field display its related data.
    IF any way do this pls help that.
    Thanks for your attention.
    Edited by: Abu Rayhan on Jul 30, 2009 5:50 AM

  • Format date received from BAPI

    Hi,
    My BAPI return some date field in output port.
    When I test the data service I can see that date values return correctly:
    Tue Aug 19 00:00:00 IDT 2008
    etc
    But,
    when I try to display this values in some plan text field the date value is 01.01.2000.
    I try to format this dates:
    DSTR(@my_date, 'DD/MM/YYYY') but it still 01/01/2000
    I work with SP15
    Thanks,
    Ola

    Did you try the following using DSTR Function?
    Code
    Format
    Sample Result
    DATE
    DD/MM/YYYY
    31/01/2001
    SHORT_DATE
    D/M/Y
    31/1/1
    LONG_DATE
    Long date format
    Wed Jan 31 2001
    XML_DATE
    YYYY-MM-DD
    2001-01-31
    LOCALE_DATE
    Local date format
    Jan 31, 2001
    TIME
    HH:NN:SS
    02:39:40
    SHORT_TIME
    H:NN
    2:39
    LONG_TIME
    Long time format
    02:39:40 UTC+0200
    XML_TIME
    THH:NN:SS
    02:39:40
    LOCAL_TIME
    Local time format
    2:39:40
    DATETIME
    DD/MM/YYYY HH:NN:SS
    31/01/2001 02:39:40
    SHORT_DATETIME
    D/M/Y H:NN
    31/1/1 2:39
    LONG_DATETIME
    Long date/time format
    Wed Jan 31 2001 02:39:40 UTC+0200
    XML_DATETIME
    YYYY-MM-DDTHH:NN:SS
    2001-01-31T02:39:40
    LOCALE_DATETIME
    Local date/time format
    2:39:40, Jan 31, 2001

  • Data display from FA_BALANCES_REPORT_GT  table

    Hi 2 all
    Anyhody know that how to fetch the data from FA_BALANCES_REPORT_GT table in
    sql environment
    Thanks
    zulqarnain

    Hi;
    Please check:
    Oracle FA FASRSVED.rdf report need to customized ...FABAL.pll
    Regard
    Helios

  • Data display from English language to German language

    We have got a requirement to replicate existing data from English language into German language. Please let me know what are options available to replicate the data into another language.
    Thank you.

    Hello,
    You can do the translation of the data using CLR Integration and Bing Translator APIs. Please read the following post.
    http://blogs.msdn.com/b/samlester/archive/2013/05/04/language-translation-in-sql-server-using-bing-translator-apis-amp-sql-clr.aspx
    For replicating this data from a database-to-database scenario or server-to-server scenario, please refer to the following
    resources:
    https://msdn.microsoft.com/en-us/library/bb677162.aspx
    https://msdn.microsoft.com/en-us/library/ms151198(v=sql.120).aspx
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • How to retreive and display output list from BAPI

    Hello
    I am making an applcation using SUP 2.0, and this application make an user to get leave history using a Mobile System from SUP.
    I've created the MBO as Attributes using the BAPI: BAPI_LEAVE_HISTORY.
    This BAPI has some parameters IN and OUT.
    Input parameters are Employee Id and date.
    The parameter OUT is a List that retreives the employee leave history.
    Anyone has an Idea or example how to retreive the output from BAPI and displaying the output on a screen.
    Any tips or blogs that can help me?
    Thanks all!
    Satish

    Hi David Brandow,
    I have tried your solution where I just created a MBO for my 'operation' and I'm using sync parameters to execute the RFC.
    The problem I'm facing is, for example, if I create a record it gets saved in the MBO table and the record successfully gets created in SAP as well after a sync. But when I create another record and sync, the previously saved record in MBO table also gets executed so I'm getting duplicate entries in SAP.
    Have you or anyone faced this problem?
    Any response is appreciated. Please let me know if I'm not clear, I realized its a complicated scenario.
    Thanks,
    Sandeep

  • Data extraction from SAP R/3 BAPI to BW

    hi,
    i am extracting data from sap r/3 bapi into sap bw. can u please send me the link and documents of how to extract the data from bapi to sap bw.
    Answers will be rewarded
    Thanks
    sd shahid

    Hi Shahid,
        I hope i understood your question properly, because ; to the best of my knowledge, Third-party extraction tools can be used to extract data from non-SAP source systems into SAP BW. These tools supply extracted data directly to a staging engine BAPI on the SAP BW platform. The staging engine then performs the mapping and update rules. Third party vendors of extraction products certified for SAP BW include:
    Informatica, Genio, Acta Works, Evolutionary Technology Inc., If you can get information from any of these third party vendors, then i hope your query will be cleared.

  • Data load from Legacy system to BW Server through BAPI

    Requirements: We have different kind of legacy systems and SAP BW server. We want to load all legacy system data into SAP BW server using BAPI. Before loading we have to validate all data. If there are bad data, data missing we have to let the legacy system user/ operator knows to fix the data into their system with detail explanation. When it is fixed, we have to load the data again.
    Load Scenario:  We have two options to load data from legacy systems to BW Server.
    1.     We need to load data directly from legacy system to BW Server using BAPI program.
    2.     Legacy Systems data would be in workstations or flash drive as .txt (one line separated by comma) or .csv file. Need to load from .txt /.csv file to BW Server using BAPI program.
    What we want in the BAPI program code?
    It will Read / Retrieve data from text / csv file and will put into the Internal table. Internal table structure would be based on BAPI InfoObject structure.
    Call BAPI InfoObject function module ‘BAPI_IOBJ_CREATE’ to create InfoObject, include all necessary / default components, do the error check, load the data and return the status.
    Could some one help me with the sample code please? I am new in ABAP / BAPI coding.
    Is there any other better idea to load data from legacy system to BW server? BTW we are using BW 3.10. Is there any better option with BI 7.0 to resolve the issue? I appreciate your help.

    my answers:
    1. this is a scendario for a data push into SAP BW. You can only use SOAP-Based Transfer of Data.
    http://help.sap.com/saphelp_nw04/helpdata/en/fd/8012403dbedd5fe10000000a155106/frameset.htm
    (here for BW 3.5, but you'll find similar for 7.0)
    In this scenario you'll have an RFC dinamically created for every Infosource you need to transfer data.
    2. You can make a chain for each data load, so you can call the RFC "RSPC_API_CHAIN_START" to start the chain from external.
    the second solution is more simply and available on every release.
    Regards,
    Sergio

  • CRVS2010 beta - Date field from database does not display in report

    Hi there - can someone please help?!
    I am getting a problem where a date field from the database does not display in the report viewer (It displays on my dev machine, but not on the client machines...details given below)
    I upgraded to VS 2010
    I am using the CRVS2010 Beta
    My development machine is Windows 7 - and so is my fellow developer's
    We are using Microsoft SQL Server 2000
    We run the queries within VS and then we send the data table to VS using .SetDataSource
    We have a few reports which display the date on our dev machines (whether we run the EXE or from within Visual Studio)
    When we roll out to the client machines (running Windows XP SP3) then everything works, except that the date does not display (on quite a few reports)
    This is the only real issue I have had - a show stopper for me
    The rest works well - any input will be greatly appreciated
    Regards,
    Ridwan

    Hi Ridwan,
    After much testing I have it all working now using CRDB_adoplus.dll as a data source ( XML )
    Alter your Config file to look like this:
    <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0"/>
    </startup>
    Then using the code below, and CR requires the Schema to be able to read the date format.
    private void SetToXML_Click(object sender, EventArgs e)
    CrystalDecisions.CrystalReports.Engine.ReportDocument rpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
    ISCDReportClientDocument rcd;
    rcd = rptClientDoc;
    string connString = "Provider=SQLOLEDB;Data Source=dwcb12003;Database=xtreme;User ID=sb;Password=password";
    string sqlString = "Select * From Orders";
    OleDbConnection oleConn = new OleDbConnection(connString);
    OleDbDataAdapter oleAdapter = new OleDbDataAdapter(sqlString, oleConn);
    //OleDbDataAdapter oleAdapter2 = new OleDbDataAdapter(sqlString2, oleConn);
    DataTable dt1 = new DataTable("Orders");
    oleAdapter.Fill(dt1);
    System.Data.DataSet ds = new System.Data.DataSet();
    // We need the schema to get the data formats
    ds.WriteXml("c:
    sc.xml", XmlWriteMode.WriteSchema);
    //Create a new Database Table to replace the reports current table.
    CrystalDecisions.ReportAppServer.DataDefModel.Table boTable = new CrystalDecisions.ReportAppServer.DataDefModel.Table();
    //boMainPropertyBag: These hold the attributes of the tables ConnectionInfo object
    PropertyBag boMainPropertyBag = new PropertyBag();
    //boInnerPropertyBag: These hold the attributes for the QE_LogonProperties
    //In the main property bag (boMainPropertyBag)
    PropertyBag boInnerPropertyBag = new PropertyBag();
    //Set the attributes for the boInnerPropertyBag
    boInnerPropertyBag.Add("File Path ", @"C:\sc.xml");
    boInnerPropertyBag.Add("Internal Connection ID", "{680eee31-a16e-4f48-8efa-8765193dccdd}");
    //Set the attributes for the boMainPropertyBag
    boMainPropertyBag.Add("Database DLL", "crdb_adoplus.dll");
    boMainPropertyBag.Add("QE_DatabaseName", "");
    boMainPropertyBag.Add("QE_DatabaseType", "");
    //Add the QE_LogonProperties we set in the boInnerPropertyBag Object
    boMainPropertyBag.Add("QE_LogonProperties", boInnerPropertyBag);
    boMainPropertyBag.Add("QE_ServerDescription", "NewDataSet");
    boMainPropertyBag.Add("QE_SQLDB", "False");
    boMainPropertyBag.Add("SSO Enabled", "False");
    //Create a new ConnectionInfo object
    CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo boConnectionInfo =
    new CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo();
    //Pass the database properties to a connection info object
    boConnectionInfo.Attributes = boMainPropertyBag;
    //Set the connection kind
    boConnectionInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE;
    //*EDIT* Set the User Name and Password if required.
    boConnectionInfo.UserName = "";
    boConnectionInfo.Password = "";
    //Pass the connection information to the table
    boTable.ConnectionInfo = boConnectionInfo;
    //Get the Database Tables Collection for your report
    CrystalDecisions.ReportAppServer.DataDefModel.Tables boTables;
    boTables = rptClientDoc.DatabaseController.Database.Tables;
    //For each table in the report:
    // - Set the Table Name properties.
    // - Set the table location in the report to use the new modified table
    boTable.Name = "Orders";
    boTable.QualifiedName = "Orders";
    boTable.Alias = "Orders";
    rptClientDoc.DatabaseController.SetTableLocation(boTables[0], boTable);
    //Verify the database after adding substituting the new table.
    //To ensure that the table updates properly when adding Command tables or Stored Procedures.
    rptClientDoc.VerifyDatabase();
    MessageBox.Show("Data Source Set", "RAS", MessageBoxButtons.OK, MessageBoxIcon.Information);
    Thanks again
    Don

  • Change display Date format from 06.2011 to june 2011 in output of Query

    Hi All,
                Change display Date format from 06.2011 to june 2011 in output of Query  Execution. i used time charcteristics 0calmonth in query, output display is coming 06.2011, i want to display output in june 2011 format, anyone tell me how to convert this Date format.

    Hi Nandish,
    as tibollo said you just need to mark 0CALMONTH with text in RSD1.
    Kindly note that you don't need to do data load for this object.
    It will automatically derive by system.
    Just change the Info object 0CALMONTH in RSD1, Go to Master Data/text column and check mark on with text.
    Then activate it.
    Regards,
    Ashish

Maybe you are looking for