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

Activate ABAP objects programmatically

former_member355261
Participant
0 Likes
2,211

Hi,

I'm working on a report allowing to find inactive objects of a transport request.

I'm using FM  TR_GET_OBJECTS_OF_REQ_AN_TASKS to get all objects of a given transport request, the I read the table DWINACTIV for each object to check whether it's in the table (inactive) or not (active).

Everything seems to be ok, except for programs (PROG). They are not in the table DWINACTIV (We can find REPS but not PROG !!) so they are not detected ...


Please give me an answer on how to solve this issue.


Thanks in advance.

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,728

Any subobject (LIMU) of a (R3TR) PROG, FUGR, CLAS, etc can be inactive so type like REPS,  DYNP, TEXT, CUAD, CPUB, etc.

You have to look for the main object of those listed in DWINACTIV with a FM like TR_CHECK_TYPE (WI_E071 -> WE_TADIR).


Hint: Remember the transport request may contain either some subobjects with or without the main object too (this one alone after a sort/comrpess) so implicitly every suibobject should be checked.


Regards,

Raymond

7 REPLIES 7
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,729

Any subobject (LIMU) of a (R3TR) PROG, FUGR, CLAS, etc can be inactive so type like REPS,  DYNP, TEXT, CUAD, CPUB, etc.

You have to look for the main object of those listed in DWINACTIV with a FM like TR_CHECK_TYPE (WI_E071 -> WE_TADIR).


Hint: Remember the transport request may contain either some subobjects with or without the main object too (this one alone after a sort/comrpess) so implicitly every suibobject should be checked.


Regards,

Raymond

Read only

0 Likes
1,728

In the DWINACTIV table, I can see main objects (R3TR) like tables, ... and not only subobjects !

If a subobject is inactive, does it mean its main object is inactive too ?

Read only

0 Likes
1,728

Yes consider the main object inactive as soon as at least one subobject is, but you won't find the main object in the table.

Read only

Former Member
0 Likes
1,728

Hi,

In se10 you can select a transport and then go to Request/Task-->Complete check-->display inactive objects to see them.

Why do you need this programmatically? In my opinion it is either the task of the transport coordinator or the creator to ensure that transports are correct for importing to quality.

Or to put it in other words, what is going wrong which lead to this requirement, maybe it can be solved with authorizations, or training.

Kind regards, Rob Dielemans

Read only

0 Likes
1,728

I don't know what leads to this requirement. All I know is that I've been asked to achieve this programmatically.

So, I need to find a solution without thinking about the reason ...

Read only

matt
Active Contributor
0 Likes
1,728

You do have another option. Push back to the person who gave you the requirement and tell him or her that very experienced and expert ABAPpers in SCN are questioning the need and strongly suggesting that their might be a better solution.

In fact, if you were working for me, I'd say it's your duty to push back.

Read only

0 Likes
1,728

Hi,

I don't know if you're a consultant or an in-house developer.

One of the hardest skills to achieve as a consultant is being able to succesfully sell 'No!' to a customer. It is also one of the skills that makes a difference and where you can really see the added value of hiring a consultant/external party.

You can only get better in it by understanding the business requirements and the underlying needs and also challenging them when they seem counterproductive.

Kind regards, Rob Dielemans