Functionality You can create purchase requisitions with this method. Notes Data for the purchase requisition items are transferred in tableREQUISITION_ITEMS>. You can find data that has to be transferredin the parameter documentation. Account Assignments> If the account assignment category is set in the item, accountassignment data can be transferred per purchase requisition item in thetransfer table REQUISITION_ACCOUNT_ASSIGNMENT>. The accountassignment category determines which objects that are relevant to costaccounting have to be transferred in the account assignemnt data. Ifthe account assignemnt ctaegory is K, for example, a cost center has tobe transferred. The account assignment can also be a multiple account assignment, i.e.:the account assignemnt table can contain more than one entry per item.In this case, the following indicators have to be set in the item data:
- Distribution indicator (DISTRIB)
- Partial invoice indicator (PART_INV)
If the account assignment category is not set, a stock item is created. Texts> You can transfer texts for the purchase requisition item in tableREQUISITION_ITEM_TEXT>. Limits> You can transfer limit data for the purchase requisition item in tablesREQUISITION_LIMITS> and REQUISITION_CONTRACT_LIMITS>. Services> You can transfer service data for the purchase requisition item intables REQUISITION_SERVICES>, REQUISITION_SRV_ACCASS_VALUES >, REQUISITION_SERVICES_TEXT> and EXTENSIONIN. Number Assignment> If field PREQ_NO is set in the item data, the system checks whether youare dealing with an allowed external purchase requisition number. Ifthis field is not set, the number is assigned internally and returnedin parameter Number>. Return messages> INCLUDE BAPI_RETDescription INCLUDE BAPI_KEYFIELD
Description If the indicator is set, the incorrect items are ignored and only theitems without errors are created. If you have defined customer fields in table ESLL, you can use thisparameter to transmit the data from these fields. Description This table contains the account assignment data for the purchaserequisition item. INCLUDE BAPI_DATAELEMENT Description This table contains the purchase requisition limits with reference tothe contract. INCLUDE BAPI_DATAELEMENT Description This tabel contains the item data for the purchase requisition. INCLUDE BAPI_DATAELEMENT The following data, at least, is required:
- Item counter (field PREQ_ITEM)
- Material number (field MATERIAL)
You can also transfer the following as an alternative to the materialnumber: Material group (field MATL_GROUP) and Short text (field SHORT_TEXT) and Unit of measure (field PREQ_UNIT) and Price (field PREQ_PRICE) and Purchasing group (field PUR_GROUP) If the material number is transferred, the material group, short textetc. is copied from the material master record.
- Required quantity (field PREQ_QTY)
- Required date (field DELIV_DATE always in the format YYYYMMDD) and date
category (field DEL_DATCAT (internal display, for example, 1 forcurrent date) and/or DEL_DATCAT_EXT (external display, for example, Tfor current date))
- Document type for purchase requisition (field DOC_TYPE)
- Plant (field PLANT)
Description You can transfer texts for the purchase requisition item in tableRequisitionItemText>. You can transfer:
- the allowed text types, for example item or delivery texts in field
TEXT_ID
- a SAPScript format key in field TEXT_FORM
- the actual text lines in field TEXT_LINE
If TEXT_ID is empty, an item text is always created. If TEXT_FORM isempty, the standard format key * is assigned. INCLUDE BAPI_DATAELEMENTDescription This tabe contains the limits for the purchase order. INCLUDE BAPI_DATAELEMENT Description The table contains the services and the outline layouts for thepurchase requisition. You can define a field as an outline line using field OUTL_IND.Assigning service lines to the outline lines takes place using fieldsPCKG_NO (service line) and SUBPCKG_NO (outline line). The hierarchcy for the outline is represented by fields LINE_NO andHI_LINE_NO. Field HI_LINE_NO links to field LINO_NO of the superioroutline. INCLUDE BAPI_DATAELEMENT Description You transfer texts for the service line in this table. You cantransfer:
- the allowed text types such as line text, service text in field TEXT_ID
- the actual text lines in field TEXT_LINE
If TEXT_ID is empty, a line text is created. If FORMAT_COL is empty,the standard format key * is assigned. INCLUDE BAPI_DATAELEMENTDescription This table contains the values for account assignments on service leveland a link to the overall account assignemnt for the document item(table REQUISITION_ACCOUNT_ASSIGNMENT>, field SERIAL_NO). The actual account assignment data (cost center etc.) is stored in theaccount assignment table REQUISITION_ACCOUNT_ASSIGNMENT> and isidentified by the link. INCLUDE BAPI_DATAELEMENTDescription INCLUDE BAPI_TABLE Value range Type,,ID,,Number,,Message E,,W5,,002,,No items exist - You cannot ,,,,,,save E,,W5,,057,,The purchase requisition not created E,,W5,,061,,An error occurred in enhancement & ,,,,,,(please check) E,,W5,,069,,Please also transfer a unit of measure for the ,,,,,,quantity E,,BM,,034,,ISO code & has not been assigned to unit ofmeasurement E,,B1,,882,,ISO code & has not been assigned to a currency ,,,,,,key Further ppossible messages> There may be messages from other function modules or programs, forexample: E,,ME,,083,,Please enter & &
|