Setting up a Self-Billing with Invoice Creation

Objective

After completing this lesson, you will be able to illustrate an understanding of the key elements involved in setting up Self-Billing with Invoice Creation

Setting up Self-Billing with Invoice Creation

Self-Billing Configuration includes different configuration apps to support self-billing processing:

The image shows three screenshots from an SAP system interface related to self-billing configuration. The first screenshot displays the Self-Billing Configuration menu with options to Define Sender Parameters, Define Sold-to Party Parameters, Manage Tolerance Groups, and Define General Parameters. The second screenshot shows the Tolerance Groups screen for a group named PDM2, with percentage limits and absolute limits for deliveries and materials, including upper and lower limits and check limits. The third screenshot shows the Define Sold-to Party Parameters screen for a party with ID 10100003, with options for automatic posting, invoice creation, and various settings for document determination and duplicate checks.

Manage Tolerance Groups

  • Define tolerances to control whether differences are accepted.
  • Create tolerance limits (% and value).
  • Check at document and item level.

Define Sold-to Party Parameters

  • Assign tolerance group.
  • Define main reference type.
  • Define document determination category.
  • Define execution automatically.
  • Define duplication check for main reference number.
  • Invoice Creation Configuration: Choose if internal tax determination (default) or customer VAT code shall be considered for posting.
The image shows three screenshots from an SAP Self-Billing Configuration interface. The first screenshot displays the main menu with options: Define Sender Parameters, Define Sold-to Party Parameters, Manage Tolerance Groups, and Define General Parameters. The second screenshot shows the Define Sender Parameters screen with a sender named PDM_Sender1 and options to edit or delete. It includes fields for Final Duplicate Check for Transmission and Repeat Yearly for Transmission Number. The third screenshot shows the General Parameters for Self-Billing screen with tabs for Automatic Posting, Invoice Creation, Archiving, and Upload Parameters. It includes settings for Billing Type, Order Reason, Difference Clearing, and Condition Type.

Define Sender Parameters

  • Identifies Sender
  • Duplication Checking

Define General Parameters

  • Import settings predefined in the integrated system, in SAP S/4HANA / SAP S/4HANA Cloud.
  • Edit and display billing types, order reasons, and condition types for Automatic Posting in self-billing processing.
  • Define archiving parameters.
  • Further details can be found in the User Guide available on SAP Help Portal.

Note

This unit covers the setup of the Self-Billing with Invoice Creation process in a one backend system scenario where SAP Self-Billing Cockpit is connected to only one SAP S/4HANA system. If you would like to learn more about how to connect SAP Self-Billing Cockpit to multiple SAP S/4HANA systems, please refer to the learning journey Configuring the Technical Setup of SAP Self-Billing Cockpit.

The image shows two screenshots from an SAP system. The first screenshot displays the Self-Billing Configuration menu with five options: Manage Tolerance Groups, Define Sold-to Party Parameters, Define Sender Parameters, Define General Parameters, and Customize Self-Billing Processing, which is highlighted. The second screenshot shows the Customize Self-Billing Processing screen. It has two sections: Deactivate Self-Billing Documents and Block Creation of New Open Items. In the Deactivate Self-Billing Documents section, there is an entry for Currency Mismatch with Yes under Automatically Deactivated and No under Entire Transmission Deactivated. In the Block Creation of New Open Items section, there is an entry for Sales Organization 2310, Sold-to Party, and Product TG80001, with No under Create New Open Item. There is an Edit button on the top right corner of the screen.

Customize Self-Billing Processing

  • Define deactivation processing for Automatic Posting in self-billing processing.
  • Block new open item creation for Automatic Posting in self-billing processing.
  • Define deactivation processing for Automatic Posting in self-billing processing.
  • Further details can be found in the User Guide available on SAP Help Portal.

Configure Order Reason in SAP S/4HANA

SAP interface showing the Change View 'Sales Documents: Order Reasons': Overview screen. The table lists various order reasons with columns for Order Reason (OrdRs), Reason (R), Self-Billing Validation Indicator (SB Val. It), and Description. The descriptions include various self-billing scenarios such as Self-Billing: Diff. Clearing (Val/Qty) and Self-Billing: Invoice Diff. (Val/Qty). The interface includes options for new entries, saving, and other standard SAP functions.

Steps

  1. Log on to the SAP S/4HANA system.

  2. Run transaction SPRO and navigate to SAP Reference IMG  → Sales and Distribution  → Sales  → Sales Documents  → Sales Document Header  → Define Order Reasons.

  3. Define the following order reasons with the recommended settings as new entries, then save the settings.

    Define Order Reason

    During the self-billing process, SAP Self-Billing Cockpit triggers the creation of an invoice if the buyer requests it. In other cases, the system triggers the creation of a credit memo if the transmitted net value is negative, and triggers the creation of a debit memo if the transmitted net value is positive.

    The following are possible order reasons:

    • Value difference of clearing document (SVC)
    • Quantity difference of clearing document (SQC)
    • Value and quantity difference of clearing document (SMC)
    • Value difference of new open item (SVO)
    • Quantity difference of new open item (SQO)
    • Value and quantity difference of new open item (SMO)
    • Value difference of invoice document (SVI)
    • Quantity difference of invoice document (SQI)
    • Value and quantity difference of invoice document (SMI)
    • No difference of invoice document (SNI)

    General Parameters for Self-Billing screen in SAP system. The screen has multiple sections including Automatic Posting, Invoice Creation, Archiving, and Upload Parameters. The Billing Type section includes Invoice Type: Self Billing Invoice (IXK5), Credit Memo Type: Self Billing Credit Memo (CXK6), and Debit Memo Type: Self Billing Debit Memo (CXK1). The Sales Document Type section includes Debt Memo Request Type: Self Billing Debit Memo Request (DR56). The Order Reason section is highlighted and divided into three columns: Invoice, Credit/Debit Memo, and New Open Item. The Invoice column lists reasons such as Value Difference, Quantity Difference, Value and Quantity Difference, and No Difference with corresponding codes. The Credit/Debit Memo column lists reasons such as Value Correction, Quantity Correction, and Value and Quantity Correction with corresponding codes. The New Open Item column lists reasons such as Value Difference, Quantity Difference, and Value and Quantity Difference with corresponding codes. The Condition Type section includes various conditions for All Documents, Invoice, and Credit/Debit Memo with specific details.

    We recommend that you define the order reasons as suggested here. This allows you to retain the default order reasons provided in the Define General Parameters app without performing more configurations.

    If you must define other new order reasons in your SAP S/4HANA system, synchronize them to SAP Self-Billing Cockpit by using the Define General Parameters app.

