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

prabhu_s2
Active Contributor
0 Likes
900

Hi All

I'd successfuly created and executed BAPI in LSMW, but i have few doubts in this:

As a very first step i have to create a port called LSMW with partner type US and partner number LSMW. why do we need to do this. also when i saved at this step i encountered with an error file port not maintained. hence i maintianed the file port and logical file name in FILE tcode. I would wnat to know the need of it and how it comes to use during execution.

Hi All

I'd successfuly created and executed BAPI in LSMW, but i have few doubts in this:

As a very first step i have to create a port called LSMW with partner type US and partner number LSMW. why do we need to do this. also when i saved at this step i encountered with an error file port not maintained. hence i maintianed the file port and logical file name in FILE tcode. I would wnat to know the need of it and how it comes to use during execution.

4 REPLIES 4
Read only

Former Member
0 Likes
760

Hi Prabhu,

May be these links give you some answers.

This one is the most complete document for the same

http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf

http://service.sap.com/lsmw.

Regards,

Manish

Read only

Former Member
0 Likes
760

Hi,

In LSMW,while Using BAPI it's a Inbound Process.It uses the ALE Interface to load the data into SAP.

So you need to maintain ALE parameters viz., File ports ( Usually by name - LSMW ), Partner Type (LS), Partner Number / Partner Profiles ( Usually by name - LSMW ) in the menu path 'settings -> IDoc Inbound Processing' of the LSMW initial screen.

Check out this link:

http://help.sap.com/saphelp_erp2004/helpdata/en/d4/0a43a124e8924ea890cf0855860db5/content.htm

Regards,

Padmam.

Read only

Former Member
0 Likes
760

Hi

This is imilar to the Config of WE20 partner profile in which you define a partner and the Port definition

There will be different types of partners like Logical system, USer, vendor, Customer, forwarding agent like that

Here you have used the partner as USER(US)

PORT is the means of communication for the data transfer

there are different types of ports available like tRFC,FILE,CPI-C

for processing the data from Sequential files we use the PORT as FILE

for processing the data froman R/3 System to an R/2 System we use CPI-C

simialrly Transactional RFC and XML ports are there

before using the port we have to define with some description, so you got the error as you have given without maintaining it.

Regards

Anji

Read only

prabhu_s2
Active Contributor
0 Likes
760

what is role of creating a port here and that too in outbound file? but my partner profile has inbound parameter?