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
- Set up a third-party/drop shipment scenario where a supplier ships goods directly to the end customer while the company issues the invoice.
- Generate the e-invoice/e-way bill using the standard process.
- 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).
- In the implementation, detect the third-party/drop shipment scenario.
- Populate the Actual Dispatch From fields with the supplier’s dispatch address:
- act_from_state_code
- act_from_addr1
- act_from_addr2
- act_from_place
- act_from_pincode
- 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).
- Regenerate the e-invoice/e-way bill and confirm that DispatchFrom carries the supplier’s GSTIN and address.
See Also
- Refer to: 3412932 - eWay Bill | Steps to configure for India GST
- Refer to: 3761875 - Enhancements to E-Waybill portal as per GSTN advisory
- Refer to: Embedded Steampunk – Some more details for ABAP developers
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
SAP Knowledge Base Article - Public