Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Change Customer Master using CMD_EI_API MAINTAIN_BAPI Method

Former Member
0 Likes
1,187

Hi Experts,

I am using CMD_EI_API=>MAINTAIN_BAPI method for Creating Customer through Custom program. The Creation of Customer Master is working fine.

I have another requirement i need to perform the following for the Customer Change

1 . Delete all Phone , Fax and SMTP entries from the table and create a new entries for Customer.

2 . Delete a Contact Person based on the information from the legacy system.

I am facing problem in the above two issues

ADR2, ADR3 and ADR6 entries are retrieved for customer.

this values are populated and passed to the method with Task as 'D' - delete.

there is no error message from the Method. when i call commit statement

1 . the address details are not getting deleted in the tables

2. if a contact person is deleted then i am getting a short dump while commit.

Please help me if you know the details of MAINTAIN_BAPI method whic can be used for the Deletion purpose.

Thanks,

Shrikanth R

2 REPLIES 2
Read only

Former Member
0 Likes
756

Hi Experts

I'm having the same problem it looks like the method maintain_bapi does not commit the new values, I debuged it and found a call to a badi lr_badi_update but I could not find information about it.

Any help will be appreciate

Leo

Read only

756

Hello,

Can anyone let me know how to use this class method? I have a requirement to create/udpate the customer. Could you please help me out with a sample code or something?

Thanks.