Skip to Content
author's profile photo Former Member
Former Member

Export field to database

Hi,

I want to export a field from my program to database table, does any body knows what should be the structure of the database table. I want to export a date field.

Thanks in advance

Anu

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 25, 2006 at 10:29 AM

    if there is only one date field in the database table , then the fields in ur database table will be MANDAT and ur date field DATE

    then in ur program u can write

    ztable-date = date.
    insert ztable.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 25, 2006 at 10:33 AM

    ztable-field1 = field1..

    ztable-field2 = field2.------

    modif ztable.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 25, 2006 at 10:35 AM

    Hi,

    if you want to export one field to DB

    use update ztable set fld = itab-fld1

    where ...

    regards

    amole

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 25, 2006 at 10:41 AM

    U can use

    EXPORT ldate FROM sy-datum TO DATABASE INDX(AR) KEY 'ID'.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      U dont need to populate anything explicitly in INDX database.

      EXPORT ldate for sy-datum to database INDX(AR) key 'id'.

      ldate ->is the variable you wish to export.

      sy-datum ->is the data for ldate

      AR -> is the ARea of INDX database

      Id -> is the id of the indx database.

      U would need the area and id to import the values again.

      Regards

      Anurag

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.