Define Condition Types

During the self-billing process, SAP Self-Billing Cockpit triggers the creation of an invoice if the buyer requests it. In other cases, the system triggers the creation of a credit memo if the transmitted net value is negative, and triggers the creation of a debit memo if the transmitted net value is positive.

The created documents must contain condition types for identifying the following values:

  • Price difference
  • Customer tax amount (External tax)
  • Customer tax rate (External tax rate)
  • Customer-expected value
  • Customer-expected price
  • Price-related value difference
  • Quantity-related value difference
  • Total value difference

Define Condition Types

Condition TypeDescriptionControl Data 1Changes That Can Be Made
Condition ClassCalculation TypeCondition CategoryItem ConditionDeleteAmount/Percent
DCEDPrice diff. cal.AB-YesYesYes
TCE1External taxDBDYes-Yes
TCE2External tax rateDADYesYes 
PCE1Customer-expected priceBCJYesYesYes
PCE2Customer-expected valueBBJYesYesYes
DPR1Price-related diff.BB-YesYesYes
DQU1Qty-related diff.BB-YesYesYes
DTO1Total differenceBBLYesYesYes

Steps

  1. Log on to the SAP S/4HANA system.

  2. Run transaction SPRO and navigate to SAP Reference IMG  → Sales and Distribution →  Basic Functions →  Pricing  → Pricing Control → Define Condition Types → Set Condition Types for Pricing. Alternatively, you can run transaction V/06 to navigate to the target window.

  3. Choose New Entries.

  4. Define the following condition types as new entries with the recommended settings, and then save the settings.

    Condition Type DCED

    Define Condition Type for Calculated Price Differences, Create New Condition Type, Price diff. cal.' (DCED) as shown in the following image:

    SAP interface screen titled Change View 'Conditions: Condition Types': Details. The screen shows fields for configuring condition types. The Condit. type field is filled with DCED and Price diff. cal. The Access seq. field is empty. Under Control data 1, Cond. class is set to A (Discount or surcharge), Calculat. type is set to B (Fixed amount), and Rounding rule is set to Commercial. The Group condition section has options for Group cond. and RoundDiffComp, both unchecked. The Changes which can be made section has options for Manual entries with No limitations unchecked, Header condit. unchecked, and Item condition checked with sub-options Delete, Amount/percent, and Value checked, while Qty relation and Calculat.type are unchecked. The top menu includes options for saving, creating new entries, and more actions.

    Condition Type TCE2

    Define Condition Type for Customer Tax Rate, Create New Condition Type, Customer Tax Rate'(TCE2) as shown in the following image:

    Screenshot of an SAP interface titled Change View 'Conditions: Condition Types': Details. The screen shows details for a condition type labeled TCE2 Customer Tax Rate. The Control data 1 section includes fields for Condition class (D Taxes), Calculation type (A Percentage), Condition category (D Tax), Rounding rule (Commercial), and a checkbox for positive a. The Group condition section has checkboxes for Group cond. and RoundDiffComp, with an input field for GrpCond.routine. The Changes which can be made section includes checkboxes for Manual entries, Header condit., Item condition, Delete, Amount/percent, Value, and Qty relation. The top menu includes options for saving, creating new entries, and more.

    Condition Type TCE1

    Define Condition Type for Customer Tax Value, Create New Condition Type, Customer Tax Value '(TCE1) as shown in the following image:

    SAP interface showing the Change View 'Conditions: Condition Types': Details screen. The condition type is TCE1 Customer Tax Value. Control data includes Cond. class as D Taxes, Calculat. type as B Fixed amount, Cond. category as D Tax, and Rounding rule as Commercial. Group condition options include Group cond. and RoundDiffComp. Changes which can be made include Manual entries with options for Header condit., Item condition, Amount/percent, Value, and Qty relation. The screen has options for saving, creating new entries, and exiting.

    Condition Type PCE1

    Define Condition Type for Customer-exp. Price, Create New Condition Type, Customer-exp. Price '(PCE1) as shown in the following image:

    SAP interface screen titled Change View 'Conditions: Condition Types': Details. The screen shows details for condition type PCE1 Customer-exp. Price. It includes fields for Access sequence, Control data 1, Group condition, and Changes which can be made. Control data 1 section has fields for Condition class (B Prices), Calculation type (C Quantity), Condition category (J Customer expected price/customer val), Rounding rule (Commercial), and StrucCond. Group condition section has checkboxes for Group cond. and RoundDiffComp. Changes which can be made section has checkboxes for Manual entries (No limitations), Header condition, Item condition (Delete, Amount/percent, Value), Qty relation, and Calculation type. The screen also has buttons for Records for access, New Entries, More, and standard SAP navigation icons.

    Condition Type PCE2

    Define Condition Type for Customer-exp. Value, Create New Condition Type, Customer-exp. Value '(PCE2) as shown in the following image:

    Screenshot of an SAP interface titled Change View 'Conditions: Condition Types': Details. The screen shows various fields and options for configuring condition types. The Condit. type field is filled with PCE2 and labeled Customer-exp. Value. The Control data 1 section includes fields for Cond. class set to B Prices, Calculat. type set to B Fixed amount, and Cond. category set to J Customer expected price / customer val. The Rounding rule is set to Commercial. The Group condition section has options for Group cond. and RoundDiffComp, with an empty GrpCond.routine field. The Changes which can be made section includes checkboxes for Manual entries, Header condit., Item condition (checked), Delete (checked), Amount/percent (checked), Value, Qty relation, and Calculat. type. The interface includes buttons for New Entries, More, Records for access, and standard SAP navigation icons.

    Condition Type DPR1

    Define Condition Type for Price Related Differences, Create New Condition Type, 'Price-related diff.' (DPR1) as shown in the following image:

    SAP interface showing the Change View 'Conditions: Condition Types': Details screen. The condition type is DPR1 with the description Price-related diff. Control data includes condition class B for Prices, calculation type B for Fixed amount, and rounding rule Commercial. Group condition options include Group cond. and RoundDiffComp. Changes allowed include manual entries with no limitations, header condition, and item condition with options for delete, amount/percent, and value. The screen has standard SAP navigation buttons at the top.

    Condition Type DQU1

    Define Condition Type for Quantity Related Differences, Create New Condition Type, 'Qty-related diff.' (DQU1) as shown in the following image:

    SAP interface screen showing the Change View 'Conditions: Condition Types': Details window. The condition type is set to DQU1 Qty-related diff. with no access sequence specified. Control data includes condition class B for Prices, calculation type B for Fixed amount, and rounding rule set to Commercial. Group condition options include checkboxes for Group cond. and RoundDiffComp, both unchecked. Changes which can be made section allows manual entries with options for Header condition, Item condition, Amount/percent, and Delete checked, while Value, Qty relation, and Calculat.type are unchecked. The interface includes standard SAP navigation buttons at the top.

    Condition Type DTO1

    Define Condition Type for Total Differences, Create New Condition Type, 'Total difference' (DTO1) as shown in the following image:

    SAP screen showing the Change View 'Conditions: Condition Types': Details page. The condition type is DTO1 Total difference. Control data includes Cond. class as B Prices, Calculat. type as B Fixed amount, Cond. category as L Generally new when copying, and Rounding rule as Commercial. Group condition options include Group cond. and RoundDiffComp. Changes which can be made include Manual entries with No limitations, Header condit., Item condition, Delete, Amount/percent, Value, Qty relation, and Calculat. type. The screen has options for new entries, saving, and exiting.

    Check the pricing type in copy control for billing documents to billing documents.

    SAP interface for defining copying control for billing documents. The screen shows the details for copying control with the target billing type set to G2 (Credit Memo) and the source billing type set to F2 (Invoice). The item category is LZN (Sched. Agreement Item). In the Copy section, the copying requirements are set to 027 (Item bill. to bill.), and the data VBRK/VBRP is set to 000. The Pricing Type is selected as D (Copy price elements unchanged) from a list of pricing types. The dialog structure on the left shows Header and Item sections.

    If the pricing type is D, which doesn't redetermine the price or tax, the total difference condition type is mandatory in Define General Parameters.

    If the pricing type is G, which redetermines the tax, the total difference condition type is not maintained in Define General Parameters.

    Screenshot of the SAP interface showing the General Parameters for Self-Billing screen. The screen has multiple tabs including Automatic Posting, Invoice Creation, Archiving, and Upload Parameters. A blue information box at the top advises ensuring required parameters are defined and uploaded to the SAP Self-Billing Cockpit. The screen is divided into sections: Billing Type, Order Reason, Difference Clearing, Condition Type, and New Open Item. Billing Type includes Credit Memo Type (G2) and Debit Memo Type (L2). Difference Clearing includes Value Difference (SVC), Quantity Difference (SQC), and Value and Quantity Difference (SMC). Condition Type includes Price-Related Difference (DPR1), Quantity-Related Difference (DQU2), and Total Difference (DT01), which is highlighted in red. New Open Item includes Value Difference (SVO), Quantity Difference (SQO), and Value and Quantity Difference (SMO).

