Freight invoice IDOC from carrier
my customer wants to post freight invoices from their carrier via EDI.
<u>The process in short is the following:</u>
- Create 3rd party Customer sales order
- Create Delievery
- Create Shipment document -> This is transferred to the carrier.
- Receive IDOC, which creates a shipping cost document (SCD). This is the cost estimate for the transport service. The SCD triggers the creation of a service PO.
- Receive Invoice IDOC from carrier. As a reference, the shipment number is sent from the carrier.
Posting should be done via MIRO.
When posting manually, the User would select in the PO Reference corner, the partner "6 Transportation Agent service" and the vendor number of the carrier. Then, the system is asking for the reference, which could be delivery number, shipment number, etc. With this information, the system calls automatically for the service PO.
I'm currently testing a solution, but the system is requesting over and over again for the PO number in segment E1EDP02 (001). The carrier does not know the PO number and can only provide shipment number or delivery.
Am I using the wrong function module? I tried with IDOC_INPUT_INVOIC_MRM and IDOC type INVOIC01.
If it's related to the information in the IDOC, could you let me know the structure?
e.g. which partner type to use in E1EDKA1 or which qualifiers I need to use?
Every help would be highly appreciated.
Thanks in advance,