for delivery 1, shipping point A is in germany AND ROUTE is AA and ship to party is in germany.
for delivery 2, shipping point B is in germany and route is BB and ship to party is in america.
to departure point and intineray " and leg indicator is "direct leg "
shipping point B for stage 1 in shipment document and why not first shipping point B and then shiiping point A ?
2) Why did the system chose ship to party in germany in stage 2 and why not ship to party in america for stage 2 ?
How the system determines the leg for a shipment depends on the leg categories you defined in your shipment type.
You wrote that you set up the leg determination "legs determined according to departure point and intineray ".
So first of all you have to look into the intinereay, that means which sequence of ship to parties you have. In your case it is first customer A (in Germany), then customer B (in America). This sequence is coming from the sequence of deliveries (which you see on the screen "shipments and deliveries").
The departure points are in the reverse sequence of intineray, that means you load first what you unload last.
The other "direct leg" settings means just that you have one shipment doc only, no other for preliminary / subsequent leg.