Define CO-PA Value Fields

If you are working with costing-based profitability analysis, it is mandatory to assign the condition types defined for total difference to the corresponding Profitability Analysis (CO-PA) values fields.

SAP interface showing the Change View 'CO-PA: Assignment of SD Conditions to Value Fields' screen. The operating concern is A000. The table lists several condition types (CnTy) with their names, value fields (Val. fld), descriptions, and transfer indicators. The condition types listed are DCED (Price diff. cal.), DIFF (Rounding Off), DTO1 (Total difference), PNET (Net value), and PR00 (Price). All have the value field ERLOS and description Revenue. The transfer indicator is checked for DCED and DIFF.

Steps

  1. Log on to the SAP S/4HANA system.

  2. Run transaction SPRO and navigate to SAP Reference IMG  → Logistics - General → Settlement Management → Basic Settings → Profitability Analysis (COPA) → Assign Value Fields → Maintain Assignment of SD Conditions to CO-PA Value Fields.

  3. Specify the operating concern, which is a unique four-character key for the CO organizational unit.

  4. Choose the cost-based option for the profitability analysis type, and choose to create new entries.

  5. Choose the condition type that you have defined for total difference, such as DTO1, DCED.

  6. Specify the corresponding field name. For example, you can choose KWBRUM if you use the standard fields.

  7. Save your settings.

