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 LAND-00013 record and has been used on a transaction. You cannot delete the LAND-00013 record AX 2012

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