PurchCommitmentHeader_PSN ::isCommitmentFutureEnabled

static void Job17(Args _args)

{

AmountMST amountMS=0.00;

int amount;

str amountStr;

;

amount = real2int(amountMS);

if(amount==0)

{

amountStr=int2str(amount);

amountStr=“NILL”;

info(strFmt("%1",amountStr));

}

}

Dear Raman, you forgot to ask any question and to explain how the code is related to it.

static void Job17(Args _args)

{

ExciseAmount exciseAmount ;

int amount;

str amountStr;

;

amount = real2int(exciseAmount );

if(amount==0)

{

amountStr=int2str(amount);

amountStr=“NILL”;

info(strFmt("%1",amountStr));

}

}

when open existing purchase orders i got this error.

What error? How is it related to real2string?

Guys, try to write something sensible, not just random sentences or code snippets. This thread is a candidate for deletion.

when i am opening existing purchase order i got this error.

function PurchCommitmentHeader_PSN::isCommitmentFutureEnabled has been incorrectly called

Please reply

Hi,

As a courtesy to others including moderators, please post your queries with correct headings.

Regarding your query -

I don’t see the method you mentioned in this table. Instead I only see ‘isCommitmentsFeatureEnabled’ method.

By default this method is set to return true if commitments feature is enabled. Otherwise this will throw wrong use of function error.

Based on your requirement, you will have to enable this feature.

This is actually related to French regulatory. disable the configuration , if you are not using it.

Try to debug and see to know more details in this case.

Hi Kranthi,

I have same error “PurchCommitmentHeader_PSN::isCommitmentsFeatureEnabled has been incorrectly called”

Please help me…

Thanks

darshana

Hi Kranthi,

Where do I have to disable this configuration?