Date field conversion

hi gurus! can someone give me a  tip on a date field conversion.
I have a field that comes YYYYMMDD but i want to convert to DD.MM.YYYY
Can someone help me on this
Thk, Regards

REPORT  Z_82235_TEST4                           .
data:  date1(8) type c,
       date2(10) type c.
       date1 = 'YYYYMMDD'.
CONCATENATE date1+6(2) date1+4(2) date1(4) INTO date2 separated by '.'.
you pass your date to date1 in place of 'yyyymmdd' and you will gate ur desired output on date2.

Similar Messages

  • Date field conversion in Import Manager

    Hi,
    I am getting the source Date field as 'Text' type and want to convert it to Date type.
    Is it possible in import Manager?
    What are the best way to manage the issue.
    Appreciate your reply
    regards,
    reo

    Hi Reo,
    The data types of source data values are automatically
    converted within the Source Values grid based on the data type of the
    destination field to which the source field is mapped, even when stored
    in the source data as text values.
    Original source values appear with their original data type in the Value
    column, and the converted values appear in the Converted Value
    column with the data type of the mapped destination field and the
    proper grid cell type for editing (e.g. text, numeric, measurement,
    currency, date, time, Boolean).<i> If necessary, individual values can then
    be manually edited to override errors or omissions in the source data.</i>
    Regards
    Neethu Joy.

  • Date field - no date entered - conversion error

    Hi,
    i've a input text field with a datepattern attached in my jsp, whose requrired attribute is set to false. If i submit the page and no date is entered, JSF returns "Conversion error occured" for the date field.
    For testing purposes i made a simple JSP which contains only this date field and a reload button, which only submits the form. When the button is clicked the conversion error is displayed as described.
    What am i doing wrong here?
    thx
    brunft
    <html>
    <%@ page contentType="text/html" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <f:view locale="de">
    <html>
        <head><title>Date test</title></head>
        <body>
        <h:form id="datetest">
          <p> </p>
          <h:inputText id="someDate" styleClass="formText" value="#{testDate.someDate}">
            <f:convertDateTime pattern="#{testDate.datePattern}" />
          </h:inputText>
          <p> </p>
          <h:commandButton id="refresh" styleClass="formButton"
                  value="Reload"
                  action="#{testDate.actionReload}" />
          <p> </p>
          <p style="color:red;"><h:messages /></p>
        </h:form>
        </body>
    </html>
    </f:view>The bean:
    public class TestDate {
      private Date someDate;
      private static String datePattern = "dd.MM.yyyy";
      public TestDate() {
      public Date getSomeDate() {
        return this.someDate;
      public void setSomeDate(Date someDate) {
        this.someDate = someDate;
      public String getDatePattern() {
        return this.datePattern;
      public String actionReload() {
        return "success";
    }faces-config.xml:
      <managed-bean>
        <description>Date test.</description>
        <managed-bean-name>testDate</managed-bean-name>
        <managed-bean-class>test.TestDate</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
      </managed-bean>

    You can try by deleting "pattern=="#{testDate.datePattern}"
    <f:convertDateTime pattern="#{testDate.datePattern}" />

  • Conversion of date field format from char to dats

    Hi All,
    one issue with Date field.
    in my internal table i have a date field with type char(10).
    But when I upload the data to database through upload program,  there I have a date field with type "DATS".
    how do I convert and store it in "DATS " format in database.
    please help...

    HI ,
    Try this use  CONVERT_DATE_TO_INTERNAl
    CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
      EXPORTING
        date_external                  = "ur date from file
      ACCEPT_INITIAL_DATE            =
    IMPORTING
    DATE_INTERNAL                  =  "( date in dats format )
    EXCEPTIONS
      DATE_EXTERNAL_IS_INVALID       = 1
      OTHERS                         = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

  • Transformation & Conversion for empty data fields

    Hi,
    I need help in replacing empty transaction data fields with dimension members based on other fields in the record. For example, the "cost center" field mayl be empty in the transaction data. I want to replace the empty field with a cost center dimension member based on the "Company" fileld in "Column A'.
    Thank you,
    Tim

    Hi,
    I have done somthing like this many times, if you need to do this when you feed data into BPC, you can do that using SQL.
    I have created lookup subqueries to achive this. if you are feeding info some other way then please explain.
    1 - How are you feeding in the data
    2 - Whare is the lookup value resids.
    Thanks

  • How to display date field in ALV in format 'YYYY-MM-DD'?

    Hi experts,
    I am not getting displayed the date field in ALV in the format 'YYYY-MM-DD' if it is different than my user setting's format (DD.MM.YYYY).
    Tried with the edit mask
    LVC_S_FCAT-EDIT_MASK = '____-__-__'  but it does not work.
    I could not find the conversion routine for this. Is it possible to write customer conversion routine?
    I have to use DATE field, otherwise if I display this format in CHAR10 field , sorting in ALV does not work for this field.
    PLEASE ANY HELP!
    Kind regards,
    Danijela

    Hi,
    Use FM FORMAT_DATE_4_OUTPUT.
    TYPE-POOLS : slis, KKBLO.
    TYPES: BEGIN OF t_data,
           sel     TYPE char1,
           matnr   TYPE matnr,
           bldat   type char10,
           END OF t_data.
    DATA: it_tab TYPE STANDARD TABLE OF t_data,
          it_fcat TYPE slis_t_fieldcat_alv.
    DATA: wa_tab TYPE t_data,
          wa_fcat TYPE slis_fieldcat_alv,
          wa_layout type SLIS_LAYOUT_ALV.
    data: lv_repid    TYPE syrepid.
    data : lv_date    type NLEI-IBGDT,
           lv_outdate type RN1DATUM-DATEX,
           lv_format  type RN1DATUM-FORMAT value 'YYYY-MM-DD'.
    lv_repid = sy-repid.
    lv_date = sy-datum.
    CALL FUNCTION 'FORMAT_DATE_4_OUTPUT'
      EXPORTING
        datin         = lv_date
        format        =  lv_format
    IMPORTING
       DATEX         = lv_outdate.
       move lv_outdate to wa_tab-bldat.
    wa_tab-matnr = '0000001'.
    APPEND wa_tab TO it_tab.
    lv_date = sy-datum + 1.
    CALL FUNCTION 'FORMAT_DATE_4_OUTPUT'
      EXPORTING
        datin         = lv_date
        format        =  lv_format
    IMPORTING
       DATEX         = lv_outdate.
       move lv_outdate to wa_tab-bldat.
    wa_tab-matnr = '0000002'.
    APPEND wa_tab TO it_tab.
    lv_date = sy-datum + 2.
    CALL FUNCTION 'FORMAT_DATE_4_OUTPUT'
      EXPORTING
        datin         = lv_date
        format        =  lv_format
    IMPORTING
       DATEX         = lv_outdate.
       move lv_outdate to wa_tab-bldat.
    wa_tab-matnr = '0000003'.
    APPEND wa_tab TO it_tab.
    wa_fcat-fieldname = 'SEL'.
    wa_fcat-ref_fieldname = 'XCHPF'.
    wa_fcat-ref_tabname = 'MARA'.
    wa_fcat-edit = 'X'.
    wa_fcat-checkbox = 'X'.
    APPEND  wa_fcat TO  it_fcat.
    CLEAR :  wa_fcat.
    wa_fcat-fieldname = 'MATNR'.
    wa_fcat-ref_fieldname = 'MATNR'.
    wa_fcat-ref_tabname = 'MARA'.
    APPEND  wa_fcat TO  it_fcat.
    CLEAR :  wa_fcat.
    wa_fcat-fieldname = 'BLDAT'.
    wa_fcat-ref_fieldname = 'BLDAT'.
    wa_fcat-ref_tabname = 'BKPF'.
    APPEND  wa_fcat TO  it_fcat.
    call 'REUSE_ALV_GRID_DISPLAY'' after this
    Edited by: Ankur Parab on Oct 1, 2009 2:50 PM
    Edited by: Ankur Parab on Oct 1, 2009 2:51 PM

  • Date format conversion in BEX query level

    Hi ,
          We had a date field in the numeric format like 735.020 in the cube level, but when we execute the query the values for thsi date field is changed in to date format like 31.05.2013.
    we are not having any conversion routines and the date fields are used directly in the query .

    Hi,
    Try the below class file or may be create a method in your controller. It will resolve your problem.
    package com.XXX.DateFormatForSAP;
    import java.util.Date;
    import java.text.SimpleDateFormat;
    public class FormatSAPDate {
    public static String changeDateFormat(Date sapDate) {
    String formattedDate = null;
    SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
    formattedDate = dateFormat.format(sapDate);
    return formattedDate;
    Try this code and let me know.
    Regards
    Mukesh

  • Date field difference calculation

    Hi all,
    I am new to Adobe and Java scripting so apologies if this has already been answered elsewhere - I have not been able to find it if it has.
    I want to calculate the difference between two dates fields in hours and mins on a form.
    I have two fields, both Date format (dd/mm/yyy HH:MM), a Start and End date and I want the difference between them in the Time format HH:MM.
    Can anyone help me with the script for this? What I have so far is:
    var strStart = this.getField("StartTime").value;
    var strEnd = this.getField("EndTime").value;
    if(strStart.length || strEnd.length)
    var dateStart = util.scand("dd/mm/yyyy HH:MM",strStart);
    var dateEnd = util.scand("dd/mm/yyyy HH:MM",strEnd);
    var diff = dateEnd.getTime() - dateStart.getTime();
    // One Day = (24 hours) x (60 minutes/hour) x
    // (60 seconds/minute) x (1000 milliseconds/second)
    var oneMin = 60 * 60 * 1000;
    var mins = Math.floor(diff/oneMin);
    event.value = util.printd("HH:MM",mins);
    But this is not working...
    Mary

    The result can be formatted using:
    // format result using "h:MM" format
    event.value = util.printf("%,0 0.0f" + ":" + "%,002.0f", nHours, nMinutes);
    One cannot use the date or time formats since the time values will be limited to the hours and minutes values for 1 day, so any time value that is over 23 hours 59 minutes is not possible.
    A full script solution including document level functions for conversion of date strings to minutes and converting minutes to a time string:
    // reusable document level functions;
    function Time2Num(cFormat, cDate) {
    // convert date value with format to number of minutes form Epoch date;
    var oDate = util.scand(cFormat, cDate);
    var nMins =  null;
    if(oDate ==  null) app.alert("Error converting " + cString + " using " + cForamt);
    else nMins = oDate.getTime() / (1000 * 60);
    return Math.floor(nMins);
    } // end Time2Num format
    function Num2Time(cFormat, nMins) {
    // convert number of muniutes to h:MM or HH:MM format;
    // return formatted string for valid formats;
    // return null for invalid formats;
    var cElapsed = null;
    // test for nMins being a number;
    if(isNaN(nMins)) {
    app.alert("Minutes must be number",0, 0);
    } else {
    var nHours = Math.floor(nMins / 60);
    var nMinutes = Math.floor(nMins % 60);
    switch(cFormat) {
    case "h:MM":
    cElapsed = util.printf("%,0 0.0f" + ":" + "%,002.0f", nHours, nMinutes);
    break;
    case "HH:MM":
    cElapsed = util.printf("%,002.0f" + ":" + "%,002.0f", nHours, nMinutes);
    break;
    default:
    app.alert("Invalid format " + cFormat + "\nMust be \"HH:MM\" or \"h:MM", 0, 0);
    break;
    return cElapsed;
    } // end Num2Time function
    // end document level funcitons;
    // custom calculation script;
    event.value = ''; // clear result;
    var strStart = this.getField("StartTime").value;
    var strEnd = this.getField("EndTime").value;
    if(strStart.length || strEnd.length) {
    var nDateStart = Time2Num("dd/mm/yyyy HH:MM",strStart);
    var nDateEnd = Time2Num("dd/mm/yyyy HH:MM",strEnd);
    var nMins = nDateEnd - nDateStart;
    // format result using "h:MM" format
    event.value = Num2Time("h:MM", nMins);
    // end custom calculation script;

  • Data extraction / Conversion / Mapping / Miration

    Hi All,
       Can any one please explain the meaning of the below terms and how data is moved from Non SAP system to SAP system?.
    "Data extraction / Conversion / Mapping / Miration"
    Kindly give me detailed step by step instructions on how to accomplish this. Also if there is any documentation please forward.
    I appreciate the help in advance.
    Raj

    Hi Raj,
    We can use LSMW, BDC, eCATT to upload the data from Legacy to SAP system.
    Data Extraction - Data has to extract from legacy in to some flat file like  Xls.
    Conversion - Convert as per the need of SAP.
    Mapping - Mapping the extracted field with SAP field for upload.
    Migration - Data migration from legacy to SAP using any tool like LSMW, BDC, CATT.
    Good Luck
    Om

  • Importing Date fields from Oracle always defaults to DT_DBDATETIME, and won't accept chages

    Hi
    I am trying to import date fields in an Oracle database in to SQL Server 2012, using SSIS. The package is using DT_DBTIMESTAMP type in the Data Flow, but this has the same range as SQL Server datetime, and it bombs out all the time.
    I have tried to change the type used to DT_DBDATE, but no matter what I do the data type on the input columns is readonly and will not change.
    Any help would be much appreciated
    Andy
    CRM 4, SQL Server and .Net developer using C#

    Hi Andy,
    From the Mapping of Integration Services Data Types to Database Data Types section of the document, we can get the detailed information about mapping the Oracle data types to Integration Services data types. To change the data type from DT_DBTIMESTAMP to
    DT_DBDATE, we can use the following two methods:
    Method 1:
    Right click on the Source component and click “Show Advanced Editor”.
    Switch to the “Input and Output Properties” tab, expand the XX Source Output node, and expand the Output Columns node.
    Click the target column, and change the DataType property to DT_DBDATE.
    Method 2:
    Add a Data Conversion component to the Data Flow Task
    Double click the Data Conversion component to open the Data Conversion Transformation Editor
    Select the target input column, and change the Data Type to database date [DT_DBDATE].
    If I have anything misunderstood, please feel free to let me know.
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • Invalid data type conversions

    what are the invalid data type conversions in ABAP ???
    Moderator message: please search for available information/documentation.
    Edited by: Thomas Zloch on Mar 10, 2012 6:01 PM

    No Amanda,
    The values that I see in message monitor are also those that comes to XSLT programs as input.
    I investigated our problem a little further myself:
    1) XI always converts messages into XML format - this everybody knows.
    2) In XI documentation it is declared that XI uses ISO 8601 for DATE type formatting. That's why you see dates in format YYYY-MM-DD in XML data in message monitoring.
    3) The appearance of those decimal values are not that obvious for me. If XI uses ABAP transformation for message content then applies the rules for converting ABAP data types into XML. For this there is a SAP document 'ABAP - XML mapping' from TechEd2004. This document seems to describe how ABAP data types are handled by XML transformation.
    Anyway, we currently need to play with decimal values in XSLT mapping programs inside XI:
    a) add leading 0 integer if source value < 1
    RFC returns 0.123 -> XI converts to XML '.123' -> XSLT mapper should return '0.123' ->SOAP response returns '0.123'
    b) add decimal point and trailing zeros
    RFC returns 0.000 -> XI converts to XML '0' -> XSLT mapper should return '0.000' ->SOAP response return '0.000'
    With dates, the problem is actually on documenting mapping rules when writing interface specifications. If you would write an EAI-solution-independent conversion rule (RFC/date->SOAP/char) for date field it could sound like: YYYYMMDD -> dd.mm.yyyy. This works semantically between these systems but would not work for XI-developer, because he get YYYY-MM-DD from the RFC.
    Additionally the decimal type conversion requirements in XSLT mapping programs probably only applies XI and are therefore not reusable in other EAI environments.
    I would be glad if somebody would still have further comments for this data type conversion issue.
    br: Kimmo

  • Dense_Rank() over order by date fields not working properly

    Hi,
    i have a pl/sql statement which looks like this:
    WITH OrderedByDateTable     AS
         SELECT     gsp.*, DENSE_RANK () OVER (ORDER BY A_varChar_col1,
    decode(upper('COMPLIANCETICKSDATE'),'TASKNBR',TASK_NBR,
    'DESCRIPTION', DESCRIPTION,
    'PARTNBR', PART_NBR,
    'PARTSERIALNBR', PART_SERIAL_NBR,
    'SORTDATE', TO_DATE(MIN_EST_DUE_DATE),
    'COMPLIANCETICKSDATE', COMPLIANCE_DATE,
    TASK_NBR
    )DESC NULLS LAST,task_nbr,description,enrtask_id)     AS r_num
         FROM     GT_STATUS_PAGING gsp
    SELECT     *
    FROM     OrderedByDateTable     
    The result that i am expecting is that the dense_rank should order the compliance_date column in desc order and finally gives ranks to the rows.
    But i am getting the resultset in some order all the time, but it is neither ASC or DESC.
    But if for debugging purposes, lets say if i replace the COMPLIANCE_DATE column with DESCRIPTION column again it works perfectly fine giving me the descriptions in DESC order along with the ranks. But for both the date fields above it doesnt work.
    Can anyone please help me on how to solve this?

    user12270778 wrote:
    Hi,
    i have a pl/sql statement which looks like this:
    The result that i am expecting is that the dense_rank should order the compliance_date column in desc order and finally gives ranks to the rows.
    But i am getting the resultset in some order all the time, but it is neither ASC or DESC.
    Can anyone please help me on how to solve this?The problem is an implicit date conversion that takes place.
    Because the first parameters of your decode are strings, the COMPLIANCE_DATE column is also converted into a string. This string is then sorted alphanumerically. The default format mask is often DD-MON-RR. Therefore your date column would be sorted by day, then by the name of the month and so on.
    Fast solution would be to do an explicit conversion from date into strings that match the ordering.
    WITH  OrderedByDateTable     AS
            (     SELECT     gsp.*, DENSE_RANK () OVER (ORDER BY  A_varChar_col1,
                         decode(upper('COMPLIANCETICKSDATE'),
                                   'TASKNBR',TASK_NBR,
                                   'DESCRIPTION', DESCRIPTION,
                                   'PARTNBR', PART_NBR,
                                   'PARTSERIALNBR', PART_SERIAL_NBR,
                                   'SORTDATE', TO_DATE(MIN_EST_DUE_DATE),
                                   'COMPLIANCETICKSDATE', to_char(COMPLIANCE_DATE,'YYYYMMDD HH24:MI:SS'), /* this is the important bit */
                                   TASK_NBR
                                   ) DESC NULLS LAST,task_nbr,description,enrtask_id)     AS r_num
                        FROM     GT_STATUS_PAGING  gsp
    SELECT     *
    FROM     OrderedByDateTable     You should be careful, because the same problem also happens with your SORTDATE column MIN_EST_DUE_DATE.
    Edited by: Sven W. on Oct 25, 2012 6:53 PM

  • Using DECODE() to insert to DATE field

    I'm trying to use the DECODE function to test for NULL before inserting to a DATE field. However, it seems to only insert the DATE, with a "default" time of 12:00 - it isn't properly inserting the time.
    Basically I need to test if Date1 is NULL. If it isn't I need to concatenate the DATE from Date1 with the TIME from Date2 to get a full date/time... then insert this new value.
    Generic Example:
    CREATE TABLE DATETEST (TestID NUMBER(1), TestDate DATE);
    DECLARE
    v_Date1 DATE;
    v_Date2 DATE;
    BEGIN
    v_Date1 := TO_DATE('01-JAN-11 05:53:12', 'DD-MON-YY HH:MI:SS');
    v_Date2 := TO_DATE('08-FEB-11 02:18:31', 'DD-MON-YY HH:MI:SS');
    INSERT INTO DATETEST (TestID, TestDate) VALUES ('1', DECODE(v_Date1, NULL, NULL, TO_DATE(To_Char(v_Date1, 'DD-MON-YY') || ' ' || TO_CHAR(v_Date2, 'HH:MI:SS'),'DD-MON-YY HH:MI:SS')));
    INSERT INTO DATETEST (TestID, TestDate) VALUES ('2', TO_DATE(To_Char(v_Date1, 'DD-MON-YY') || ' ' || TO_CHAR(v_Date2, 'HH:MI:SS'),'DD-MON-YY HH:MI:SS'));
    END;
    SELECT TestID, TO_CHAR(TestDate, 'DD-MON-YY HH:MI:SS') from DATETEST;
    This example performs two inserts. One with the DECODE function, and one without. The one without inserts the time properly. Can anyone tell me why the one with the DECODE function doesn't? I realize I can use a simple if/then to check if the date is null above and put the date/time in a variable, but since my real scenario is in a large chunk of other stuff, I'm trying to keep it as streamlined as possible.
    Edited by: BoredBillJ on Jul 14, 2011 6:39 AM

    The problem you are having is due to the nature of how DECODE and CASE determine what datatype to return, and you nls_date_format settings. Both use the data type of the first returnable argument to determine all of them. So, in your decode statement, the first returnable value is NULL which, in the absence of a cast (either implicit or explicit), is a varchar2 column. So, if the date is not null, the implicit conversion to a varchar to match the retunr type, then back to date to insert into the table is losing the time. you need something more like:
       INSERT INTO test_date (Test_ID, TestDate)
       VALUES ('1', DECODE(v_Date1, NULL, TO_DATE(NULL),
                                          TO_DATE(To_Char(v_Date1, 'DD-MON-YY') || ' ' ||
                                          TO_CHAR(v_Date2, 'HH:MI:SS'),'DD-MON-YY HH:MI:SS')));Even if you use Solomon's method of generating the date, if you need the decode/case, then you will have to either use the TO_DATE(NULL) or use case instead of decode and reverse the test so the first returnable is a date like:
    SQL> DECLARE
      2     v_Date1 DATE;
      3     v_Date2 DATE;
      4  BEGIN
      5     v_Date1 := TO_DATE('01-JAN-11 05:53:12', 'DD-MON-YY HH:MI:SS');
      6     v_Date2 := TO_DATE('08-FEB-11 02:18:31', 'DD-MON-YY HH:MI:SS');
      7     INSERT INTO test_date (Test_ID, TestDate)
      8     VALUES ('1', CASE WHEN v_date1 IS NOT NULL
      9                       THEN TO_DATE(To_Char(v_Date1, 'DD-MON-YY') || ' ' ||
    10                                    TO_CHAR(v_Date2, 'HH:MI:SS'),'DD-MON-YY HH:MI:SS')
    11                       ELSE NULL END);
    12     INSERT INTO test_date (Test_ID, TestDate)
    13     VALUES ('2', TO_DATE(To_Char(v_Date1, 'DD-MON-YY') || ' ' ||
    14                  TO_CHAR(v_Date2, 'HH:MI:SS'),'DD-MON-YY HH:MI:SS'));
    15  END;
    16  /
    PL/SQL procedure successfully completed.
    SQL> select test_id, to_char(testdate, 'dd-mon-yyyy hh24:mi:ss')
      2  from test_date;
       TEST_ID TO_CHAR(TESTDATE,'DD
             1 01-jan-2011 02:18:31
             2 01-jan-2011 02:18:31John

  • Date Format conversion in the Start routine

    Folks,
    i have a simple requirement and just wondering how to acheive this?
    We have a DSO object, feeded by a flat file. File contains Contract date and End date. In the target DSO we have an object called Status, which is dependant on both the date fields but the problem here is dates are coming in different format from the flat file.
    The format is 01-Jan-2010 ( Standard format is 20100101 ).
    I need to convert them to the standard format before calculating the status.
    any simple method to achieve the above?
    appreciate your timely help.
    Thanks.
    ST.

    Hi Satish,
    Use the SDATE Conversion Routine. Please go through the below link:
    http://help.sap.com/saphelp_nw04/helpdata/en/07/d63a68db9110459d63c495b16f522e/frameset.htm
    Hope it Helps,
    Thanks,
    Amit Kr.

  • Smartforms- TABLE -Lines,rgrding passing  Quan&DATS fields to smartforms

    Hi All ..
    Iam working on Tables in smartform ,
    These are  queries  to which  i need solution ..
    1)  In (Window) Table- Heading  i have created  3 LINES   in which  my  data  had  to display...( i have  a line   in that TEXT is used to display  a particular fields of the Itab ) .  as i came to know that  in my Zprog iam gettting my  data in the fields  but   wen  in smartform these fields values are not displayed ( when these fields are placed in LINE  )  but  wen  these fields are placed outof LINE that is outof table then iamgetting  value for these fields..  so please   let me know  wat are the changes that ishould do  to  get my  data  in  my table ( LINE )
    2) How  to pass  DATS and QUAN  fields  to the smartforms..
    as iam getting  data to DATS and Quan Fields in my  Zprog   but these  values are not showed in my  smartForm ..  ..
    Thanks in Advance..
    Looking  for  a good  reply ..
    Aslam..

    Hi,
    you have created 3 linetypes for table .
    you have create loop for multiple records display.
    in loop you have to pass table from which you are displaying inti output.
    To internal table we get data from print program and create text for corresponding cells.
    then it will pass those data to table.
    2) create programlines for that.
    in that mention table from which table is containing quantity.
    that is import parameter specified .
    export parameters are your output fields using for calculation.
    AMOUNT = TAB3-NETWR.
    Netamount = Netamount + TAB3-NETWR.
    here input is tab3 table it contains quantity data.
    lamount,netamount are output parameters.
    like that you can display quantity.
    or in global definitions currency/quantity fields tab is available you can pass there also.
    for dat fields write logic for conversion of date and pass that variabl in form output.

Maybe you are looking for

  • Filter table not screening all the name of customers

    Hello, Filter tabel not screening all the name of the customers.During filter of the Open Sales Order report. Please reply me ASAP Thanks & Regard's Amit Tyagi

  • Error in LSMW

    Hi i am using lsmw to upload my pouting I am using batch input methode to upload my header data. and direct input  methode to upload my operation and material assignment data. is this the correct way of doing lsmw. can we upload header data and the o

  • Photos and music not showing up in iMovie

    Hi, A friend of mine just upgraded to iLife 09. In iMovie, when we click the photo or music icon on the right side of the screen, the pane opens up, but there is nothing there. Anyone have an idea of what this is about? Is there a fix? Thanks, Phil

  • Cross Company Code Charging Against WBS

    I am trying to understand if Company Code A can charge against a WBS that was created by Company Code B.  In the scenario I am working with, we have a single controlling area with multiple company codes.  The people reside in Company Code A.  Product

  • PRESERVING PERMISSIONS - when making an external boot drive

    hi Someone in a previous thread i posted some time ago mentioned that i need to make sure my premissions are preserved when i come round to creating an external boot volume on my external lacie hd. 1. I think he was refering to the 'ignore permission