05-05-2009 8:07 AM
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.
05-05-2009 8:37 AM
Avinash,
Thanks for your reply . I am not that great in module pool programming.
Could you please be more specific on what to do . In se41 what to do and
where exactly to write MODULE BACK AT EXIT-COMMAND.?
or can any body tell me bit more clearly how to go to initial screen on F3 button click ?
YOUR HELP IS HIGHLY APPRECIATED.
Edited by: sam kumar on May 5, 2009 9:40 AM
05-05-2009 8:10 AM
your one of the field in screen 100 is screen mandatory,
That why you are not able to go to back screen.
Regards,
Alpesh
05-05-2009 8:12 AM
Goto SE41 and give your program name and select the status name from F4.
Check the application tool bar is it active or not check the button is green or red. If it is not active, activate it.
Thanks and Regards
05-05-2009 8:19 AM
Chandra,
I did not get you what you are saying.
Could you pleaseexplain more clearly ?
If that is the case...it would be a great help.
I need to do this please.
05-05-2009 8:29 AM
Hi,
Check this demo program DEMO_DYNPRO_AT_EXIT_COMMAND. You need to write the code in EXIT COMMAND
Need to pass 'E' to Functional Type for BACK FCode in se41
PAI..
MODULE BACK AT EXIT-COMMAND.
05-05-2009 8:37 AM
Avinash,
Thanks for your reply . I am not that great in module pool programming.
Could you please be more specific on what to do . In se41 what to do and
where exactly to write MODULE BACK AT EXIT-COMMAND.?
or can any body tell me bit more clearly how to go to initial screen on F3 button click ?
YOUR HELP IS HIGHLY APPRECIATED.
Edited by: sam kumar on May 5, 2009 9:40 AM
05-05-2009 9:20 AM
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.
05-05-2009 10:11 AM
GREAT SIR(Avinash).
How can I learn module pool programming . I did not get chance to work on scratch module pool from years. But I am interested to update my knowledge. Kindly suggest me how can I become perfect in this area (I mean get confidence on module pool programming )?
YOUR HELP IS REALLY APPRECIATED!!!!! THANKS.