cancel
Showing results for 
Search instead for 
Did you mean: 

Mass Marketing Plans Upload

Former Member
0 Kudos

Hi Guys.

I´m creating a webdynpro in CRM 7.0, to let the user execute mass data load of Marketing Plans or Campaings. To do this, I´m using the function 'MKT_ELEMENT_CREATE', but I´m having a problem. For example, if I want to upload the following tree:

M-001 --> Marketing Plan Existing
|___ M-002 --> Marketing Plan to create
       |____ M-003 Marketing Plan to create
       |____ M-004 Marketing Plan to create

where the marketing plan M-001 exists in the system, and I want to create his son called M-002 and after the M-002 the sons, M-003 and M-004. The problem is that the system is only creating the first one (M-002), but I´m not receiving any error message from the function 'MKT_ELEMENT_CREATE' or from the function 'BAPI_TRANSACTION_COMMIT' about the other two marketing plans (M-003 and M-004).

The code would be something similar to:

LOOP AT lt_data INTO ls_data.

      CALL FUNCTION 'GUID_CREATE'
       IMPORTING
          EV_GUID_32       = lv_mktelement.

      wd_this->fill_attributes(
        EXPORTING
          data              = ls_data
        CHANGING
          is_attributes = is_attributes 
          im_below = im_below
          lt_texts    =  lt_texts
      ).

      CALL FUNCTION 'MKT_ELEMENT_CREATE'
        EXPORTING
           im_marketingelement =            lv_mktelement.
           im_attributes =                   im_attributes
           im_below =                        im_below
        TABLES
           it_texts =                        lt_texts
           return =                          return.
*
       IF return IS INITIAL.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
           EXPORTING
             WAIT          = 'X'
           IMPORTING
             RETURN        = lt_return.
       ENDIF.

ENDLOOP.

Please can you help me?

Thanks in advance.

Best Regards.

Edited by: Alberto Rubio on Jun 29, 2010 11:49 AM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Guys... I´ll answer my own question....

The issue have been fixed with the SAP NOTE number 1367918. Right now, the BAPI is working properly, and the parameter called 'return' is giving us data with the execution results.

Thanks.

Edited by: Alberto Rubio on Jun 30, 2010 11:40 AM