cancel
Showing results for 
Search instead for 
Did you mean: 

Error during transport: A DECIMALS specification must be made with P typesin the OO context

Former Member
0 Kudos

Hi

I am transporting my Gateway request to our Q envorinment, but when we transport we got the error: "A DECIMALS specification must be made with P typesin the OO context"

In our gateway service, we call (and is mapping) our data to a FM from backend (FM: ZMM_VH_EQUNR_FROM_TPLNR_LIST). The fields we are mapping to, is

ZZ_KM_FROM  Datatype: DEC, Length: 7  Decimals 3

ZZ_KM_TO  Datatype: DEC, Length: 7  Decimals 3

In gateway the fields (ZZ_KM_FROM and ZZ_KM_TO) are specified as:

Edm.Decimal

Max length 16

Category: Internal type

Type: Packed

Length: 11

Decimals 4

I guess above can be the reason, but what is the correct to set in the gateway?

Anyone who will help me?

regards
Lars

Accepted Solutions (1)

Accepted Solutions (1)

former_member184867
Active Contributor
0 Kudos

Hello Lars,

1.Which version of Gateway are you using.

2.What code is generated in MPC  for property ZZ_KM_FROM and ZZ_KM_TO .

3.In which class you are getting the syntax error and what is the erroneous code ?

Regards,

Atanu

Former Member
0 Kudos

Hi Atanu

1) Our version is 2.0 SP 6

2) I can not see, that anything related to ZZ_KM_FROM and ZZ_KM_TO is created in MPC

3) I got the error in this include ZIF_ZMM_VH_EQUNR_DETAIL=======IU where the error description is: "Program ZIF_ZMM_VH_EQUNR_DETAIL=======IP, Include ZIF_ZMM_VH_EQUNR_DETAIL=======IU: Syntax error in line 000574

A DECIMALS specification must be made with P typesin the OO context."

The code looks like this

begin of ZMDC_HISTORY_STRUCTURE,
       ZZ_INDMELDT_AF type C length 000012,
       ZZ_INDMELDT_DATO type DATS,
       ZZ_KM_FRA type P length 000004,
       ZZ_KM_TIL type P length 000004,
       ZZ_OFFSET type P length 000007,
     end of ZMDC_HISTORY_STRUCTURE .


(line 574 is marked with bold)


Does above give you any chance to help me further?


Thanks in advance


Lars

former_member184867
Active Contributor
0 Kudos

You can manually  edit the code and specify something like

ZZ_KM_FRA TYPE P LENGTH 11 DECIMALS 4 to get rid of the error.

BR,

Atanu

Former Member
0 Kudos

Hi Atanu

Thanks, I will do that.

As the first transport went wrong, how should I need ensure, that I got all objects transported. Should I just add all objects from my first transport, to my new transport?

Lars

former_member184867
Active Contributor
0 Kudos

Not sure... but I think all the objects form your old transport and the new code for fix you can re transport once again ..

Answers (0)