Enhance Pricing Procedures - Internal Taxes

During the self-billing process, SAP Self-Billing Cockpit creates a clearing line if the transmitted net value doesn't match the simulated net value. During value difference processing, condition types defined in Defining Condition Types influence the pricing procedure.

The image shows three screenshots of the SAP system's Change View 'Control data': Overview interface. Each screenshot displays a table under the Reference Step Overview section, listing various steps, condition types, descriptions, and other related data. The first screenshot highlights steps 885 to 895, with descriptions such as Price diff. cal. and Total difference. The second screenshot highlights steps 915 to 933, including Output Tax and Customer Tax Rate. The third screenshot highlights steps 940 to 971, with descriptions like Calculated costs and Customer-exp. Price. Each table includes columns for Step, Cty, Description, From, To, Man., Stat., Req., CalType, BasType, and Acc.

Steps

  1. Log on to the SAP S/4HANA system.

  2. Run transaction SPRO and navigate to SAP Reference IMG → Sales and Distribution → Basic Functions  → Pricing → Pricing Control → Define And Assign Pricing Procedures  → Set Pricing Procedures. Alternatively, you can run transaction V/08 to navigate to the target window.

  3. Choose the target pricing procedure (for example, RVAA01), and then use control data under procedures to show details about this pricing procedure.

  4. Define condition types with the following recommended settings, and then save the settings.

Enhance Pricing Procedures - External (Customer) Taxes

The image shows three screenshots from an SAP system displaying the Change View 'Control data': Overview screen. Each screenshot lists various steps and their details within the Reference Step Overview section. The first screenshot highlights steps 885 to 905, including descriptions like Price diff. calc. and Total difference. The second screenshot highlights steps 915 to 933, including descriptions like Output Tax and Factoring Disc. Tax. The third screenshot highlights steps 940 to 973, including descriptions like Cust Margin and Customer-exp. Price. Each step has associated columns such as Cty, Description, Req., Man., Stat., P. Suffx, CalType, BasType, and Acc.

Steps

  1. Log on to the SAP S/4HANA system.

  2. Run transaction SPRO and navigate to SAP Reference IMG  → Sales and Distribution  → Basic Functions  → Pricing  → Pricing Control  → Define And Assign Pricing Procedures  → Set Pricing Procedures. Alternatively, you can run transaction V/08 to navigate to the target window.

  3. Choose the target pricing procedure (for example, RVAA01), and then use control data under procedures to show details about this pricing procedure.

  4. Define condition types with the following recommended settings, and then save the settings.

    Follow the same steps than previous chapter for Self-Billing with Internal Taxes and do the following:

    • Changes regarding Tax Condition Types.
    • Change the line for Condition Type, 'Customer Tax Rate' (TCE2), which is placed after Standard Tax Condition Type.

Defining Criteria and Pricing Procedure Determination

Run transaction SPRO and navigate to Sales and Distribution → Basic Functions → Pricing → Pricing Control → Define and Assign Pricing Procedures.

Define Document Pricing Procedure

Here, you define separate Document criteria, 'Self-Billing w/Inv.' (D), to determine different pricing procedure for general SBINV Processing, instead of common Pricing Procedures w/o Condition Types which were needed for Self-Billing with Invoice Creation:

SAP interface screen showing the Change View 'Pricing Procedures: Transaction': Overview window. The screen includes options for creating new entries, saving, and other standard SAP functions. There is one entry listed with the description Self-Billing w/Inv.

Here, you define separate Customer criteria, 'SelfBill Cust. TxCode' (6), to determine different Pricing Procedure for external (Customer) Tax handling (where standard Tax condition must be statistic).

When Self-Billing with Invoice Creation is intended to be used with Customers' Tax Rates instead of the Internal Taxes, this Customer Pricing Procedure must be set in customer master on sales area level. The pricing procedure is determined for billing documents of such customers accordingly.

Screenshot of an SAP interface titled Change View 'Pricing Procedures: Determination in Sales Docs.' The table displays columns labeled SOrg., DChl, Dv, DoPr, CuPP, PriPr., Pricing procedure, CTyp, and Condition type. The rows contain data entries with values such as 2410, 10, 10, A, 2, YB2401, Standard ES, PR00, and Price. The interface includes buttons for New Entries, Save, Cancel, and navigation options.

For this sales area, just the Customer Pricing Procedure (6) for the external Customer Tax Code determines the pricing procedure with External Taxes (for Billing Documents with Document Procedure D). The others lead to a common Pricing Procedure with Internal Taxes.

SAP interface showing the Define Condition Purposes in Sales screen. The main screen lists a Purpose ID SBT_NOCOPY with the description Self-Billing: Suppress Condition Copy. A secondary screen titled Assign Condition Types within Pricing Procedures is also visible, showing various condition types assigned to the pricing procedure Standard ES with the description Self-Billing: Suppress Condition Copy.

Steps

  1. Log on to the SAP S/4HANA system.

  2. Define your condition purpose.

    1. Run transaction SPRO and navigate to SAP Reference IMG → Sales and Distribution  → Basic Functions  → Pricing → Condition Purpose in Pricing  → Define Condition Purposes.
    2. Define a condition purpose ID and description.
  3. Assign the condition purpose to the required condition types.

    1. Run transaction SPRO and navigate to SAP Reference IMG  → Sales and Distribution  → Basic Functions  → Pricing  → Condition Purpose in Pricing  → Assign Condition Purposes to Condition Types.
    2. Assign the condition purpose ID that you have defined to the required condition types, for example, you can assign the condition purpose ID to self-billing pricing procedures, A24028 and Y24028, with condition types, DCEDDPR1DQU1PCE1PCE2TCE1, and TCE2.

    With this filtering, new Credit and Debit Memos will not contain these conditions filled with values of the predecessor documents (invoices). Instead, the conditions contain these values, which belong to current transmitted customer data in the new documents, especially for condition types which are used as not statistical in billing documents, the filtering is active, to avoid unintended impact.

