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

RE: Error posting transfer order using X++ code

$
0
0

Hi,

Might be little late, but worth to share.

I had a similar issue where i was unable to post shipment for the transfer order which has been picked manually and using x++ i was trying to post the shipment.

I realized the Table/WMSPickingRoute/finishMulti gets called when we manually do picking list registration.

In such scenario, add a logic to check the expeditionStatus of this table and if its set to activated, call the above method(finishMulti) to set the status.

An example would look like below-

private void updateWMSStatus(InventTransferId _transferOrderId)

{

   WMSPickingRoute     wmsPickingRoute;

   List                wmsPickingRouteList = new List(Types::String);

   select firstOnly RecId, expeditionStatus, PickingRouteID from wmsPickingRoute

       index ParmIdx

           where wmsPickingRoute.transRefId == _transferOrderId

              && wmsPickingRoute.transType == InventTransType::TransferOrderShip;

   if (wmsPickingRoute.RecId && (wmsPickingRoute.expeditionStatus == WMSExpeditionStatus::Activated))

   {

       wmsPickingRouteList.addEnd(wmsPickingRoute.PickingRouteID);

       WMSPickingRoute::finishMulti(wmsPickingRouteList.pack());

   }

}

Hope it helps!


Error posting transfer order using X++ code

$
0
0

Hi,

I am using the code from the following link to post the transfer order using X++ code:

blog.slcconsulting.us/.../posting-a-transfer-order-using-x

I have a scenario to post a transfer order after the purchase order invoice is posted. I am taking the information from vendinvoicejour and vendinvoiceTrans tables to fill the transfer order header and line tables. But when I am calling the InventTransferUpd.Run method, I am getting the below error:

No lines for posting. Update has been cancelled.

Can anyone please let me know what I am missing here or if someone can share the exact code to post the transfer orders using code that would be great.

Thanks,

SB.

RE: Entry point security level set to Delete, but the New button and other Button in the Maintain group disappeared

$
0
0

Hi, 

Verify if the visible property  of the new customer menuitem  is set to yes or no 

RE: How to update existing records using DIXF? (AX 2012 R3)

$
0
0

Hello,

The only (not tried) solution that came to mind back then was to change the mapping from staging to target (DIXF/Setup/Target entities/Modify target mapping) to include only fields that will need to be updated. Let me know if you were successful with this approach

Stanislav

How to update existing records using DIXF?

$
0
0

When I update an existing record (say, a customer) by using DIXF the record is updated with the values from the sourcefile  - BUT - all target fields that are not included in my file are blanked.

So DIXF can only be used for updating if the sourcefile includes ALL the information on the target - or what?

This means that the typical task of updating a single field on a target entity after a data migration requires:

a) The original sourcefile enriched with the field missing in the data migration (assuming that the target records have not changed since the migration) or

b) Writing a job to read the sourcefile, locate the relevant record and updating it (aka the old-fashioned way)

RE: Change posted voucher Financial dimensions

$
0
0

Hi Mantas,

It is not advisable to update the financial dimension, amount, period etc. and other key fields in the posted voucher.

a. This is not a best practice as per General Accepted Accounting Principles (GAAP).

b. Also there are many other tables, models etc. that could be involved in storing summary amounts based on many configurations for year-end and reporting purposes.

Hence as advised by Ludwig, reverse the journal and post correct journal manually. For many journals/vouchers, you can have automated code for reversals & corrections in live after testing it in test system.

RE: Financial Dimension and Purchase Line Status

$
0
0

Hi,

For 1): If you cancelled the requisition you have to start all over again

For 2):  The financial dimensions from the purchase requisition are transferred to the PO. If you select the vendor later on, the default dimension setup from the vendor won't override the financial dimensions at the requisition level because the default settings are more general.

Best regards

Ludwig

RE: Financial Dimension and Purchase Line Status

$
0
0

some how I got this but how to change.


RE: SSRS reports with shared datasets

$
0
0

Thnx Martin for your quick replies...

I could resolve my problem with your guidance.

Thanx again.

SSRS reports with shared datasets

$
0
0

Hi,

I need little clarity about AX 2009 SSRS reports being a newbee in SSRS 2009 Reports.

I had gone through different videos and articles about the same.There are few queries about it :

1.Two versions of SSRS  (i)through Visual Studio through 'DynamicsAX' and  (ii) through Visual Studio through 'Shared Datasource and shared dataset , ...';

In this I am unable to figure out what would be the good if user wants Collapsing and Expanding reports

2.In second scenario of Shared Datasource and Shared Dataset, where users will see the reports, obviously not in VisualStudio?

3.Which method would fit best for drilling in report and drill through reports

Requesting you to resolve my doubts, as I am already stuck with the 'drill............' reporting in SSRS 2009.

Thanks.

RE: Insert CreatedDateTime into temp table

$
0
0

You didn't get my point. You tried to use this code

insert_recordset LedgerJournalTmp (PostedDateTime,PostedDateTimeTZID)
select createdDateTime from purchRfqTable;

but I never said anything like. Of course that such a thing doesn't even compile.

I explained what happened in database; trying to use the simplified the SQL code as X++ code of course can't succeed. PostedDateTimeTZID field in database, but isn't directly accessible from X++.

Insert CreatedDateTime into temp table

$
0
0

