<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: WBS Element Creation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/wbs-element-creation/m-p/1197249#M130034</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT Z_TEST_PMB .

DATA: ipd type BAPI_PROJECT_DEFINITION,
      imp type table of BAPI_METHOD_PROJECT with header line,
      iwbs type table of BAPI_WBS_ELEMENT with header line,
      em type table of BAPI_METH_MESSAGE with header line.

ipd-project_definition = 'PS02'.

imp-refnumber = '1'.
imp-objecttype = 'WBS-ELEMENT'.
imp-method = 'CREATE'.
imp-objectkey = ' PS024'.
append imp.

clear imp.

imp-method = 'SAVE'.
append imp.


iwbs-PROJECT_DEFINITION ='PS02'.
iwbs-WBS_ELEMENT = 'PS024'.
iwbs-DESCRIPTION = 'Preparation'.
append iwbs.

break mackowskit.
CALL FUNCTION 'BAPI_PROJECT_MAINTAIN'
  EXPORTING
    i_project_definition               = ipd
    i_project_definition_upd           = ''
  tables
    i_method_project                   = imp
   I_WBS_ELEMENT_TABLE                = iwbs
   E_MESSAGE_TABLE                    = em.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Feb 2006 07:10:06 GMT</pubDate>
    <dc:creator>former_member182670</dc:creator>
    <dc:date>2006-02-01T07:10:06Z</dc:date>
    <item>
      <title>WBS Element Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wbs-element-creation/m-p/1197246#M130031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Can anyone give me a clue of how to create a WBS Element in Background? Is there any Function Module or BAPIs available?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prompt replies would be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tamilarasan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2006 15:43:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wbs-element-creation/m-p/1197246#M130031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-24T15:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: WBS Element Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wbs-element-creation/m-p/1197247#M130032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it with BAPI BAPI_PROJECT_MAINTAIN.&lt;/P&gt;&lt;P&gt;Check documentation of this FM.&lt;/P&gt;&lt;P&gt;You should use command 'Create'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you want example code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2006 21:55:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wbs-element-creation/m-p/1197247#M130032</guid>
      <dc:creator>former_member182670</dc:creator>
      <dc:date>2006-01-31T21:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: WBS Element Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wbs-element-creation/m-p/1197248#M130033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks for that. It would be really helpful if you could gimme a sample piece of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tamilarasan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2006 01:29:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wbs-element-creation/m-p/1197248#M130033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-01T01:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: WBS Element Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wbs-element-creation/m-p/1197249#M130034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT Z_TEST_PMB .

DATA: ipd type BAPI_PROJECT_DEFINITION,
      imp type table of BAPI_METHOD_PROJECT with header line,
      iwbs type table of BAPI_WBS_ELEMENT with header line,
      em type table of BAPI_METH_MESSAGE with header line.

ipd-project_definition = 'PS02'.

imp-refnumber = '1'.
imp-objecttype = 'WBS-ELEMENT'.
imp-method = 'CREATE'.
imp-objectkey = ' PS024'.
append imp.

clear imp.

imp-method = 'SAVE'.
append imp.


iwbs-PROJECT_DEFINITION ='PS02'.
iwbs-WBS_ELEMENT = 'PS024'.
iwbs-DESCRIPTION = 'Preparation'.
append iwbs.

break mackowskit.
CALL FUNCTION 'BAPI_PROJECT_MAINTAIN'
  EXPORTING
    i_project_definition               = ipd
    i_project_definition_upd           = ''
  tables
    i_method_project                   = imp
   I_WBS_ELEMENT_TABLE                = iwbs
   E_MESSAGE_TABLE                    = em.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2006 07:10:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wbs-element-creation/m-p/1197249#M130034</guid>
      <dc:creator>former_member182670</dc:creator>
      <dc:date>2006-02-01T07:10:06Z</dc:date>
    </item>
  </channel>
</rss>

