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

Screen Text

Former Member
0 Likes
848

Hello,

I have developed a screen in that screen i have declared 2 I/O Fields side by side.Means plant and plant text need to display sid by side. When ever i select plant using the F4 help(standerd for Plant) the plant text does not updated into the screen.But the Text is updated when i press the 'ENTER' Key word.

I have used one FM regarding this Functionality:

Code:

IF NOT gs_0410-mawerk IS INITIAL.

SELECT SINGLE name1 FROM t001w INTO (gs_0410-mawerktx)

WHERE werks EQ gs_0410-mawerk .

REFRESH l_t_dynpread.

CLEAR l_t_dynpread.

l_t_dynpread-fieldname = 'GS_0410-MAWERK'.

l_t_dynpread-fieldvalue = gs_0410-mawerk.

APPEND l_t_dynpread.

l_t_dynpread-fieldname = 'GS_0410-MAWERKTX'.

l_t_dynpread-fieldvalue = gs_0410-mawerktx.

APPEND l_t_dynpread.

CALL FUNCTION 'DYNP_VALUES_UPDATE'

EXPORTING

dyname = sy-repid

dynumb = sy-dynnr

TABLES

dynpfields = l_t_dynpread

EXCEPTIONS

invalid_abapworkarea = 1

invalid_dynprofield = 2

invalid_dynproname = 3

invalid_dynpronummer = 4

invalid_request = 5

no_fielddescription = 6

undefind_error = 7

OTHERS = 8.

ELSE.

CLEAR gs_0410-mawerktx.

ENDIF.

its not working.

Can any one clarify me is it possible for stadard F4 help.becouse i am using standard F4 help to get the plant.

If i use custom search help for selecting material number and material-text using FM

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

it is working fine.Means without Press 'Enter' key the text is automatically updating.

reward the points.

Thanks,

Sri.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
769

Hi Sridhar,

Once you are done with the plant then put loop at screen and modify plant text.

It will resolve your problem

&********** Reward Point if helpful**********&

6 REPLIES 6
Read only

former_member195383
Active Contributor
0 Likes
769

Hi Try with

F4IF_INT_TABLE_VALUE_REQUEST

Read only

Former Member
0 Likes
769

Hi Sri,

after the FM calling, select the Plant Text for the appropriate table.

assign the text field with the plant text and refresh the screen.

this might help you out.

regards,

teja.

Read only

Former Member
0 Likes
770

Hi Sridhar,

Once you are done with the plant then put loop at screen and modify plant text.

It will resolve your problem

&********** Reward Point if helpful**********&

Read only

Former Member
0 Likes
769

Hi.

Are u doing in executable program(SE38) or modulepool program (SE51) .

If it is in SE38 refer both the fields from dictonary using

parameters:

p_plant type <dbtable plant type>,

p_plantt type <dbtable plant name1 type>.

once value is entered into plant field and then enter is pressed take that sy-ucomm and write code in AT SELECTION-SCREEN event as setting some flag.

AT SELECTION-SCREEN.

IF SY-UCOMM EQ SPACE (for enter sy-ucomm is space if not check using debugging)

wv_flag = 1.

END IF.

In AT SELECTION-SCREEN OUTPUT use this flag to modify screen under loop and endloop.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-NAME = < plant text field name>

IF W_FLAG IN NOT INITIAL.

select single text into text field from dbtable where plant eq entered plant value.

CLEAR W_FLAG.

ENDIF.

modify screen.

ENDIF.

ENDLOOP.

for module pool program apply same thing using PBO and PAI events.

PLZ Reward points, if helpful.

Rregards.

Edited by: ASWINI SAMMETA on Jun 19, 2008 8:22 AM

Read only

Former Member
0 Likes
769

Hello aswini,

i am using modulepool program.

Can you tell me clearly where i write the code for module pool.

Thanks,

Sri.

Read only

Former Member
0 Likes
769

Try this

case sy-ucomm.

when 'enter'.

if flag = inital.

..........................

endif.

endcase.