cancel
Showing results for 
Search instead for 
Did you mean: 

BAdI Documentation Syntax Error

former_member654580
Participant
0 Kudos

Hello community,

The moment of creating a BAdI documentation that was previously created but for testing reasons it was eliminated but when creating it again it shows me a syntax error, I attach screenshots and code used.

* Mapping for Marketing Area of Interaction Contact

* Example:

* a customer field ZZ_MKT_AREA holds the marketing area of the business partner. This can be mapped into the standard marketing area field of the interaction contact

* Mapping for Marketing Area of Interaction Contact

badi-1.pngbadi-2.png

DATA lv_marketing_area TYPE if_cuan_bupa_map_types => ty_ic_marketing_area.

if bp_general_data-include-YY1_SalesOrganisationI_bus is not initial.

lv_marketing_area = bp_general_data-include-YY1_SalesOrganisationI_bus.

APPEND lv_marketing_area TO ic_marketing_areas.

endif.

Accepted Solutions (0)

Answers (2)

Answers (2)

andreas_bettin
Explorer
0 Kudos

Hello Elio,

if you are using the SOAP based Business Partner integration please implement BAdI: "Business Partner Mapping: Adjust Marketing Area". In case you are using the OData based Business Partner integration please implement "Review imported Interaction Contact data" for your purpose.

Best regards

Andreas

marc_dorais
Advisor
Advisor
0 Kudos

Hello Elio,

The code that I see in your attachment BADI-2.PNG seem to fit more with the BAdI "Business Partner Mapping: Adjust Marketing Area", but according to the attachment BADI-1.PNG you have selected the BAdI "Business Partner Mapping: Adjust Relationship Code Values".

Could you verify that you have selected the right BAdI?

Best regards,
Marc

former_member654580
Participant
0 Kudos

Hi marc.dorais

Precisely, I am not sure which is the Correct Badi, for the scenario I have:

Assign one or more marketing areas depending on the value I am receiving from C4C.

😞

Best regards

Elio C