Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

leave to initial screen not working.

I have copied the below code from 4.6c to ECC 6.0.

However in 4.6c, from 100 screen when we press back (F3) button , it goes to initial screen(Leave to screen 0). Note : in 100 screen we do have fields have fields

But after copying the same code into ECC 6.0.. when we press the BACK button, it is not going to initial screen. instead it is giving error message as "Fill in all required entry fields"

below is my coding...

======================================

PROCESS BEFORE OUTPUT.

MODULE status_0100.

PROCESS AFTER INPUT.

CHAIN .

FIELD mcha-matnr .

FIELD v_batch_num .

FIELD t022a-tidest .

FIELD v_num_labels .

MODULE check_chain ON CHAIN-REQUEST .

ENDCHAIN.

MODULE user_command_0100.

===========================

basically my problem is when "BACK" button is pressed from 100 screen,, it should come out to initial screen.

COULD YOU PLEASE HELP ME HOW TO ACIEVE THAT . I AM STRUK AT THIS POINT AND MY FUNCTIONAL CONSULTANT is waiting for this.

YOUR HELP IS HIGHLY APPRECIATED.

Former Member
Former Member replied

Hi,

PROCESS AFTER INPUT.
CHAIN .
FIELD mcha-matnr .
FIELD v_batch_num .
FIELD t022a-tidest .
FIELD v_num_labels .
MODULE check_chain ON CHAIN-REQUEST .
ENDCHAIN.
MODULE user_command_0100.
MODULE BACK AT EXIT-COMMAND.  " Add this

MODULE back INPUT.
  IF ok_code = 'BACK' .
   CLEAR: ok_code.
    LEAVE TO SCREEN 0.
  ENDIF.
ENDMODULE.

Double click on the PF-STATUS you used in the program then Menu Painter screen get's opened.

Check this link..http://i678.photobucket.com/albums/vv145/avinashkodarapu/Snap1-2.jpg how to set the function type to E of BACK fcode.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question