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

ABAP Code in LSMW Bapi method field mapping

Former Member
0 Likes
732

Hello Community,

LSMW program

BUS2014  Purchase contract

CHANGE

PURCONTRACT_CHANGE

PURCONTRACT_CHANGE01

I have a problem with updating Purchase contract by LSMW project using BAPI method.

When i am doing a manual update, changing a line in agreement i am getting below error :

"Quality management active for procurement of material."

It goes away after two enters.

The problem is that, this problem is giving my LSMW program an error while processing IDOCs.

Idoc error says that material is not excisting or not activated, which isn't true.

Is there any way of adding BDC_OKCODE to mapped field EMATN, so it would do actually the same thing that i am doing manual update ?

I am not using BDC method because of using thousands of line items per one contract.

Regards,

Łukasz Papaj

4 REPLIES 4
Read only

Former Member
0 Likes
660

I'm not sure why you think that would prevent you from using BDC.  Perhaps if you explained further...

Neal

Read only

0 Likes
660

The thing in BDC and updating thousands of lines in the same contract is, that you have record all of them and recording 5000 lines doesn't seem like a good idea.

In BAPI method you can just select a line.

If I am wrong, please correct me.

Or maybe you have some other ways to update multiple lines in contract using lsmw.

Lukasz

Read only

0 Likes
660

I've never had any trouble BDC'ing any number of lines I needed to.  But BAPi is almost by definition better.

Neal

Read only

0 Likes
660

How would you do it with transaction ME32K ? Updating thousands of lines.

Lukasz