<?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 Create Initiative ABAP CODE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-initiative-abap-code/m-p/12709677#M2018978</link>
    <description>&lt;P&gt;When I try to create an Initiative using Abap coding, it creates a lot of steps and I dont know why this is happening. Here is my code and the demostrations of the multiple steps it creates and i want to avoid. Thanks.&lt;/P&gt;
  &lt;P&gt; DATA: lt_attributes TYPE inm_tt_initiatives_ext,&lt;BR /&gt; ls_attributes LIKE LINE OF lt_attributes,&lt;BR /&gt; lt_msg TYPE /rpm/tt_messages,&lt;BR /&gt; lv_rc TYPE i.&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; ls_attributes-portfolio_guid = 'ECF4BBCB53101EE99CAB89FF748A63D7'.&lt;BR /&gt; ls_attributes-parent_guid = 'ECF4BBCB53101EDB9C89E2093E922BA5'.&lt;BR /&gt; ls_attributes-description = lv_nombre.&lt;BR /&gt; &lt;BR /&gt; APPEND ls_attributes TO lt_attributes.&lt;BR /&gt; &lt;BR /&gt; CALL FUNCTION 'INM_INITIATIVE_MODIFY'&lt;BR /&gt; EXPORTING&lt;BR /&gt; iv_edit_mode = 'C'&lt;BR /&gt; iv_language = 'S'&lt;BR /&gt; IMPORTING&lt;BR /&gt; ev_rc = lv_rc&lt;BR /&gt; TABLES&lt;BR /&gt; it_attributes = lt_attributes&lt;BR /&gt; et_msg = lt_msg.&lt;BR /&gt; &lt;BR /&gt; IF lv_rc EQ 0.&lt;BR /&gt; MESSAGE 'Creando iniciativa...' TYPE 'I'.&lt;BR /&gt; PERFORM guardarItem. " HERE I SAVE ITEM&lt;BR /&gt; ELSE.&lt;BR /&gt; MESSAGE 'Error al crear la iniciativa' TYPE 'I'.&lt;BR /&gt; &lt;BR /&gt; ENDIF. &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2165706-screenshot-8.png" /&gt;&lt;/P&gt;
  &lt;P&gt;SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; }.L0S31 { font-style: italic; color: #808080; }.L0S32 { color: #3399FF; }.L0S33 { color: #4DA619; }.L0S52 { color: #0000FF; }.L0S55 { color: #800080; }.L0S70 { color: #808080; }&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2023 12:16:26 GMT</pubDate>
    <dc:creator>joaquinE</dc:creator>
    <dc:date>2023-05-03T12:16:26Z</dc:date>
    <item>
      <title>Create Initiative ABAP CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-initiative-abap-code/m-p/12709677#M2018978</link>
      <description>&lt;P&gt;When I try to create an Initiative using Abap coding, it creates a lot of steps and I dont know why this is happening. Here is my code and the demostrations of the multiple steps it creates and i want to avoid. Thanks.&lt;/P&gt;
  &lt;P&gt; DATA: lt_attributes TYPE inm_tt_initiatives_ext,&lt;BR /&gt; ls_attributes LIKE LINE OF lt_attributes,&lt;BR /&gt; lt_msg TYPE /rpm/tt_messages,&lt;BR /&gt; lv_rc TYPE i.&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; ls_attributes-portfolio_guid = 'ECF4BBCB53101EE99CAB89FF748A63D7'.&lt;BR /&gt; ls_attributes-parent_guid = 'ECF4BBCB53101EDB9C89E2093E922BA5'.&lt;BR /&gt; ls_attributes-description = lv_nombre.&lt;BR /&gt; &lt;BR /&gt; APPEND ls_attributes TO lt_attributes.&lt;BR /&gt; &lt;BR /&gt; CALL FUNCTION 'INM_INITIATIVE_MODIFY'&lt;BR /&gt; EXPORTING&lt;BR /&gt; iv_edit_mode = 'C'&lt;BR /&gt; iv_language = 'S'&lt;BR /&gt; IMPORTING&lt;BR /&gt; ev_rc = lv_rc&lt;BR /&gt; TABLES&lt;BR /&gt; it_attributes = lt_attributes&lt;BR /&gt; et_msg = lt_msg.&lt;BR /&gt; &lt;BR /&gt; IF lv_rc EQ 0.&lt;BR /&gt; MESSAGE 'Creando iniciativa...' TYPE 'I'.&lt;BR /&gt; PERFORM guardarItem. " HERE I SAVE ITEM&lt;BR /&gt; ELSE.&lt;BR /&gt; MESSAGE 'Error al crear la iniciativa' TYPE 'I'.&lt;BR /&gt; &lt;BR /&gt; ENDIF. &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2165706-screenshot-8.png" /&gt;&lt;/P&gt;
  &lt;P&gt;SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; }.L0S31 { font-style: italic; color: #808080; }.L0S32 { color: #3399FF; }.L0S33 { color: #4DA619; }.L0S52 { color: #0000FF; }.L0S55 { color: #800080; }.L0S70 { color: #808080; }&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 12:16:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-initiative-abap-code/m-p/12709677#M2018978</guid>
      <dc:creator>joaquinE</dc:creator>
      <dc:date>2023-05-03T12:16:26Z</dc:date>
    </item>
  </channel>
</rss>

