cancel
Showing results for 
Search instead for 
Did you mean: 

REG: class CL_PT_REQ_WF_ATTRIBS with custom method possibility

Former Member
0 Kudos

Dear all,

As you know under this class CL_PT_REQ_WF_ATTRIBS we have standard method approve now i want the same for reject method where we get the status as reject..I made the standard wf 12300111 to custom workfow.when i am making the standard class CL_PT_REQ_WF_ATTRIBS to custom and binding it getting error(Not compatible).Please guide me.appreciate your quick response.

can i see the custom method in the standard class.Any delegation process there.Any steps which satisfies my requirement.

Thanks & Regards

Sri.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Don't try to include the logic into the standard class. Just create your own class ZCL_LEAVE_REQ (or whatever), create one static method REJECT, copy the code/idea from the approval method, and add it to your own method. Then just use this new method.

Regards,

Karri

PS. You need to add the interface IF_WORKFLOW to ZCL_LEAVE_REQ in order to use it in workflow.

PS2. And of course you need to modify the method a bit. Now it is referring to the request id with me->req_id. You need to give the request ID as a input parameter for the method instead of referring to the instance.

Former Member
0 Kudos

Thanks its working.Now i have 1 issue in portal,the absence date.suppose we are applying leave on today for yesterday date.so how can we capture that yesterday date.i have document ID.i checked many tables.guide me.

thanks,

sri

Former Member
0 Kudos

The leave request data (=absence days etc.) can be found via tables PTREQ_HEADER -> PTREQ_ITEMS -> PTREQ_ATTABSDATA.

Kind regards,

Karri

Former Member
0 Kudos

Hello,

Thanks for the info.No entries there with this corresponding tables.Guide me with any FM or BAPI  for the submitted date and the absence date.

Regards,

Sridhar.V

Former Member
0 Kudos

If you have created a leave request, the corresponding absence data gets stored in PTREQ_ATTABSDATA. For sure there will be an entry (or entries).


What are you actually looking for? What is the information that you would give as input for the possible BAPIs (which most likely do not exist), and what would you expect 6 need as return?


You can play with transaction PTARQ -> Display documents. With that you can search for leave requests with different search criteria and then drill down to the absence data. Perhaps you can take a look into the code.


regards,

Karri

Former Member
0 Kudos

Hello,

Thanks for the info.This application about clock in clock out.Employee through portal gives date and time  and option clock-in with approver and saves.The wf triggered with a document ID which instantiating the class CL_PT_REQ_WF_ATTRIBS  here i can see the submission date.suppose yesterday date they saved the request.Then submission date is today and applied date is yesterday.yesterday date i  cant see in the class.I checked throughly what you have specified.No use.

Please guide me.

Thanks & regards,

Sri

Former Member
0 Kudos

I thought you were dealing with the leave requests, because CL_PT_REQ_WF_ATTRIBS is in use in that solution. If I remember correctly the same class is indeed in use also in time in/out corrections. Change the transaction PTARQ to PTCOR (yes, it looks exactly the same), if you want to investigate the clock in/out stuff. I don't remember the tables, in which they are stored. They might actually share some of the tables with leave requests. But in any case you should be able to find the tables by checking how PTCOR works.

What comes to your requirement, I simply cannot understand it. Just check the above first, and if you still have some doubts return with detailed explanation with some screenshots. And perhaps better to create a new thread, because this has already been marked as solved, and this new thing doesn't have anything to do with the initial question.

Kind regards,

Karri

Answers (1)

Answers (1)

soumya_ranjan_patel
Participant
0 Kudos


Hi,

please check weaher all interface methods are activated or not by going inside each method.

If not,activate them and check.

Thanks,

Soumya