So what you want is a action button in your page that creates the purchase quote?
You can add an action like this and complete it with your data.
action(CreatePurchaseQuote)
{
Caption = 'Create purchase quote';
ApplicationArea = all;
trigger OnAction()
var
PurchaseHeader: Record "Purchase Header";
PurchaseLine: Record "Purchase Line";
LineNo: Integer;
begin
PurchaseHeader.Init();
PurchaseHeader."Document Type" := PurchaseHeader."Document Type"::Quote;
PurchaseHeader."No." := '10000'; // The document No
PurchaseHeader.Validate("Buy-from Vendor No.", '10000'); // Your vendorNo
//Fill the rest of the fields in the head
PurchaseHeader.Insert(true);
//Create line
//Repeat for every line
PurchaseLine.Init();
PurchaseLine."Line No." := LineNo;
PurchaseLine."Document Type" := PurchaseHeader."Document Type";
PurchaseLine."Document No." := PurchaseHeader."No.";
PurchaseLine.Type := PurchaseLine.Type::Item;
PurchaseLine.Validate(PurchaseLine."No.",'10000'); // Your item no
PurchaseLine.Validate(Quantity,1); // Your quantity
//fill in the rest of the fields on the line
LineNo += 10000;
PurchaseLine.Insert(true);
end;
}