cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_CONTRACT_CREATE for multiple condition price

Former Member
0 Kudos

Hi

I experiencing a strange result happens when tried to use BAPI_CONTRACT_CREATE with condition more than 1 (pricing activity).

I create 2 items in condition items

But resulting account assignment multiplied more than 1 serial ID

Because of this BAPI result in error

my objective is used this BAPI_CONTRACT_CREATE in LSMW, that is why i test directly in function module before I create a structure relation and so on.

Did anybody had experience on this matters before?

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

JL23
Active Contributor
0 Kudos

the error ME816 cl_api_master_condition_mm=>process has 8 OSS notes when searching with the term "cl_api_master_condition_mm=>process"

even more when searching with the message number ME816

The message one above ME887 is caused by an own development and has as well several OSS notes, among them 1918804 - Error: ME887 when using ExtensionIn structure for any of the material management BAPIs

Former Member
0 Kudos

auch... how many more notes we need to implement for this FM?? did you do the same when try to upload contract price with BAPI?

and this note can't downloaded

JL23
Active Contributor
0 Kudos

this is a KBA - KBAs cannot be implemented automatically and technically into the system, they are meant for consultants and have to be implemented into their mind.

Read it, understand it, follow the instructions

Former Member
0 Kudos

my bad.. not check first if it is KBA or notes..

I check with ABAP expertise, there is another job to do after this KBA.

hmm.. I just create a normal agreement with BAPI then change it to multiple condition by recording in LSMW.

it just to much effort just to accomplished simple things.. 🙂

Thanks a lot Jurgen..

Answers (3)

Answers (3)

JL23
Active Contributor
0 Kudos

As far as I know is this subobject doing the log handling, if you search for SAP notes using the search term SAPLSLG0 SUBOBJECT_NOT_FOUND as indicated in the dump then you will find 6 SAP notes with bug fixes, check which one is applicable for your case (probably 1784267 - Dump when creating contract via SAP Sourcing or SOA) and implement it. If none, then open a call at SAP Support

Former Member
0 Kudos

Thanks Jurgen

Will check this note and let you know if it works.

Thank you

Former Member
0 Kudos

HI Jurgen

I tried those notes but just got another error just like this

any other idea? just stuck in this error and i debug it just goes everywhere.. 😞

Thanks

JL23
Active Contributor
0 Kudos

I see that you entered serial number 10 for the record in Account segment. The serial number should start with 1, can you try that and see if the result changes

Former Member
0 Kudos

Hi Jurgen, Sorry for late reply..

I tried to entry with 1 than FM get abap dump. If leave it as blank than condition repeated more than 3. 😞

Any other idea?

JL23
Active Contributor
0 Kudos

knowing the details of the dump you get it a step forward

Former Member
0 Kudos

Hi Jurgen,

Cap Screen of ABAP runtime Error

Program & Include information

Stop on this line

Hope you can enlighten me.. 🙂

JL23
Active Contributor
0 Kudos

would it be possible for you to create the same contract in ME31K and then show how the records in table EKKN are?

It would also be good to share all tables (same way as above) that you maintained in SE37 before and after you executed.

Former Member
0 Kudos

Yes I can create manually with all the data record in ME31K, table in EKKN are like (as simple) this

as attached entry & result in full

(i have difficulties to capture scrolling dialog so i just copy into excel)

if you want original excel doc, please share to me your email address (DM) to me.

Thanks Jurgen.