Thursday, 30 May 2013

Bank Integration with AX 2012 (Electronic Payments)

Approach

This article provides the information about the Electronic Payment and the creation of bank files to make the payments has changed dramatically in Microsoft Dynamics AX 2012. 

Overview of payment generation by using AIF

The CustPaymentsService and VendPaymentsService services expose payment information for the AIF outbound processing service. These services are based on Microsoft Dynamics AX queries. The queries capture all the data that is required to generate electronic payment files for customers or vendors. Developers can modify the service, document, and data object classes by using the AIF document service wizard.

First, set up the AIF transforms and then export payment data that is defined by the queries. An XSL transform can be applied to this data to transform the AIF XML file to the payment file for a specified format.

For every payment format that we intend to generate by using AIF, we must have a corresponding XSLT file. This XSLT file is based on the format that is specified by the bank. Several XSLT files are provided with Microsoft Dynamics AX. However, we can create our own XSLT file by using a text editor or XML editor.
For payment files that are not in XML format, we must apply an outbound transform to convert the XML results to a flat file. Outbound transforms can be of any file type, such as binary or XSLT. When we apply the outbound transform to the XML file that is generated by AIF, the XML tags are removed and the payment file is created in the format that is required by the bank.

In addition to the master data, payment-specific data might be required for each file, depending on the requirements of the bank. This data can be associated with outbound ports, and can be defined in the Payment processing data form by the system administrator. Then, when users generate payments, the users can enter values in the fields.

The following Diagram shows the steps that are required to configure and use payment formats by using AIF services. 



Payment integration process flow:




In Microsoft Dynamics AX, we can use a service to create electronic payment files. Before we can use the service, we must configure an outbound integration port. Set up an outbound integration port for payments that use Application Integration Framework (AIF) and the payment format XSL transforms.
In this, we need to export an XML style sheet from the Application Object Tree (AOT), set up a batch job to generate XML files, and set up an outbound port for electronic payments. We have added an outbound transform, because of it’s a special XML format is required by the Banks that we are processing payments for.

Create a Directory to Export the XSLT file.



Select the file type as “XML Document” and the document in the created directory.




Create a Directory to Export the XSLT file


Click the View -> Payment processing data button.


Click Area Page node: System administration -> Setup -> Services and Application Integration Framework -> Outbound ports.


Click the Outbound pipelines button-> Configure button


Click the Import XSLT button and provide XSL payment file.


Click the View button to view the uploaded XSL.


Click the Outbound transforms button.


Click the Manage transforms button.

Create transformation of type XSL and click the Load button and select transformation XSL.

Close manage transformation and select the newly created transformation under outbound transformation form.


Click the Close toolbar button and Transforms form.

Change the adapter to FTP adapter and provide the FTP path.






Accounts payable -> Journals -> Payments -> Payment journal.

A batch job runs periodically. We must set up a batch job that automatically processes documents that are created by the service.
  1. Log on to Microsoft Dynamics AX as an administrator.
  2. Switch to the legal entity that users will generate payments from.
  3. Click System administration > Inquiries > Batch jobs > Batch jobs.
  4. Press CTRL+N to create a batch job.
  5. In the Job description field, enter a description.
  6. Save the batch job.
  7. Click View tasks.
  8. Create the following tasks.
Task description
Company accounts
Class name
1
Select the legal entity that users will generate payments from.
AIFGatewaySendService
2
Select the legal entity that users will generate payments from.
AIFOutboundProcessingService
  1. Close the Batch tasks form.
  2. In the Batch job form, select the batch that we created in steps 4 and 5, and then click Recurrence.
  3. In the Recurring pattern field group, select Minutes, and then enter the number of minutes in the Count field. For example, we might enter 1 to process payment files every one minute.
  4. Click OK to close the Recurrence form.
  5. In the Batch job form, select the batch that we created in steps 4 and 5, and then click Functions > Change status.
  6. Select Waiting.
  7. Close the Batch job form.



Accounts payable -> Journals -> Payments -> Payment journal.

This Document is based on the Single Euro Payments Area (SEPA) Credit Transfer xslt example as supplied by Microsoft.