Define Billing Types

During the self-billing process, SAP Self-Billing Cockpit triggers the creation of an invoice if the buyer requests it. In other cases, the system triggers the creation of a credit memo if the transmitted net value is negative, and triggers the creation of a debit memo if the transmitted net value is positive.

Defining Billing Types

Billing Type

No. Range Int. Asst

SD Document Category

Transaction Group

Statistics

Rel. for Rebate

Cancel. Billing Type

Copying Requirements

Act Det.G/L Act

Doc. Pricing Proc

Header Partners

Item Partners

Text Determ. Procedure

Text Determ. Proc. Item

ZIXS19M7YesYesS125KOFI00DCI01CII1T8T8
ZIXG19O7-YesS225KOFI00DCI01CII1T8T8
ZIXL19P7-YesS125KOFI00DCI01CII1T8T8

Steps

  1. Log on to the SAP S/4HANA system.

  2. Run transaction SPRO and navigate to SAP Reference IMG →  Sales and Distribution  → Billing  → Billing Documents  → Define Billing Types for Sales  → Define Billing Types.

  3. Define the following billing types with recommended settings as new entries, then save the settings.

Define Sales Document Item Categories

Item Category

FieldValue
Item categoryLZSN
Billing relevanceK
PricingX
Business ItemYes
Schedule lines allowedYes
Weight/volume relevantYes
Determine costYes
Incompleteness procedure.34
Partner determination procedureN
Text determination procedureT3
Screen sequence groupN

Steps

  1. Log on to the SAP S/4HANA system.

  2. Run transaction SPRO and navigate to SAP Reference IMG → Sales and Distribution  → Sales  → Sales Documents  → Sales Documents Item  → Define Item Categories.

  3. Choose the entry in which the item category is LZN (Sched. Agreement Item) and use the copy-as function to create the item category, LZSN (self-billing w/ Inv.).

  4. Enter the following recommended values and save them.

Define Copying Control for Delivery Documents to Billing Documents

Steps

  1. Log on to the SAP S/4HANA system.

  2. Run transaction SPRO and navigate to SAP Reference IMG  → Sales and Distribution  → Billing  → Billing Documents  → Define Billing Types for Sales  Define Billing Types.

  3. Define the following billing types with recommended settings as new entries, then save the settings.

    Create new Entry Billing for Target Billing Type 'Self-Billing Invoice' (ZIXS) from Delivery Type (LF) as shown in the following image:

    SAP interface screenshot showing the Change View 'Header': Details screen. The screen is divided into three main sections: Dialog Structure on the left, Target in the middle, and Source on the right. Under Dialog Structure, Header and Item are listed. In the Target section, Target Bill. Type is set to ZIXS with the description Self-Billing Invoice. In the Source section, From Delivery Type is set to LF with the description Delivery. The Copy section includes fields for Copying requirements set to 003 Header/dlv.-related, Determ.export data, Assignment Number, Reference number, and a checkbox for Copy Item Number. The top menu includes options like New Entries, Save, and Exit.

    Item category

    FieldValue
    Item categoryLZSN
    Copying requirements430
    Billing quantityB
    Positive/negative quantity+
    Pricing typeC

    Create new Entry for Reference Item Category 'SAIt-SelfBill w/Inv.' (LZSN) as shown here:

    • The Billing Quantity (B) is used for delivery-related billing; Pricing Type (C) is used in Order to Copy manual pricing elements and redetermine all others.
    • The copy routine 430 (delivery-related items) is delivered in SAP S/4HANA 2022 FPS00. For earlier releases, you can manually create this routine.
    • To create routine 430, run transaction VOFM and navigate to Copying requirements  → Billing documents. The following is the sample code for creating the routine:
    Code Snippet
    123456789101112131415161718192021222324252627282930313233343536373839404142
    *---------------------------------------------------------------------* * Check reference delivery item in self-billing process * *---------------------------------------------------------------------* *---------------------------------------------------------------------* * FORM BEDINGUNG_PRUEFEN_430 * *---------------------------------------------------------------------* * The following work areas are available: * * * * LIKP - Reference delivery header * * LIPS - Reference delivery item * * VBAK - Reference order header * * VBAP - Reference order item (only with item reqt) * * AVBUK - Reference order header status * * VBUP - Reference del item status (only with item reqt) * * VBUK - Reference delivery header * * VBKD - Reference order item bus. data (only with item reqt.) * * KUAGV - Customer master data for the sold-to * * KUREV - Customer master data for the bill-to * * KURGV - Customer master data for the payer * * KUWEV - Customer master data for the ship-to * * * *---------------------------------------------------------------------* form bedingung_pruefen_430. sy-subrc = 0. if analyze_mode is initial. * This copy requirement is fulfilled if called via self-billing API data(lo_billing_control) = cl_sd_billing_control=>get_instance( ). if lo_billing_control->mv_bd_create_process ne lo_billing_control->sc_bd_create_process-v_self_billing. perform vbfs_hinzufuegen using lips-posnr '331' lips-pstyv space space. sy-subrc = 4. exit. endif. perform bedingung_pruefen_004. endif. * Transfer of the external fixed value date vbrk-valdt = xkomfkgn-valdt. * Fill KIDNO with external payment reference to avoid split on header level if xkomfkgn-xblnr is not initial. vbrk-kidno = xkomfkgn-xblnr. endif. endform.
    SAP interface screen showing the dialog structure for billing. The left panel lists Header and Item under Dialog Structure. The main panel has sections for Target and Source. The Target section shows Target Bill. Type as ZIXG and Self-Bill Cred. Mem. The Source section shows Source Bill. Type as ZIXS and Self-Billing Invoice. The Copy section includes fields for Copying requirements, Determ.export data, Assignment Number, Reference number, and a checkbox for Copy Item Number. The top menu includes options for saving, canceling, and exiting.

    During the self-billing process, SAP Self-Billing Cockpit triggers the creation of a billing document (that is, an invoice, a credit memo, or a debit memo) as requested by the buyer.

    Credit memos and debit memos are created with reference to an invoice. To support such document creation, copying control must be defined for copying from invoices of a specific billing type to the credit memo or debit memo.

    Procedure

    1. Log on to the SAP S/4HANA system.
    2. Run transaction SPRO and navigate to SAP Reference IMG  → Sales and Distribution Billing → Billing Documents  → Maintain Copying Control for Billing Documents  → Define Copying Control for Billing Document to Billing Document.
    3. Enter the following values as new entries and save them.

