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

How to delete Attribute values within (SE24) Class using ABAP code

karthik_rajaspic
Participant
1,193

Scenario:

I am using CL_GOS_MANAGER->START_SERVICE_DIRECT in my program - to add a PDF file as a GOS attachment. Once this class is executed, I find values under GT_VIEWS (Standard Table - Protected Attribute). When this Class (CL_GOS_MANAGER->START_SERVICE_DIRECT) is executed multiple times, this table GT_VIEWS is populated with multiple line items.

---

Requirement: I need to delete a particular line item within the GT_VIEWS table using a WHERE condition. Can anyone help me with the syntax/approach I need to follow?

---

I tried ...

DELETE cl_gos_manager-gt_views WHERE instid = gv_instid_a.

But this statement throws a syntax error.

Request your support. Thank you.

1 REPLY 1
Read only

UweFetzer_se38
Active Contributor
726

You can't manipulate protected or private attributes in object orientated programming. That's why they are protected or private.

I don't know the class CL_GOS_MANAGER, but isn't it possible to craete another instance of this class before you call the START_SERVICE_DIRECT method again?