Skip to Content
0
Former Member
Jan 26, 2008 at 03:52 AM

BAPI_REPMANCONF1_CREATE_MTS for Posting 261 MT.

3711 Views

Hi,

I am using the BAPI 'BAPI_REPMANCONF1_CREATE_MTS' for performing the component backflush for the movement type '261'.But the bapi is yielding me a cofirmation number but there is no material document is getting created.

By using the MFBF transaction using the same input which i use for populating the BAPI structures is working fine with the direct input to the MFBF.The material document is getting created.

If anyone had used the BAPI for the movement type '261' and was successful in creating the material document for the same.Kindly let me know.

PFB is the data which i was populating for the bapi.Thanks in advance.Expecting a reply.

x_BFLUSHFLAGS-BCKFLTYPE = '11'.

x_bflushdatamts-REPPOINT = '0160'.

x_bapi_rm_datgen-materialnr = '3000-000-000'.

x_bapi_rm_datgen-prodplant = 'CRA1'.

x_bapi_rm_datgen-planplant = 'CRA1'.

x_bapi_rm_datgen-storageloc = 'FG01'.

x_bapi_rm_datgen-prodversion = 'P001'.

x_bapi_rm_datgen-batch = 'CPUTEST03'.

x_bapi_rm_datgen-postdate = '20080125'.

x_bapi_rm_datgen-docdate = '20080125'.

x_bapi_rm_datgen-backflquant = '1.000'.

x_bapi_rm_datgen-unitofmeasure = 'ST'.

x_bapi_rm_datgen-ordercosts = 'X'.

x_gm-material = '3000-000-001'.

x_gm-plant = 'CRA1'.

x_gm-stge_loc = 'MFG2'.

x_gm-batch = 'CPUASSY05'.

x_gm-move_type = '261'.

x_gm-base_uom = 'ST'.

x_gm-QUANTITY = '3.000'.

append x_gm to i_gm.

*

  • x_gm-material = '3000-000-001'.

  • x_gm-plant = 'CRA1'.

  • x_gm-stge_loc = 'SS'.

  • x_gm-batch = 'TV07071901'.

  • x_gm-move_type = '261'.

  • x_gm-base_uom = 'ST'.

  • x_gm-QUANTITY = '3.000'.

  • append x_gm to i_gm.

CALL FUNCTION 'BAPI_REPMANCONF1_CREATE_MTS'

EXPORTING

bflushflags = x_BFLUSHFLAGS

bflushdatagen = x_bapi_rm_datgen

BFLUSHDATAMTS = x_bflushdatamts

IMPORTING

CONFIRMATION = bfno

RETURN = x_re

TABLES

GOODSMOVEMENTS = i_gm

.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = '1'.

Thanks and regards,

~Karthik