SAP Knowledge Base Article - Public

3834659 - E-Way Bill DispatchFrom shows company address instead of supplier in drop shipment (India GST) — SAP S/4HANA Cloud Public Edition

Symptom

In a triangular/drop shipment scenario where the company bills the customer but goods are dispatched directly from a third-party supplier, the E-Way Bill DispatchFrom node must carry the supplier's GSTIN and address, but the document shows the company's address instead.

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Set up a third-party/drop shipment scenario where a supplier ships goods directly to the end customer while the company issues the invoice.
  2. Generate the e-invoice/e-way bill using the standard process.
  3. Review the DispatchFrom details in the e-way bill preview/payload; observe that the company's address is populated instead of the supplier's dispatch address.

Cause

In the standard logic, both from_state_code and act_from_state_code are derived from the company’s address; because they are equal, DispatchFrom remains the company’s address even in third-party scenarios.

Resolution

The “Maintain Transportation and Other Field Mappings” (SSCUI/view EDOINEWBCONFIGV) only maps fields after address/partner determination and cannot override dispatch address selection or map a custom partner directly to DispDtls.

Therefore you need to implement BAdI EDOC_ADAPTOR_CLOUD (method SET_OUTPUT_DATA) using the Custom Logic app (Embedded Steampunk).

  1. In the implementation, detect the third-party/drop shipment scenario.
  2. Populate the Actual Dispatch From fields with the supplier’s dispatch address:
    1. act_from_state_code
    2. act_from_addr1
    3. act_from_addr2
    4. act_from_place
    5. act_from_pincode
  3. Rely on standard method MODIFY_TRANSACTION_TYPE to adjust the transaction type automatically when from_state_code ≠ act_from_state_code (Type 3 if Bill-To = Ship-To; Type 4 otherwise).
  4. Regenerate the e-invoice/e-way bill and confirm that DispatchFrom carries the supplier’s GSTIN and address. 

See Also

Keywords

E-Way Bill, DispatchFrom, drop shipment, third-party sales, India GST, e-invoice, DispDtls, EDOC_ADAPTOR_CLOUD, SET_OUTPUT_DATA, act_from_state_code, from_state_code, transaction type 3, transaction type 4, SSCUI EDOINEWBCONFIGV, partner determination , KBA , CA-GTF-CSC-EDO-IN-EW , India – E-Waybill , Problem

Product

SAP S/4HANA Cloud Public Edition all versions