Skip to Content
author's profile photo Former Member
Former Member

Screen Text

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    Posted on Jun 19, 2008 at 05: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**********&

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 19, 2008 at 04:40 AM

    Hi Try with

    F4IF_INT_TABLE_VALUE_REQUEST

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 04: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 06: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 06:34 AM

    Hello aswini,

    i am using modulepool program.

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

    Thanks,

    Sri.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 07:08 AM

    Try this

    case sy-ucomm.

    when 'enter'.

    if flag = inital.

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

    endif.

    endcase.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.