Skip to Content
0
Sep 01, 2006 at 02:06 AM

Urgent Please

16 Views

Hi SDN's

my problem is when i enter a ( bukrs mail-type main-grp and sub-grp ) all 4 mandatory fields, i show related data on the screen, this is done as below

select single * from ZES_MAIL into IS_MAIL

where BUKRS = ZES_MAIL-BUKRS

and TYPE = ZES_MAIL-TYPE

and MAIN_GP = ZES_MAIL-MAIN_GP

and SUB_GP = ZES_MAIL-SUB_GP.

but if change the any of the above 4 mandatory fields, like i change sub-grp from 01 to 02 the screen fields are not changing because in the PBO my code is as below

if INT <> 1.

select single * from ZES_MAIL into IS_MAIL

where BUKRS = ZES_MAIL-BUKRS

and TYPE = ZES_MAIL-TYPE

and MAIN_GP = ZES_MAIL-MAIN_GP

and SUB_GP = ZES_MAIL-SUB_GP.

if SY-SUBRC eq 0.

ZES_MAIL-TO_EMAIL = IS_MAIL-TO_EMAIL.

ZES_MAIL-TO_NAME = IS_MAIL-TO_NAME.

ZES_MAIL-CC_EMAIL = IS_MAIL-CC_EMAIL.

ZES_MAIL-CC_NAME = IS_MAIL-CC_NAME.

INT = 1.

endif.

endif.

i had maintained INT because i avoid overwriting of newly entered data for displayed fields, but this does not work if i change teh mandatory fields.

How do i get the new data related to the changed mandatory fields in my screen?

please help

Thanks in advance

Gopi