Skip to Content
author's profile photo Former Member
Former Member

Unable to set WBS Hierarchy using BAPI_PROJECT_MAINTAIN

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 14, 2005 at 07: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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.