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

dialog problem

Former Member
0 Likes
571

Hi experts,

I have one query regarding dialog prog.

I have two normal screen 500 & 600. In screen 500(input screen) i entered the customer no. Now i wanted to know when i press execute button i wanted to go to screen 600 & it will display the same customer no as in screen 500 & customer's land.

anybody will tell me how to do it??

5 REPLIES 5
Read only

Former Member
0 Likes
518

Hi,

To navigate from scr 500 to 600, you need to write LEAVE TO SCREEN 600 in PAI of 500, the logic to retrieve the Customer land from the customer number ( Select query ) also to be written in PAI,

PAI - 500,

SELECT SINGLE LAND1

FROM KNA1

WHERE KUNNR = P_KUNNR ( Screen customer ),

if sy-subrc = 0.

leave to screen 600.

endif.

Hope this helps,

Rgds,

Read only

Former Member
0 Likes
518

Hi ,

1.

in PAI of cren 500 MODULE USER_COMMAND_0500 INPUT

case sy-ucomm.

when 'EXE'.

get the values from DB .

store it in a local var.

assign it to screen fields of screen 600 in PBO MODULE STATUS_0600 OUTPUT

call screen 600.

Regards,

Sumit.

Message was edited by: sumit kumar

Read only

Former Member
0 Likes
518

Give the same name to the customer number fields on both the screens.

When the user enters the value in screen 500, the same value will be retained by that variable and you can see the same in screen 600 if the field name is the same.

Hope this helps.

Sudha

Read only

Former Member
0 Likes
518

1. In the PBO of screen 500, copy the value of Customer Number field in a global field before going ot screen 600.

IN PAI of screen 600, populate this value on your customer number field. Extract Land Info from Customer Master Table.

PBO_screen_500.

case sy-ucomm.

when 'EXIT'.

g_cust_no = customer_no.

leave to screen 600.

endcase.

PAI_screen_600.

select single land1 from kna1

where kunnr eq g_cust_no.

customer_no = g_cust_no.

country = kna1-land1.

(assuming customer_no and country are the rspective field names for cust no and country on screen 600.)

Read only

Former Member
0 Likes
518

Hi,

Please do the following :-

In PAI of screen '500'(MODULE USER_COMMAND_0500 INPUT)

case sy-ucomm.

when 'EXE'.

get the values from DB .

store it in a local var.

leave to screen 600.

endcase.

In the PBO event of screen '600'(MODULE USER_COMMAND_0600 OUTPUT)

Assign the values stored in the local variables to corresponding screen field belonging to screen '600'.

Hope this will solve your problem.

Regards,

Anirban.