Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all 175888 articles
Browse latest View live

Report as finished Journal - Item doesn't have unit sequence group id error

$
0
0

Hello All,

I am using production orders in AX 2012 R3. After the "start" phase of production order I am using Report as finished and I am getting below error and still status showing as "start".


RE: FormStringControl object not initialized.

$
0
0

Hi Crispin,

I placed this code in the init method before super()

RE: Direct delivery error

$
0
0

I cant, the field is un type-able

Direct delivery error

$
0
0

Hi, so i tried to do Direct Delivery sales order but I cannot tick the include checkbox to select the line.

it says "Sales line has one or more marked transactions and cannot be included."

RE: FormStringControl object not initialized.

$
0
0

Hi Martin,

My apologies. Won't happen again.

I'm using this code to place a value on my form string edit or the field in the table I created via getting the args().parm() value.

With what you said I was able to place the value.

As I understood, the TableName_FieldName is not yet created before super()

So instead, I should place the value on the data source field like so:

TableName.FieldName = MyValue.

Please correct me if I'm wrong. Also, thanks for the help!

RE: FormStringControl object not initialized.

$
0
0

Hi Miguel Zuñiga,

Form controls and data sources would be initialized after super() of init(), so just place   HSTollingAgreementDetails_RefSalesAgreementId.text(salesAgreementId); after super() and it should work.

FormStringControl object not initialized.

$
0
0

I am trying to place a value from Args into my form object like so:

TableName_FieldName.text(value);

then the error came up. So I tried to check if a random word will still prompt the error:

TableName_FieldName.text("hello");

but it still does.

What could be wrong?

RE: Computed Column in View with Condition

$
0
0

Hi Denny Dharmawan,

When you sync view AX will pick up one of the select statements you have and use it in a view. So you need to actually have if else logic in the select statement, not in x++ code. You may use SysComputedColumn::if() for that.


Computed Column in View with Condition

$
0
0

Hello, I'm trying to make a computed column with condition.

If TransactionCurrencyAmount >0, use LedgerJournalTrans.IVS_AssignmentParty(custom field) to get AccountNum. Else use CustTrans to get AccountNum.

But my condition seems to be not working. The value in view is always obtained from LedgerJournalTrans, no matter what the TransactionCurrencyAmount value is.

public static server str getAccountNum()
{
    SysDictTable CustTable          = new SysDictTable(tableNum(CustTable));
    SysDictTable CustTrans          = new SysDictTable(tableNum(CustTrans));
    SysDictTable LedgerJournalTrans = new SysDictTable(tableNum(LedgerJournalTrans));

    str amount, strQuery;
    DictView dv = new DictView(tableNum(IVS_InsuranceTransactionList_v));

    amount = SysComputedColumn::returnField(
                tableStr(IVS_InsuranceTransactionList_v),
                identifierStr(GeneralJournalAccountEntry),
                fieldStr(GeneralJournalAccountEntry, TransactionCurrencyAmount));

    if(any2real(amount) < 0)
    {
        strQuery = strFmt("SELECT TOP 1 %1 FROM %2 WHERE %2.%3 = %4 AND %2.%5 = %6",
            CustTrans.fieldName(fieldNum(CustTrans, AccountNum), DbBackend::Sql),
            CustTrans.name(DbBackend::Sql),
            CustTrans.fieldName(fieldNum(CustTrans, Voucher), DbBackend::Sql),
            dv.computedColumnString(tableStr(GeneralJournalEntry), fieldStr(GeneralJournalEntry, SubledgerVoucher), FieldNameGenerationMode::WhereClause),
            CustTrans.fieldName(fieldNum(CustTrans, TransDate), DbBackend::Sql),
            dv.computedColumnString(tableStr(GeneralJournalEntry), fieldStr(GeneralJournalEntry, AccountingDate), FieldNameGenerationMode::WhereClause));

    }
    else
    {
        strQuery = strFmt("SELECT TOP 1 %1 FROM %2 WHERE %2.%1 != '' AND %2.%3 = %4 AND %2.%5 = %6",
            LedgerJournalTrans.fieldName(fieldNum(LedgerJournalTrans, IVS_AssignmentParty), DbBackend::Sql),
            LedgerJournalTrans.name(DbBackend::Sql),
            LedgerJournalTrans.fieldName(fieldNum(LedgerJournalTrans, Voucher), DbBackend::Sql),
            dv.computedColumnString(tableStr(GeneralJournalEntry), fieldStr(GeneralJournalEntry, SubledgerVoucher), FieldNameGenerationMode::WhereClause),
            LedgerJournalTrans.fieldName(fieldNum(LedgerJournalTrans, TransDate), DbBackend::Sql),
            dv.computedColumnString(tableStr(GeneralJournalEntry), fieldStr(GeneralJournalEntry, AccountingDate), FieldNameGenerationMode::WhereClause));
    }

    return strFmt('ISNULL((%1), \'\')', strQuery);
}


