12-28-2011 4:07 PM
Hi All.
I have a issue in the current module pool program.
I have a main screen from where i am calling multiple sub screens which is a requirement.
In one subscreen, when i enter the values in the entire screen and if i press enter the values are disappeared. But the function code for enter corresponds to the main screen and when checked the values from the subscreen are disappeared quite before entering the main screen.
what could be the reason. Any suggestions please. !
Thanks,
Sree
12-28-2011 4:21 PM
check out the CLEAR statements you have written on the PBO or PAIs. those are responsible for the ghostly disappearance..
12-28-2011 4:28 PM
Hi ,
Thanks for instant reply.
I have checked the same in my screen. But there is no such place where i am clearing the values
Thanks,
Sree
12-28-2011 4:31 PM
put /h on the command tray and hit enter. debugger is activated,
now hit enter on that field.. debugger triggers.. see where is the value getting deleted...
12-28-2011 4:23 PM
Hi shanky s,
this may be a
code
problem.
What is your screen flow and code?
Regards,
Clemens
12-28-2011 4:25 PM
Hi Clemens nice to see you again... Merry christmas.. Oppsi moderators please dont delete this, its just a wish.
nice answer Clemens.. a "code" problem
12-28-2011 4:35 PM
Main screen
PROCESS BEFORE OUTPUT.
MODULE STATUS_9020.
MODULE MZO_DISABLETABSTRIP.
MODULE CHECK_MANDATORY_DISABLE.
CALL SUBSCREEN SUB1 INCLUDING SY-REPID '9030'.
CALL SUBSCREEN SUB2 INCLUDING SY-REPID '9050'.
CALL SUBSCREEN SUB3 INCLUDING SY-REPID '9060'.
CALL SUBSCREEN SUB4 INCLUDING SY-REPID '9080'.
CALL SUBSCREEN SUB5 INCLUDING SY-REPID '9090'.
CALL SUBSCREEN SUB6 INCLUDING SY-REPID '9070'.
PROCESS AFTER INPUT.
MODULE MZI_USER_COMMAND_9020.
MODULE MZI_USER_COMMAND_9020 INPUT.
G_OKCODE2 = SY-UCOMM.
CASE G_OKCODE2.
WHEN 'SAVE'.
" Write code for save as draft version and saving the existing data.
PERFORM SAVE_AS_DRAFT_VERSION.
WHEN 'COMP'.
PERFORM F_UPDATENWORKFLOW. " Update the database table and initiate workflow.
WHEN 'OTHERS'.
ENDCASE.
ENDMODULE.
This is the subscreen: -
PROCESS BEFORE OUTPUT.
MODULE mzo_status_9030.
MODULE mzo_initialization_9030.
PROCESS AFTER INPUT.
MODULE mzi_user_command_9030.
PROCESS ON VALUE-REQUEST.
field ZTTT001-ZFACTNAME module mzv_ZFACTNAME.
field ZTTBASICOBJI1 module mzv_ZTTBASICOBJI1.
field ZTTBASICOBJI2 module mzv_ZTTBASICOBJI2.
field ZTTBASICOBJI3 module mzv_ZTTBASICOBJI3.
field ZTTBASICOBJI4 module mzv_ZTTBASICOBJI4.
field ZTTBASICOBJI5 module mzv_ZTTBASICOBJI5.
field ZTTBASICOBJI6 module mzv_ZTTBASICOBJI6.
field ZTTBASICOBJI7 module mzv_ZTTBASICOBJI7.
field ZTTBASICOBJI8 module mzv_ZTTBASICOBJI8.
field ZSEASONALPROD module mzv_ZSEASONALPROD.
field ZTTT001-ZROUTEID module mzv_ZROUTE.
FIELD ZTTT001-ZFPLANTS MODULE MZV_ZPLANTS.
FIELD ZTTT001-ZTOPLANTS MODULE MZV_ZTOPLANTS.
FIELD ZTTT001-ZSTACKCONFIG MODULE mzv_ZSTACKCONFIG.
I have checked all the values example clear ...but nothing is there in it.
Kindly suggest me !
Sree
12-28-2011 4:39 PM
12-28-2011 4:41 PM
Hi Shanky,
looks like an F1 task: CALL SUBSCREEN is missing in PAI.
[subscreen|http://help.sap.com/saphelp_470/helpdata/en/9f/dbabfe35c111d1829f0000e829fbfe/content.htm]
Regards,
Clemens
12-28-2011 5:04 PM
Hi Clemens.
That is really wonderfull.
Learnt a new thing, as you have said that i did not add call subscreen in PAI and so the reason my values were disappearing.
Now after adding the required logic, it is working and no values are disappeared.
Thanks you so much.
Sree