Storing the Timestamp field in the Table

Hi
I have a Z program and we need to store the timestamp field in the Z table . I have created the table with the dataelement
TIMESTAMP . Is there any system field that can be used to store the timestamp field from your program
say for example we have declared a work area of the structure of the Z table and Appended through the Internal Table and Modified that Z table.
My intention is store the Timestamp field in the Z table.
Nadesh

Hi,
    you can add as below..
types : begin of st_output.
                         include structure ztaxinvoice.
                         FKIMG1 TYPE VBRP-FKIMG,
                         FKIMG2 TYPE VBRP-FKIMG,
                         types : end of st_output.
    or you can add this field to your structure 'ztaxinvoice'  as below
'FKIMG1 TYPE FKIMG'
                                   'FKIMG2 TYPE FKIMG'
   Then you can declare internal table and work area as mentioned below..
data: it_output type standard table of ztaxinvoice,
                        wa_output type ztaxinvoice.
here in this case no need of types declaration also you can pass the same type (wa_output type ztaxinvoice) in smartform.
hope this will help you,
Regards,
Renuka S.

Similar Messages

  • How to populate the logical_group field in V_LTDX (table for layouts)?

    Hi,
    Scenario:
    I have implemented the ALV using CL_SALV_TABLE. In the grid we have a 'Choose Layout' button where we have the options of choose, change, manage etc. the layouts. If we create a layout, the layout is saved in the table LTDX(view: V_LTDX).
    Issue:
    How do we populate the 'Logical_group' field in the table while creating/changing the layouts?
    Please suggest..
    Regards
    s@k

    Solved..:)
    Solution:
    While creating the ALV grid, use the method 'get_layout' of the class CL_SALV_TABLE and get the reference of the layout in a reference variable.
    Data:
          gw_key       TYPE            salv_s_layout_key.
      gr_layout = gr_grid->get_layout( ).
      gw_key-report = sy-cprog.
      gw_key-logical_group = gc_log_grp." Pass the logical group here say logical group: 0001, 0002, etc. for each ALV
    So, whenever you create/ change a layout on the ALV grid, the system automatically passes this logical group and saves it in the table LTDX.
    Regards
    s@k

  • How to change the value of the Selection field in the ROOSFIELD table for o

    Hi there
    I have a standard data source 0CRM_SALES_ACT_1 for which one of the standard field has the status A(Hidden).
    In the field selection filed of the table ROOSFIELD and I want to change it to P(Visible)  for  one of the field in the Data source.
    How it can be done. Any suggestion will be greatly appreciated.
    kind regards
    Sarah

    Hi,
    Keerthi
    Good Question..Even am also new to this issue.
    But let me try to find the solution.
    Before lookinto this issue. i need clarification on this.
    1. You want to see the value in the text box as a color one or you want to change the disable from true to false?
    If that is the case, then following one is my suggestion.
    In proceesRequest method
    1. get the handle for the messageTextInput Bean and based on that set the disable property to false
    for example:
    OAMessageTextInputBean t1 = (OAMessageTextInputBean )webBean.findChildRecurrsive("ItemId");
    t1.setDiabled(false);
    In ProcessFormRequest method
    1. get the handle for the messageTextInput Bean and based on that set the style class or css property to "OraFieldText"
    for example:
    OAMessageTextInputBean t1 = (OAMessageTextInputBean )webBean.findChildRecurrsive("ItemId");
    t1.setCss(OraFieldText);
    (Or)
    If it will not work then directly set the cssClass Property to OraFieldText.
    I hope it will work....am not sure about this.
    Regards
    Santhosh kumar.k

  • Mapping the CMP Fields with the Database Table using Websphere???

    Hi,
    How to Map the CMP Fields with the Database Table using Websphere
    thru ejb.jar.xml???
    Thanks,
    JavaCrazyLover

    Hi,
    How to Map the CMP Fields with the Database Table using Websphere
    thru ejb.jar.xml???
    Thanks,
    JavaCrazyLover

  • Table for checking the appended fields in the standard extractor

    Hello,
    Please let me know the table name for checking the appended fields in the standard extractor.
    Thanks in advance

    Hello,
    From Rsa6 , goto your extractor from there you may get the name of your strucutre
    Go to DD03L and enter this name
    And you get to see all the fields there..
    waiting for your feedback.
    Regards
    Nitin Bhatia

  • Update the Street field in ADRC table.

    Hello !! Please I need some help.
    I have to update the Street field in ADRC table.
    I have this list.
    Where I can put a Flag and an Update to do it.
    Im really newbie.  Im doing it in IDES, to test it first.
    Help !
    REPORT  Z_LIST_ADRC      LINE-SIZE 190
                             LINE-COUNT 65
                             NO STANDARD PAGE HEADING.
    TABLES: ADRC.
    DATA: BEGIN OF ITAB OCCURS 0,
               ADDRNUMBER LIKE ADRC-ADDRNUMBER,
               date_to like ADRC-date_to,
               NAME1 LIKE ADRC-NAME1,
               CITY1 LIKE ADRC-CITY1,
               CITY2 LIKE ADRC-CITY2,
               STREET LIKE ADRC-STREET,
               MC_NAME1 LIKE ADRC-MC_NAME1,
               MC_CITY1 LIKE ADRC-MC_CITY1,
               MC_STREET LIKE ADRC-MC_STREET,
    END OF ITAB.
    SELECT ADDRNUMBER DATE_TO NAME1 CITY1 CITY2 STREET MC_NAME1 MC_CITY1 MC_STREET
      FROM ADRC INTO TABLE ITAB.
    LOOP AT ITAB.
    WRITE : /001 ITAB-ADDRNUMBER,
                    007 ITAB-DATE_TO,
                    016 ITAB-NAME1,
                    040 ITAB-CITY1,
                    070 ITAB-CITY2,
                    090 ITAB-STREET,
                    120 ITAB-MC_NAME1,
                    150 ITAB-MC_CITY1,
                    170 ITAB-MC_STREET.
    ENDLOOP.
    TOP-OF-PAGE.
      ULINE.
        WRITE:         /001 'n-addr',
                        007 'date',
                        016 'name',
                        040 'city1',
                        070 'city2',
                        090 'street',
                        120 'name-s',
                        150 'city1-s',
                        170 'city2-s'.
      ULINE.

    HI,
    data : itab like standard table of adrc.
    select * from adrc into table itab.
    loop at itab.
    itab-street2 = 'New value'.
    modify itab index sy-tabix.
    endloop.
    if not itab[] is initial.
    modify adrc from table itab.
    endif.

  • Adding a timestamp field to a table (MySQL database)

    I've defined a field in a MySQL table as type 'timestamp'
    eg. 2010-05-25 21:36:19
    When I perform an insert using coldfusion, the row doesn't change the value in the timestamp automatically
    Am I better creating my own timestamp field, type varchar and manually insert my timestamp values ?

    No, it is a pretty bad idea to use a text field to store date-time information.  It makes it much harder to do date and|or time calculations on the data.
    A timestamp field does not mean you have a field that automatically inserts a timestamp on record insert and|or update.  Just that you have a field that expects a 'timestamp' value which is usually a date-time value down to the millisecond precision.
    You can set up the database to automatically create this value when data is inserted and|or updated, but that is more then just creating the timestamp field.  And the specifics will change depending on your exact database management system.  Searching the internets for information on your database managerment system of choice and auto and|or default values for fields should guide you in the correct direction.
    Or you can insert timestamp data along with the other data you are inputting into the database.  The now() function combined with the <cfqueryparam value="#timeData#" cfsqltype="cf_sql_timestamp"> is a useful combination to do this.

  • 10G-Form: How to add Email-id to the To: field in the Outlook?

    I am using 10G DB + 10G Form Builder.
    I've 'email_item' field in table where I am storing email-ids.
    I m displaying 'email_item' field and 'Send_Email_button' in the form.
    I want to add (copy) the exact email-id that has been displayed on the form to the To: field in the Outlook.
    Means whatever Email got displayed in the 'email_item' field, I want to add this Email automatically.
    I do not want to type manually the email-id of the person in the To: field of the Outlook like I am using rt. now as:
    WHEN-BUTTON-PRESSED trigger code=
    WEB.SHOW_DOCUMENT ('mailto:hard_coded_value_of_email?subject=Testing%20Email: &body=Please%20check............');
    Pl help me.
    Gaurav

    Hi,
    For getting the email ID you can write a java code using the Iuser Interface. Have look to the following:
    public class UseremailID extends AbstractPortalComponent
    public void doContent(
    IPortalComponentRequest request,
    IPortalComponentResponse response)
    try
    IUserFactory userfactory = UMFactory.getUserFactory();
    IUserSearchFilter userfltr = userfactory.getUserSearchFilter();
    userfltr.setMaxSearchResultSize(5000);
    ISearchResult userResult = userfactory.searchUsers(userfltr);
    while (userResult.hasNext())
    response.write("<table border=0>\n");
    String uniqueid = (String) userResult.next();
    IUser user = userfactory.getUser(uniqueid);
    //IRole role = rolefactory.getRole(uniqueid);
    response.write("<tr><td bgcolor=Red>"+ user.getDisplayName()+ "</td></tr>\n");
    response.write("<tr><td bgcolor=Green>"+ user.getEmail()+ "</td></tr>\n");
    response.write("</table>\n");
    response.write("
    \n");
    catch (Exception e)
    for analyzing the error you just need to check the log file at your server. Visit the following path:
    <Your_SAP_Drive> :/usr/sap/<your_System_Name>/jc00/j2ee/cluster/server0/log/
    There you can view the .trc file. Open that file and look for the error or the Stack trace in that.
    i think it may help you

  • Is it possible to map the cmp fields of the entity bean with out dictionary

    Dear sirs,
    I have created the EJB project module and WEB Module. Now i have to map the CMP fields of the entity bean to the underlying table. Is it possible to map the cmp fields of the entity bean with out java dictionary? If yes how can we do that.
    I have got some error while mapping an EJB's CMP fields to the table through dictionary. I was actually intended to map 79 fields but it gives an error that more than 64 fields are not allowed while building the dictionary.
    1. Can you tell me what could be the possible reason?
    2. Is it possible to map the cmp fields of the entity bean with out java dictionary? If yes how can we do that.
    Kindly helo me,
    Sudheesh K S

    Hi,
    Sudheesh please check up if the below link helps,there are other ways of writing the persistent.xml for container managed entity bean.
    http://help.sap.com/saphelp_nw04s/helpdata/en/9b/f695f0c84acf46a4e0b31f69d8a9b7/frameset.htm, probably in the studio you cannot browse through tables not in  the java dictionary,but manually editing it may still solve the problem.
    Also here is another link that specifies the databases supported by J2EE Engine.
    http://help.sap.com/saphelp_nw04s/helpdata/en/66/a5283eeb47b40be10000000a114084/frameset.htm
    The below link shows how to specify the database vendor and datasource
    http://help.sap.com/saphelp_nw04s/helpdata/en/e1/67fc3ee241ba28e10000000a114084/frameset.htm
    Hope you are able to solve the problem.
    Do let us know if you come up with the solution.
    Regards,
    Harish
    Message was edited by: HARISH SUBRAMANIAN

  • Problem in populating the new field from the extract structure. Kindly help

    my requirement a new text field is added on R/3 side and I have to populate
    the same field into BW.
    In the R/3 a new customization table 'AAA' is created which will have
    code - char 3 and
    text - char 30.
    The code field is added to a table BBB.
    The SAP standard generic data source exracts data from the table BBB where in the new code field have been added.
    Now I can the see the code field in the extract structure and not in the data source as the filed has selection value 'A' when checked in the ROOSFIELD table.
    To populate the value in BW, I will be creating a Generic Master Data text wherein I fetch the values from the table 'AAA' which the fields code and text  and replicate the same in BW.
    In the reporting level, the code InfoObject will be selected as display both KEY and TeXT, by doing I can populate the values of TEXT in the reporting.
    But to achieve the same I need to add the field code in the ODS but cannot do the same because I am not able to see the field code in the data source.
    Kindly let me know how to achieve the same.
    Also let me know if there is any alternate solution to populate the text field in BW.
    Any Inputs will be appreciated.
    Thanks

    > You should get the userdatasources bound to the
    > columns and assign the values of the recordset to
    > each one and after that use "setLineData" to write in
    > the matrix.
    >
    > hope it helps
    Hi all,
    i have created tables (non BO Tables) directly on the SQL-server and want to use recordset to populate a user form matrix.
    Is there any workaround to achieve this using non BO tables?
    Please provide some sample code since it is a very urgent matter.
    regards
    Daniel

  • How to make the Reference field in the in Accounting Tab a required field.

    Hi,
    Can i make the REference field in the Accounting tab required. I want to enter contract number from RE in that field.
    Thank you.
    Rachelle

    Hi,
    Goto t.code OVA2 select A-sales header and then click on procedures in the left--> select the procedure in which you want to incolude this field and new entries the table name is VBAK and field is XBLNR for the reference field in the accouting tab and accordingly assign the status 01 or 02 as per your requirement.
    Then you need to assign the incompletion procedure to the sales document type in VOV8.
    Regards,
    Gopal.

  • Any way to validate the Mandatory field in the XML file

    Hi,
    Is there any way to validate the Mandatory field in the XML file. I created an xml type table xml_validate based on the schema and insert the XML files with statement.
    INSERT INTO xml_validate(warehouse_id,xml_file_name,warehouse_spec)
    Values (agreementid,p_filename,XMLTYPE.createXML(l_clob));
    It is validating the data types, extra tags etc but not validating the missing of the manadatory tag/value.
    Thanks in advance
    Rizly

    Hi Ants,
    Yes, I was not doing the strict validation, after searching the forum i understood that was the reason. So i did this way,
    begin
    for x in (select myColumn from myTable where WAREHOUSE_ID=41) loop
    x.myColumn .schemaValidate();
    end loop;
    end;
    The out put is:
    ORA-31154: invalid XML document
    ORA-19202: Error occurred in XML processing
    LSX-00011: internal error: LsxvPushCandidate array overflow
    ORA-06512: at "SYS.XMLTYPE", line 345
    ORA-06512: at line 3
    My i know more information about this error, especially
    LSX-00011: internal error: LsxvPushCandidate array overflow
    Thanks in advance
    Rizly

  • Change the position of the text field in the report region

    Hi,
    I am having a report region in whch there are 2 buttons which are in the Region Template position #Create# and a
    text field. I added a text field in the same region. I tried to change the position of the text field near the buttons. I
    tried to change "label-Horizontal/vertical alignment" and "Element horizontal vertical alignment". But the postion of the
    text field is not changing. Plz help,
    Thanks,
    TJ

    Hi Andy,
    Sorry to ask this questions.
    1.Where exactly i need to change the HTML code(By uisng the view source?)
    2.My taskname part html code when viewing the source is given below
    tabindex="999"><img src="/i/e.gif" alt="Edit" class="eLink" />
    </a><tr></td><td nowrap align="left">
    <label for="P1_TASK_NAME" tabindex="999">
    <a class="t16OptionalLabelwithHelp" href="javascript:popupFieldHelp('5853137628393530415','676839962625525')"
    tabindex="999">Task Name</a></label></td>
    <td  colspan="1" rowspan="1" align="left" valign="top"><input type="hidden" name="p_arg_names"
    value="5853137628393530415" /><input type="text" name="p_t06" size="10" maxlength="20" value=""
    id="P1_TASK_NAME"  /><a class="eLink" title="Edit" href="javascript:popupURL('f?
    p=4000:371:676839962625525::::P371_ID,FB_FLOW_ID,FB_FLOW_PAGE_ID:5853137628393530415,107,1');" 
    tabindex="999"><img src="/i/e.gif" alt="Edit" class="eLink" /></a></td></table>
    <table summary="" cellspacing="0" cellpadding="0" border="0" width="100%"><tr><td align="right"><table
    cellpadding="0" cellspacing="0" border="0" summary="" class="t16Button">please suggest what changes i need in this code to change the alignment of the task_name text field,
    Thanks,
    TJ

  • The New Field in the FBL5N/FBL1N doesn't appear

    Hi guys,
    I created an APPEND STRUCTURE with the NAME1 field in the table RFPOS and through the transaction FIBF an Event that calls a Function and move the Name of Customer or Supplier according to the transactions FBL5N or FBL1N.
    This field, NAME1, should appear in these transactions when the user choices the hidden fields through the Change Layout button. But this field doesn't appear...
    I debbuged the Function Module and the data have been moved. (It works...)
    Please, someone did it before and could help me to solve it?
    Why doesn't the Field NAME1 appear? What could I do??
    Thanks a lot!
    Regards,
    Marcos Fernando Dotta

    Hi
    The new fields have to be appended in the structure RFPOSX too, and then you need to run the program RFPOSXEXTEND in order to add the new fields in layout structure RFPOSXEXT
    Max

  • Get the timestamp value in the form of array of 8 bytes, whileretrieving da

    3) How we can get the timestamp value in the form of array of 8 bytes, while retrieving the data?
    4.) How we can pass the 8 byte array to stored procedure? What will the data type of the parameter?

    duplicate post:
    timestamp value in the form of array of 8 bytes

Maybe you are looking for