Skip to Content
0
Nov 30, 2011 at 09:31 AM

ME41 create - create RFQ - BAPI - Userexit

329 Views

Hello experts,

I'm was trying to find a BAPI to create a request for quotation (RFQ).

I read the thread [bapi-to-create-purchase-requisition;, so there seams to be no BAPI.

For that reason I tried to solve the problem with batch input. It created a RFQ. But in further steps the transaction normally loops throught a amount of suppliers, the RFQ is directed to.

CLEAR ls_bdc_data.
ls_bdc_data-fnam = 'BDC_OKCODE'.
ls_bdc_data-fval = '/00'.
APPEND ls_bdc_data TO lt_bdc_data.

ls_ctu_params-racommit = ''.
ls_ctu_params-nobinpt = 'X'.
ls_ctu_params-dismode = 'E'.
* ls_ctu_params-updmode = 'S'.
ls_ctu_params-nobiend = 'X'.

CALL TRANSACTION 'ME41' USING lt_bdc_data OPTIONS FROM ls_ctu_params.

Does anybody have an idea.

Best regards,

Andi