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

BAPI in LSMW

Former Member
0 Likes
727

Dear ALL,

Can anyone tell me, how to use BAPI with LSMW?

When I tried to use this, it is asking for EDI Settings. Why these required?

Please ASAP.

Thanks in advance.

Kind Regards,

Prasad

Dear ALL,

Can anyone tell me, how to use BAPI with LSMW?

When I tried to use this, it is asking for EDI Settings. Why these required?

Please ASAP.

Thanks in advance.

Kind Regards,

Prasad

5 REPLIES 5
Read only

Former Member
Read only

Former Member
0 Likes
691

Thanks a lot.

Kind Regards,

Prasad

Read only

Former Member
0 Likes
691

hi prasad,

Introduction:

This document details the usage of BAPI in LSMW. We have used the example of migration of the purchase order data into SAP.

Pre-requisites:

It is assumed that the reader of this article has the minimum knowledge required on the Business Object, BAPI, Message Types and IDoc Types.

Step-by-Step Procedure:

Details of the BAPI used in this scenario:

Business Object: BUS2012

Method: CreateFromData

Details of Message Type and Basic IDoc Type:

Message Type: PORDCR

Basic IDoc Type: PORDCR02

Let’s have a look at the BAPI first, before proceeding to the LSMW:

Go to Transaction BAPI

Click on Search Button

Enter the value “BUS2012” and select “Obj.type(Technical Object Name”

for remaining info pls see

http://www.saptechnical.com/Tutorials/LSMW/BAPIinLSMW/BL1.htm

thanks

karthik

reward me if usefull

Read only

Former Member
0 Likes
691

HI,

I am trying to load the date field in SAP using bapi in lsmw.

The default date is 01.01.1900.

the data is read correctly,even converted correctly(upto step-13).The data displyed after conversion is absolutely correct ie-01011900.But in idocs processing,loading is getting failed as i am getting an error like 'Month 19 is not pausible' in idoc overview.

If anybody know..how to recover please help.

Read only

Former Member
0 Likes
691

Hi,

if the default date is 01.01.1900, the correct value in the SAP format is 19000101(YYYYMMDD, SAP takes the date only in this format)

Thanks,

Rajinikanth.