Application Development and Automation 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: 
Read only

Editable ALV: Disable validation?

0 Likes
1,985

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

1 ACCEPTED SOLUTION
Read only

ThomasZloch
Active Contributor
1,150

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

4 REPLIES 4
Read only

ThomasZloch
Active Contributor
1,151

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

Read only

0 Likes
1,150

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

Read only

0 Likes
1,150

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

Read only

0 Likes
1,150

Hi Thomas,

thanks for the helpful answear. I cleared REF_FIELD and REF_TABLE in the catalog.

Regards

Hannes