Conversion of Date field to 0FISCPER

Hi,
   I have a field ZDATE from old legacy system.
   The format of this field is like 05 - MAJ ; 06 - JUNI; 07 - JULI and so on.
   I need to map this field to 0FISCPER in the BW system
   Please advice a code for a conversion routine as such.

Hi john,
Greetings.
For converting it to 0FISCPER, you will need the information of Year as well.
We will have to perform the operation in 2 steps.
1). To convert the legacy date into YYYYMMDD Format.
2). Once we achieve the first part, we can use the Function module 'DATE_TO_PERIOD_CONVERT' by passing the date and it will return the period and year. and you can pass the period to the result.
Sample code is as below. Let me know if it helps.
CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
        EXPORTING
          i_date         = wa_result-calday
          i_monmit       = 00
          i_periv        = 'Z2'
        IMPORTING
          e_buper        = l_period
          e_gjahr        = l_year
        EXCEPTIONS
          t009b_notfound = 4
          INPUT_FALSE = 4.
     wa_calday-v_period = l_period.
Thanks
Sachin

Similar Messages

  • 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.

  • 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}" />

  • 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.

  • 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.

  • 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 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;

  • 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

  • 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

  • Date field in a view need to be formatted

    I have a view like this
    CREATE OR REPLACE VIEW order_view AS
    SELECT company_id company_id,
    branch_id branch_id,
    Branch_API.Get_Description(company_id, branch_id) branch_description,
    order_id order_id,
    order_date order_date,
    comments comments,
    currency_code currency_code,
    Currency_API.Get_Description(company_id,currency_code) currency_description,
    exchange_rate exchange_rate,
    emp_id emp_id,
    Employee_API.Get_F_Name(company_id, emp_id) first_name,
    Employee_API.Get_L_Name(company_id, emp_id) last_name,
    voucher_id voucher_id,
    substrb(Payment_Type_API.Decode(payment_type),1,200) payment_type,
    payment_type payment_type_db,
    rowstate state
    FROM order_tab
    WITH read only;
    This view return the order date like this '10/23/2005 4:30:30 PM'. But I want to get it like this 2005-10-23-16.30.30. Aslo is shoud be a date to be return. So I can't use to_char(order_date, 'YYYY-MM-DD-HH24.MI.SS') order date to do this.
    Is there anyway to get this correct?
    Thanks in advance..

    SQL> create or replace view test_data as
      2  select to_char(sysdate, 'yyyy/dd/mm hh:mi:ss')    date_val
      3    from dual
      4  /
    View created.
    SQL>
    SQL> desc test_data
    Name                                      Null?    Type
    DATE_VAL                                           VARCHAR2(19)
    SQL>
    SQL> create or replace view test_data as
      2  select to_date(to_char(sysdate, 'yyyy/dd/mm hh:mi:ss'), 'yyyy/dd/mm hh:mi:ss') date_Val
      3    from dual
      4  /
    View created.
    SQL>
    SQL> desc test_data
    Name                                      Null?    Type
    DATE_VAL                                           DATE
    SQL> select date_val from test_data;
    DATE_VAL
    24-OCT-05
    SQL> alter session set nls_Date_Format='yyyy/dd/mm hh:mi:ss';
    Session altered.
    SQL> select date_val from test_data;
    DATE_VAL
    2005/24/10 04:53:46i asked you to use TO_DATE becuase you wanted the data type to be DATE instead of varchar.
    but the final output how you want to retrive has to be extracted again using the TO_CHAR in your application.
    Infact if you don't require a conversion. if the field is date already, it will be date when you create the view. only when you want to select it use TO_CHAR and extract in the desired format.
    eg. also show how to see the date in diff,. format in your sql*plus session.

  • 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

  • Conversion of data from legacy into SAP using LSMW(Direct input)

    Hi guys,
         I  need a help from u for the following scenario. The scenario is about  <b>FI & MM Vendor Master Conversion</b>.The brief description of this scenario is as follows:
         <i>Conversion of Accounts Payable Vendor Master Record from Legacy systems into SAP.  The purpose of this document is to define the master data fields that will need to be populated as well as the order in which the different parts of Vendor master should be loaded.</i>
    Transaction Code(s) to be used:     XK01 – Create Vendor Master Centrally   RFBIKR00                                                                                LSMW – Program <b>RFBIBL00</b>.
    Please help me to do this scenario.
    Regards
    Ram.V

    Hi Naveen,
                 Send me the suitable screen shot to my id. Also if u can, send me the same for batch input too.
                 My mail id is "[email protected]".

  • 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.

  • Creating and using a calculated field in business rule from the currency conversion of another field.

    Hello,
    I'm creating a calculated field with a set currency for a business rule. I'm planning to use it as a deficiency criteria. I want the values to come from the currency conversion of another field. Can someone provide me the step by step procedure on how to do it?
    Some documents would be great.
    I've been trying to do it on my own but I've gotten lost.
    Thank you.

    Thank you for all your help above.
    Just to confirm your advice, am I right with the following conclusions? :
    1. The script (function) to fill the text field with the modification date of a different PDF file needs to be stored in a folder level .js file.
    2. The document containing the text field needs to call the .js function either within the document script or within the custom script property of the text field itself.
    Further to that can you just advise on the syntax for accessing the modification date of the other document.
    Do I need to assign a variable to the address of the file to be used, and then use this variable in the text form filling script (as below) or can I use a direct file reference at the .modDate command.
    var LastSync = "C:\sync\bin\lastsync.pdf";
    var strMsg = util.printd("h:MM tt",LastSync.modDate) + " on ";
    strMsg += util.printd("dddd, d mmmm, yyyy",LastSync.modDate);
    this.getField("LastSyncDate").value = strMsg;
    If the syntax is totally different to the above I would be very grateful for some guidance in the right direction.
    I much appreciate your time to help me ... I'm almost there.
    Kind Regards,
    Nifty

Maybe you are looking for

  • Can not open .pdf or .doc files in mail

    Every time I receive an email with a pdf or .doc file attached I can never open it as I get a message telling me that the file was not recognised or that the file is invalid. Even if I select to open using Adobe for the pdf I get the same. Any help g

  • Succesful but still the same old bios

    Hi! I'm new to this. I did run your "MSI Forum HQ USB flashing tool" successfully. And i did clear the cmos afterward.  But when i'm going back to the bios i still got the same version as previously. And i still got a boot loop and  the bios failed l

  • Lost sound after an update. need help please

    had some kind of system update. sound worked fine yesterday. did update today, and now nothing. heres what i have HP Pavilion HPE h8xt • Genuine Windows 7 Home Premium [64-bit] • Intel(R) Core(TM) i7-2600 quad-core processor with Turbo-Boost [up to 3

  • Counting number of non NULL values in a list

    Given a list of 5 columns, how can I find out how many are not null? Eg. select '&Parm1','&Parm2','&Parm3','&Parm4','&Parm5', number_of_values_not_null('&Parm1','&Parm2','&Parm3','&Parm4','&Parm5') from Table where Criteria would give me: Parm1: A Pa

  • Badi Screen exit problem

    Hi,        I have badi and subscreen for me. Designed the subscreen which to be displayed now my question when i am adding the detail of the subscreen in the badi . It gives an '<b>Please enter the name of the callling screen are</b>.please let me if