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

insert default values on rows of table control?

how to insert default values for the rows of table control which updates a Ztable? i want the values 01 to 12 in the each row for a particular column named 'Month' !

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 07:25 AM

    T015M table name to get months numbers

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 07:20 AM

    explain clearly.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      hi..

      i hav a tablecontrol. when user enters data online and click 'save', it wil save into database (new ztable). The user does not fill all the columns and rows in the tablecontrol. Certain columns are filled by us; like for example month. The Column month should have default values from 01 to 12 (ie.Jan to Dec) in the Tablecontrol in disabled mode. So that user need not type those values again and again for every time.

      For that purpose, i want to display the values 01 to 12, one by one in the column of table control.

      So how to set the values by default?

      Hope its very clear!!

  • Posted on Jun 16, 2008 at 07:27 AM

    Hi Try the below code in PBO

    loop at TB_demo

    with control TAB_CTL

    cursor TAB_CTL-current_line.

    module TAB_CTL_get_lines.

    endloop.

    :

    :

    :

    :

    module TAB_CTL_get_lines output.

    TB_demo-field1 = '01'.

    TB_demo-field2 = '02'.

    MODIFY TB_demo INDEX TAB_CTL-current_line.

    endmodule.

    Add a comment
    10|10000 characters needed characters exceeded

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.