05-15-2007 2:43 PM
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
04-18-2008 4:48 AM
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
05-15-2007 2:52 PM
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
04-18-2008 4:48 AM
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
09-05-2013 5:02 PM
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
09-07-2013 12:43 AM
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