If you are trying to create a new record, your best bet is to call the proper business objects to do so,Â
DEFINE VARIABLE hUD10 AS HANDLE NO-UNDO.
RUN bo/UD10/UD10.p PERSISTENT SET hSalesOrder.
RUN GetaNewUD10 IN hUD10 ( {&input-output_dataset_UD10DataSet} ) NO-ERROR.
for each ttUD10 where ttUD10.RowMod = "A":
assign ttUD10.Key1 = STRING(CustNum).
assign ttUD10.Character01 = STRING(InvoiceNum).
assign ttUD10.Character02 = Descrip.
assign ttUD10.Number01 = Amount - (Amount * 2).
assign ttUD10.Date01 = TODAY.
end.
RUN Update IN hUD10 ({&input-output_dataset_UD10DataSet}) NO-ERROR. </span><br></div><div class="ygrps-yiv-2058220061gmail_default" style="font-family:verdana, sans-serif;font-size:small;"><span style="color:rgb(51,51,51);font-family:Menlo, Monaco, Consolas,;font-size:12px;line-height:20px;white-space:pre-wrap;background-color:rgb(248,248,255);">DELETE OBJECT hUD10.</span></div>
Jose C Gomez
Software Engineer
T: 904.469.1524 mobile
Quis custodiet ipsos custodes?
On Wed, Nov 20, 2013 at 7:51 AM, <phoenix_@...> wrote:Â<div> <p></p><p></p><p>Hi,</p><p>I am trying to create a new ttUD01 record in BPM but looks like it doesn't work.</p><p>I was trying this in PreProcessing as well as PostProcessing:</p><p>Â </p><p>FOR EACH ttUD01 WHERE ttUD01.Company = CUR-COMP:<br>
 DELETE ttUD01.
END.Â
CREATE ttUD01.
 ASSIGN
  ttUD01.Company = CUR-COMP
  ttUD01.Key1 = 'JobN5'
  ttUD01.Character01 = 'TO'
 .Â
In my customization the dataset which is receiving results from this BPM shows me that there is no records.
What's wrong?
</div> <div style="color:#fff;min-height:0;"></div>