cancel
Showing results for 
Search instead for 
Did you mean: 

PT_ARQ_REQUEST_EXECUTE dump CX_OS_OBJECT_NOT_FOUND

Former Member
0 Kudos

Hello Experts,

we have delevoped a web dypro for apap application to create and modify absence requests. We use the "normal" functions

PT_ARQ_REQUEST_PREPARE,

PT_ARQ_REQUEST_CHECK and

PT_ARQ_REQUEST_EXECUTE.

The application works fine, but last days we installed it to a sap system wich has a higher patch level. We get a dump when the the function PT_ARQ_REQUEST_EXECUTE is processed. The exeption is CX_OS_OBJECT_NOT_FOUND.

The call-stack:

CL_PT_REQ_HEADER==============CP CL_PT_REQ_HEADER==============CM005 32 CL_PT_REQ_HEADER=>IF_OS_STATE~HANDLE_EXCEPTION

METHOD CL_PT_REQ_HEADER==============CP CL_PT_REQ_HEADER==============CM007 26 CL_PT_REQ_HEADER=>SET_STATUS

METHOD CL_PT_REQ_HEADER==============CP CL_PT_REQ_HEADER==============CM01T 19 CL_PT_REQ_HEADER=>IF_PT_REQ_HEADER~SET_ALL_ATTRIBS

METHOD CL_PT_REQ_REQUEST=============CP CL_PT_REQ_REQUEST=============CM003 21 CL_PT_REQ_REQUEST=>CLONE_TO_OLD

METHOD CL_PT_REQ_REQUEST=============CP CL_PT_REQ_REQUEST=============CM00G 256 CL_PT_REQ_REQUEST=>IF_PT_REQ_REQUEST~INITIATE_STATE_TRANSITION

If we try to create a request with RPTARQ for the same employee and the same type of absence there is no problem.

We have analized our WDA application on serveral system with different support packages:

6.0 51 okay

6.0 38 okay

6.0 64 error

6.4 6 okay

6.4 ? error

Does anybody has any idea on this issue?

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member205488
Active Participant
0 Kudos

Hello!

The short dump occurs because some global data of the function group isn't initialized.

Call function module PT_ARQ_REQUEST_CHECK before PT_ARQ_REQUEST_EXECUTE to initialize the necessary data.

Former Member
0 Kudos

I found the error: after the call function PT_ARQ_REQUEST_PREPARE was a "commit work and wait". After deleting this command the application works fine also with the new support packages.

Thanks,

Gert

FaizaAnjum
Explorer
0 Kudos

Hi Gert,

I am also facing the same issue. you have explained the flow of control in detail in your reply on March 1 2012. In my case also the issue is exactly similar. You said that there was a commit and wait statement which was root cause of this issue in FM PT_ARQ_REQUEST_PREPARE.. Where is this statement I am not abel to figure out.

Waiting for your reply.

Regards,

Faiza

Former Member
0 Kudos

Hi Gert

I'm having the same error for delete. Can you please point to where the "commit work and wait" comment is located? I can't seem to find it.

Thanks for your time.

tony_morellet
Participant
0 Kudos

Hi Smit,

You can found it in the form execute_action of the include LPT_ARQ_REQUEST_UIAF06 (line 651)

Regards.

Tony

Former Member
0 Kudos

Hello Siddharth,

thank you for your answer, but I don´t think, that this is a problem of the data. At the method IF_PT_REQ_REQUESTINITIATE_STATE_TRANSITION the method CLONE_TO_OLD is called. This method tries to get all attributes from the workarea_version and put it to the current version. Each item in the method IF_PT_REQ_REQUESTWORKAREA_VERSION->GET_ALL_ATTRIBS are not initial.

In the method IF_PT_REQ_HANDLERSET_ALL_ATTRIBS the method SET_STATUS is called; there is a macro STATE_WRITE_ACCESS which tries to raise the event IF_OS_STATEWRITE_ACCESS. The handler (CL_OS_CA_COMMON HANDLER_WRITE_ACCESS) calls the method PM_HANDLER_RW_ACCESS which tries to load the object from DB (method PM_LOAD). The called method PM_LOAD_AND_SET_ATTRIBUTES gets the exception CX_OS_DB_SELECT which cases the exection CX_OBJECT_NOT_FOUND.

For me it seems to be a sap-basic problem, because there is an object not store at database, which should be there.

What do you think?

Kindly regards,

Gert

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

probably it is due to the missing leave request details? Please can you check

CALL METHOD ca_pt_req_header=>sel_reqs_by_all_attribs

EXPORTING

check here?

This occurs if some data is missing!