Hi,
If your worry is about document split please make use of technical accounts assignment.In this step , you assign one document split account to an account key, it is a clearing account in accounting side.
If you configure this part the document will split if there is are several company codes in the document.
If the problem is with different GLs for the same wage type depends up on conditions the answer already given by the other members, through feature PPMOD.
Have a Great Day
Jaguar