Application Development 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: 

How to get next screen by pressing F4 in a text box field in curr screen?

Former Member
0 Kudos

Hello Friends,

can anyone tell me ,How to get screen by pressing F4 in a text box field of a current screen?.

Thanks.

4 REPLIES 4

jayakummar
Active Participant
0 Kudos

hai jayshree,

at selection-screen on value request FIELD.

call screen screen no.

it will help you...

plzzz reward points if help ful.

regards,

jai.m

0 Kudos

Hi Jai,

ya its true but i want it in transaction screen i.e in PAI/PBO of screen module not in report.....so plz help me in this.

Thanks,

Jayshree

Former Member
0 Kudos

Hi,

refer the below code to provide F4 functionality for a filed in selection screen.

tables: mara.

data:

begin of x_matnr occurs 0,

matnr like mara-matnr,

end of x_matnr.

data:

l_dynprofld TYPE help_info-dynprofld,

L_MATNR(7) TYPE C VALUE 'P_MATNR',

L_PROG TYPE SY-REPID,

L_DYNNR TYPE SY-DYNNR.

parameters: p_matnr like mara-matnr.

at selection-screen on value-request for p_matnr.

PERFORM F_GET_VALUES.

&----


*& Form F_GET_VALUES

&----


  • text

----


  • --> p1 text

  • <-- p2 text

----


form F_GET_VALUES.

DATA: I_RETURN LIKE DDSHRETVAL OCCURS 0.

SElect matnr from mara into table x_matnr.

L_PROG = SY-REPID.

L_DYNNR = SY-DYNNR.

l_dynprofld = L_MATNR.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'MATNR'

DYNPPROG = L_PROG

DYNPNR = L_DYNNR

DYNPROFIELD = l_dynprofld

VALUE_ORG = 'S'

tables

value_tab = X_MATNR

RETURN_TAB = I_RETURN

  • EXCEPTIONS

  • PARAMETER_ERROR = 1

  • NO_VALUES_FOUND = 2

  • OTHERS = 3

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Reward if useful.

Thanks,

Sreeram.

0 Kudos

Hi sreeram,

Thanks for ur help but i want it in transaction not in report actually i have created one transaction code, in this when v wil in one of the textbox field n vil press F4 the standard SAP transaction screen should appear. so if u have an idea plz help me out.

Thanks,

Jayshree