Define Copying Control Between Billing Documents

Steps

  1. Open the item dialog from the dialog structure.

  2. Enter the following values as new entries and save them.

    Item Category

    FieldValue
    Item categoryLZSN
    Copying requirements431
    Pricing typeC
  3. Repeat the previous steps to create item category, L2N.

    The copy routine 431 (billing-related items) is delivered in SAP S/4HANA 2022 FPS00. For earlier releases, you must manually create this routine.

    To create routine 431, run transaction VOFM and navigate to Copying requirements  → Billing documents. The following is the sample code for creating the routine:

    Code Snippet
    12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
    *---------------------------------------------------------------------* * Check reference billing item in self-billing process * *---------------------------------------------------------------------* *---------------------------------------------------------------------* * FORM BEDINGUNG_PRUEFEN_431 * *---------------------------------------------------------------------* * The following work areas are available: * * * * LIKP - Reference delivery header * * LIPS - Reference delivery item * * VBAK - Reference order header * * VBAP - Reference order item (only with item reqt) * * AVBUK - Reference order header status * * VBUP - Reference del item status (only with item reqt) * * VBUK - Reference delivery header * * VBKD - Reference order item bus. data (only with item reqt.) * * KUAGV - Customer master data for the sold-to * * KUREV - Customer master data for the bill-to * * KURGV - Customer master data for the payer * * KUWEV - Customer master data for the ship-to * * * *---------------------------------------------------------------------* form bedingung_pruefen_431. sy-subrc = 0. if analyze_mode is initial. * This copy requirement is fulfilled if called via self-billing API data(lo_billing_control) = cl_sd_billing_control=>get_instance( ). if lo_billing_control->mv_bd_create_process ne lo_billing_control->sc_bd_create_process-v_self_billing. perform vbfs_hinzufuegen using lips-posnr '331' lips-pstyv space space. sy-subrc = 4. exit. endif. perform bedingung_pruefen_027. endif. * Transfer of the external fixed value date vbrk-valdt = xkomfkgn-valdt. * Fill KIDNO with external payment reference to avoid split on header level if xkomfkgn-xblnr is not initial. vbrk-kidno = xkomfkgn-xblnr. endif. * Kreditkurs ermitteln IF vbrk-cmwae NE space. IF vbrk-cmwae = t001-waers. vbrk-cmkuf = 1. ELSE. CALL FUNCTION 'READ_EXCHANGE_RATE' EXPORTING date = vbrk-kurrf_dat foreign_currency = vbrk-cmwae local_currency = t001-waers IMPORTING exchange_rate = vbrk-cmkuf EXCEPTIONS no_rate_found = 1. IF sy-subrc NE 0. vbrk-cmkuf = 0. ENDIF. ENDIF. ENDIF. * Clear Exchange rate setting clear: vbrk-cpkur. * Clear status for convergent invoicing clear: vbrk-buchk, vbrk-gbstk, vbrk-vf_status, vbrk-fkk_docstat. endform.

    Similarly, repeat steps to define copying control for copying data from billing type, ZIXS, to billing type, ZIXG. All settings are the same except for the target billing type.

Define Sales Document Types

Screenshot of an SAP configuration screen for Sales Document Type settings. The screen is divided into several sections: Sales Document Type, Number systems, General control, Transaction flow.

Steps

  1. Log on to the SAP S/4HANA system.

  2. Run transaction SPRO and navigate to SAP Reference IMG  → Sales and Distribution  → Sales  → Sales Documents  → Sales Document Header  → Define Sales Document Types.

  3. Enter the values in the following table as new entries and save them.

    SAP screen displaying the configuration of a sales document type. The Sales Document Type is CRSB with the description Credit Memo Req. SB and SD Document Category K. Number systems section shows No. Range Int. Assgt. as 13, No. Range Ext. Assgt. as 14, Item No. Increment as 10, and Subitem Increment as 10. General control section includes Reference mandatory as E, Probability as 100, Read info record checked, and other options like Check division, Check credit limit, Credit group, Output application, Material entry type, Item division, Check Customer Ref., Enter PO number, Commitment date, and Disp. Preceding Docs. Transaction flow section includes Screen sequence grp. as GA, Incompl. Proced. as 14, Transaction group as 0, Doc. Pricing Proc. as XS, Status profile, Alt. sales doc. type1, Alt. sales doc. type2, Variant, Credit/Debit Memo, Display Range as UALL, FCode for overr.scr. as UER2, Quotation Messages, Outline Agrmt. Mess., Message: Mast.contr., ProdAttr.messages, and Incomplet.messages.

Define Copying Control for Sales Documents to Billing Documents

