Skip to Content
author's profile photo
Former Member

start routine for base unit

hi friends

i need to give a start routine for my baseunit.

i need my baseunit always EA,

i get the data from the flat file , so what ever the unit they mention there in the flat file if it is not equal to 'EA', then it should take it as EA.

i gave code like this

IF COMM_STRUCTURE-0BASE_UOM NE ‘EA’

APPEND 'EA'

then i got this error

E:Field "COMM_STRUCTURE-0BASE_UOM" is unknown. It is neither in one of

the specified tables nor defined by a "DATA" statement. "DATA" statement.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 10:20 AM

    Hi Sampath,

    Instead of COMM_STRUCTURE-0BASE_UOM, use

    COMM_STRUCTURE-BASE_UOM without the "0". The fields in the communication structure saved in database will not have "0" prefix.

    Let me know if this solves your problem.

    Regards,

    Praveen.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      hi praveen

      thaks for your answer

      it is a start routine

      so i changed the routine

      IF DATA-PAKAGE_BASE_UOM NE 'EA'

      APPEND 'EA'

      even though i got the same error

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 10:30 AM

    Hi Sampath,

    In start toutine the data is considered in terms of DATA PACKAGES.

    It is not communication structure that you should be using.

    It is like this,

    DATA_PACKAGE-BASE_UOM

    Please change the code and check now.

    Assign points if useful.

    Regards

    rudra

    Add comment
    10|10000 characters needed characters exceeded