Pages

Banner 468 x 60px

 

Wednesday, November 22, 2017

While select ForUpdate in x++

0 comments
While select ForUpdate in x++ :

void Batal()
{
    GG_FPJVoucher           Get_GG_FPJVoucher, getRemarked;
    voucher                 _voucher;
    ;

    Get_GG_FPJVoucher = GG_FPJVoucher_ds.getFirst(true);

    while(Get_GG_FPJVoucher)
       {
            _voucher = Get_GG_FPJVoucher.Voucher;

              ttsbegin;
              while select forupdate getRemarked where getRemarked.Voucher == _voucher
              {
                  getRemarked.BIT_Batal     = noyescombo::Yes;
                  getRemarked.update();
              }
              ttscommit;

              Get_GG_FPJVoucher = GG_FPJVoucher_ds.getNext();
       }

   GG_FPJVoucher_ds.executeQuery();
}

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