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

Activation Error

Hi,

While trying to activate the program there is some error with the code.

(Field "Z217_POSIT-EMP_P" is unknown. It is neither in one of the...... )

this is the error message that is displayed.

DATA itab_work type table of z217_work with header line.
   SELECT * INTO itab_work from z217_work.

     itab_work-EMP_ID = Z217_PERSONAL-EMP_ID.
     itab_work-EMP_P = Z217_POSIT-EMP_P.  <------- not defined
     itab_work-DEPT = Z217_POSIT-DEPT.   <-------- not defined
     itab_work-SALARY = Z217_WORK-SALARY.

     APPEND itab_work.
     insert z217_work from itab_work.
     ENDSELECT.
     ENDFORM.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on Dec 18, 2008 at 09:36 AM

    When I look are your code extract I can only see that you have defined (declared) z217_work and not Z217_POSIT.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 18, 2008 at 10:51 AM

    Hi Wei Liang Loh,

    Declare Z217_POSIT-EMP_P.

    Instead of FROM use INTO i.e.

    insert z217_work from itab_work.

    insert z217_work INTO itab_work.

    With Regards,

    Anomitro Guha

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 18, 2008 at 01:44 PM

    Hi Wei,

    Welcome to SDN Forums !

    You must use the correct or most appropriate forum, so this thread will be moved from to .

    Please see the [Forum Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] before posting.

    Also read this thread .

    Greetings,

    Marcelo Ramos

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 18, 2008 at 02:15 PM

    Hi,

    It seems that u have defined Z217_POSIT that's why are getting the error as ' Z217_POSIT-EMP_P unknown'. see it properly.

    Regards

    Saurabh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 18, 2008 at 02:15 PM

    Hi,

    It seems that u have not defined Z217_POSIT that's why are getting the error as ' Z217_POSIT-EMP_P unknown'. see it properly. and define this where Z217_PERSONAL has been defined.

    Regards

    Saurabh

    Edited by: saurabh asthana on Dec 18, 2008 3:19 PM

    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.