BONN, JUNE 21 -- The two German legislatures endorsed swift economic union today and solemnly vowed to conclude a treaty with Warsaw enshrining the Oder-Neisse line as the permanent Polish-German border.

The coordinated ratification votes in Bonn and East Berlin marked another milestone on the road to unification and set the legal stage for West Germany to extend its economic, monetary and social systems, including its strong currency, to East Germany beginning July 2. The economic union, agreed in a historic treaty May 18, forms a decisive practical step toward erasing the postwar division of Germany in most aspects of people's daily lives.

West German Chancellor Helmut Kohl announced today that he would urge other NATO leaders to conclude a nonaggression agreement with Warsaw Pact members to reassure Moscow about the peaceful intentions of the Western alliance and to alleviate Soviet concern about a unified Germany within NATO.

On the eve of a new round of German unification talks, East German Foreign Minister Markus Meckel presented Secretary of State James A. Baker III with a Soviet proposal that NATO and Warsaw Pact members declare they are no longer enemies and renounce the use of force against each other.

After meeting today in Berlin with Meckel and West German Foreign Minister Hans-Dietrich Genscher, Baker greeted the proposal cautiously, saying the ideas "perhaps have some promise" but "some do not."

A senior U.S. official said later, "Everyone sees some merit to the idea" of a nonaggression declaration, but important details remain undefined. A second U.S. official familiar with the issue said Meckel was "floating some ideas on how NATO and the Warsaw Pact might demonstrate the changed environment" since the collapse of hard-line Communist regimes in Eastern Europe.

Baker arrived in East Berlin Wednesday night to prepare for Friday's meeting of foreign ministers of the so-called Two-plus-Four nations -- the two Germanys and the United States, Britain, France and Soviet Union -- to begin drafting a "final settlement" of the four World War II powers' postwar responsibilities.

In separate votes in Bonn and East Berlin, both German legislatures also went on record with identical pledges to meet Poland's demand for a treaty guaranteeing its western border, defined by the Oder and Neisse rivers since World War II. But both legislatures held fast to government positions that only an all-German government can negotiate such an accord.

"Poland's border with Germany, as it stands today, is final," Kohl declared before the West German Bundestag. "At no time, either today or in the future, will it be questioned through territorial claims on the part of us Germans. After Germany has been unified, this will be reaffirmed in binding form under international law by means of a treaty with the Republic of Poland."

Poland had sought immediate draft treaties with East and West Germany, to be combined after unification and ratified by an all-German legislature. The issue once risked becoming an important obstacle to unification, envenomed by Kohl's earlier refusal to say clearly that a unified Germany would have no designs on recovering its former territory on what is now the Polish side of the Oder-Neisse border.

But with Kohl subsequently declaring respect for the present border, and with today's solemn parliamentary pledges on the horizon, the Polish government found little support in other capitals. Instead, in a compensatory gesture, Warsaw was invited to participate in border discussions by the Two-plus-Four nations at their next meeting, scheduled for mid-July in Paris.

In Warsaw, the Polish government welcomed today's joint guarantee as "a step forward," but insisted that only a legally binding treaty will put the Poles at ease, the Reuter news agency reported.

As the two Germanys march toward their goal of unification by the end of the year, President Mikhail Gorbachev's attempts to minimize the setback to the Soviet Union's strategic posture have emerged as the only remaining obstacle.

Kohl, eager to prevent a dispute, said NATO leaders at their Dublin summit conference next month must "adopt a common declaration of the allies' intention to shape their relationship with the members of the Warsaw Pact in the light of future requirements and to prepare the ground for a renunciation of force covering the whole of Europe."

"I have therefore proposed that the members of both alliances consider adopting a nonaggression pact with the CSCE framework," he added, referring to the 35-nation Conference on Security and Cooperation in Europe.

Meckel, describing the proposed nonaggression pact, said it would be a statement by the members of the two Cold War alliances "that they don't regard each other as enemies and they wouldn't use any force against each other." He said this could "create the necessary trust and include and bond the Soviet Union."

While U.S. officials seem intrigued by the idea that the declaration could allay Soviet concerns, they also point out that for all intents and purposes, the Warsaw Pact is collapsing as an alliance and that NATO faces a major restructuring.

In the same vein, Kohl said he has suggested to his partners in the European Community and in the annual summit conference of the world's seven major industrial democracies, to be held next month in Houston, that the West should envision a major economic aid effort for the Soviet Union. The idea was endorsed this week by French President Francois Mitterrand as a way to help Gorbachev succeed in his ambitious reform program. "We Germans are prepared to make our contribution," Kohl declared.

{West German government sources told the International Herald Tribune that Bonn has decided to fully guarantee a $3 billion Soviet credit being assembled by a consortium of West German banks. The sources said the consortium for the record loan is led by West Germany's biggest commercial banks, Deutsche Bank and Dresdner Bank, and is expected to include all of the country's larger banks.}

After a day-long debate, West Germany's Bundestag approved the union treaty 445 to 60, with one abstention, and passed the resolution on Poland's border with only 15 negative votes.

Ratification of the treaty had been assured since the main opposition party, the Social Democrats, decided last week to support the move despite reservations voiced by Oskar Lafontaine, its candidate to replace Kohl in next December's elections. Lafontaine, in what some analysts interpreted as pre-election positioning, warned that the cost of unification could cut into West Germans' high standard of living and that its swift pace could dangerously jolt East German society.

"Many of our fellow countrymen in the {East} German Democratic Republic will have to get used to new living conditions as well as face a transitional period that will be far from easy," Kohl acknowledged. "Nonetheless, no one will meet with undue hardship."

As expected, the East German legislature, the People's Chamber, massively approved the Polish border resolution, with only six members opposed, and also voted to ratify the union treaty by a lopsided margin, 302 to 82, with one abstention. Guenter Krause, a parliamentary leader of East Germany's governing Christian Democratic Party, hailed the result as a move from a Soviet-style "command economy" to the "social market economy" that has brought prosperity to West Germany.

But Gregor Gysi, whose former Communist party opposed ratification, warned that hasty economic union is "an act of violence" likely to set off social unrest. The East German Labor Ministry announced this week that up to 130,000 workers have lost their jobs this year as the economy moves into place for absorption into West Germany's free-market system.

Staff writer David Hoffman contributed to this report from East Berlin.