Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Customer Payments with ISO20022 camt.054

(0) ShareShare
ReportReport
Posted on by 40

I installed the hotfix for ISO20022 camt.054 to import customer payments in R3. It works perfectly.  I would like to run it unattended (without the two dialogs).   I extended the ISO subclasses (CustInPaym_ISO20022_W, CustInPaym_ISO20022_CAMT54_W) in order to create any method overrides needed and also to preserve the version with dialogs.  In a job I created to test I have the three values needed in place of the dialogs.  I use the CustInPaym::construct method in the job.  I then set the two values (JournalNum and PayMode).  This was easy to supply by calling two set methods in the instantiated CustInPaym.  However the third (Filename) does not have a set method I can call.  I do not know if there is a way for me to supply the FileName value.  I would appreciate a nudge in the right direction and/or any comments.

Thanks in advance.

*This post is locked for comments

  • blujay712 Profile Picture
    blujay712 40 on at
    RE: Customer Payments with ISO20022 camt.054

    Wow!  Your answer hit me like a brick.  You are so right.  At some point in time further abstraction will approach a diminishing return.  I have done exactly what you suggested and all is fine and working. Thank you very much ievgen for your quick responses and for saving me time.

  • Verified answer
    Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: Customer Payments with ISO20022 camt.054

    It's 2012, you don't need to extend anything, just open that class and add new method.

  • blujay712 Profile Picture
    blujay712 40 on at
    RE: Customer Payments with ISO20022 camt.054

    Thank you ievgen for responding.  I don't know how to provide the filename to the subclass I extended.  I don't believe I can overload the Run method (nor any method) in x++.  I'd like to do as you suggested and write a setFilename method in my extended subclass but I don't know how to pass the fileName string. I am including my job to see if you have a thought on how to set me in the right direction. Thanks very much again.

    CustInPaym

         CustInPaym_ISO20022_W

               CustInPaym_ISO20022_CAMT54_W

                     CustInPaym_ISO20022_CAMT54_W_Unattended   //  my extended subclass

    static void ACH_unattended(Args _args)   // my job

    {

      CustInPaym     custInPaym;

      //Dialog       dialog = new Dialog("@SYS18228");

      //DialogField   dialogPaymMode;

      Filename       fileName;

      //dialogPaymMode = dialog.addField(extendedtypestr("GT_ACHWIRE"));

      //dialogPaymMode.label("@SYS21698");

      fileName = "C:\\Users\paco\\Desktop\\ACHProcessing\\IncomingFiles\\wellsfargo.20190108050912666.xml";

      //if (dialog.run())

      //{

          custInPaym = CustInPaym::construct("GT_ACHWIRE");

          //custInPaym.getLast();

          custInPaym.setJournalNum("GT_JBN4790");

          custInPaym.setPaymMode("GT_ACHWIRE");

          //custInPaym.saveLast();

          //if (custInPaym.prompt())

              custInPaym.run();

    }

  • Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: Customer Payments with ISO20022 camt.054

    What stops you from implementing your own setFilename method?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,431 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,503 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans