Application Development 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: 

MESSAGE _TYPE_X when using cmd_ei_api

0 Kudos

Hello

I am using the class cmd_ei_api=>maintain_bapi to create a customer using a FM. It is has been okay and creating a Customer when the FM is executed. However the business has made a requirement to create 2 similar Customers (difference will be on the customer number and few other attributes). This is such that a customer will have two accounts.

So i changed my code such that when creating the customer the FM runs and after executing it then runs again automatically (creating the second customer account) but with a few different attributes i.e Customer Number. However when executing the second time im having the below error

capture.jpg

And if i check class CMD_API Number 091 it says "Update error" which will be on the below method

CALL METHOD cmd_ei_api=>update_modules
IMPORTING
es_error = ls_error.
* If an error has occured
IF ls_error-is_error = gc_true.
* Short dump
MESSAGE x091(cmd_api).
ENDIF.

Can you please assist on why it cant create 2 customers one after the other

Kind Regards

1 REPLY 1

0 Kudos

Hi,

did you ever get an answer to this one, we have a similar issue ?

Kind Regards