Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
frank_xie
Product and Topic Expert
Product and Topic Expert
0 Kudos
444

Start From SAP S/4HANA Cloud 2402.1, by importing data of preceding documents, you can create sales orders with reference to sales quotations or sales contracts. The referenced data can be header data, item data, or both.

The following table lists the fields used for document reference. You can download the import template and add relevant fields to your sales order data sheet.

Data LevelFieldDescriptionUsed For
HeaderReference document (HEADER.REFERENCESDDOCUMENT)Document number of the preceding documentHeader reference
ItemReference document (ITEM.REFERENCESDDOCUMENT)Document number of the preceding documentItem reference
ItemReference item (ITEM.REFERENCESDDOCUMENTITEM)Item number of the preceding documentItem reference

Excel Template:

Picture1.png1. Reference Example

1.1 Only Header Reference

Example: You create a sales order with reference to sales quotation 10060. The sales order header references the sales quotation, whereas the two items are created without reference.

Sales Order (Temporary ID)Reference Document (for Header)Item (Temporary ID)Reference Document (for Item)Reference Item
10011006001  
10011006002  

Result:

Document NumberItem  Reference Document (Preceding Document)Reference Item(Item of Preceding Document)
0030001001 10060 
003000100110  
003000100120  

1.2 Same Document Referenced on Header and Item Level

Example: You create a sales order with reference to sales quotation 10060. The sales order header references the sales quotation. The first item references item 10 of the sales quotation, whereas the second item is created without reference.

Sales Order (Temporary ID)Reference Document (for Header)Item (Temporary ID)Reference Document (for Item)Reference Item
10021006001 10
10021006002  

Result:

Document NumberItem  Reference Document (Preceding Document)Reference Item(Item of Preceding Document)
0030001002 10060 
0030001002101006010
003000100220  

1.3 Different Documents Referenced on Header and Item Level

Example:  You create a sales order with reference to sales quotations 10060 and 10070. The sales order header references sales quotation 10060. The first item references item 10 of sales quotation 10070, whereas the second item is created without reference.

Sales Order (Temporary ID)Reference Document (for Header)Item (Temporary ID)Reference Document (for Item)Reference Item
100310060011007010
10031006002  

Result:

Document NumberItem  Reference Document (Preceding Document)Reference Item                    (Item of Preceding Document)
0030001003 10060 
0030001003101007010
003000100320  

1.4 Only Item Reference

Example: You create a sales order with reference to sales quotation 10060. The sales order header is created without reference. The first item references item 10 of sales quotation 10060, whereas the second item is created without reference.

Sales Order (Temporary ID)Reference Document (for Header)Item (Temporary ID)Reference Document (for Item)Reference Item
1004 011006010
1004 02  

Result:

Document NumberItem  Reference Document (Preceding Document)Reference Item                (Preceding Document Item)
0060001004   
0060001004101006010
006000100420  

2. Data Entry Instructions

Due to document reference, you can leave the fields marked in blue empty and must specify the fields marked in yellow.

2.1 Header fields

With header reference, you can leave the sales area (sales organization, distribution channel, division) and sold-to party empty. The system ignores these fields in your file and copies them from the preceding document.

The following table compares how you can enter header data for creation with or without reference.

Reference or NotCredit Memo Request (Temporary ID)Credit Memo Request TypeSales OrganizationDistribution ChannelDivisionSold-to PartyReference Document (for Header)
Without reference1001CR101010005001 
With header reference1002CR    200001

2.2 Item fields

With item reference, you can leave the product-related fields (product, customer material, and GTIN (EAN/UPC)) and the requested quantity empty. The system ignores the product and GTIN in your file and copies these fields from the preceding item. If needed, you can specify the customer material and requested quantity.

If you do not specify a quantity, the system behavior regarding the requested quantity varies with the document type of the preceding document:

  • When a sales quotation or quantity contract is referenced, the system copies the open quantity of the preceding item as the requested quantity during order creation.
  • When a value contract is referenced, the system leaves the requested quantity empty during order creation.

The following table compares how you can enter item data for creation with or without reference.

Reference or NotItem (Temporary ID)ProductCustomer MaterialGTIN (EAN/UPC)Target QuantityReference Document (for Item)Reference Item
Without reference01TG11  1  
With item reference (no quantity specified)02    2000110
With item reference (quantity specified)03   52000120

Useful links:

Blog Series for Import Sales Orders

Help Document