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: 

LSMW - Can I add BAPIs (or Methods) that are not in LSMW?

Former Member
0 Kudos

Hi,

In LSMW, BAPI BUS2032 (SalesOrder) shows only 2 Methods CONFIRMDELIVERY

CREATEFROMDAT2

I need to chage Sales orders and would like to use method ChangeFromData in LSMW.

Is there a way to add additional Methods for this BAPI to LSMW?

Thanks,

Dave Lent

1 ACCEPTED SOLUTION

Former Member

Maybe the answer is too late for you, but for the community this will do good, nevertheless. The answer is yes. You can add BAPIs in LSMW. The way it is :

1. TBDBA table controls the "registering" of BAPIs in LSMW.

2. To "register" a new BAPI in LSMW, you need to run BDBG transaction. Give the BAPI name & method and SAP automatically creates the Interface code of the corresponding IDoc.(Assuming your BAPI equivalent of the IDoc does not exist. If it exists, you can register the IDoc itself much easier in LSMW.

3. Once you have run BDBG transaction, if you look into LSMW, F4 list, voila..you should have your custom Z message type on the corresponding BAPI.

Cheers

Shireesh

Edited by: Shireesh Mitragotri on Apr 18, 2008 9:18 AM

4 REPLIES 4

Former Member
0 Kudos

Hi,

I think it is not possible to add extra BAPI, or the Methods in the LSMW, but you can use the Recording method for that transaction code in the LSMW

Regards

Sudheer

Former Member

Maybe the answer is too late for you, but for the community this will do good, nevertheless. The answer is yes. You can add BAPIs in LSMW. The way it is :

1. TBDBA table controls the "registering" of BAPIs in LSMW.

2. To "register" a new BAPI in LSMW, you need to run BDBG transaction. Give the BAPI name & method and SAP automatically creates the Interface code of the corresponding IDoc.(Assuming your BAPI equivalent of the IDoc does not exist. If it exists, you can register the IDoc itself much easier in LSMW.

3. Once you have run BDBG transaction, if you look into LSMW, F4 list, voila..you should have your custom Z message type on the corresponding BAPI.

Cheers

Shireesh

Edited by: Shireesh Mitragotri on Apr 18, 2008 9:18 AM

0 Kudos

Hi Shireesh,

is the 2nd step possible without modifiying the system? I was asked for a object key which I did not enter. Therefore it failed for me.

Best regards

Stefan

Former Member
0 Kudos

Hi David,

Inserting BAPIs or methods into an LSMW session may be unavailable like others have said.

It is, however, quite easy to insert ABAP code into an LSMW recording.

I wrote a 4-page 'How-To' on it a few years ago: "Imbedding ABAP code in an LSMW project"

I also wrote on on programming events in LSMW.

I tried attaching the documents in pdf form, but the forum doesn't allow that type.

If the moderator is listening, could you advise me on this.

regards

Ed Baker