‎2008 Jun 19 1:29 PM
Hi,
Everybody.Can anyone tell me about lsmw using bapi.Actually i want to know that while going for maintain ports in bapi-lsmw we r providing a function module name.This fm name is different for differnt types of data,correct?
For example we r using fm edi_path_create_date_time for uploading material master data.This is standard for material master or, some rules or, some manual steps r there to find out the function module name.
can anyone please help me out to work out with the above problem?
thanking you in advance....
waiting for reply.....
PRASANT.
‎2008 Jun 19 1:41 PM
Hi Prasant,
U will be giving these function modules while u r creating the FILE PORT in WE21 transaction.
Use
In order to prevent unprocessed files being overwritten, you use function modules which generate file or directory names dynamically, that is to say, at runtime. SAP recommends the module
EDI_PATH_CREATE_CLIENT_DOCNUM,
which names every file differently (namely, with the number of the first IDoc contained in the file and of the client).
For the output value every function module must deliver a "complete file name", that is, a character string from directory and file names. The file system then operates with these complete names.
Dependencies
The function modules can derive the complete file names from your entries for the directory and for the file. Function modules delivered by SAP ignore the file specification, that is to say you can leave this field empty in the port definition.
If your SAP system runs on several operating systems it is recommended that you use a logical directory instead of an explicit ("physical") directory.
In this case SAP recommends the function module
EDI_LPATH_CREATE_CLIENT_DOCNUM,
which derives a physical directory from the logical directory and the respective operating system. The file name is derived as EDI_PATH_CREATE_CLIENT_DOCNUM.
You must notify the system of the function modules you have written via control -> generate file name (in the initial screen of the IDoc interface).
u can find the function modules in these tables.
EDIFM IDoc: Function modules for creating file names
EDIFMT IDoc: Text table for EDIFM (funct. module for file names
EDIPO Table for description of ports for EDI
EDIPOD Table for File Port DefinitionsBest regards,
raam
‎2008 Jun 19 1:59 PM
Hi,
welcome to sdn...
i am providing links pls see.
http://www.saptechnical.com/Tutorials/LSMW/BAPIinLSMW/BL1.htm
http://www.saptechnical.com/Tutorials/LSMW/Bank/page1.htm
thanks
karthik
reward me if usefull.
‎2008 Jun 20 10:01 AM
Hi,
Refer this links also
http://www.sap-img.com/sap-data-migration.htm
http://www.sapgenie.com/saptech/lsmw.htm
http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf
Reward points if helpful
Regards,
Archit