Ansicht
Dokumentation

SD_SHIPMENT_CREATE_INVOICE - NOTRANSL: Fakturieren für einen Transport

SD_SHIPMENT_CREATE_INVOICE - NOTRANSL: Fakturieren für einen Transport

BAL Application Log Documentation   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This functional module generates invoices for those deliveries in shipment I_TKNUM.

For this, shipment items (respective to deliveries) must be included in table I_XVTTP.

Invoice generation proceeds analogously to collective processing VF04, i.e., a collective processing number C_GROUP_NUMBER is assigned and messages are returned (in table C_PROTOCOL). These messages are those which also appear with a collective procedure.

Technically, for the deliveries to be yet invoiced, transaction VTFAKT is called up here. This calls up report RV56FAKT which, in turn, uses the functional module RV_INVOICE_CREATE. In this manner, the currently running application (shipment processing) is not disturbed because invoicing runs in its owh roll area.

In invoicing, the following exceptions can occur:

  • SHIPMENT_HAS_NO_DELIVERIES: The shipment has no deliveries at all
  • ALL_DELIV_ALREADY_INVOICED: All deliveries are already invoiced
  • SOME_DELIV_ALREADY_INVOICED: Some deliveries are already invoiced. The system ingores these and invoices the others.
  • GROUP_TYPE_NOT_FOUND: Group type not found. In the invoice, a collec- tive processing number is assigned whose number range is determined by the collective processing type. In this case, it is 'F' and should, normally, always exist. If not, this error message is displayed.
  • INVOICING_NOT_SUCCESSFUL: Not all deliveries could be invoiced.




Parameters

I_TKNUM
I_XVTTP

Exceptions

ALL_DELIV_ALREADY_INVOICED
GROUP_TYPE_NOT_FOUND
INVOICING_NOT_SUCCESSFUL
SHIPMENT_HAS_NO_DELIVERIES
SOME_DELIV_ALREADY_INVOICED

Function Group

V56F

General Data in Customer Master   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 1998 Date: 20240523 Time: 044921     sap01-206 ( 39 ms )