Skip to Content
0
Jun 14, 2006 at 10:00 AM

SAPCONSOLE return from message screen to Z transaction

162 Views

Hi,

i´m developing a Z transaction in SAPCONSOLE.

if i click on the corresponding button of the Z transaction it leads me to the screen with it´s input fields.

Well if then i process the Z transaction and an error occurs the flow of the program leads me to the error screen. If then i click on OK push button then i go to the initial screen of the z transaction.

The question is that when i click on the OK pushbutton of the error message i´d like to return to the screen with the input fields of the Z transaction and not to the button of the Z transaction.

is this possible?

if so, how can i do it?

for the error screen i use:

CALL FUNCTION 'CALL_MESSAGE_SCREEN'

EXPORTING

I_MSGID = MESSAGE_ID

I_LANG = SY-LANGU

I_MSGNO = L_MSGNB

I_MSGV1 = MESSAGE_V1

I_MSGV2 = MESSAGE_V2

I_MSGV3 = MESSAGE_V3

I_MSGV4 = MESSAGE_V4

I_CONDENSE = 'X'

EXCEPTIONS

INVALID_MESSAGE1 = 1

OTHERS = 2.

Best regards.