10-13-2005 6:04 PM
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
10-14-2005 8:03 AM
Hi i just changed your code only , just check it and let me know.
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 = P-0300-00-04
DOWN = WBS-002
LEFT =
RIGHT =
WBS_ELEMENT = WBS-002
PROJECT_DEFINITION = P-0300-00-04
UP = WBS-001
DOWN =
LEFT =
RIGHT =
Just try above code(modified one) it will create one level1 wbs element and one level2 wbs element.