2023 May 03 1:16 PM
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.
DATA: lt_attributes TYPE inm_tt_initiatives_ext,
ls_attributes LIKE LINE OF lt_attributes,
lt_msg TYPE /rpm/tt_messages,
lv_rc TYPE i.
ls_attributes-portfolio_guid = 'ECF4BBCB53101EE99CAB89FF748A63D7'.
ls_attributes-parent_guid = 'ECF4BBCB53101EDB9C89E2093E922BA5'.
ls_attributes-description = lv_nombre.
APPEND ls_attributes TO lt_attributes.
CALL FUNCTION 'INM_INITIATIVE_MODIFY'
EXPORTING
iv_edit_mode = 'C'
iv_language = 'S'
IMPORTING
ev_rc = lv_rc
TABLES
it_attributes = lt_attributes
et_msg = lt_msg.
IF lv_rc EQ 0.
MESSAGE 'Creando iniciativa...' TYPE 'I'.
PERFORM guardarItem. " HERE I SAVE ITEM
ELSE.
MESSAGE 'Error al crear la iniciativa' TYPE 'I'.
ENDIF.
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; }