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

Get Financial Dimension value (Department) using X++ code in PurchPurchaseOrder DP For PO Report

$
0
0

Hi Guy's I want to Get ConstCenter(Dimension ) in PO Report  my code is 

private str 255 getDeprtmentDim( PurchId _purchid)
//private PurchId getDeprtmentDim( )

{
//PurchId _purchid;
PurchTable PurchTable;
PurchLine PurchLine;
DimensionAttributeValueSet dimAttrValueSet;
DimensionAttributeValueSetItem dimAttrValueSetItem;
DimensionAttributeValue dimAttrValue;
DimensionAttribute dimAttr;
Common dimensionValueEntity;
;

// Find our supplier
// PurchLine = PurchLine::find('PO-00078');
PurchTable= PurchTable::find(_purchid);

// Find the dimension value set that the vendor points to (for specifying the
// 'default' dimensions). This table is used as a sort of 'header' that the
// value set items (DimensionAttributeValueSetItem) records belong to.
//dimAttrValueSet = DimensionAttributeValueSet::find(PurchLine.DefaultDimension);
dimAttrValueSet = DimensionAttributeValueSet::find(PurchTable.DefaultDimension);

// Find all of the 'value set items' linked against the 'value set'
while select dimAttrValueSetItem
where dimAttrValueSetItem.DimensionAttributeValueSet == dimAttrValueSet.RecId
{
// Find the dimension 'value' (DimensionAttributeValue) that the set item points to.
dimAttrValue = DimensionAttributeValue::find(dimAttrValueSetItem.DimensionAttributeValue);

// Find the underlying attribute.
dimAttr = DimensionAttribute::find(dimAttrValue.DimensionAttribute);

// Use the helper class to obtain a reference to the underlying entity (can be anything)
dimensionValueEntity = DimensionDefaultingControllerBase::findBackingEntityInstance(
curext(),
dimAttr,
dimAttrValue.EntityInstance);

//info(dimAttr.Name + ' ' + dimAttrValue.getValue());
If(dimAttr.Name=='Department')
{
return dimAttrValue.getValue();
}

}

return '';
}

 

if this code is fine then how to insert in PurchPurchaseOrderHeader Table and i also add field in

PurchPurchaseOrderHeader table 

please help me 

Thanks 


RE: Incorrect issued cost - weight average method

$
0
0

Hi,

Check the setup for Storage Dimension Group Financial Inventory (Yes) for the Item Model Group that the item belongs to. (Product information management > Setup > Dimension groups > Storage dimension groups.)

Unable to generate payment journal ( insuffucient access message )

$
0
0

Hi 

I am trying to run a payment journal from system and suddenly I got this message " Error while setting server report parameters. Error message: The permissions granted to user 'domain\adminuser' are insufficient for performing this operation. (rsAccessDenied)

I checked the report configuration and it shows ok and I'm not sure from where I need to give the access

can any one help please ?

What does derived hierarchy means in AX 2012 financial dimensions?

$
0
0

What does derived hierarchy means in AX 2012 financial dimensions? And how to create this hierarchy?

Underdelivery of line is 20.00 percent, but the allowed underdelivery is only 0.00 percent.

$
0
0

Hi

Currently we are not using underdelivery and overdelivery functionality,we have a scenerio in which there are 5 quantity of an item and its transaction are

1 quantity invoiced

1 quantity ordered 

3 quantity registered

Now, I am posting a product receipt against the 3 quantity registered then system through the error "Underdelivery of line is 20.00 percent, but the allowed underdelivery is only 0.00 percent'.

And other Purchase order with the same scenario is able to post the GRN,

this error is occurred only for few PO's and we don't want to enable the underdelivery and overdelivery functionality.

For your reference Kindly find the screenshot below

.

RE: What is the basic concept of Financial Dimensions? Please share some useful links.!

$
0
0

Financials dimensions are what is referred to in other accounting software to be the "account string"

Ability to add to ledger account, on a particular transaction, a flag further categorizing the transaction.

so for example -

If you have 10 departments, and need to track separately travel expense for each department.

In a legacy system you would create 10 ledger accounts, and name them 6000-Marketing, 6000-IT, 6000-HR

In AX instead you can create 1 account, "6000", assign to it a financial dimension "department"

and then on each transaction posted int 6000, you get to specify the department (IT, HR, Marketing etc.) and the transaction is recorded with that particular value, allowing you later to breakdown the expenses by department.

RE: What does derived hierarchy means in AX 2012 financial dimensions?

$
0
0

where are you seeing "derived hierarchy" in AX? can you be more specific?

RE: Things need to know about client when setup new D365 environment

$
0
0

May the superior being have mercy on that client, implementing ERP this way.

My thoughts and prayers are with them.


Budget and po pr

$
0
0

how can I configure before approved the Purchase order to check the budget. 

RE: Inventory movement transaction showing two line with different cost price after posting

RE: Inventory movement transaction showing two line with different cost price after posting

$
0
0

ok but here cost amount is showing big difference.

RE: SSAS SalesCube Processing Errors in the OLAP storage engine: An error occurred while processing the 'Sales order lines'?

$
0
0

I removed the translations from the SalesCube in VS translate tab.

Not getting any error but processing never complete... 

Any idea where is something wrong?

Thanks,

SSAS SalesCube Processing Errors in the OLAP storage engine: An error occurred while processing the 'Sales order lines'?

$
0
0

Hii,

Getting the following error while Processing SalesCube. I increased the time from 1 hour to 3 hours but still didnt complete.

Error: Errors in the OLAP storage engine: An error occurred while processing the 'Sales order lines' partition of the 'Sales order lines' measure group for the 'Sales cube' cube from the SalesCube01 database.

AX 2012 R2, VS10, SQL Server 2012

RE: What is the basic concept of Financial Dimensions? Please share some useful links.!

$
0
0

Concept is clear but needs detailed info....! Can you please share some detailed article...?

Async/realtime load balancing

$
0
0

Dear guys,

Is it possible to install 02 Async/realtime server for load balancing?

Currently, i have 01 AOS, 01 Async/realtime server. Since we are having more POS so i want to install 1 more Async/Realtime server.

Could you please advice?

How can the POS connect to 02 Async/realtime servers? Any changing from POS configuration?

and is there any license involved?

Regards,

Mark


RE: What does derived hierarchy means in AX 2012 financial dimensions?

$
0
0

Derived hierarchy in Financial dimension, how it configure and use in AX 2012?

RE: Flowing Data

$
0
0

Please kindly someone help in this issue.

Flowing Data

$
0
0

Hi all,

I am getting an issue in one thing.

I have my own field (OARemarks) in the PurchTable, in both header and line. And it contains some value.

Now i am clicking on Pro forma confirmation under Generate Tab (according to the requirement). There, I have dragged this same field (OARemarks) in the dialog when it opens (in the Overview Tab).

Now i want this field here (OARemarks) should contain the same value as it was in purch table . So how do we get to do it? How to know these fields which are getting their values by default while this form's opening,  are coming from??

RE: Inventory movement transaction showing two line with different cost price after posting

$
0
0

Hi,

You should trace the batch cost to see why the cost amount have so big difference, typically reason is you purchase two times with different cost.

Regards,

William

Update ModifiedDateTime when changes are made by SQL requests

$
0
0

Hi,

We have some tables in AX with modifieddatetime and createddatetime fields enabled; they are auto-updated when an user modify/create a record via UI.

Is there any way to update those fields when we are doing SQL requests or running external code? 

It should be possible by setup triggers in the databse but i'm looking for a better way which will have as little impact on performance as possible..

Thx! 

Viewing all 175888 articles
Browse latest View live


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