ProDataset Add Event

Chamini

New Member
HI
I have done the update event sucessfully using Prodataset, in following way

FOR EACH ttAtpBefore TRANSACTION:
BUFFER ttAtpBefore:SAVE-ROW-CHANGES() NO-ERROR.
IF BUFFER ttAtpBefore:ERROR AND ERROR-STATUS:NUM-MESSAGES > 0 THEN
DO i = 1 TO ERROR-STATUS:NUM-MESSAGES:
cErrorMsg = cErrorMsg + chr(1) + ERROR-STATUS:GET-MESSAGE(i).
END.
IF Return-value > "" THEN
cErrorMsg = (IF cErrorMsg > "" THEN cErrorMsg + chr(1) + RETURN-VALUE ELSE RETURN-VALUE ) .
END.

But Im a bit confuse on how I can handle the add event in this.
Can someone please help me how the adding of record can be handled.

Thanks in Advance
Chamini
 
Top