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

re: field exits

Hi,

Iam getting one problem while creating field exit for

tcode iw21. When i choose the activiteis tab, if there is no value in the table control first field then i raise error message( there is no activities defined) . But the error messge is reporting for each row when i choose the save button or any dialog. How can i rectify this problem.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2005 at 11:26 AM

    hi,

    i guess you raise the error message inside loop like

    in the screen flow logic

    loop at tablecontrol

    module mod1

    endloop

    in the mod1 you raise the error message.

    >> remove the previous error message in that place you just set one flag like error = 'X'

    define another module after loop there you check the flag and raise the error message.

    cheers,

    sasi

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      sasi,

      Iam creating field exit. Inside that field exit function module i have written the code like this.

      DATA: DYNTAB LIKE DYNPREAD OCCURS 0 WITH HEADER LINE.

      DYNTAB-FIELDNAME = 'VIQMEL-QMART'.

      APPEND DYNTAB.

      • *****

      CALL FUNCTION 'DYNP_VALUES_READ'

      EXPORTING

      dyname = 'SAPLIQS0'

      dynumb = '1050'

      tables

      dynpfields = DYNTAB.

      READ TABLE DYNTAB INDEX 1.

      ***logic for validations

      IF SY-TCODE = 'IW22'.

      IF DYNTAB-FIELDVALUE = 'M7'.

      IF INPUT EQ SPACE.

      MESSAGE E004(ZIW21).

      ENDIF.

      ENDIF.

      ENDIF.

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.