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

Lines not created in JV

$
0
0

Hi,

I'm trying to make General Journal JVs programmatically. Though the header entry is created, amount is displayed, the lines are not showing in the form.

Here is my code:

static void createJV(Args _args)
{

    AxLedgerJournalTable    journalTable;
    AxLedgerJournalTrans    line1;
    container               acctPattern;
    container               offSetAcctPattern;
    LedgerJournalTable      ledgerJournalTable;
    ledgerJournalCheckPost  ledgerJournalCheckPost;
    DimensionDynamicAccount ledgerDim;

    journalTable = new AxLedgerJournalTable();
    line1 = new AxLedgerJournalTrans();


    //Journal Name
    journalTable.parmJournalName("GenJrn");
    journalTable.save();

    line1.parmJournalNum(journalTable.ledgerJournalTable().JournalNum);
    line1.parmTransDate(systemDateGet());
    //line1.parmAmountCurDebit(200);
    line1.parmAmountCurCredit(200);

    line1.parmAccountType(LedgerJournalACType::Ledger);
    acctPattern = ["100000", "100000",1,"State","DEL"];
    line1.parmLedgerDimension(AxdDimensionUtil::getLedgerAccountId(acctPattern));

    line1.parmOffsetAccountType(LedgerJournalACType:: Ledger );
    offSetAcctPattern = ["200000", "200000",1, "State", "GOA"];
    line1.parmOffsetLedgerDimension(AxdDimensionUtil::getLedgerAccountId( offSetAcctPattern));

    line1.save();
    

}


Here is the Form snapshot:


RE: Unable to monitor batch job for operation: Post

$
0
0

Thanks Mr. Crispin John Augustine for your suggestions , I really appreciate  

I know that the problem solved by technical guy but he didn't inform me how , really I am sorry for that .

Best Regards  

Unable to monitor batch job for operation: Post

$
0
0

Hello gentlemen

When I am trying to post recurring invoices, I got the below message

Unable to monitor batch job for operation: Post

Any Idea?

Best Regards 

RE: Multi threading on SSRS Report like Customer Account Statement

Multi threading on SSRS Report like Customer Account Statement

$
0
0

Hi All,

How can I convert a standard SSRS Report like Customer Account Statement (where different report is generated for each customer) into multi-threading so that individual customer's report runs in parallel. I understand multi-threading can be implemented on SysOperation service class. Can it done for such SSRS Report as well? Much appreciated if one can share code example to do this.

Thanks!

RE: How to know the report name in ax 365

$
0
0

My requirement is adding new field and change in design label in purchase order report in ax 365.

Thanks

Rahul.

RE: Declare subclass in dll and call the methods from X++

RE: How to know the report name in ax 365

$
0
0

formLetterController.parmReportName() gets you the Report Name.

To set the design title, you can  set it here controller.documentTitle("Your title"); (if that's what you referred to as 'label')

Make sure to do this in the preRunModifyContract(), otherwise you risk it being overridden.

Adding a new field is a different process altogether. You have to do that in the tempTable dataset, DP class, and the design.


RE: GST free text invoice for two different numbers

$
0
0

Hi Kumar,

Why don't you use the sales orders form to create the invoice?

For sales orders you can select the sales tax and delivery location on the lines.

The free text invoice is not made for this and probably not the right form.

Best regards,

Ludwig

RE: Inventory Closing

$
0
0

Hello Sajjad Ahmed,

What exactly is the difference that you see between GL and inventory?

Which of those lines that you posted are responsible for that and what is their origin?

Any other additional information that you could add from your resaerch done so far would certainly help.

Many thanks and best regards,

Ludwig

Inventory Closing

$
0
0

Dear All,

            I face a strange issue where I close the inventory for the month of Jan 2018 where one Item Code get the following entries which create a discrepancy between GL and Subledger. I reached to this level after a long search.

Site Warehouse Physical date Financial date Reference Number Receipt Issue Quantity Cost amount Physical cost amount Financial cost amount Adjustment Amount settled Inventory unit 
Site1 Prod 1/31/2018 1/31/2018 Weighted average inventory closing   Sold -9165.00 -31686.63 -534.19 -534.19 -31152.44 -31686.63 Pcs 
Site1 Prod 1/31/2018 1/31/2018 Weighted average inventory closing  Purchased  9165.00 534.19 534.19 534.19  534.19 Pcs 
Site1 Central 1/31/2018 1/31/2018 Weighted average inventory closing   Sold -105100.00 -13321.68 -654824.17 -654824.17 641502.49 -13321.68 Pcs 
Site1 Central 1/31/2018 1/31/2018 Weighted average inventory closing  Purchased  105100.00 654824.17 654824.17 654824.17  654824.17 Pcs 

Note: Same Code before and After this month is ok there is no issue. my version is AX 2012 R2- CU7

RE: How to know the report name in ax 365

$
0
0

If you want to add a new field and change of label, why you are thinking of existing design..? Existing designs are not supposed to be modified for MSDyn365FO. You have to duplicate the report and do your changes on new report. That's what the solution is as per tags of your Question. It is no more AX2012. Does that makes sense? If not, please go through documentation. For your case you would be focusing at part 4 of documentation

RE: GST free text invoice for two different numbers

$
0
0

Hi Ludwig,

Nice to have your reply so promptly. Actually FTI (Free text Invoice) is being use for the kind of scrap sale where client won't have any inventory for the same. So its not possible to create set up for the same. It is now mandatory to have GST invoice if sales takes place. There is no delivery address field on FTI, so we don't have option to create, as standard, two different invoice which is mandatory as per statute.

Regards,

Prashant  

RE: COM object of class 'xxxxx' could not be created. Ensure that the object has been properly registered on computer.

Butgeting check error

$
0
0

Dear All,

I create Draft budget transfer and in any  dimension values i get check error

"Transaction BRE-000024 exceeds the budget funds available for dimension value GF-HIV-HBC0339-HIV-022-HIV-022-15-6.2-NNNN-- by 465,551.71 GEL."

i want find where in code AX get default exchange rate, i mast change this exchange rate.

who can tell me where i can change default exchange rate from code X++


Prepayment through payment journal

$
0
0

Hi,

I am trying to process prepayment payment journal where on selecting prepayment check box, posting profile should automatically get updated, which is not happening in my case. I have mapped the prepayment posting profile in parameter. Please let me know what step I am missing.

Thanks in advance

Khushi

RE: COM object of class 'xxxxx' could not be created. Ensure that the object has been properly registered on computer.

$
0
0

Does "Then I tested COM object along with same procedure at client machine. And it work perfectly at Axapta 3.0 and Ax 2009" means that you have this problem only on a single machine? Is the COM object correctly registered there? Does it have all prerequisites available?

RE: Error- 'Journal has already been posted and, consequently, is not open, Function Validate journal has been cancelled.'

RE: Get the datasource from caller MenuItemButton

$
0
0

That's correct; your code asks for the first datasource of the form. Use this instead:

args.record().dataSource()

Get the datasource from caller MenuItemButton

$
0
0

Hi all

I have a form with 3 Action MenuItemButtons. In that form I have 3 different datasources. 

The menuItems call the same class.

I have set the datasource property for all 3 menuItems. 

In the class main menu I have this code:

pdp = args.caller().dataSource(0);


The problem is that it always take the same datasource no matter which button is clicked. 

Viewing all 175888 articles
Browse latest View live


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