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

dialog programming

Hi,

I am working on a module pool program.I have created a screen2000.I have added some fields from marc,mvke and mara tables into this screen.Besides eack field there is a checkbox.I have created 2 pushbuttons execute and cancel in this screen.

Now my requirement is,if the user wants to change the values of some fields in this screen,then he can change the value and click on the checkbox besides that field.Then if he click on the execute button,only the checked field values should be updated in those tables(mvke,mara and marc).

How can I capture only the checked fields and how can i upload the changed field values into the tables?

Can anyone suggest me a proper solution for this?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jan 31, 2008 at 11:17 AM

    Hi Radha,

    Each of the screen field will have the entered value.

    Say if p_cb1 is the check box and P_field1 is the field.

    if that check box is checked, then you can update the data base table for that field alone.

    if p_cb = 'X'. "To check if the check box is checked or not

    move p_field to <table field>.

    update <dbtab> set field <field> where <your condition>.

    endif.

    Regards,

    Ravi kanth Talagana

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      hi

      in layout....table control...if u double click there...u will get properties....in that there is a feild....w/selcolumn...in this u give u r internal table feild....for example

      W/SELCOLUMN:WA_VBAK-CHECK...

      now in pai of the screen we will write modify statement....

      MODULE modify_it1 INPUT.

      MODIFY it_vbak INDEX tbc1-current_line FROM wa_vbak.

      ENDMODULE. " MODIFY_IT1 INPUT

      the internal table should also contain the feild CHECK ....

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.