Screenshot of a software interface showing a configuration screen for billing document types. The screen is divided into three sections: Target, Source, and Copy. In the Target section, the Target Bill. Type is set to ZIXS, labeled as Self-Billing Invoice. In the Source section, the Ref. SalesDoc Type is set to DRSB, labeled as Debit Memo Req. SB. In the Copy section, the Copying Requirements is set to 001, labeled as Header/order-related. There are fields for Assignment Number and Reference Number, both of which are empty. There is also a checkbox for Copy Item Number, which is unchecked. The left sidebar shows a structure with Header and Item options.

Steps

  1. Log on to the SAP S/4HANA system.

  2. Run transaction SPRO and navigate to SAP Reference IMG → Sales and Distribution  → Billing  → Billing Documents → Maintain Copying Control for Billing Documents  → Define Copying Control for Sales Document to Billing Document.

  3. Enter the following values as new entries and save them.

    SAP screen showing configuration for billing document types. The Target section includes Target Bill. Type: CIXS and Self-Billing Invoice. The Source section includes Ref. SalesDoc Type: DRSB and Debit Memo Req. SB, with Item Category: L2N and Request. The Copy section includes Copying Requirements: 432, Billing Quantity: A, Pos./Neg. Quantity: +, Pricing Type: D, and fields for Data VBRK/VBRP, PricingExchRate Type, and Price Source.
  4. Open the item dialog from the dialog structure.

  5. Enter the following values as new entries and save them.

    The copy routine 432 (order related items) is delivered in SAP S/4HANA 2022 FPS00. For earlier releases, you must manually create this routine.

    To create routine 432, run transaction VOFM and navigate to Copying requirements  → Billing documents. The following is the sample code for creating the routine:

    Code Snippet
    12345678910111213141516171819202122232425262728293031323334353637383940414243
    *---------------------------------------------------------------------* * Check reference order item in self-billing process * *---------------------------------------------------------------------* *---------------------------------------------------------------------* * FORM BEDINGUNG_PRUEFEN_432 * *---------------------------------------------------------------------* * The following work areas are available: * * * * VBAK - Reference order header * * VBAP - Reference order item (only with item reqt) * * VBUP - Reference order item status (only with item reqt) * * VBUK - Reference order status (only with item reqt) * * VBKD - Reference order item bus. data (only with item reqt) * * KUAGV - Customer master data for the sold-to * * KUREV - Customer master data for the bill-to * * KURGV - Customer master data for the payer * * KUWEV - Customer master data for the ship-to * * * *---------------------------------------------------------------------* form bedingung_pruefen_432. sy-subrc = 0. if analyze_mode is initial. * This copy requirement is fulfilled if called via self-billing API data(lo_billing_control) = cl_sd_billing_control=>get_instance( ). if lo_billing_control->mv_bd_create_process ne lo_billing_control->sc_bd_create_process-v_self_billing. perform vbfs_hinzufuegen using lips-posnr '331' lips-pstyv space space. sy-subrc = 4. exit. endif. perform bedingung_pruefen_002. endif. * Transfer of the external fixed value date vbrk-valdt = xkomfkgn-valdt. * Fill KIDNO with external payment reference to avoid split on header level if xkomfkgn-xblnr is not initial. vbrk-kidno = xkomfkgn-xblnr. endif. * Clear Exchange rate for FI postings and Exchange rate setting clear: vbrk-kurrf, vbrk-cpkur. * Clear status for convergent invoicing clear: vbrk-buchk, vbrk-gbstk, vbrk-vf_status endform.

    For a scenario that creates a debit memo in a debit memo request.

    Two screenshots of an SAP interface showing the configuration of billing document types. The first screenshot displays the Target section with Target Bill. Type: ZIXL and Self-Billing Debit Memo selected. The Source section shows Ref. SalesDoc Type: DRSB and Debit Memo Req. SB. The Copy section has Copying Requirements: 001 Header/orc. The second screenshot shows similar fields but with additional details in the Copy section, including Copying Requirements: 303 It: Item/Order-Rel. and Data VBRK/VBRP. Both screenshots include a dialog structure with Header and Item options.

    For a scenario that creates a credit memo in a credit memo request.

    The image shows two screenshots of a software interface, likely from an SAP system. The first screenshot displays a Header section with Target and Source fields. The Target Bill. Type is set to C1XG for Self-Billing Credit Memo, and the Ref. SalesDoc Type is CRSB for Credit Memo Req. SB. The Copying Requirements field is set to 301 with a description Header/order-related. The second screenshot shows an Item section with similar Target and Source fields. The Target Bill. Type is C1XG for Self-Billing Credit Memo, and the Ref. SalesDoc Type is CRSB for Credit Memo Req. SB. The Item Category is G2N for Request. The Copying Requirements field is set to 323 with a description Item/Order-Rel. Both screenshots have a Dialog Structure panel on the left with Header and Item options.

Define Copying Control for Billing Documents to Sales Documents

The image shows two screenshots from an SAP system configuration screen. The first screenshot is focused on the Header section, where the target sales document type is DRSB (Debit Memo Req. SB) and the source billing type is CIXS (Self-Billing Invoice). The copying requirements are set to 021 for the billing header, with data transfer settings for VBAK, VBBK, and VBPA fields. The second screenshot is focused on the Item section, with the same target and source document types. The copying requirements are set to 303 for always an item, with data transfer settings for VBAP, VBBK, and VBPA fields. Options for copying item numbers, schedule lines, and other settings are also visible.

Steps

  1. Log on to the SAP S/4HANA system.

  2. Run transaction SPRO and navigate to SAP Reference IMG → Sales and Distribution → Sales → Sales Documents → Copying Control for Sales Documents  → Set Copying Control: Billing Document to Sales Document.

  3. Enter the following values as new entries and save them.

    For the fully billed scenario, SAP Self-Billing Cockpit creates a debit memo request reference to the initial billing document. Then, create the new billing document in this debit memo request.

