Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BCAL_EDIT DAMO issue

1190_5939_439
Active Participant
0 Kudos

Hi Experts

03 and 04 .When I modify cells and delete row. But it is not successful . When I execute programe again. the data is not chaged. Can you help me ?

1 ACCEPTED SOLUTION

FredericGirod
Active Contributor

Did you try to read the code of the program ?

form update_database.
  data: lt_del_rows type table of sflight,
        lt_ins_keys type g_verifier->sflight_keys,
        l_ins_key type g_verifier->sflight_key,
        ls_sflight type sflight,
        ls_outtab like line of gt_outtab,
        lt_instab type table of sflight.

* §8.When all values are valid, use your internal tables
*    to update your table on the database.

*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
* IMPORTANT: This method has been disabled, as the program logic
* was erroneous: if a user doubled a line (insert with copied values)
* the data is not accepted by alv, so the line inserted in the table
* had initial values. If he then deleted the line, the deleted line
* also had initial values. On the other hand, the line stored as
* inserted was the line with the original, copied values. So the
* data base was updated with hte copied values which lead to a
* short dump.
*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
4 REPLIES 4

FredericGirod
Active Contributor

Did you try to read the code of the program ?

form update_database.
  data: lt_del_rows type table of sflight,
        lt_ins_keys type g_verifier->sflight_keys,
        l_ins_key type g_verifier->sflight_key,
        ls_sflight type sflight,
        ls_outtab like line of gt_outtab,
        lt_instab type table of sflight.

* §8.When all values are valid, use your internal tables
*    to update your table on the database.

*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
* IMPORTANT: This method has been disabled, as the program logic
* was erroneous: if a user doubled a line (insert with copied values)
* the data is not accepted by alv, so the line inserted in the table
* had initial values. If he then deleted the line, the deleted line
* also had initial values. On the other hand, the line stored as
* inserted was the line with the original, copied values. So the
* data base was updated with hte copied values which lead to a
* short dump.
*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

0 Kudos

I don't find the code. in BCALV_GRID_04 OR BCALV_GRID_03

0 Kudos

BCALV_EDIT_04

Sandra_Rossi
Active Contributor

I debugged BCALV_EDIT_04 and after edited the lines of the ALV, when saving, the changed data is reflected in internal table GT_OUTTAB, so I don't understand your question. If your question is about how to update a database table from a variable, then you should ask it clearly.