Click the Lines button.



 Click the Functions -> Generate payments menu button.



Select “Export payment using service” and select the new “Payment format.”


Click on OK.

Modify the “Payment processing data” of required and then click on “OK.”
Then, AIF services are running in batch, the document will be processed and exported to the specified FTP folder.


Happy Daxing... :)




Saturday, 9 February 2013

MS Dynamics AX 2012 - ADFS



Microsoft Dynamics AX 2012 - ADFS

Dynamics AX 2012 provides flexible authentication mechanism through the use of Active Directory Federations Services, Forms-based authentication or Windows Live options. Active Directory Federation Services (ADFS) is a feature of Windows Server that allows two companies that have close collaboration to allow their network domains to trust each other. This is commonly used for example where a business function might be outsourced and so the outsourced company users would be authenticated through ADFS to access Dynamics AX. This could also be used in scenarios where vendors log on Dynamics AX to manage inventory on your behalf. Windows Live is a common internet based authentication mechanism. This would be used where you have a large range of customers, vendors or external consultants that needs to access Dynamics AX for account management activities. Forms-based authentication validates credentials that are entered in a logon form.

The third major security enhancement in Microsoft Dynamics AX 2012 relates to authentication, which determines who is able to access the ERP solution. With the growing need to integrate more closely across the supply chain, authentication has become a pressing need for organizations that need their suppliers, partners, and customers to be able to directly interface with their ERP. Our new flexible authentication model makes it much easier for external users to securely access ERP data through the Enterprise Portal or other web-based applications.

Building on the Windows Identity Foundation, MS extended the authentication model in Microsoft Dynamics AX 2012 by using open-standard application programming interfaces (APIs). This simplifies administration of these external accounts by allowing authentication using Active Directory Federation Services (ADFS), Windows Live ID or other similar methods (e.g. Forms based Authentication), without requiring the external parties to be provisioned in an Active Directory domain.

MS introduce these enhancements, which dramatically simplify administration, offer greater flexibility and control over data access, and enhance the compliance, security, and privacy of your valuable business data. If you’re developing applications for Microsoft Dynamics AX 2012, MS recommends you to become familiar with the new security model and the development tools on the Development Center for MS Dynamics AX on MSDN.
 


 

Saturday, 22 December 2012

AX 2012 R2 - New Features


Microsoft Dynamics AX 2012 R2 New Feature

This article provides a summary of new feature list that have been implemented in Microsoft Dynamics AX 2012 R2.

Functional area Feature
Accounting framework Configure a recurring schedule batch job to clear purchase accrual for product receipt source documents
Accounts payable Adjust taxes on an invoice line
Accounts payable Integrate a payment calendar to control due dates for payments
Accounts receivable Record charges on free text invoice lines
Business intelligence Enterprise Portal Chart control for visualizing transactional and aggregated business data in Enterprise Portal
Business intelligence Improvements to key performance indicators (KPIs)
Business intelligence Support for data partitions in cubes
Business intelligence Support for data partitions in reports
Business intelligence Support for Power View
Business intelligence Support for report servers running in SharePoint integrated mode
Business intelligence Windows PowerShell commands for deploying cubes
Budgeting Create and approve budget plans
Client and server Enhancements to the Named user license count report (server)
Client and server Microsoft Dynamics AX 2012 database split into two databases (server)
Data partitioning Data partitions have been enabled to support data isolation
Enterprise Portal Enterprise Portal in Microsoft Dynamics AX 2012 R2 supports Microsoft SharePoint 2013 Products and Technologies
Microsoft Office Add-ins Localize data in the Microsoft Office Add-in
Microsoft Office Add-ins Lock a template created by using the Office Add-in
Microsoft Office Add-ins Microsoft Office Add-in enhancements
Sales and marketing Cases are secured by case category
Sales and marketing Generate a lead or opportunity record from a campaign or call list target record
Sales and marketing Update the name of a party from the party record
Sales and marketing Update, in bulk, the list of party records assigned to an address book
Sales and marketing Updates to Sales and marketing Role Centers and the reporting information provided
Setup and upgrade Data partition assignment for companies during upgrade


