Skip to Content
0
Former Member
Oct 13, 2005 at 05:04 PM

Unable to set WBS Hierarchy using BAPI_PROJECT_MAINTAIN

505 Views

Hi,

I am working on a Integration Scenario in XI. In this I am executing BAPIs through RFC adapter. I am using BAPI_PROJECT_MAINTAIN to create WBS Elements in Project System. After creating WBS Elements when I try to define the hierarchy, the BAPI calls executes successfully but the hierarchy is not visible when viewed in the SAP WEB GUI.

I am using following parameters to define WBS hierarchy:

*IMethodProject

OBJECTTYPE = WBS-HIERARCHY

METHOD = CREATE

OBJECTKEY =

REFNUMBER =

OBJECTTYPE =

METHOD = SAVE

OBJECTKEY =

REFNUMBER =

*IProjectDefinition

PROJECT_DEFINITION = P-0300-00-04

*IWbsHierarchieTable

WBS_ELEMENT = WBS-001

PROJECT_DEFINITION = P-0300-00-04

UP =

DOWN = WBS-002

LEFT =

RIGHT =

WBS_ELEMENT = WBS-002

PROJECT_DEFINITION = P-0300-00-04

UP = WBS-001

DOWN =

LEFT =

RIGHT =

In normal case the WBS element 'WBS-002' should move below 'WBS-001', but when I execute BAPI with above parameters, the Hierarchy is not visible in the GUI the both WBS Elements remain at root level, even I get '000' as response with no errors.

When I run the BAPI through transaction SE37 with same parameters as above, the changes are visible in the GUI.

Can anyone please tell what am I missing here.

Thanks & Regards,

Ajay