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

product information

$
0
0

hi;

can someone explain to me this different tabs about the product information with detail.

  


Production order picking using FIFO for non batch controlled items

$
0
0

Is there a way to use the date of receipt on a purchase order for FIFO purpose? 

Say I have one item number come in, but 10 skids of that item and we put the skids in 10 different locations. 

Will the date of receipt follow all 10 skids in different locations?

Problem While Creating a Production Order (Prodtable)

$
0
0

Good Morning,

In my company we're having some trouble, the thing is that we modify a BOM version and when we want to Estimate a order we found that the Estimation Process takes to long. Debugging the process we find the next piece of code (found in the BOMHierarchyCheck class):

boolean scanUpBOM(


BOMVersion version,
ConfigId config,
TransDate fromDate,
TransDate toDate,
boolean forceSubItemId // If true there must be a sub itemId
)
{
ConfigTable configTable;
boolean ret = true;

if (! this.insert(version.ItemId,''))
return false;
if (! super(version,'',fromDate,toDate,forceSubItemId))
return false;
this.delete(version.ItemId,'');

//
while select configTable
index hint ItemIdx
where configTable.ItemId == version.ItemId
{
if (! this.insert(configTable.ItemId,configTable.ConfigId))
return false;
if (! super(version,configTable.ConfigId,fromDate,toDate,forceSubItemId))
return false;
this.delete(configTable.ItemId,configTable.ConfigId);
}

if (checkValidate)
ret = version.validateWrite() && ret;

return ret;
}

And we find that the main cause of the issue is due to while in the configtable query. Since it checks every BOM config. Why the program does that? This process starts because of BOM in the BOMTable has a check on the CheckBom field. What would happen if I uncheck it? And what would happen if the system doesn't do the process related to the config table. 

Sorry for my english

And thank you before hand. 

RunBaseBatch used to parallel process long running report items.

$
0
0

DAX Tribe,

I need to do the following:

Process a large collection of FixedAsset.AgreementAmendmentTransfers and report on the results.

As these assets are independent, but must all get transferred against the same agreement amendment (which takes a long time -- perhaps a minute apiece) I'd like to batch them up.

So, in groups of X, I'll load a RunBaseBatch task and let the task process these agreement transfers asynchronously.

I see that I can achieve this without too much difficulty.

However, here's the rub, I'd like to get a call-back when all tasks are completed -- so that I can either present a report or send the report in email.

Now, I know that one should be able to just "Batch Tab" process this report - but unfortunately it's not a normal report. It's a Form based report that provides a complex "SELECT all the agreements you'd like to transfer."

So, CAN I either get a callback or interrogate the status of the BatchHeader spin-waiting while the tasks all complete? 

