Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Screen painter

Former Member
0 Likes
872

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
839

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

7 REPLIES 7
Read only

Former Member
0 Likes
839

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

Read only

Former Member
0 Likes
840

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

Read only

0 Likes
839

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.

Read only

0 Likes
839

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

Read only

0 Likes
839

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

Read only

0 Likes
839

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

Read only

Former Member
0 Likes
839

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