Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how to switch between screens with data

hi guru,

i have two screens i.e. 100 and 200, screen 100 is modle dialog box it has purchase order number field and two push buttons enter and cancel.

by giving PO number press enter button it will goto the 200 screen and fetch the data related to purchase order number we given in 100 screen.how to write logic(how to write select statement)

where to write.

regards,

Tags:
Former Member
replied

Hi..

In the PAI of the screen 100 write the following thing. suppose wf_var is the field whose value u want to access in screen 200

constants :co_field1(13) type c 'MI_field1_100'.

The value of the constant shud be unique.

EXPORT wf_var TO DATABASE indx(st) ID co_field1.

make sure that co_field1 is not used previously and it is unique.

then in the PBO of screen 200.

declare the same field of the same type and use

IMPORT wf_var from DATABASE indx(st) ID co_field1.

then wf_var will contain the value that was thr in screen 100

Hope it is clear to you.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question