As described in the How are requisitions transferred? section, the interface creates purchase requisitions via IDOCS in SAP.
The following picture shows the standard SAP screen for the creation of requisitions:
On this screen, the NB document type ( NB = purchase requisitions) is chosen. The purchase requisitions number is left empty for now, since it will be allocated by the system. All the fields of this screen are proposed values for the subsequent screens.
In those, additional positioning data as well as texts and account codes concerning each single position can be entered. It is important to know that under SAP each position is always kept together with the purchase requisition number. That is the reason why this relation absolutely needs to be saved as unique in Smart Materials.
The according IDOC offered by SAP for creating purchase requisitions (SAP), is named PREQCR01. This IDOC consists of the following segments.
* E1BPEBANC |
Create Transfer Structure purchase requisition – Positions |
* E1BPEBKN |
Create Transfer Structure /Display OR – Account Codes |
E1BPEBANTX |
BAPI purchase requisition, Position Text |
E1BPESUHC |
Communication structure Limits |
E1BPESUCC |
Communication structure Contract Limits |
E1BPESLLC |
Create Communication structure Performance line |
E1BPESKLC |
Create Communication structure Account Code Distribution Performance Line |
All positions of a requisition are transferred independently with all respective information (for example, purchase requisitions number) in the used IDOC as well.
Only the segments * E1BPEBANC, * E1BPEBKN, and *E1BPEBANTX are important for the requisition transfer. The other segments are also contained in the interface, but they will not be examined in this context. These segments are thus also available for configuration. A detailed description of the individual fields can be found in the SAP documentation.
Principally all of the transferred requisitions are saved in an interface table along with the respective IDOC data.
The following fields within IDOCs PREQCR01 are mandatory:
IDOC Segment |
IDOC Field |
IDOC Field Description |
---|---|---|
E1BPEBANC |
PREQ_NO |
Order Request No (will be filled in automatically by the interface) |
E1BPEBANC |
PREQ_ITEM |
Position No (will be filled in automatically by the interface) |
E1BPEBANC |
DOC_TYPE |
Type of requisition document (for example: |
E1BPEBANC |
MATERIAL |
SAP Material Number Not really a mandatory field. If not filled in, you have to fill in the Short_text field. |
E1BPEBANC |
SHORT_TEXT |
Purchasing Material Short Text Only mandatory if the field MATERIAL is not filled in. |
E1BPEBANC |
QUANTITY |
Quantity (Smart Materials increased Quantity) (will be filled in automatically by the interface) |
E1BPEBANC |
PLANT |
Plant (will be filled in automatically by the interface) |
E1BPEBANC |
PREQ_NAME |
Name of orderer |
E1BPEBANC |
QUANTITY |
Quantity (will be filled in automatically by the interface) |
E1BPEBANC |
ACCTASSCAD |
Account Code assignment category (for example: |
E1BPEBANC |
DELIVERY_DATE |
Delivery Date of the Requisition Position |
E1BPEBANC |
UNIT |
Unit of the Requisition Position |