Or is there a better way to do this parallel task processing while remaining in the interactive UI? (In dotnet I'd just queue these up and alert the user when done.) But in X++?

Any assistance would be appreciated.

Thanks,

Dave

Update field of an grid in time real

$
0
0

Hello

I'm trying to update a field in a grid in real time in a order, but I can't find the way to do it. I don't know if actually exists a code to do that, somebody knows something about that?

Thank you.

Batch assignation when releasing and picking a sales order

$
0
0

I want the system to dictate the batch that needs to be picked based on the FEFO strategy, the easy solution would be to change the reservation hierarchy but we have some restriction that won't make this a viable solution so I was wondering if there's another way of having the system to assign the batch number.. perhaps at the time of the release to warehouse.

Thank you.

Setting Cost price at dimensions level instead of just site ax 2012 r2

$
0
0

Hi, 

Right now when i go to Item > manage Costs Tab > Click on Item Price > Select Pending Price Tab > Enter costing version, site, price etc. Save it and Activate it.  This is how i do to activate the cost price. Right now, it allows to specify a price for only site level. 

If i want to do it on dimension level in that site, the fields like size, color & style are not enabled. How can i enable those so i can setup cost price at dimensions level (Size, Config, Style, color) in that site?  

Thanks. 

ERROR when using AIF Service : SalesOrderService Create method with C#

$
0
0

Hi, everyone

I try to create saleorder with AIF Service with Console Application in C# but still have error .

Code in c#

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using TEST_WS_InsertSaleOrder.SalesOrderService;

 

namespace TEST_WS_InsertSaleOrder

{

class Program

{

static void Main(string[] args)

{

//SalesOrderService.AxdEntity_InventDim inventDim = new SalesOrderService.AxdEntity_InventDim();

//inventDim.InventSiteId = "PSC";

 

var line = new SalesOrderService.AxdEntity_SalesLine()

{

ItemId = "1000",

 

SalesQty = 42,

 

SalesUnit = "ea",

 

//InventDim = new SalesOrderService.AxdEntity_InventDim[] {inventDim}

 

};

 

var order = new SalesOrderService.AxdEntity_SalesTable()

 

{

 

CustAccount = "US-011",

 

PurchOrderFormNum = "ffg",

 

ReceiptDateRequested = DateTime.Now.Date,

 

SalesLine = new SalesOrderService.AxdEntity_SalesLine[] { line }

 

};

 

var orderList = new SalesOrderService.AxdEntity_SalesTable[] { order };

 

var callContext = new SalesOrderService.CallContext() { Company = "USMF" };

 

SalesOrderService.SalesOrderServiceClient client = new SalesOrderService.SalesOrderServiceClient();

 

 

 

 

 

// _salesOrder.SalesTable=orderList;

 

try

 

{

 

client.create(callContext, orderList);

 

 

 

 

 

// client.create(callContext, orderList);

 

client.Close();

 

}

 

catch

 

{

 

client.Abort();

 

throw;

 

}

}

 

}

}

ERROR in exception

Invalid document schema. The following error was returned:  The element 'SalesTable' in namespace 'schemas.microsoft.com/.../SalesOrder' has invalid child element 'PurchOrderFormNum' in namespace 'schemas.microsoft.com/.../SalesOrder'. List of possible elements expected: 'InventSiteId' in namespace 'schemas.microsoft.com/.../SalesOrder'.

Thank you for helping


Management Report not showing budget

$
0
0

Hi everyone,
Not sure what Information I should put here, but our management reporter doesn't show any budget.
Could anyone give use a clue how to fix this? We have tried to rebuild the data mart but to no avail.

Creating new customer and sale lines against that customers.

$
0
0

Hi,

sir How can we create a new customer.And creating a sale Line against that customers.

How to do calculation When your fields are stored in GroupID

$
0
0

All the fields show on the report which are stored in the GroupID and it based on how I code.
Example: Net Profit Amount this field exist because of it based on the code.

//Net Profit Amount

        while select sum(BOMCalcCostPricePcs) from itemPlannedCostSumTmp
     group by   VersionId,
                VersionName,
                ItemId,
                ItemName,
                CalcQty,
                UnitId,
                StandardInventColorId,
                BOMId,
                CostGroupId
        where   itemPlannedCostSumTmp.CostGroupId != 'DirectLAB' && itemPlannedCostSumTmp.CostGroupId != 'DirectOHD' && itemPlannedCostSumTmp.CostGroupId != 'Material'
                && itemPlannedCostSumTmp.CostGroupId != 'Packing' && itemPlannedCostSumTmp.CostGroupId != 'Total cost' && itemPlannedCostSumTmp.CostGroupId != 'Up_l'
                && itemPlannedCostSumTmp.CostGroupId != 'Up_kg' && itemPlannedCostSumTmp.CostGroupId != 'Margin'
                && itemPlannedCostSumTmp.CostGroupId != 'Production cost' && itemPlannedCostSumTmp.CostGroupId != 'Est.price'
    {
        variableCost = itemPlannedCostSumTmp.BOMCalcCostPricePcs;


          itemPlannedCostSumTmp.CostGroupId    = 'Net profit';
          itemPlannedCostSumTmp.CostGroupName  = 'Net Profit Amount';
          itemPlannedCostSumTmp.Priority       = 400;
          itemPlannedCostSumTmp.BOMCalcCostPricePcs = decRound(netProfitAmount,2);
          itemPlannedCostSumTmp.insert();
    }


This is the Net Profit Amount if I delete the above portion. It will becomes like this 

This is just the concept for you all and how I do. 

For now, How am I going to do calculation like 
EST Sales Price - Total cost - Variable cost = Net Profit Amount 
Based on the groupID

I can't do like myTable.EST Sales Price - myTableTotal cost - myTable.Variable cost = myTable.Net Profit Amount 
because it based on GroupID not it's own field

Add field in crystal report

$
0
0

 

im adding a field in custinvoicejourtmp table. can u please help me out how can i display data against this field?

Query in sales order packing slip posting locking table and hence getting deadlock issue

$
0
0

Hi Experts,

we are continuously getting deadlock error and we have identified the source of lock at the time of packing slip posting and record deleting from SalesParmLine_IN table, This method is executing 3 times in one packing slip posting and we have 8 user which continuously posting packing slip 
Here is the details
Class Name : SalesFormletterParmDataPackingslip
Method Name : removeRecIdSuspension
 
Query which getting lock  the table 
 this condition is taking around 3 seconds to execute hence we are getting deadlock error because of continuous posting by 8 users
Requesting experts to guide me to resolve the issue

(AIF) Inventory dimension Color is a product dimension and must consequently be specified.

$
0
0

Hello :)

I'm using Microsoft Dynamics AX 2012 R3 Cumulative 11

I follow this article to call the SalesOrderServices

http://developerzhub.com/blog/?p=46

This is my code in VS project to call the service

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TestAIF.SalesOrderService;

