‎2006 Aug 29 7:08 AM
Hi All..
Hi All..
In my custom screen, i have 2 (A1, A2) input boxes with F4 option and a Push Button..
When i select the data in these input boxes, i will click Push Button (COPY) to transfer the data from these (A1, A2) to other two input Boxes (B1, B2)..
But data are displaying in (B1, B2), if and only if i click the Push Button 2 times..
How to make the code to display those data from A1-A2 to B1-B2 by Single click..???
‎2006 Aug 29 7:13 AM
HI,
The problem is that before the data is copied form the screen to variables you are copying it into other variables. so data is not coming in first time.
In which module you are copying the data from A1 to B1.
Try to do copy in last module of PAI.
OR
do it in PBO.
Regards,
‎2006 Aug 29 7:12 AM
Hi Pavan,
Check in debugging what happens when the control goes to event for the first time.
Regards,
Senthil
‎2006 Aug 29 7:13 AM
HI,
The problem is that before the data is copied form the screen to variables you are copying it into other variables. so data is not coming in first time.
In which module you are copying the data from A1 to B1.
Try to do copy in last module of PAI.
OR
do it in PBO.
Regards,
‎2006 Aug 29 7:28 AM
In PAI, I have coded the lines as follow..
Still i need to click 2 times to get the data displayed in B1,B2..
****PAI*****
when 'COPY'.
select bezei from tka01 into (it_sap-name) where kokrs = A1.
endselect.
select msehi from tka03 into (it_sap-unit_of_meas)
where kokrs = A2 and STAGR = A1.
endselect.
B1 = it_sap-name.
B2 = it_sap-unit_of_meas.