‎2008 Jun 19 5:31 AM
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.
‎2008 Jun 19 6:02 AM
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**********&
‎2008 Jun 19 5:40 AM
‎2008 Jun 19 5:57 AM
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.
‎2008 Jun 19 6:02 AM
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**********&
‎2008 Jun 19 7:21 AM
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
‎2008 Jun 19 7:34 AM
Hello aswini,
i am using modulepool program.
Can you tell me clearly where i write the code for module pool.
Thanks,
Sri.
‎2008 Jun 19 8:08 AM
Try this
case sy-ucomm.
when 'enter'.
if flag = inital.
..........................
endif.
endcase.