Skip to Content
0
Former Member
Mar 08, 2010 at 06:48 AM

BAPI_ROUTING_CREATE Don't create.

332 Views

Hi,

I want to upload data into CA01 using 'BAPI_ROUTING_CREATE' , and passing the parameters :

task ,materialtaskallocation, operation , suboperation and after running BAPI I am getting success message 'S' and also I am getting Groupcounter in export parameter. but don't create routing.

CALL FUNCTION 'BAPI_ROUTING_CREATE'

EXPORTING

bomusage = p_stlan

IMPORTING

group = z_group

groupcounter = z_groupctn

TABLES

task = it_task

materialtaskallocation = it_mattasklocate

operation = it_operation

componentallocation = it_compalocate

return = it_return

.

bapi_return] = it_return[.

READ TABLE it_return WITH KEY type = 'S'.

IF sy-subrc EQ 0.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'

IMPORTING

return = commit_return.

WAIT UP TO 30 SECONDS.