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

All fields in the query are not displayed (extendend tables)

$
0
0

Hello, I have a second extended table from the first, and I can add all fields from both tables to a Query, but when you add this Query to a SRSSReport can add all the fields, but only get the fields values in the first table.

Here i have the relation to the table A

when I drag my table to my query, automatically brings fields from table A and table B

Now, when i add this Query to a SRSSReport, i can add all the fields, but only the fields in table 1 have values, ¿why?

how can I bring the value of all the fields?

Thansk in advance


Vendor Invoicedid not show any lines

$
0
0

I am trying to make invoice after receive the product by push the Invoice button in Invoice Tab. But, It does not show any lines.

What happaned? How to fix this?

Thank you

Having issue in Sales Report in Account Receivable module.

$
0
0

Hi Experts, Please help me out to resolve the below problem.

I am working on Sales Report(AOT Report) in  Accounts Receivable module. I have to write the code to take the value of site field in Sales Table. I have two reports(AOT). If the site value is "Unit 1"  Report_1 Should get executed and If the value is "Unit 2"  Report_2 should get executed.

please find the below code.if you need.Present code i am using to solve this error is in the Bold and red Color.But it is not a valid code.it is by default taking some other design in the report.

void init()
{
WMSShipment wmsShipment;
SalesLine sL;
InventSiteId inventsiteidobj;
;

super();

// breakpoint;

paymentReference = element.design().sectionName('Invoice').controlName('PaymentReference');
printCopyOriginal = element.args().parmEnum();

if (element.args().parm())
{
taxUnrealizedPayment = element.args().parmObject();

if (taxUnrealizedPayment)
{
ledgerJournalTrans = taxUnrealizedPayment.parmledgerJournalTrans();
}
}

if (classidget(element.args().caller()) == classnum(SalesFormLetter_Invoice))
{
salesFormLetter = element.args().caller();
}

if (element.args().dataset() == tablenum(WMSShipment))
{
wmsShipment = element.args().record();
journalList = FormLetter::createJournalListCopy(ShipCarrierShipmentInvoice::custInvoiceJour(wmsShipment.ShipmentId));
}
else
{
if (element.args().record())
journalList = FormLetter::createJournalListCopy(element.args().record());
else
journalList = element.args().object();
}

if (!journalList)
throw '';

journalList.first(custInvoiceJour);

if (!custInvoiceJour)
throw error("@SYS26348");

custFormletterParameters = CustFormletterParameters::find();
companyInfo = CompanyInfo::find();
custFormletterDocument = CustFormletterDocument::find();
custParameters = CustParameters::find();

this.arrangeLevelNone();

this.changeDesign();

totalsFirstLastPage = custFormletterParameters.TotalsFirstLastPage;
taxPrintTaxFreeBalance = custFormletterParameters.TaxPrintTaxFreeBalance;

this.initPrepaidTotals(0);

this.enableTotalsSections();

this.cashDiscOnInvoice();

if(cashDiscOnInvoice)
{
this.showCashDiscOnInvoiceControls();
}

this.isCreditInvoicingReportEnabled();

this.footerEnable(giro_FIK65, false);
this.footerEnable(giro_FIK762, false);
this.footerEnable(giro_BBS, false);
this.footerEnable(giro_CH_red, false);
this.footerEnable(giro_CH_blue, false);
this.footerEnable(giro_CH_orange, false);
this.footerEnable(giro_Finnish, false);


inventDimReport = InventDimCtrl_Rep_Sales::newFromReport(element);
inventDimReport.parmDocumentStatus(DocumentStatus::Invoice);
inventDimReport.parmDisableLabel(custFormletterParameters.PrePrintLevelInvoice == PrePrintLevel::PrePrinted);
inventDimReport.initDimParmVisible();
inventDimReport.updateControls();
inventdimSetup = inventDimReport.dimFieldsActive(inventDimReport.parmDimParmVisible());

salesFormLetterReport = FormLetterReport::construct(PrintMgmtDocumentType::SalesOrderInvoice);
salesFormLetterReport.parmReportDesign(element);
salesFormLetterReport.parmPrintType(printCopyOriginal);
if (salesFormLetter)
{
salesFormLetterReport.parmDefaultCopyPrintJobSettings(new PrintJobSettings(salesFormLetter.printerSettingsFormletter(PrintSetupOriginalCopy::Copy)));
salesFormLetterReport.parmDefaultOriginalPrintJobSettings(new PrintJobSettings(salesFormLetter.printerSettingsFormletter(PrintSetupOriginalCopy::Original)));
salesFormLetterReport.parmUsePrintMgmtDestinations(salesFormLetter.usePrintManagement());
}
else if (printCopyOriginal == PrintCopyOriginal::OriginalPrint)
{
// Always use the print mgmt destinations when reprinting for the OriginalPrint case.
salesFormLetterReport.parmUsePrintMgmtDestinations(true);
}
//mohan
//ERB_Keshav
breakpoint;
if (salesTable::find(custInvoiceJour.SalesId).CustGroup == "EXPORT")
{
// element.design("Commercial");
// Started - ERB_Vignesh @ 20/7/2018
element.design("Domestic_1");
//Ended - ERB_Vignesh @ 20/7/2018
//ERB_Keshav
}
// element.design("Export");
//element.design("Domestic_1");
else
{
// element.design("Commercial");
// Started_ERB_Vignesh @ 20/7/2018
// if(InventDim::find(purch1.InventDimId).InventLocationId == "Unit I")


//if(purchLine::find(InventDim.inventDimId).InventDimId == "Unit I")
if(!sL)
{
select firstonly sL
where sL.SalesId;
}


inventsiteidobj = InventDim::find(sL.InventDimId).InventLocationId;

if(inventsiteidobj == "UNIT I")
{
element.design("Domestic_1");
// Ended_ERB_Vignesh @ 20/7/2018
//ERB_Keshav
}

else if(InventDim::find(sL.InventDimId).InventLocationId == "UNIT II")
{
element.design("Domestic_2");
}

//mohan
this.initReverseCharge();
this.arrangeLevelGlobal();
this.initUnrealizedTax();
}

}