Define Sender Parameters

Steps

  1. Log on to the SAP Fiori launchpad and launch the Define Sender Parameters app.

    Sender Parameters

    Field NameDescriptionNecessity
    SenderSender nameMandatory
    Sender IDSender ID, which the system reads from the received self-billing documentsMandatory
    Final duplicate check for transmissionFinal date for identifying duplicate transmissionsOptional
    Repeat yearly for transmission numberIndicator that controls whether to allow the transmission number to repeat yearly in duplicate checksOptional
  2. Choose Create, fill the following fields, and save them to create a configuration entry for senders.

Define Sold-to Party Parameters

With this app, you can define parameters for sold-to parties involved in self-billing with automatic posting or in self-billing with invoice creation. These sold-to parties correspond to those that exist in the integrated system.

Key Features

  • Create, edit, display, and delete configuration entries for sold-to parties.
  • Define tolerance groups for sold-to parties.
  • Specify the main reference type for each sold-to party.
  • Define the document determination category.
  • Determine whether to automatically execute self-billing after a simulation has been performed.
Invoice creation configuration screen with the ID 24100002. The screen has two tabs: General Information and Invoice Creation. Under General Information, there is a Configuration section with an Automatic Posting toggle switch set to off and an Invoice Creation toggle switch set to on. Under Invoice Creation, there are two sections: Basic Data and Document Determination Category for Invoice Creation. In Basic Data, fields include Main Reference Type for Invoice Creation, External Billing Document Number, Tolerance Group for Invoice Creation set to ABS, Execute Automatically for Invoice checkbox unchecked, Posting Tax in Billing with options Internal Tax Determination selected and Customer VAT Code unselected. In Document Determination Category for Invoice Creation, there are checkboxes for Outbound Delivery checked and External Delivery Note unchecked.

Steps

  1. Log on to the SAP Fiori launchpad and launch the Define Sold-to Party Parameters app.

    Sold-to Party Parameters

    Field NameDescriptionNecessity
    Main reference type of automatic posting

    Type of main reference number to be updated in billing documents and journal entries to ease subsequent incoming payment processes.

    Among various types of reference numbers that can be present in the received self-billing documents (such as the check number, header reference number, and supplier posting number), one is chosen as the main reference type.

    Mandatory
    Tolerance group for automatic postingTolerance group defined for the sold-to party mentioned earlier.Optional
    Document determination category for automatic posting

    Document category used for determining a delivery.

    You can choose to use the outbound delivery, the external delivery note, or both as the determination category.

    If both are chosen, the system first tries to determine the delivery based on the outbound delivery number. If it fails, the system tries to determine the delivery based on the external delivery note number. If it fails again, the system reports an error.

    Note

    In the context of sales scheduling agreements with consignment, suppliers use the external delivery note number received from senders to determine deliveries.
    Mandatory
  2. Create a configuration entry. Specify the sold-to party by entering the ID of the buyer, and choose to configure automatic posting, invoice creation, or both.

  3. If you chose to configure automatic posting, fill the following fields and save them to create a configuration entry for the sold-to parties.

Manage Tolerance Groups (Optional)

With this app, you can define tolerance groups to specify tolerance limits for self-billing processing. Specifically, you can use the tolerance limit to define the maximum tolerated difference between the transmitted net value and the referenced net value. If the difference exceeds the tolerance limit, an open item or open line is created. Defined tolerance groups can be assigned to sold-to parties in the Define Sold-to Party Parameters app.

Key Features

  • Create, edit, display, and delete tolerance groups.
  • Maintain upper and lower tolerance limits, either absolute values or percentage values.
  • Maintain tolerance limits at the document level or product level.
  • Maintain absolute tolerance limits in multiple currencies.
SAP interface showing Tolerance Groups for ABS. The screen displays two tabs: Percentage Limits and Absolute Limits. Under Percentage Limits, all fields for Upper and Lower Limits per Document and Product are empty, with Check Limit set to No. Under Absolute Limits, there is one entry for EUR currency with Upper Limit per Document set to 60.00 EUR, Check Limit set to Yes, Lower Limit per Document set to 60.00 EUR, Upper Limit per Product set to 30.00 EUR, and Lower Limit per Product set to 30.00 EUR. The screen also shows options to Edit, Delete, Create, and Cancel. The last changed date is April 14, 2022.

Steps

  1. Log on to the SAP Fiori launchpad and launch the Manage Tolerance Groups app.

  2. Choose Create, specify the following parameters, and save them to create a tolerance group.

    Parameters

    Field NameDescriptionNecessity
    Tolerance groupID of the new tolerance groupMandatory
    DescriptionTolerance group descriptionOptional
    Sales organizationSales organization responsible for the sale of products to the buyerMandatory
  3. (Optional): Choose Edit, navigate to the tab page for defining percentage limits, define the settings for the tolerance limits, and save them.

  4. (Optional): On the tab page for defining absolute limits, define new settings and save them. You can define absolute limits in multiple currencies.

    Set the check limit separately for each tolerance limit. If you select it for a given tolerance limit, the system checks the difference against this tolerance limit. If you don't select it for a tolerance limit, any difference that occurs is considered within this tolerance limit.

    If the transmitted net value is lower than the referenced net value, the system checks the difference against the lower limit. Otherwise, the system checks the difference against the upper limit.

    The system checks against the following tolerance limits (if defined and selected) in sequence and stops the tolerance check if any of the following tolerance limits is exceeded: percentage limit per document, absolute limit per document, percentage limit per item, and absolute limit per item.

Log in to track your progress & complete quizzes