cancel
Showing results for 
Search instead for 
Did you mean: 

User exit to check if a purchase reqn number exists before creating an rfq

Former Member
0 Kudos

A check has to be made if purchase reqn number exists in eket table for a given ebeln number before creating a rfq.

ebeln has to be fetched from ekko table where bstyp = 'A'.

ebeln fetched from ekko is used to get record from eket table.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

there is a badi getting triggerred when a RFQ is saved :

ME_PURCHDOC_POSTED.

Here use Method : POSTED. Which has an imorting parameter IM_EKET.

So here check for field BANFN of IM_EKET and trigger an error message.

Former Member
0 Kudos

Hi Krishna,

User Exit relevant for your requirement is <b>LMEQR001</b>.

In this Enhacement >Function module EXIT_SAPLMEQR_001-> EKET-BANFN and EKET-BNFPO are importing parameters.

check wheter EKET-BANFN and EKET-BNFPO are initial. These wil have requisition number for that corresponding PO schedule line.

Regards,

Vinod.

Former Member
0 Kudos

user exit LMERQ001 does not execute when saving an RFQ created.

User exit should execute to check if purchase requisition number exists

when saving an RFQ.

Former Member
0 Kudos

the purchase requisiton number is available in EKET.

All you need to do is check wheter EKET-BANFN and EKET-BNFPO is not initial. This will hold the requisition number for that corresponding PO schedule line.