RE: VAT Implementation in Sales Order Report

$
0
0

Dear Sukrut Parab,

I want to show VAT value on my company report. The report is already exist, just want to change the format of that report, for example, they need VAT field there in report. The Field is "Actual Sales Tax Amount" as VAT in sales Order Form. Location of field is /Accounts receivable/Common/Sales orders/All sales orders.Double-click on any sales order and then -> Sell tab-> Sales tax Tax action pane button. There you will found(Total Actual sales Tax Amount.)So this field as well as (Discount) Field i want to show on my report.

RE: Ax 2012 R3 Inventory Aging report Issue

$
0
0

1- Go to the AOT --> Classes --> SrsReportRunRdpPreProcessStrategy --> Method new

2- Right click and Compare

3- You will find that the VAT hotfix changed this method to create a new user connection for all reports of type "SrsReportDataProviderPreProcess"

4- As a quick fix, I applied the following changes:

I added an if statement to check if the report calling the abstract class is InventAgingDP, execute the code as SYS layer (Before hotfix installation), otherwise execute SYP layer code

//SYS Layer

if(_rdpInstance is InventAgingDP)

{

        uc = new UserConnection();

}

//SYP Layer

else

{

        uc = SysCountryRegionCode::isLegalEntityInCountryRegion([#isoSA]) ? new UserConnection(true) : new UserConnection();

}

Ax 2012 R3 Inventory Aging report Issue

$
0
0

Hi all, 

We had applied a Patch for Local VAT enabling on dynamics ax 2012 R3 at a client, after the application of patch the inventory aging report stopped working and when we print it the report runs but in the actual report we get the following error. 

There is no data available 

Prior all was running fine, we had tried recompiling, redeploying the report, regenerating CIL, refreshing cache, restarting AOS services, restarting the Reporting service and everything imaginable but still the issue is the same. We even compared the Pre patch and Post patch versions of the report and found no difference. 

Any help in this regards will be greatly appreciated ! 

RE: Product Receipt is disabled but the Status is received

$
0
0

Can you share print screen from product receipt

RE: Direct delivery error

$
0
0

Probably because the quarantine order is holding it, complete that. Is this a live system or are you testing?

RE: Product Receipt is disabled but the Status is received

$
0
0

Hello TristanPal,

Can you identify a posted product receipt journal and check the voucher that has been generated?

Best regards,

Ludwig


RE: Cannot receive a Transfer order from a Transit WH to the destination WH.

$
0
0

Hi Steven, the Inventory cost model used for the item is Moving average.

RE: Cannot receive a Transfer order from a Transit WH to the destination WH.

$
0
0

Hi Crispin, this is not a CW item.

RE: Record costs

$
0
0

Hello Kim,

What you describe sounds like the standard production subcontracting process. So you have a production expert around who can show you details of this process.

Best regards

Ludwig

Record costs

$
0
0

Hi All,
If you buy inventory and hire someone to produce it, how do you record the cost of your inventory and the cost of hire someone to produce it?  
When you place a purchase order (purchase inventory), the cost of inventory is recorded. 
When you receive an invoice from a manufacture who produced/made the product for you, you record labor cost.   Where would you go to record labor cost which post to that item?   

At the end, how do you calculate the total cost to produce that item?  Would you need a Cost Sheet?  Could someone sheds light to this issue? Thanks so much!

RE: Import Free text invoice from Excel

$
0
0

Hi,

This is possible but you have to make use of the AIF and create an excel template. All of this takes time. Can't you simply use the data import export framework?

Best regards

Ludwig

Viewing all 175888 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>