09-08-2010 10:08 AM
Hi Experts,
I have a problem in Custom control.
I am using OO ALV to display the data with custom control.
In this i have a drop down for one field in the table.
When i select the value from drop down list and click on save button in application toolbar(Custom Menu bar), the changes are not capturing.
Please guid me hw to achive this problem.
Thanks & Regards,
Chandu
09-08-2010 11:08 AM
Try the istruction
CALL METHOD o_grid->check_changed_data.
this should update internal data table with data on screen.
09-08-2010 11:46 AM
Thanks for the reply,
I have used this method in PAI as below
MODULE USER_COMMAND_0100 INPUT.
CALL METHOD obj_my_alv_grid->check_changed_data( ).
CASE sy-ucomm.
WHEN 'BACK'. "'&DATA_SAVE'.
LEAVE PROGRAM.
WHEN 'PDFFORM'.
it_times1 = it_times.
ENDCASE.
ENDMODULE.
Here it_times is the table to pass the data for alv display in the method
set_table_for_first_display for the parameter it_outtab.
but no changes coming into it_times1 table. Kindly give me some sample code.
Thanks & Regards,
Chandu
09-08-2010 12:07 PM
you did what i meant, but in this case seem it doesn't work.
Take a look to program" BCALV_TEST_GRID_EVENTS", how it menage the event "Event DATA_CHANGED After F4",
maybe you can find your solution
09-08-2010 11:20 AM
Hi Chandu,
You should be writing a method to handle the data changes for the event DATA_CHANGED. You should first register the event and the event handler method.
Kindly search for the term "easy reference to ALV grid control" in Google and refer to the PDF file in the search results.
Thanks,
Sakthi.
09-09-2010 10:14 AM
Hi,
I have a small requirement of displaying the 3 internal tables data in output.
In this 2 internal tables having the drop down fields.
Once after display of this data in screen the user will select the values of this drop down fields from drop down list.
Then i need to capture these drop down values along with original data once after click on the 'SAVE' button in application toolbar and generate the PDF form.
For this i hv used OO ALV with custom control, but the problem is drop down values are not capturing when i click on button in application tollbar.
Can any one help in this.
Thanks & Regards,
Chandu
09-10-2010 11:37 AM