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

Push Button Problem in Custom screen

Former Member
0 Likes
611

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..???

1 ACCEPTED SOLUTION
Read only

dani_mn
Active Contributor
0 Likes
525

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,

3 REPLIES 3
Read only

Former Member
0 Likes
525

Hi Pavan,

Check in debugging what happens when the control goes to event for the first time.

Regards,

Senthil

Read only

dani_mn
Active Contributor
0 Likes
526

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,

Read only

Former Member
0 Likes
525

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.