How can I insert CREATEDDATETIME field into Temp table. I created one temp table for reporting purpose and now I am  trying to insert records, i need to insert records from WORKFLOWTRACKINGTABLE.CREATEDDATETIME. Kindly help me the coding

RE: Checking an item quantity in POS

$
0
0

[quote user="Kavitha"]

Hi Ryan,

If you have added an item and it is not showing on POS then probably you haven't enabled it to be displayed on POS.

Steps:

1. Click on Inventory >> Manage Inventory >> Mobile, Accessories & Parts

2. Select an item by clicking on its Item ID or click on the Action button and select Edit.

3. Under the Product Info tab, you will find a checkbox Show on POS. Enable it to display an item on the POS screen.

4. To hide an item from the POS screen, just unmark this checkbox.

[/quote]

I cannot find  Inventory >> Manage Inventory >> Mobile, Accessories & Parts.  Is this located in Retail, Inventory Management, Product Information Management.  Remember I am using AX 2012 R3.

Checking an item quantity in POS

$
0
0

Hello all,

We have our AX system running but when we do an inventory check we do not see any inventory at POS.  What do we need to be able see the items?

Thanks

Ryan

RE: Financial Dimension and Purchase Line Status

$
0
0

Hi,

No 1) can for example be changed by a modification that asks the user to confirm whether he really wants to cancel the requisition

No 2) would require a more complex adjustment that ensures that the default financial dimension setup at the vendor level is used when POs are created. Maybe you can implement a workaround and ask users to double check the financial dimensions. That is because modifying this can quickly get complex of you just think about the consolidation features related to purchase requisition.

Best regards

Ludwig


Financial Dimension and Purchase Line Status

$
0
0

Dear All,

I am having two issues.

1) From Release approve purchase requisition form click on purchase Order  a new form open where we select the vendor id by mistake get click on cancel. after that particular PR line get disappeared from this windows and on Original PR Form showing a red mark against that line.

my query is how can I bring back that line without take all approval process.

2) Same Form Release approve purchase requisition and generate the purchase order but this time the purchase order header does not take a default dimension from vendor master. where as if I directly create a purchase order then its picking without any issue.

RE: Error when use Open XML to read excel file

$
0
0

If the pasted data cannot be fetched, but the manually entered one can, then it must be formatting-related.

Maybe you have hidden rows? If you used an AX definition group with an Excel template, the first couple of rows are hidden and specially formatted, which may be the cause why it does not work.

Also check the formatting of the cell (general/text/custom) as that might be wrong.

Validate that in what region / locality have you created the data, maybe different regions are causing the problem.

Error when use Open XML to read excel file

$
0
0

Dear All,

I am using OXML to read an excel file from server side.

When i enter the data manually in the excel file it is working fine. I can able to ready the excel file.

Link I used:    axbytes.blogspot.fr/.../readwrite-excel-files-from-aos-using.html

But when i copy paste the data from some other place, i am not able to ready the excel file.

When i debugged, i found where it is getting blocked based on a validation

When i try to fetch the value in the cell , 

oxmlspreadSheet = OXMLSpreadsheetDocument_RU::construct(tmpMovTo);
oxmlworkBook = OXMLWorkBook_RU::construct(oxmlspreadSheet);
worksheets = oxmlworkBook.worksheets();

for (worksheetNumber = 1; worksheetNumber <= worksheets.elements(); worksheetNumber++)
{
oxmlworksheet = oxmlworkBook.getWorksheet(worksheetNumber);
sheetName = oxmlworksheet.name();
if (sheetName != #Instruction)  // to skip the instruction sheet and read the second sheet
{
rows = oxmlworksheet.rows();

// rowNum 1 is header so skipped
for ( rowNum = 2; rowNum <= rows.elements(); rowNum++)
{
if (!oxmlworksheet.row(rowNum).cells().empty()) // row is empty or not
{
oxmlrow = oxmlworksheet.row(rowNum);
cells = oxmlrow.cells();
isRecord = false;


for ( colNum = 1; colNum <= cells.elements(); colNum++)
{
//if (!oxmlworksheet.row(rowNum).cell(colNum).cellReferenceByIndex(colNum))
if (!oxmlworksheet.row(rowNum).cell(colNum).getValue())
{
isRecord = true;
}
}

// To store the row values in a container
if(isRecord)
{
for (colNum = 1; colNum <= cells.elements(); colNum++)
{
oxmlcell = oxmlrow.cell(colNum);
sLine += oxmlcell.getValue();

}
}

In the above snippet, when i try to get value of the cell, 

it is getting inside the class, OXMLCELL_RU > getValue() method,  here if the type is string they are calling one more method getSharedStringValue()  ..where error is thrown, saying already the value exist in the cell.

1. Is there any way to fetch value from the cell ?

2. Any examples, or links. I searched in AX using cros reference  but nowhere it is used

3. Or is there any other way to read excel file in server side

Regards,

Arun B S

RE: Email Notification sending Failed using Gmail SMTP Server

$
0
0

what's the effect of not converting to CIL? please explain? email sending successfully through batch screen if put current date. Email failed if make the batch process or later date of 10 minutes or more?

RE: Email Notification sending Failed using Gmail SMTP Server

$
0
0

what's the effect of not converting to CIL? please explain? email sending successfully through batch screen if put current date. Email failed if make the batch process or later date of 10 minutes or more? i need further help on this.

Viewing all 175888 articles
Browse latest View live


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