cancel
Showing results for 
Search instead for 
Did you mean: 

Error "Importing parameter Amount-Currency_Code is initial"

former_member253394
Participant
0 Kudos

Hi All,

I have a requirement if i change the currency in the header, the currency should also be change in one of the Tab which is working properly but it is giving Error as shown below:

Can you please tell how to resolve this.

Thanks & Regards,

Malkit Singh

Accepted Solutions (0)

Answers (1)

Answers (1)

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Malkit,

Ist this a Custom BO or an extension to an SAP BO?

From the message "Importing parameter" it sounds more like an SAP BO.

Bye,

  Horst

former_member253394
Participant
0 Kudos

Hi Horst,

It is custom BO but using standard currency field in the header.

Thanks,

Malkit Singh

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Malkit,

So, it's your coding which is raising the message.

Can you share the BO definition?

Bye,

   Horst

former_member253394
Participant
0 Kudos

Hi Horst,

I have declare the fields as shown below:

Is something i need to do extra?

Thanks,

Malkit Singh

Former Member
0 Kudos

Hi Malkit,

can you share the ABSL Coding with us in which you are transporting the value between the fields?

I think it is an additional initial check that should be added to your code.

Best regards

Tobias

former_member253394
Participant
0 Kudos

Hi Tobias,

Sorry i cant share the code as this is project related, please as suggested should i need to Add extra initial check for currency?

Thanks,

Malkit Singh

Former Member
0 Kudos

Hi Malkit,

for the problem analysis it would be enougth if you could share only the line of code where you interact with your currency codes. So that we can see if there is something like an "if (Currency.IsInitial() == false){...." to add around.

Best regards

Tobias

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Malkit,

From the message it must be around some API call because the AMOUNT-CURRENCY_CODE is mentioned as "importing parameter".

Bye,

   Horst

Former Member
0 Kudos


Hello Malkit,


have resolved the issue ?

if yes,could you guide me how you had resolved the issue.


Regards,

Prasad

Former Member
0 Kudos

I had this problem in the past. It happened when using String operations over empty fields.

For instance: call a 'Trim()' operation over an empty String field.

Thanks.

Fernando

former_member253394
Participant
0 Kudos

Hi Fernando,

Yes, for my solution it is resolved. You need to check, if the string is empty don't perform this operation. Moreover this error might be coming when you are passing an empty string to a instance filed(element).

Thanks,

Malkit Singh

former_member253394
Participant
0 Kudos

Hi Prasad,

Sorry for the late reply. Did you resolve the issue?.

You need to perform check on the empty currency. If empty, dont pass the value in the field.

This will resolve your issue.

Thanks,

Malkit Singh

Former Member
0 Kudos

Hi,

i had resolved the issue.

Regards,

Prasad