I'm trying to use BAPI_SHIPMENT_CREATE to create a shipment from an outbound delivery. The problem is that when I try to create the shipment from se37 in R/3 updating the status of the shipment (planned, check-i, loaded, etc) the shipment is created succesfuly, but when I try to use it from the XI the shipment is telling me that it was created but I can't see it in the R/3, it is only created if I remove the status from the BAPI. Any Ideas of why this is happening? The RFC is called with the Commit so I don't thing that is the problem.
Other solution would be to use IDoc SHPMNT05 but the documentation of what data does it need is very confusing. Thanks.