cancel
Showing results for 
Search instead for 
Did you mean: 

start routine for base unit

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi

it is - not _

<b>

DATA_PACKAGE-BASE_UOM</b>

Former Member
0 Kudos

HI

can u please give me the right code

Former Member
0 Kudos

Hi Sampath,

Can you try this and let me know if it works...

loop at data_package.

if data_package-base_uom <> 'EA'.

data_package-base_uom = 'EA'.

modify data_package.

endif.

endloop.

Cheers,

Praveen.

Message was edited by:

Praveen Mathew

Former Member
0 Kudos

hi

no i does not worked i got the same error

Former Member
0 Kudos

I GOT THIS ERROR

E:The field "DATA_PACKAGE" is unknown, but there is a field with the

similar name "DATAPAK". "DATAPAK".

Former Member
0 Kudos

Hi Sampath,

As you need EA always, why dont you make the update of this field using a Constant, instead of manipulating in the start routine.

Check this link for details.

http://help.sap.com/saphelp_nw04/helpdata/en/80/1a64e0e07211d2acb80000e829fbfe/frameset.htm

Cheers,

Praveen.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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