namespace TestAIF
{
    class Program
    {
        static void Main(string[] args)
        {
            var salesOrder = new SalesOrder();
            salesOrder.Create();
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TestAIF.SalesOrderService;

namespace TestAIF
{
    class SalesOrder
    {
        public void Create()
        {
            SalesOrderServiceClient proxy = new SalesOrderServiceClient();

            proxy.ClientCredentials.Windows.ClientCredential.Domain = "Domain";
            proxy.ClientCredentials.Windows.ClientCredential.UserName = "UserID";
            proxy.ClientCredentials.Windows.ClientCredential.Password = "Password";

            AxdType_DimensionAttributeValue businessUnit = new AxdType_DimensionAttributeValue();
            businessUnit.Name = "BusinessUnit";
            dimA_BusinessUnit.Value = "xxx";

            AxdType_DimensionAttributeValue department = new AxdType_DimensionAttributeValue();
            department.Name = "Department";
            department.Value = "xxx";

            AxdType_DimensionAttributeValueSet valueSet = new AxdType_DimensionAttributeValueSet();
            valueSet.Values = new AxdType_DimensionAttributeValue[2] { businessUnit, department };

            var inventDim = new AxdEntity_InventDim
            {
                InventSiteId = "xxx",
                InventLocationId = "xx-xx-xx",
                InventDimId = "xxx-xxxxx"
                
            };

            
            
            var line = new AxdEntity_SalesLine()
            {
                ItemId = "xxxxxxxxx",
                SalesQty = 22,
                SalesUnit = "Pcs",
                SalesType = AxdEnum_SalesType.Sales,
                DefaultDimension = valueSet,
                InventDim = new AxdEntity_InventDim[1] { inventDim }
                
            };

            var order = new AxdEntity_SalesTable()
            {
                CustAccount = "xxxx",
                InvoiceAccount = "xxxx",
                PurchOrderFormNum = "xxxx",
                DefaultDimension = valueSet,
                DeliveryDate = DateTime.Today,
                SalesLine = new AxdEntity_SalesLine[1] { line }
                
            };

            var orderList = new AxdEntity_SalesTable[] { order };
            var callContext = new CallContext() { Company = "xxx" };
            var client = new SalesOrderServiceClient();

            try
            {
                client.create(callContext, orderList);
                client.Close();
            }
            catch (Exception)
            {
                client.Abort();
                throw;
            }
        }
    }
}

when i run it from VS project i got this exception on Microsoft Dynamics 

I thought I get this problem because I missing some fields in InventDim.

I back to inbound port and deactivate the service and click on Data policies button and this is only the fields related to inventDim 

 I can't find InventColor, InventSize and so on 

Can i get some help

Want to add a check box on a form and when the check box is checked , One field will enable on the form below the check box.

$
0
0

Hello all,

Want to add a check box on a form and when the check box is checked , One field will enable on the form below the check box.

Where I can write the code to do so and what line of code I will write to attain my goal.

Thank You

Siddhant


Several properties in the AX tables don't appear in the proxy code generated from AccountsPayableServices wsdl

$
0
0

Hello all,

I am trying to create Proxy code (.cs file) using svcutil.exe over AccountsPayableServices wsdl (say: http://<FQDN>:8101/DynamicsAx/Services/AccountsPayableServices).

Underneath the class VendVendInvoiceService (inside AccountsPayableServices) there's a Table called VendInvoiceInfoTable which has a lot of Properties.

Now in the proxy code so formed by SvcUtil.exe, after I opened the class VendInvoiceInfoTable, I can find only some of the properties there, but not all.

Properties like Approver, Approved, Description, Ordering, Hold, etc and so many others are not present in the proxy code .cs file.

Below attached are screenshots of

  • VendInvoiceInfoTable in AOT showing its Properties like Approver and Approved.
  • VendInvoiceInfoTable class definition inside the proxy code so created which doesn't have these properties defined there.

Why is it so? And how can I make sure these properties are available in the proxy code?

Cannot create a record in Dimension code combination (DimensionAttributeValueCombination)

$
0
0

We have developed a tool by which we have imported the budget with excel and now trying to validate it and we are getting below error:

Cannot create a record in Dimension code combination (DimensionAttributeValueCombination). Combination display: 5100530-01-113-103-MZT1-1042.

The record already exists.

Can someone put light on this error.

Posting payment journal with customer payments

$
0
0

Hi,

anyone guide me on how to post the payment journal by adding the lines through ' Enter customer payments' process by X++ code?-in order to revert the duplicate transactions made on customer accounts

Retention and sales tax calculation in project invoice

$
0
0

What is the standard  system behavior to calculate tax and retention

Invoice 10,000

Vat or sales 5%

Retention 5%

Advance deductions  6,000

Answer as following please

Retention amount =?

Tax amount =?

Invoice net amount=?

Please advice

Time sheet registration in mobile device Dynamcis 365 for operations

$
0
0

Hi

We are having a demo environment setup, and we are using the company USSi. We have published the mobile Time-entry workspace. We have also published the expense managment workspace. The Expense managment app is working fine. All registerd expenses are sent to D365FO and automatically approved. I have also set up an automatic approval for Time-sheets. The process is working within D365FO. but not from the APP...We get the Errormessage "The arrayindex with Index 8 overflow the Field Array in table, TSTIMESHEETLINEWEEK. (Now when I am writing, my problem may be, that the automatick approval is the problem)...I do not have the submit button in the Mobile Device, and then I can not push it throug the automatic workflow.??

Viewing all 72043 articles
Browse latest View live


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