‎2011 Nov 10 11:17 PM
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
‎2011 Nov 11 12:54 AM