on 2005 Jun 21 7:54 AM
Hello SDN Members,
I have written a BSP where I try to update Marketing Attributes via the function module CRM_MKTBP_ASSIGN_ATTRIBUT_TAB. Unfortunately the update via the BSP does not save the data. When I call the function module in Transaction SE37 it works perfect. Any suggestions?
Regards
Gregor
Hi Gregor,
What is the sy-subrc value after the function call?
Can you also do a commit work after the function call? Let me know how it goes.
Regards, Debasish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Debasish,
I also tried now to do a extra call of BAPI_TRANSACTION_COMMIT but the result is still the same. For clarification here is the used source:
OnInputProcessing:
* event handler for checking and processing user input and
* for defining navigation
DATA: it_partner TYPE TABLE OF crmt_mktbp_partner_tab,
wa_partner LIKE LINE OF it_partner.
DATA: it_attributes TYPE TABLE OF crmt_mktpfchr_attribute_line,
wa_attributes LIKE LINE OF it_attributes.
DATA: assign_return LIKE lt_return.
*
* Partnertabelle füllen
*
wa_partner-partner = '1010115'.
wa_partner-partner_guid = '7200EBF9DDB8E742942410CC501CB956'.
APPEND wa_partner TO it_partner.
*
* Attributstabelle füllen
*
wa_attributes-atname = 'A-KONTAKTPROFIL'.
wa_attributes-atvalue = 'AKZEPTIERT EMAIL HTML'.
wa_attributes-datatype = 'M'.
APPEND wa_attributes TO it_attributes.
wa_attributes-atvalue = 'AKZEPTIERT EMAIL NUR TEXT'.
APPEND wa_attributes TO it_attributes.
*
* Merkmalswerte schreiben
*
CALL FUNCTION 'CRM_MKTBP_ASSIGN_ATTRIBUT_TAB'
EXPORTING
iv_attribute_set = 'KUNDENPROFIL'
iv_msa = ' '
iv_commit = 'X'
iv_obtyp = 'BUT000'
TABLES
it_partner = it_partner
et_return = assign_return
it_attributes = it_attributes.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'
* IMPORTING
* RETURN =
.
APPEND LINES OF assign_return TO lt_return.
Layout
<%@page language="abap"%>
<%@extension name="htmlb" prefix="htmlb"%>
<htmlb:content design="design2003">
<htmlb:page title = "Startseite ">
<htmlb:form>
<%
if lt_return is not initial.
%>
<htmlb:group title="Meldungen" >
<htmlb:groupBody>
<htmlb:tableView id = "table"
table = "<%= lt_return %>" >
</htmlb:tableView>
</htmlb:groupBody>
</htmlb:group>
<%
endif.
%>
<htmlb:button id = "save"
onClick = "save"
text = "Speichern"></htmlb:button>
</htmlb:form>
</htmlb:page>
</htmlb:content>
Regards
Gregor
User | Count |
---|---|
23 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.