Pages

Banner 468 x 60px

 

Monday, March 27, 2017

GetNextRecid by X++

0 comments
static void Addit_getNextRecId(Args _args)
{
    //Table that stores record ids details for tables
    SystemSequences SystemSequences;

    //Class that handles Record id generation
    SystemSequence systemSequence = new SystemSequence();
    ;

    info(strFmt("%1", tableNum(SalesTable))); 
  
    systemSequence.suspendRecIds(tableNum(SalesTable));
    info(strFmt("Next record id: %1", systemSequence.reserveValues(1,tableNum(SalesTable))));
    systemSequence.removeRecIdSuspension(tableNum(SalesTable));
}


0 comments:

A financial dimension value is based on the record and has been used on a transaction. You cannot delete the record

  SOLUTION delete in table DimensionAttributeLevelValue base on Bank Account  :  and Delete the Bank Account FINISH