Skip to Content
0
Former Member
Dec 06, 2011 at 07:33 PM

problem in BAPI BAPI_REPMANCONF1_CREATE_MTS

1371 Views

Hi Expert,

I am suing BAPI BAPI_REPMANCONF1_CREATE_MTS.

I have given the input and i am not getting any errors.

i am getting the return value confirmation number also.

but if i check the material document number, material document number is not generated.

here my code.

LOOP AT IT_PLAF_STOCK_COPY.

x_bapi_rm_datgen-materialnr = it_plaf_stock_copy-matnr.

x_bapi_rm_datgen-prodplant = it_plaf_stock_copy-pwwrk.

x_bapi_rm_datgen-planplant = it_plaf_stock_copy-pwwrk.

x_bapi_rm_datgen-storageloc = it_plaf_stock_copy-lgort.

x_bapi_rm_datgen-prodversion = it_plaf_stock_copy-verid.

x_bapi_rm_datgen-postdate = p_budat.

x_bapi_rm_datgen-docdate = sy-datum.

x_bapi_rm_datgen-backflquant = it_plaf_stock_copy-gsmng.

x_bapi_rm_datgen-unitofmeasure = l1_meins.

x_BFLUSHFLAGS-BCKFLTYPE = 11.

x_BFLUSHFLAGS-COMPONENTS_TYPE = 1.

CALL FUNCTION 'BAPI_REPMANCONF1_CREATE_MTS'

EXPORTING

bflushflags = x_BFLUSHFLAGS

bflushdatagen = x_bapi_rm_datgen

BFLUSHDATAMTS = x_bflushdatamts

IMPORTING

CONFIRMATION = bfno

RETURN = e_ret.

if e_ret is initial.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

*EXPORTING

*wait = '1'.

endif.

ENDLOOP.

can any one please let me know what else parameter i need to pass to post the document.