Functionality You can use this function module to create a purchase requisition withsubcontractor BOS from a customer BOS. Services and outline layoutsthat were assigned to subcontractor groups can be selected andprepared. The purchase requisition is created by BAPIBS01_REQUISITION_CREATE. Notes Selection screen> You can enter the document type, accounting assignment category, datetype (prepopulated), delivery date, plant, subcontractor group,purchasing group, material group, requirement tracking number,requester and supplying plant.Further information Description If the indicator is set, the wrong items are skipped and only the itemswithout errors are created. If you have defined customer fields in table ESLL, you can transfer thedata in these fields using this parameter. Description This table contains the account assignment data for the purchaserequisition item. INCLUDE BAPI_DATAELEMENT Description The table contains the purchase requisition limits with reference to acontract. INCLUDE BAPI_DATAELEMENT Description The table contains the item data for the purchase requisition. Valuesreceived from the COMSRV> (interface MM External Services), therequested screen and fixed values will be transferred. INCLUDE BAPI_DATAELEMENT You must fill the following fields, at least:
- item counter (PREQ_ITEM>)
- material group (MATL_GROUP>)
- short text (SHORT_TEXT>)
- unit of measure (PREQ_UNIT>)
- price (PREQ_PRICE>)
- purchasing group (PUR_GROUP>)
- requested quantity (PREQ_QTY>), here fixed value is 1
- requested date (DELIV_DATE> always with format YYYYMMDD)
- date type (DEL_DATCAT> (internal format, for example 1 for
current date) or DEL_DATCAT_EXT> (external format, for example Tfor current date))
- document type for purchase requisition (DOC_TYPE>)
- plant (PLANT>)
Description You can transfer texts for the purchase requisition item in tableRequisitionItemText>. You can transfer:
- allowed text types, for example, item or inbound delivery texts in
field TEXT_ID
- an SAP 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 key * is assigned. INCLUDE BAPI_DATAELEMENTDescription The table contains the limits of the purchase order. INCLUDE BAPI_DATAELEMENT Description The services that are to be performed by subcontractors are selectedfrom the BOS and written to table REQUISITION_SERVICES. The table contains the services and outline layouts for the purchaserequisition. You can define a line as outline line by using field OUTL_IND. You canassign service lines to the outline lines by using fields PCKG_NO (ofthe service line) and SUBPCKG_NO (of the outline line). The hierarchy of the outline is represented via fields LINE_NO andHI_LINE_NO. Field HI_LINE links to field LINO_NO of the superior oulinein the hierarchy. INCLUDE BAPI_DATAELEMENT Default Description You transfer text for services in this table. You can transfer:
- the allowed text types, for example line long text or service long
text, in the field TEXT_ID
- the actual text lines in the field TEXT_LINE
If TEXT_ID is empty, a line long text is created. If FORMAT_COL is empty, the standard format key * is assigned. INCLUDE BAPI_DATAELEMENTDescription The table contains account assignment data on the service line leveland a link to the overall account assignment of the document item(table REQUISITION_ACCOUNT_ASSIGNMENT>, field SERIAL_NO>). The actual account assignment data (cost center and others) are storedin the account assignment table REQUISITION_ACCOUNT_ASSIGNMENT>and identified with this link. INCLUDE BAPI_DATAELEMENTDescription INCLUDE BAPI_TABLE Value range Type,,ID,,Number,,Message E,,W5,,002,,No items exist (not possible to save) E,,W5,,057,,Purchase requisition & & will not be created E,,W5,,061,,An error has occurred in enhancement & (Please check) E,,W5,,069,,Please also pass on a unit of measure for the quantity E,,BM,,034,,No measurement unit is assigned to ISO-Code & E,,B1,,882,,ISO code & is not assigned to a currency key Further possible messages> Messages from other function modules or programs can occur, for example E,,ME,,083,,Please enter & &Default Description If the function is called from a report or program, you have to fillthe table. For example, the values can be determined using the functionBOS_ECP_SRC_SELECT.
|