‎2012 Aug 08 3:44 PM
Hi experts,
I select some data from VBAP into an internal table an display them in an editable alv grid.
I would like to change the data in the alv on my own, since I need them for other purpose. I will only change the data in the internal tabel, not in the database.
When i change the field POSNR, I always get an error (field not in VBUP). It is a standard validation from SAP but I did not discover where I can disable this vaildation. Do you know any possibility?
Regards,
Hannes
‎2012 Aug 08 4:08 PM
VBAP-POSNR has a foreing key linking to table VBUP defined in the data dictionary.
I assume you are building the field catalog from VBAP, so try changing it for field POSNR, removing the DDIC reference or replacing it so that there is no foreign key check for this field.
Thomas
‎2012 Aug 08 4:08 PM
VBAP-POSNR has a foreing key linking to table VBUP defined in the data dictionary.
I assume you are building the field catalog from VBAP, so try changing it for field POSNR, removing the DDIC reference or replacing it so that there is no foreign key check for this field.
Thomas
‎2012 Aug 13 8:59 AM
Hi Thomas,
thanks for the answear. Can you tell me how can I remove this reference. I did as you mentioned ( field catalog from VBAP)
Regards
Hannes
‎2012 Aug 13 9:22 AM
You did not disclose yet if you are using REUSE_ALV_GRID_DISPLAY function module or class CL_GUI_ALV_GRID.
So in general, you have to adjust the field catalog (after building it automatically from VBAP) for field POSNR, possibly clearing REF_FIELD (or REF_FIELDNAME) and REF_TABLE (or REF_TABNAME). Please read the respective online documentation and try with different LT_FIELDCAT settings for POSNR, until you have the desired result.
Thomas
‎2012 Aug 13 9:45 AM
Hi Thomas,
thanks for the helpful answear. I cleared REF_FIELD and REF_TABLE in the catalog.
Regards
Hannes