Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Query

Former Member
0 Kudos

Hi All,

please tell me function module or bapi which can create RFQ (Request for Quotation) from PR(Purchase requisition)?

Thanks in Advance,

Ravi

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Ravindra,

We don't have a BAPI or FM for creating RFQ from PR. We have BAPI's to create(BAPI_REQUISITION_CREATE)/change(BAPI_REQUISITION_CHANGE)/delete(BAPI_REQUISITION_DELETE) PRs.

Regards,

Chetan.

PS:Reward points if this helps.

3 REPLIES 3

anversha_s
Active Contributor
0 Kudos

hi,

BAPI_ACC_PURCHASE_REQUI_CHECK Accounting: Check Purchase Requisition

BAPI_ACC_PURCHASE_REQUI_POST Accounting: Post Purchase Requisition

BAPI_REQUISITION_RELEASE Release Purchase Requisition Item by Item

BAPI_REQUISITION_CHANGE Change Purchase Requisition

BAPI_REQUISITION_CREATE Create Purchase Requisition

BAPI_REQUISITION_DELETE Delete/Close Purchase Requisition

BAPI_REQUISITION_GETDETAIL Display Purchase Requisition Details

BAPI_REQUISITION_GETITEMS Read Purchase Requisition Item

rgds

Anver

Former Member
0 Kudos

FU BAPI_REQUIREMENT_CREATE

____________________________________________________

Text

Create Requirement Coverage Request

Functionality

Method of creating a requirement coverage request. The latter can be

a purchase requisition,

if the requirement cannot be satisfied on the desired date by existing stocks on hand in the warehouse or stores, or

a reservation,

if adequate stocks are on hand.

As of SAP Release 4.0A, use the method CreateFromData of the business objects PurchaseRequisition and MaterialReservation.

Notes

The following authorization objects are checked:

M_BANF_BSA Document type in requisition

M_BANF_EKG Purchasing group in requisition

M_BANF_EKO Purchasing org. in requisition

M_BANF_WRK Plant in requisition

M_RES_BWA Reservations: Movement type

M_MRES_WWA Reservations: Plant

Data transfer

Item data

The item data of the requirement coverage request is passed on in the table RequirementItems, whereby at least the following data is necessary:

Item counter (field PREQ_ITEM)

Material number (field MATERIAL)

The following can also be given as an alternative to the material number:

Material group (field MAT_GRP) and

Short text (short description) (field SHORT_TEXT) and

Unit of measure (field UNIT) and

Price (field C_AMT_BAPI) and

Purchasing group (field PUR_GROUP)

If the material number is passed on, the material group, short text etc. are taken from the material master record.

Requested quantity (Feld QUANTITY)

Requested date (field DELIV_DATE in the format YYYYMMDD) and date type (field DEL_DATCAT)

If the current date is passed on, the date type must be '1'. Alternative types are '2' (week format) or '3' (month format); here too, DELIV_DATE must be passed on in the format YYYMMDD and is then adjusted accordingly when displayed.

Object type (field RES_REQ_ID)

If a purchase requisition is to be created, this field must contain 'X'. In the case of a reservation it must be 'Y'.

The following fields are also necessary. If they are not passed on in the method, the specifications are taken from the relevant user master record (parameter values). Note that they must at all events be available.

Document type for purchase requisitions (field DOC_TYPE)

Parameter ID BSA

Plant (Feld PLANT)

Parameter ID WRK

Storage location (field STORE_LOC)

Parameter ID LAG

Account assignments

Account assignment data for each requirement coverage request item (cost center field COST_CTR can be passed on in the transfer table ReqAccountAssignment.

If it is not passed on, costs are assigned to the cost center stored in the user master record (parameter ID CNT). A precondition for this is that the account assignment category (field ACCTASSCAT) that is passed on is not SPACE.

If the account assignment category is not passed on, a purchase requisition item without account assignment is generated.

SAP user master record

The parameter ID BWA (movement type for reservations) must be maintained in the relevant user master record.

Return

The method then returns the object number (parameter NUMBER) under which the requirement coverage request was created. The parameter ITEM is present for technical reasons and is always returned with its initial value.

If errors have occurred, these are shown in the table Return.

Number assignment

If no external object number was passed on (table RequirementItems, field PREQ_NO), the number is assigned internally by the method. A precondition for internal number assignment is that the number range object RESB (reservations) is adjusted in the Customizing facility of the Inventory Management component of the R/3 System as follows:

Change the interval with the number 01 to 0000000001 to 0019999999

Add a new interval with the number 10 from 0090000000 to 0099999999.

You can maintain the number range in the Implementation Guide (IMG):

Define number assignment for reservations

This adjustment is necessary because in the standard system the same interval has also been created for the external assignment of purchase requisition numbers. This means that one and the same number can be assigned for reservations and purchase requisitions. For example, just one number is assigned if both lines that are to be saved as purchase requisitions and lines that are to be saved as reservations are to be transferred in the table RequirementItems.

Parameters

NUMBER

ITEM

REQUIREMENT_ITEMS

REQUIREMENT_ACCOUNT_ASSIGNMENT

REQUIREMENT_ITEM_TEXT

RETURN

Exceptions

NO_OBJECT_ID

Function Group

MEWR

regards

Prabhu

Former Member
0 Kudos

Hi Ravindra,

We don't have a BAPI or FM for creating RFQ from PR. We have BAPI's to create(BAPI_REQUISITION_CREATE)/change(BAPI_REQUISITION_CHANGE)/delete(BAPI_REQUISITION_DELETE) PRs.

Regards,

Chetan.

PS:Reward points if this helps.