Indian Localization features in AX 2012 R2:

Country/region Feature
India Accounts receivable and accounts payable invoices
India Assign financial dimensions to entries generated in the Transfer orders form
India Automatic calculation of Tax Deducted at Source (TDS) when no Permanent account number (PAN) is registered
India Bill of entry information is evaluated on a line-by-line basis
India Cancellation of Bill of entry and invoice registration for India
India Change to the item type for India
India Changes to number sequences for Indian financial documents and incentive schemes
India Changes to the electronic file format for TDS and TCS statements
India Depreciation calculation for India
India Duties and privileges added for user roles in features for India
India Enhancements for purchase and sales orders for India
India EXIM Advance Authorization (AA) incentive scheme
India EXIM Duty Drawback (DBK) incentive scheme
India EXIM Duty Free Import Authorization (DFIA) incentive scheme
India EXIM Export Promotion Capital Goods (EPCG) incentive scheme
India Expanded tax type support for project transactions, billing processes, and tax settlements
India Expanded tax type support for service industry transactions
India Financial dimensions for India
India Fixed asset transfer for India
India For India customs duty and Export Import Policy (EXIM), if the charge as expense ratio is used, the related customs duty is charged to the expense account
India General ledger updates for India
India Generation of financial statements in Microsoft® Excel for India
India Global address book for India
India Implementation of withholding tax calculation cache
India Improvements to tax registration number assignments
India Manual adjustment of taxes
India Open customer invoices and settlement enhancements for India
India Organizational model enhancements for India
India Point of taxation
India Recalculation of indirect taxes triggered by specific conditions
India Sales and purchase orders enhancements for India
India SLJL impact on the Indian custom duty functionality
India SLJL impact on the Indian excise duty functionality
India Standard Input Output Norms (SION)
India Tax rate enhancements for India
India The method of adjusting direct tax entries that are posted to the general ledger has changed. This feature replaces the feature for TDS and TCS adjustment, which is now deprecated.
India Threshold exceeding error/warning message removed from India direct tax
India Update tax information in a corrective free text invoice
India Update to the Upgrade toolkit
India Updates to general ledger and tax inquiry forms
India Updates to import orders for India
India Uptake of the subledger journal and distribution framework with Indian direct tax
India VAT commodity codes on sales invoices
India View and modify accounting entries before posting to the general ledger


 

Saturday, 3 November 2012

Indian Localization in AX 2012 CPT - Oct 22-25


Indian localization in AX 2012 R2...
Indian Localization Parameters – General Ledger



Stock Transfer activation parameter as part of Indian localization


Stock Transfer



Company Information – Tax details


Indian localization – General Ledger


 
EXIM -

 
Formula Designer:




 
Thank you and Happy DAXing... :)


 

The backup set holds a backup of a database other than the existing database

The backup set holds a backup of a database other than the existing database.


Solution:


I have solved the Issue following the below steps.
§  Use WITH REPLACE while using the RESTORE command
§  Execute the following SQL Query

Alter Database MicrosoftDynamicsAX_model
      SET SINGLE_USER With ROLLBACK IMMEDIATE  

RESTORE DATABASE MicrosoftDynamicsAX_model
      FROM DISK = 'D:\AX2012\MicrosoftDynamicsAX_model.bak'
      WITH REPLACE




Thank you and Happy DAXing... :)


Updated Query:

ALTER DATABASE AX_IntegrationDB
SET SINGLE_USER WITH
ROLLBACK IMMEDIATE
RESTORE DATABASE AX_IntegrationDB
FROM DISK = 'D:\SIngu\AdrenalinSharedDB.bak'
WITH MOVE 'AX_IntegrationDB' TO 'C:\Program Files\Microsoft SQL Server\MSSQL11.DARWIN\MSSQL\DATA\AX_IntegrationDB.mdf',
MOVE 'AX_IntegrationDB_log' TO 'C:\Program Files\Microsoft SQL Server\MSSQL11.DARWIN\MSSQL\DATA\AX_IntegrationDB_log.ldf',
REPLACE