cancel
Showing results for 
Search instead for 
Did you mean: 

How to Update existing Business Partner using CL_MD_BP_MAINTAIN

0 Kudos

Hello All

We are using CL_MD_BP_MAINTAIN with CVIS_EI_EXTERN_T to create BP, but would like to know how to change/update the BP.SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; }

Accepted Solutions (0)

Answers (1)

Answers (1)

shwetha_hs
Employee
Employee
0 Kudos

Hello Naveen,

You can do the update by passing appropriate values in the input structures.

For example:

INPUT_DATA[1]-PARTNER-HEADER-OBJECT_INSTANCE-BPARTNERGUID -> pass the BP guid here or

INPUT_DATA[1]-PARTNER-HEADER-OBJECT_INSTANCE-BPARTNER -> pass the BP number here

INPUT_DATA[1]-PARTNER-HEADER-OBJECT_TASK -> pass the update task 'U' here.

In addition to the header information, you need to fill the right values into DATA and DATAX fields of respective structures. For example if you want to change the FIRSTNAME of a person, you must fill:

INPUT_DATA[1]-PARTNER-CENTRAL_DATA-COMMON-DATA-BP_PERSON-FIRSTNAME -> with the desired value.

INPUT_DATA[1]-PARTNER-CENTRAL_DATA-COMMON-DATAX-BP_PERSON-FIRSTNAME -> Set this to 'X'.

With the help of DATAX value, the APIs understand which fields are being changed. Accodinglt the DATA structures are read and updates are triggered.

Hope this helps.

Best Regards,

Shwetha