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

table control to insert row, delete row and update row

Dear all,

I'm new in dialog programming..need some help here....

I'm creating a Z customized table...

I need to create a dialog screen for this Z table....

Does anyone have example to insert row, delete row and update row from this table control that i have created...

I have seen some SAP example on demo_conn....but the help is very limited.... it just delete from itab but didnt update to the d/b....

I hope a clearer example with some d/b update to the table

Thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 25, 2006 at 05:30 AM

    hi,

    Check this out

    <b>For Inserting a Row</b>

    table-control-insert

    <b>For Deletion of a Row</b>

    how-to-delete-entries-from-table-control

    Regards,

    Santosh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 25, 2006 at 06:00 AM

    Hi,

    I have sent u a step by step documentation on the table control.

    Regards,

    Sumana

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 25, 2006 at 05:45 AM

    hi

    i am giving you the logic for the delete insert and modify the row from the table try to implement that in your report.

    &----


    *& Module USER_COMMAND_0200 INPUT

    &----


    • text

    ----


    MODULE user_command_0200 INPUT.

    CASE sy-ucomm.

    WHEN 'SAVE'.

    INSERT zvbaktc.

    WHEN 'MODIFY'.

    UPDATE zvbaktc.

    WHEN 'BACK'.

    LEAVE TO SCREEN 0.

    WHEN 'EXIT'.

    LEAVE PROGRAM.

    WHEN 'CANCEL'.

    LEAVE TO SCREEN 0.

    ENDCASE.

    ENDMODULE. " USER_COMMAND_0200 INPUT

    -


    &----


    *& Module USER_COMMAND_0300 INPUT

    &----


    • text

    ----


    MODULE user_command_0300 INPUT.

    CASE sy-ucomm.

    WHEN 'SHOW'.

    *select single vbeln erdat erzet ernam angdt from zvbaktc into itab1

    *where vbeln = vbeln.

    select * from zvbaktc into table itab where vbeln = vbeln.

    loop at itab.

    zvbaktc-vbeln = itab-vbeln.

    zvbaktc-erdat = itab-erdat.

    zvbaktc-erzet = itab-erzet.

    zvbaktc-ernam = itab-ernam.

    zvbaktc-angdt = itab-angdt.

    endloop.

    CALL SCREEN 200.

    WHEN 'BACK'.

    LEAVE TO SCREEN 0.

    WHEN 'EXIT'.

    LEAVE PROGRAM.

    WHEN 'CANCEL'.

    LEAVE TO SCREEN 0.

    ENDCASE.

    ENDMODULE. " USER_COMMAND_0300 INPUT

    &----


    *& Module STATUS_0200 OUTPUT

    &----


    • text

    ----


    MODULE status_0200 OUTPUT.

    SET PF-STATUS '200'.

    SET TITLEBAR '200'.

    IF sy-ucomm EQ 'CREATE'.

    LOOP AT SCREEN.

    IF screen-name = 'MODIFY'.

    screen-active = 0.

    MODIFY SCREEN .

    EXIT.

    ENDIF.

    ENDLOOP.

    ENDIF.

    ENDMODULE.

    " STATUS_0200 OUTPUTENDMODULE. " STATUS_0200 OUTPUT

    thanks

    mrutyun

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Dear, Mrutyunjaya Tripathy

      I am manage to do until this level,...Can you provide me

      snippets where after click SAVE, MODIFY, CREATE, MODIFY...

      Those in PAI that related to table control...

      Thanks...appreciate....

  • author's profile photo Former Member
    Former Member
    Posted on Apr 25, 2006 at 05:47 AM

    hi raiblur,

    Can you give me your email id . I will send you a pdf contaning details about the table control and how to insert, delete and update the same.

    Thanks and Regards,

    Kunal

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 25, 2006 at 05:54 AM

    Hi Rayblur,

    I have sent the pdf on Table Control , which will help you in inserting, deleting, updating values.

    Just check your Yahoo Mail.

    Regards,

    Kunal.

    Note: Please award points if found useful.

    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.