web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

How to update information to a posted batch

(0) ShareShare
ReportReport
Posted on by

I use setobjectvalue command to set an infomation to a posted batch but I don't known how to save it properly.

Please help me !.

Thanks all

*This post is locked for comments

I have the same question (0)
  • Barry Flynn Profile Picture
    3,090 on at
    RE: How to update information to a posted batch

    Which screen are you customizing?

    Which Control?

    Which Event is your code in?

    Barry

  • Community Member Profile Picture
    on at
    RE: How to update information to a posted batch

    Hi Barry,

    I customize voucher and adjustment entry 03.010.00. I want create a button in that screeen to update some  information in posted batch. Because sometime users do a wrong batch and I want to mark that batch.

  • Barry Flynn Profile Picture
    3,090 on at
    RE: How to update information to a posted batch

    03.010 shows Released/Posted batches in "enquiry mode" - it shows you the documents/transactions, but you can't change them.

    This is intentional - when an AP Voucher batch is Released, a lot of tables have been updated. To change any financial information would risk introducing integrity errors.

    What field do you want to change?

    Barry

  • Community Member Profile Picture
    on at
    RE: How to update information to a posted batch

    Hi Barry,

    I want to change only user06 field of batch table. I pull that batch and press customize button, the field user06 will be update a character that I want.

  • Suggested answer
    Stef Rose Profile Picture
    240 on at
    RE: How to update information to a posted batch

    I think your using the wrong command in adding information to an active_status_batch. In my own analyze, the set_object_value command refer to MS Visual Studio C++ library, where each object implanted thru an IDE has specific attributed values. Usually, your local network administrator should be able to first, find the referenced ID of your batch and second, should be able to take intern measures for modifing a script no matter where the batch is in the workflow. In an usual way, modification of script between steps of worflow syncings should not especially require a function of saving or not your modification because it can be done over a unique process and modification of elements while batches are in workflow invoked databases modifications with an automatic recording for modifications done to it.

  • Verified answer
    Barry Flynn Profile Picture
    3,090 on at
    RE: How to update information to a posted batch

    One possibility is to use the "SQL" call to update the batch table.

    The SQL you use will probably look something like "update batch set user6 = 'ABC' where BatNbr = 'whatever' and Module = 'AP'

    You can then use "Call SQL" to execute your sql.

    Make sure you include "and Module = 'AP'" in your SQL - it is legal to have the same batch numbers in different modules.

    You will want to update only the AP one.

    Obviously your code needs to know the batch number - you will probably want to use GetObjectValue to uplift  it.

    And possibly also do a GetObjectValue to uplift the batch Status, and check it out.

    If the Status is U or P, then 03.010 is not likely to be updating the Batch table itself, and it all sounds good.

    But if the Status is anything else, 03.010 may subsequently update the batch table.

    If your code has already done that, you are likely to get an  "another process has updated the batch record" error.

    Hope that helps.

    Barry

  • Community Member Profile Picture
    on at
    RE: How to update information to a posted batch

    It's work, thanks Barry

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans