09-26-2017 12:12 PM
We have added five fields in BP screen through BDT. We have done all the required customizing and coding based on BDT framework in the relevant function modules. All five fields are from single append structure in KNB1. Two custom field values are getting updated in table KNB1 but three custom field values are not getting updated in KNB1 table. We have DSAVB event to save the data in KNB1 table.
Please let us know whether we have missed something. Relevant pointers will be welcome.
Please reply asap.
Thanks,
GDR
09-26-2017 2:50 PM
It looks like the DSAVB event is there to collect the data from your extension fields. Try maintaining the DSAVE event. The description for it seems to be more aligned with what your issue is... 'Save Data in Database (from Local Memory)'.
Hope this helps!
09-27-2017 9:52 AM
In DSAVB event below is code we used to save the Data
CONSTANTS: lc_subname TYPE dd02d-tabname VALUE 'ZMD_APP_KNB1'.
DATA : lt_knb1 TYPE STANDARD TABLE OF knb1.
APPEND knb1 TO lt_knb1.
*------ Data return to possessing Application----------------------
CALL FUNCTION 'CVIC_BUPA_KNB1_COLLECT'
EXPORTING i_subname = lc_subname
TABLES t_knb1 = lt_knb1.
from the above code, Complete data that need to be updated is available in the table 'lt_knb1'.
But only few fields data is getting updated in knb1 table(out of 5 fields, 2 fields data is getting updated which was previously added,
and next 3 fields data is not getting updated which was later added to the same screen.
For your ref: below screen shot is 5 fields added in KNB1
As per your suggestion we added the same code in DSAVE event and checked, still it is not working fine
Waiting for your valuable response.Thank you very much for your help, it is really appreciable
12-05-2017 5:38 AM
Thank you for your support.i have resolved the issue.
I Have updated the custom structure fields,Then it is working fine.
12-05-2017 8:21 PM
This question still shows as unanswered. Kindly close it, see this blog.
05-03-2018 4:50 AM
Hi
Can you please tell me the exact answer as we are also getting the same issue i am able to save when create bot not when changing the custom fields.