Line loop system messages AutopressNextPopup()
AnsweredHi, is there a way to AutoPressNextPopup() System Messages like with saving Sales orders wich exceeds the credit limit, I tried AutoPressNexPopup, SendKeys and Click, but I cant get it to work. This line loop goes thru a Sales order report with a Sales Order line loop and saves the sales order, on some sales order I get System Messages when saving.
OpenForm(17|$[$BOY_1.DocEntry.STRING]); //Opens the Sales order Activate(); UF(UF-001); //Calls for the line loop för Sales Orders
@STORE1 = SQL('SELECT OCRD.CreditLine FROM OCRD WHERE CardCode = $[ORDR.CardCode]'); //Credit limit
IF (@STORE1 < $[$29.0.NUMBER]) // If credit limit exceeded
BEGIN
AutoPressNextPopup(); //Update
Close();
//AutoPressNextPopup(); // Yes I want to continue anyway doesn´t work
//Activate();
//SendKeys({ENTER}); // Yes I want to continue anyway doesn´t work
//Click($[$1.0.0])); // Yes I want to continue anyway doesn´t work
END
ELSE
BEGIN
AutoPressNextPopup(); //Update
Close();
END
Best regards /David
-
Official comment
Hello David,
I think an extra AutopressNextPopUp is needed, remember that SAP ask if you want to continue to save the document and then in this case if you want to skip the credit limit message :)
Please sign in to leave a comment.
Comments
1 comment