cancel
Showing results for 
Search instead for 
Did you mean: 

Error 149 BAPI_BUS2175_RELATION_ADD

Former Member
0 Kudos

Hello Experts,

I have a problem with the BAPI_BUS2175_RELATION_ADD in cProjects 5.0. I want to add relationships between tasks via the BAPI, but I always get the error 149: Error occurred when creating the relationship.

Here are my input data for the BAPI:

Import parametersValue
TASK_GUIDTask Guid from the task where the relationship should be created
IV_RELATED_TASK_GUIDTask Guid from the successor task
IV_FLAG_PREDECESSORempty
IS_RELATIONSHIP
TIME_INTERVAL0
CALENDARempty
RELATIONSHIP_TYPE1
IS_RELATIONSHIP_UPD
TIME_INTERVALX
CALENDARX
RELATIONSHIP_TYPE_TEXTX

Any ideas what I'm doing wrong?

Regards

Christian

Accepted Solutions (1)

Accepted Solutions (1)

Brendan_Ward
Advisor
Advisor
0 Kudos

Hello Christian,

Use the following BAPI sequence:

BAPI_BUS2172_LOAD (with the project GUID, setting change mode = 'X')

BAPI_BUS2175_RELATION_ADD

BAPI_CPROJECTS_COMMIT_WORK

Best Regards,

Brendan

Former Member
0 Kudos

Hello Brendan,

thanks for your helpful answer.

Best Regards

Christian

Answers (0)