Customer rebate calculation status is not update after running calcution

$
0
0

Hi All,

I am trying to run calculation for customer rebate but system not updating the rebate status.

Please help me why system is not updating status after calculation.

Thanks & Regards,

Kiran.

How to Create a XML attribute through X++ code ""

$
0
0

Hi All,

 How to create A XML file, where in Subtags consist of Attribute as below 

<Fields>

<AxTableField xmlns="" i:type="AxTableFieldString">""

</Fields>

I have used below code and refer my output.

Code :   {

xmlElementAxTableField = nodeTableFields.appendChild(xmlDoc.createElement("AxTableField"));
xmlElementAxTableField.setAttribute2('type','i','AxTableFieldString');

}

output :

<AxTableField xmlns:d3p1="i" d3p1:type="AxTableFieldString"/>

Maximum/minimum order quantity

$
0
0

Hi,

I was wondering what the imapct if I change inventory Max/Min order quantities.

The reason is because if we increase the Max/Min order quantities, we found the master planning takes less time to finish (I think the reason is because we have less planned orders). 

So I am not sure if we can have a bigger Max/Min order quantities during master planning run, then splitting the planned orders, and what will be impact if we are doing so.

Thanks,

WHS Containerization - wrong calculation?

$
0
0

Hi All,

i have configured Containerization process for a customer. now we realised in some cases, the system calculates physical dimensions to a point where we can not pack as much in the container as its supposed to. example : 

Container Type

Item:

packed Container:; 

as you see, the wave told us to pack 10 peaces in one box. But they dont fit. they DO FIT if youd only compare the volume, but the actual length, width and height dont add up. this could be fatal since we are working on a automated packing street. do i have to tell the system somwhere to NOT only compare volume? so far i only know this for location profiles. 

thanks for your input! 

QA order number not displayed on item transaction when inventory blocking

$
0
0

When QA order is created , Ax will block the inventory for the order,

in case of SO the reference number is displayed on the item transactions , but for QA order I am not getting this reference 

is this Std AX behavior ?


development

$
0
0

when i post sales invoice its take cust grop of custmer account but i want to change it i want to take cust group of invoice account how it possible?

D365FO - how is possible to unistall a custom model from PROD?

$
0
0

We have deployed a custom model to PROD, and now we need to remove it. It is possible somehow? 

handle temporary table in form extension

$
0
0

Hi all,

I like to insert a new datasource (for example tempTable) on an existing form. So I create a FormExtension to declare the new DataSource. This datasource should be a temporary table. Until D365FO I have to set this table to a temporary one in init-method of Datasource like tempTable.setTmp() (if table is not set to tempDB in setup). In D365FO I set the datasource to tempTable.setTmp() in datasource-eventhandler onInitialized() and tempTable.setTempData(data) in my form-extension-class... it does'nt work, there are no records shown in the form... What's going wrong?

How to update/insert from one source table to multiple target tables

$
0
0

Hi expert,

I need help on how to update/insert from one source table to multiple target tables.im using AX 2009. My project is about to transfer data from external DB,to AX staging table and from AX staging table to AX target table. Im having problem to transfer data from a staging table to 3 target table.

Example:

stagingtbl.MaterialMaster need to insert to targettbl1.BOMid , targettbl2.BOMid and targettbl3.BOMid. 

