‎2007 Dec 08 2:55 AM
Hi friends,
i have two fields when enter some value in one field and press save button i should populate the other field also with the same value and display the whole screen again.
where do i write this PBO or PAI please help me
‎2007 Dec 08 4:01 AM
You can write this in the PAI.
Like:
CASE OK_CODE.
WHEN 'SAVE'.
FLD2 = FLD1.
ENDCASE.Regards,
Naimesh Patel
‎2007 Dec 08 4:01 AM
You can write this in the PAI.
Like:
CASE OK_CODE.
WHEN 'SAVE'.
FLD2 = FLD1.
ENDCASE.Regards,
Naimesh Patel
‎2007 Dec 10 1:47 AM
i am doing that but the value is not getting displayed on the screen
‎2007 Dec 10 3:45 AM
Do an extended check on the module pool... and make sure the screen fields have the same name and format as global variables you have defined in you "top" include... the dynpro just acts as a window into your global memory, so if you fill the fields correctly then they should display OK... a break-point in PBO and one in PAI will confirm this.
Jonathan
‎2007 Dec 10 1:43 PM
Hi,
Actaully the problem is before displaying the screen it executes PBO, and here the field2 value will be refresh.
IN PBO module.
case sy-ucomm.
when 'SAVE'.
temp_var = field1. " you have to define a variale temp_var.
When others.
endcase.
IN PBO module.
If temp_var = ' '.
field2 = temp_var.
clear temp_var.
endif.
‎2007 Dec 10 3:02 PM
Hi,
Write the code in the PAI but be sure that the screen or fields are not getting
refreshed in the PBO because if the screen or fields are getting the refreshed in
the PBO then even though you populate the field in the PAI but after PAI when
the processing goes to PBO the value will get refreshed. So if you have the logic
of clearing data in the PBO you should built the logic such that the clearing part
is not triggered if SAVE button is clicked.
Reward points if this resolves ur query
‎2007 Dec 11 6:38 AM
hi,
simply write in PBO.
if sy-ucomm = 'SAVE'.
var2 = var1.
endif.
Gaurav
‎2007 Dec 11 6:44 AM
HI,
AND ALSO MAKE SURE,YOU ARE CALLING THIS PBO MODULE IN SCREEN FLOW!!!!!!!
Gaurav