‎2009 Dec 07 4:13 AM
Hi Experts,
I placed one button in the screen 1000, to display unprocessed details.
But in the screen 1000, there are few obligatory fields, so when i click on the button unprocess list, it's giving message fill the required fields.
I need to display the unprocessed list with out giving the inputs in the screen. ( and there is connection b/w uprocess list and input fields )
Thanks.
‎2009 Dec 07 4:31 AM
Hi Phani,
Set the "Function type" of button as "E" (Exit Command).
And write the logic in
MODULE <...> AT EXIT-COMMAND.
Nag
Edited by: Naga Mohan Kummara on Dec 7, 2009 5:31 AM
‎2009 Dec 07 4:25 AM
You have to fill the mandatory fields on the screen as mandatory check to fill the field is done in PBO or before start of selection and when you click the button it goes into PAI or start of selection.
Solution : Remove mandatory keyword from the select option and check the field is blank or not in the PAI of start of selection.If it is blank give error message that the field is mandatory to be filled.
Below code can help you.
IF P_WERKS IS INITIAL. " For this field check will be done
MESSAGE E029(ZZ). " Error massage.
LEAVE.
ENDIF.
Write this in AT SELECTION-SCREEN if not dialog program.
Hope you understand the logic.
Edited by: Harsh Bhalla on Dec 7, 2009 9:58 AM
‎2009 Dec 07 4:31 AM
Hi Phani,
Set the "Function type" of button as "E" (Exit Command).
And write the logic in
MODULE <...> AT EXIT-COMMAND.
Nag
Edited by: Naga Mohan Kummara on Dec 7, 2009 5:31 AM
‎2009 Dec 07 7:38 AM
Thanks for ur idea.
now data picked into a table control in the screen 7000.
then i need to give the row details of table contol to privious screen ( ie initial sceen).
I mean, when i select the row of the unprocessed table, and then i click on "OK", it should take the the values of the row as inputs for the main screen.
Thanks.
‎2009 Dec 07 8:27 AM
Hi Phani,
Declare a global structure/varible to store 7000 screen data.
After Exit command PBO will be execute for Screen 1000. Assign the values from Gloable variable.
hope this helps,..
Nag
‎2009 Dec 21 9:52 AM
hi,
after execution of exit module, it wouldn't go to PBO of screen 1000, directly it is going to PAI of 1000.
So, the selected line values r not loaded into 1000 screen.
Thanks
‎2009 Dec 21 10:12 AM
Hi Phani,
Declare a flag eg: Wf_exit.
set the value to X when you process the 7000 screen and check whethere the value is initial or not in all other PAI module.
like
* In Module AT EXIT-COMMAND
WF_FLAG = 'X'.
----
CHECK WF_FLAG IS INITIAL. " In all PAI include
and clear the value in PBO.
When even the value = 'x' .this wil skip PAI and goes to PBO.
hope this helps,
Nag
‎2009 Dec 07 8:54 AM
hi,
you have to define the button in the similar way as you define the EXIT button.
you have to write
Module BUT(whatever you want to do in the button module) AT EXIT-COMMAND.
after you define the PAI.
this will not give any message of required or mandatory fields.
Hope this will help
Thanks
Tanmaya