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

Return to List Processing From Business Object Method CTREQUEST.Display

mike_mcinerney
Participant
0 Likes
387

I have a simple program which displays selected TRKORR (Transport/Correction) numbers in a list on the screen. I want to be able to double click on the number and inspect the contents of these items.

The program is not pretty - its for my use only.

Anyway, the code below is tucked at the end of my program, and it works fine - double clicking will display the request. .


FORM SHOWCTS  USING  P_REQ.
  DATA : ThisReq      TYPE SWC_OBJECT.
  DATA : ReqObjectKey Like SWOTOBJID-OBJKEY .
  SWC_CONTAINER        REQCONTAINER.
  SWC_CREATE_CONTAINER REQCONTAINER.
  move p_req to ReqObjectKey .
  SWC_CREATE_OBJECT ThisReq 'CTREQUEST' ReqObjectKey .
  SWC_CALL_METHOD   ThisReq 'Display'   ReqContainer .
ENDFORM. 

AT LINE-SELECTION .
  data l_req type TRKORR .
  move sy-lisel+29(20) to l_req . CONDENSE l_req NO-GAPS .
  perform showcts using l_req .

The problem is, when I exit from the CT Request, the program EXITs . The desired behavior would be to return to my list processing.

How can I return to my list upon exiting the Request display?

Thanks...

...Mike

1 REPLY 1
Read only

raviahuja
Contributor
0 Likes
345

Hi,

Try command LEAVE TO SCREEN 0 instead of EXIT.

Thanks.

Ravi