Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

'BAPI_ROUTING_CREATE' Don't Create

Former Member
0 Likes
570

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.

2 REPLIES 2
Read only

venkat_o
Active Contributor
0 Likes
505

Hi, <li>Check the below program in the link provided. <b><u>[ BAPI_ROUTING_CREATE - Creation of a routing|http://www.sapnet.ru/viewtopic.php?t=1951&sid=520e3db2937fef4ed18117f320f9539e]</u></b> Thanks Venkat.O

Read only

Former Member
0 Likes
505

Hello,

do you have thi txt file needed as a data source for this bapi ?

tks.