Hi Henrik

That was the method I originally looked at. However the fields Posting
Profile, VAT number are NOT filled in with the method.....

/Jens




                                                                          
             Henrik Ostergard                                             
             <henrik.ostergaar                                            
             [EMAIL PROTECTED]>                                                To
                                       <[EMAIL PROTECTED]
             21-04-2004 18:03          >                                  
                                                                        cc
                                                                          
             Please respond to                                     Subject
             development-axapt         SV: [development-axapta]           
             [EMAIL PROTECTED]         LedgerJournalTrans help wanted     
                                                                          
                                                                          
                                                                          
                                                                          
                                                                          
                                                                          




Hi
try this

    LedgerJournalTrans.accountType = ledgerjournalACtype::Cust;
    LedgerJournalTrans.AccountNum = "1234";
    LedgerJournalTrans.initPostingProfile();

/Henrik

-----Oprindelig meddelelse-----
Fra: Jens Fudge [mailto:[EMAIL PROTECTED]
Sendt: 21. april 2004 16:31
Til: [EMAIL PROTECTED]
Emne: RE: [development-axapta] LedgerJournalTrans help wanted







Hi Eva

Perhaps I wasnt specific enough...

I allready have the accounttype.

What I want done, is Axapta to fill in fields PostingProfile, VAT number
in case its a customer/vendor accounttype.

/Jens





             "Aksnes Eva"
             <[EMAIL PROTECTED]>
                                                                        To
             21-04-2004 16:20          <[EMAIL PROTECTED]
                                       >
                                                                        cc
             Please respond to
             development-axapt                                     Subject
             [EMAIL PROTECTED]         RE: [development-axapta]
                                       LedgerJournalTrans help wanted










LedgerJournalTrans.AccountType = LedgerJournalAcType::Cust;
Check out the LedgerJournalEngine - classes, which is used from the Form.


Eva Aksnes


      -----Original Message-----
      From: Jens Fudge [mailto:[EMAIL PROTECTED]
      Sent: 21. april 2004 16:01
      To: [EMAIL PROTECTED]
      Subject: [development-axapta] LedgerJournalTrans help wanted





      Hi all

      I am trying to import some vouchers from a textfile into
      LedgerJournalTrans, allmost everything works fine.

      When creating a post through the LedgerJournalTrans Form, fields like
      PostingProfile, VAT number are automatically filled in, depending if
      its is
      a vendor or a customer.

      This automatic stuff does not happen when I through X++ code create
      and
      post a LedgerJournalTrans.

      Does anyone know how I get the stuff working?

      I know I could allways lookup the information on the vendor/customer
      in
      question, but there must be a method that does this for me.

      Thanks in advance.

      /Jens Fudge


      Yahoo! Groups Links
            To visit your group on the web, go to:
            http://groups.yahoo.com/group/development-axapta/

            To unsubscribe from this group, send an email to:
            [EMAIL PROTECTED]

            Your use of Yahoo! Groups is subject to the Yahoo! Terms of
            Service.





Yahoo! Groups Links







Yahoo! Groups Links
      To visit your group on the web, go to:
      http://groups.yahoo.com/group/development-axapta/

      To unsubscribe from this group, send an email to:
      [EMAIL PROTECTED]

      Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



Yahoo! Groups Links

Reply via email to