Below is the code I use to update/insert into 1 target table only,and success.But when I add coding to update/insert into 2 target table,the code not run at all. 

               select tblExist

                where tblExist.BOMId == stagingTbl.MaterialNumber && tblExist.LineNum == stagingTbl.ItemNumber;

               if(tblExist)

               {

                   ttsbegin;

                   //To update target table.

                   select forupdate targetTbl 

                     where tblExist.BOMId == stagingTbl.MaterialNumber;

                   {

                      if(stagingTbl.ComponentUnit != "")

                       {

                           targetTbl.UnitId = stagingTbl.ComponentUnit;

                           targetTbl.BOMQty = stagingTbl.ComponentQuantity;

                           targetTbl.ItemId = stagingTbl.ComponentNumber;

                           targetTbl.LineNum = stagingTbl.ItemNumber;

                           targetTbl.SKImportStatus = SKImportStatus::Completed;

                       }

                       targetTbl.update();

                       //info(strfmt("Updated :\n %1", targetTbl.BOMId ));

                   }

                   //end update target table.

Thank You.

Error while posting purchase invoice with retention and prepayment applied to the invoice

$
0
0

Error while posting purchase invoice with retention and prepayment applied to the invoice.

Relation between custpackingsliptrans and salesparmline

$
0
0

Good Morning,

in custpackingsliptrans table there are 2 customized fields
it should flow at the time of invoice (SalesEditlines form) there is table salesparmline (in that i have added 2 fields).
i need to flow data from packing slip to salesparmline
now the chance is i have multiple Packing slip for all packingslip ids i have one inventtransid
So, i cannot join salesparmline.inventtransid == custpackingsliptrans.inventtransid
how can i join these 2.
and another point is i can select particular packing slip id on SalesEditlines form).
How can i link between these two tables.

Please show some light.

Regards.

Have a great day

In Vendor Account statement Report the Same Bank Document number is repeating again and again with All Vendors.

$
0
0

Dear All,

When we are running the Vendor Account statement report the Same Bank document number is repeating again and again in all Vendor can you guide me why it is happening and how to get it stop???? 


How to find real class name called in Sysoperation Batch Job

$
0
0

Hi Friends,

One job I found in ax 2012 R3,once I go to check the View Task Button(To check which Class it calls),Class Name it is showing as

SysOperationServiceController class,may I know which service class it exactly it is calling as I know batch was added with SysOperation Framework.

But which x++ code it calls,how can I identify

Issue with PO line matching policy with some users

$
0
0

We have a curious issue where when some users are creating POs, the matching policy is defaulting to 2-way even though company policy is 3-way matching. I have checked the vendor, and it is set to company policy. This only seems to happen with users that have the "purchasing agent" role. Users with the "purchasing manager" role do not have this issue. Any ideas? It's creating issues in our purchasing department because they are manually having to change the matching policy back to 3-way after the PO has been created.

We are using AX 2012.

Issues on importing inventory movement journal in D365FO

$
0
0
Hi everyone, I need to import inventory data. I have setuped WMS features to my warehouse. If someone can tell me the correct process or template that I need to export to add inventory data into the system it would be very helpful since I tried 2 ways and both of them threw me errors that I detail them in this post  
I accessed data management to export Inventory Movemente journals, selected the entity inventory movements journals, target data file = Excel, but when I added it I received an information message and the system changes automatically the source data format to XML-Attribute.





I downloaded the XML template, completed it in the Excel spreadsheet, saved as .xlsx and when I imported the template I received this error message

 XML is not in correct format-Pipeline component has returned HRESULT error code 0Xc02090CF from a method call. ‘0’ ‘inventory movement journals’ record(s) inserted in staging




As I coudn't import my data, I took another way. I created a new project, then exported inventory movement headers and inventory movement journal headers and lines. I completed the data, when importing I added sequence 1 for the header and 2 for the lines. When I clicked on refresh button I realized that it inserted the header and not the lines

 

The message error is:

Results. Voucher number must be assigned when posting the journal

Results. Error(s) ocurred when writing entity record

Layer question

$
0
0

Hi Friends,

My AOT is set to display all layers for elements. But, with one class, which has 3 methods, two modified in VAR layer and in one model story, one is in CUS layer and in another model store(these are old code from different consultants)

Weird thing is, the class is shown in SYS layer only.  We don't have other classes having this problem.

What could be the problem?

Thanks,

River

Intercompany PO - Intercompany sales order button is greyed out

$
0
0

Hi All, 

I'm placing a PO.  When click on MANAGE tab to flip on the SO, the Intercompany sales order button is greyed-out. 

These below have been set up:

1. Intercompany vendor & trading relationship.

2. Vendor posting profile with "Intercompany" as a vendor group.

3.  Intercompany customer & its trading relationship.

4.  Customer posting profile with "Intercompany" as a customer group.

5. intercompany journal names.

Am I missing something? Thanks

Viewing all 46681 articles
Browse latest View live


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