Application Development 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: 

Redefine method execute CL_GOS_SERVICE

former_member384574
Active Participant
0 Kudos

Hello experts,

I have created a new option in my GOS toolbar for upload documents using table SGOSATTR. Now I need to do the execution method of the class CL_GOS_SERVICE to retrieve just the documents saved in my new folder... How can I retrieve this information? Is there any table which relates table SGOSATTR and the document saved?

Thanks in advance,


Regards,

Rebeca

9 REPLIES 9

FredericGirod
Active Contributor
0 Kudos

Why didn't you read the SGOSATTR table corresponding to the reading lines ?

former_member384574
Active Participant
0 Kudos

what do you mean?

FredericGirod
Active Contributor
0 Kudos

rebeca I mean, you are playing with table SGOSATTR, in this table you create link between the GOS menu and the Class/method. So you already have a line to read the standard document, did you analyse how the standard works ?

FredericGirod
Active Contributor
0 Kudos

former_member384574
Active Participant
0 Kudos

Frederic, first of all, thank you so much for your help! I didn't know this Badi... and it works properly... But, I'm still having a problem... I detail you with some screenshots:

Transaction QM02-> GOS option -> I have the following:

I think that the perfect solution for my problem will be to create an additional line with name "Justificación", but I'm not sure how to do this.

For that I've created the option in the menu:

This works correctly, I can display the option just for the role that I want and the document is stored perfectly and so on.

My option "Justificante" is an implementation of the class CL_GOS_SRV_ATTACHMENT_LIST, but then in the testing phase I've realised that If I attach any document in this option, the document is also available in "Lista anexos", and this could not be.... This option shouldn't shows documents attached in "justificante" option.. 😞

I'm not GOS expert, so I do not know how can I do this...

1. Maybe adding an own subtype SWO1 and displaying it in picture one? How is this done? I don't know...

2. Is there any way that using the badi you send me I can restrict the objects created? I share the same type object BUS2078 because my own object "ZJT" is not working 😞

Any other idea?

Thanks a lot for your support!


Regards,


Rebeca

FredericGirod
Active Contributor
0 Kudos

First, if you play with this table & this badi, it will impact ALL the transactions using GOS.

I think, the solution could be to dulicate the Object Type (trans SWO1) . The standard link will not find the Zobject type. And you need to modify the Standard Object type to be able to read for a specific case other object type (if you don't understand it is normal 🙂 )

It was really a long time ago, I do this. It is a realy complex subject, really hard to debug

former_member384574
Active Participant
0 Kudos

Hello again Frederic,

Oh, then I can't play with that badi, because the rest of GOS should be maintained as they are...

I've tried with SWO1 but without success.... Finally what I think we can do is to create an additional option in the action box of QM02 to attach this information, and when the user execute it, this nrw option will call cl_gos_manager as an additional GOS... as being different report, it should work...

I'll try.....

thanks once more time for your support!!!

regards,

Rebeca

FredericGirod
Active Contributor
0 Kudos

rebeca what I mean with the other transaction, it's, if you play with the table SGOSATTR, and want to impact only one transaction, you will have to filter using the BADI (see the part "Insert the code to limit the menu for the MM0(1,2,3) transaction" of my doc)

former_member384574
Active Participant
0 Kudos

Hello Frederic,

But then, the Badi works in the same way as it works the table SGOSATTR, isn't it? When you create an entry on this table, and makes a copy of the class CL_GOS_SERVICE, you can redefine method Check_status and in this place you can impact only the transaction you want, isn't it?

Finally what we are going to do is to create an additional option in the axction box with a new GOS option.

Thank you so much for your support.

Regards,


Rebeca