LSMW Dummy source stucture
Hi,
I have one issue with LSMW.
When i define a dummy source structure with no fields the mapping saction raise the error message like
'<struct> not found'.
Is it nesssary that source stucture must have any field name?
Dhirendra
Hi Dhirendra,
The source structure you defined in LSMW will be used to generate ABAP source code for data conversion, if no field inside, the generated ABAP code should like :
data: begin of st,
end of st.
This code will get syntax error.
You can add a dummy field in your dummy structure.
Regards,
Brown
Similar Messages
-
LSMW Recording source program editing
Hi All,
Can we edit LSMW recording source program so that i can implement program logic? if so how can we do that.
Thanx,
GUNAHi Guna,
U can edit source program (but remember whenever u r executing the program its get changed), so my sincere request is dont go for that.
and if u want to write any logic best method is go for Mapping step(5th step)
in that there is Display variant icon , press that
u find pop-up screen in that check bottom three boxes and enter,
afterwards u find functions where u can write logic there what ever u want as per the requirement.
Reward for useful answers.
Thanks
Naveen khan -
LSMW - one source structure - 2 targets
Hi everyone,
I'm trying to create a LSMW for the upload of customers. The client wants to link 2 contact persons to one vustomer.
The flat file will have two lines with the same data, only the contact person will differ. Do you know how the difference can be made ?
thanks in advance !Hi,
if you have only one line you can do the same as mentioned below:
First map the contact name1 to traget source. In 5th step u can map all the comman fields along with the contact person name and from the global variables u can write transfer_record. then again map all the fields along with the secound contact name and again write transfer_record.
So u are trying to pass two customer contact records. It will work try this. Let me know if u have any issues. -
LSMW - The source field is longer than the target field in MEK2
Hi,
I tried to create a simple LSMW script to end date condition records using MEK2 transaction.
I provide Condition type, Plant, Material, Start Date and default Valid from and Valid to dates.
When the program is generated, it defines just 1 character for Start date and when I try to map the date field from source, it gives following error message.
Attention: The source field is longer than the target field.
Message no. /SAPDMC/LSMW_OBJ_040013.
Not sure why it is happening. I am on 46C.
Please let me know if anybody come across such situation. I have checked all aspects, tried recreating in different systems but ended up with the same problem.
You help in this regard will be highly appreciated.
Regards
KasiIt is a standard error, and I have not found any OSS note to fix it. In order to solve it, you can use this workaround:
- Export the recording into a txt file
- Edit the file, and modify the information correspondent to domain, data element and lengths (internal and external) fields, and save it
- Import the recording
For example, I had problems in a recording with the field SEL_DATE of the transaction VB02. Then, I changed these values:
Values before changes:
/SAPDMC/LSGBDC ZTEST ZVB02_ZA01 0018 0000 SEL_DATE DATE_ON Valid on CHAR1 CHAR1 SEL_DATE 0000000000 000001000001000001CHARC
Values after changes:
/SAPDMC/LSGBDC ZTEST ZVB02_ZA01 0018 0000 SEL_DATE DATE_ON Valid on DATUM DATAM SEL_DATE 0000000000 000010000010000010CHARC
(values 01 has been replaced by values 10)
The values changed correspond to fields:
/SAPDMC/LSGBDC-PARDOMAIN
/SAPDMC/LSGBDC-PARDATAELEMENT
/SAPDMC/LSGBDC-LENG
/SAPDMC/LSGBDC-INTLEN
/SAPDMC/LSGBDC-OUTPUTLEN
The information that you have changed should be updated in table /SAPDMC/LSGBDC, where all the information of the recordings is stored. Check this information has been updated after recording import.
I hope this solution be useful for anyone...
Regards. -
Hello Experts,
Would like to know whether SOURCE LIST master records can be uploaded using LSMW functionality?
Regards
MaheshHi,
Certainly Source List can be uploaded through LSMW functionality.
You will have to go for recording & while recording LSMW for Source List, after entering Material Number & Plant, in the overview screen, select 'Edit --> New Records' & then enter your details of the vendor.
The only thing is that, for multiple sources, you will have to give those many input records in your input file while uploading the data.
Regards,
Prashant -
Hi,
I am using RFBIBL00 in LSMW to upload AP/AR open items. When I run the job in the foreground, I am getting an error as the second line item is not filled (empty). I think that the structure of my upload file is not correct. Do you have sample upload file?
The settings are:
- Object: 0100
- Method: 0000
- Program name: RFBIBL00
- Program Type: D
The upload file (XLS) has two rows. The following columns are filled.
<b>Row 1:</b>
Document type: KR
Posting key: 31
Account: 125263
Company: code 8000
Reference: lsmw1
Currency key: EUR
Amount: 100
Document date: 19102007
Posting date: 19102007
Header text: test lsmw
Profitcenter:
Item text: test lsmw
<b>Row 2:</b>
Posting key: 40
Account: 41003000
Company code: 8000
Amount: 100
Header text: test lsmw
Cost center: 310032
Profit center: Dummy
Item text: test lsmw
Kind regards,
KenanHi guys,
I solved my problem
The solution is:
1) Create two structures for open item; STRUCT_HEADER and STRUCT_ITEM (lower level).
2) Define the source fields. Create a dummy source key field with the same name (e.g. ITEM_NO) in both structures for linking header and items.
3) Maintain structure relations. Link BGR00 and BBKPF to STRUCT_HEADER and link BBSEG to STRUCT_ITEM.
4) Maintain field mapping for all source fields except for key field (e.g. ITEM_NO)
5) Specify two (table, separator tabular) source files. One for header and one for items.
6) Prepare the source files. Define the key field (e.g. ITEM_NO) in both files. Use same key value (e.g. ITEM_NO = 001) in the "header.txt" for the related items in the source file "items.txt". So, you can have an open item with 1 header and 100 line items.
Good luck!
Kenan -
Creating XML Publisher report without xml data source
Hi
Anyone developed XML publisher without xml source.I wanted to know is there any way to develop that..
Presently we need a .xml file to develop any report on XML Publisher.But if there will be a way where is no .xml file and we need to generate tags for the data from scratch
thanks
kpSo why develop a report if there is no data? I can only think that you have a bunch of static text, maybe an instruction page you want to publish? If so, you still need a data source, it can be a dummy source
<?xml version="1.0"?>
<ROOT/>
ie no data per se. BIP needs a source even if there is not data to merge.
Cheers
Tim -
Having difficulty creating pdf from XML data source
I have a 'rpt' file built with a classic install of Crystal 10, using xml as a data source. I have tried using both ADO.NET(XML) connection and ODBC CR ODBCXML Driver 4.20.
The rpt file was built on Windows2000 NT platform. The report runs, and displays data from the sample xml file in the preview tab.
I am attempting to feed xml data into the rpt file with the intent to create pdf formatted output. I am using java with the Crystaldecisions packages. I am running this app out of an Apache server on an Ubuntu VM Hardy Heron release. This does not have any version of Crystal Reports installed on it.
I have followed the examples and I am comfortable that I have the correct package imports, I am able to open the rpt file, and convert both the xml and xsd to byte arrays. When I issue the command
reportClientDocument.getDatabaseController().setDataSource(xmlDataSet, '', '')
I get the response
Cannot find corresponding table information in the XML file
Set data source failed: The table 'criminal_case' could not be found.
Request failed and JRC Command failed to be undone
JRCAgent1 detected an exception: The table 'criminal_case' could not be found.
at com.crystaldecisions.reports.reportdefinition.datainterface.g.a(Unknown Source)
The xsd does validate the xml which contains a noNamespaceSchemaLocation pointer to the xsd.
The xml is the same data that was used to design the report on the NT box. This means that I see the same elements being byte streamed as were used to create the rpt file.
Is this as simple as I am running my webserver on Linux? I do see the connection attribute properties reference a Database DLL that is clearly windows based. What can I do?So why develop a report if there is no data? I can only think that you have a bunch of static text, maybe an instruction page you want to publish? If so, you still need a data source, it can be a dummy source
<?xml version="1.0"?>
<ROOT/>
ie no data per se. BIP needs a source even if there is not data to merge.
Cheers
Tim -
Hi Experts,
I am Uploading BOM through LSMW by Direct Input method. I am having the following queries,
1. In that BOM I have Header data and Item data. While doing the Step 7(specify file) it accept the text file only not the Excel file. If I assign the Excel file means while executing the Step 9(Read Data). It gives error message, file and source structure have no fields.
So I came back to Step 7 and assign the Text file then it is accepting. What is the reason?
2. Even though It will allow to execute the Read Data steps I am getting the Header data only not getting the BOM Components data. Results data as follows,
LSM Workbench: Import Data For BOM, BOM, BOM
19.02.2010 - 14:45:57
File(s) Read: C:\Documents and Settings\Administrator\Desktop\BOM Header.txt
C:\Documents and Settings\Administrator\Desktop\BOM ITEM.txt
File Written: BOM_BOM_BOM.lsmw.read
Source Structure Read Written Not Written
BOMHEADER 2 2 0
BOMITEM 2 0 2
Transactions Read: 2
Records Read: 2
Transactions Written: 2
Records Written: 2
Can any one help me in this regards.
Regards,
Muthamil MuruganHi Girish,
Can you please explain my queries,
1. How can I maintain Source structure like as follows,
BOM - BOM - BOM Bill of Material Creation
Source Structures
BOMHEADER Bill of Material Header
BOMITEM BOM ITEM DATA
2. Just tell me the method of Maintaining source field, why i am asking you that I enter manually in table maintenance, whether i am right ?
3. During source structure maintenance for what structure relationship I have to assign source structure.
4.During field mapping and conversion rule, I got no fields relates to BOM creation, what I did is just directly go to Extras in menu and choose Auto field mapping, am I right just tell me your suggestion in detail.
5. During specify files execution I got the screen as follows,
BOM - BOM - BOM Bill of Material Creation
Files
Legacy Data On the PC (Frontend)
BOM Header C:\Documents and Settings\Administrator\Desktop\BOM Header.t
Data for One Source Structure (Table)
Separator Comma
Field Names at Start of File
With Record End Indicator (Text File)
Code Page ASCII
BOM ITEM DATA C:\Documents and Settings\Administrator\Desktop\BOM ITEM.txt
Data for One Source Structure (Table)
Separator Comma
Field Order Matches Source Structure Definition
With Record End Indicator (Text File)
Code Page ASCII
Legacy Data On the R/3 server (application server)
Imported Data File for Imported Data (Application Server)
Imported Data BOM_BOM_BOM.lsmw.read
Converted Data File for Converted Data (Application Server)
Converted Data BOM_BOM_BOM.lsmw.conv
Logical Path BOM_BOM_BOM.LSMW.CONV
Logical File BOM_BOM_BOM.LSMW.CONV
Wildcard Value Value for Wildcard '*' in File Name
Can you brief me in details in the above thing If I did any mistake.
Waiting for your reply,
Regards,
Muthamil -
LSMW for routing with standard batch input
Hello All,
I am trying to prepare one LSMW for routing upload for PP module. Routing data contains header data, operation data and master inspection characteristics data.
I have created three source structures viz. material- task list header, task header data, operation and inspection.
Header has been assigned to target structure BIMPL- Batch Input Structure for Allocation of Mat. to Task Lists,
Task header data source structure has been assigned to BIPKO- Batch Input Structure for Task List Header,
Operation source structure has been assigned to target structure BIPPO- Batch input structure for task list operation,
and inspection source structure has been assigned to BIPMK- Inspection characteristics for batch input of task lists.
Every source structure has been identified with an identifier value of which have been set as H, I,J,K for all source structures resp.
The excel file has been prepared as follows,
H MATNR WERKS PLNNR PLNAL
H 100045 1000 50000043 1
H 100045 1000 50000043 2
I MATNR WERKS PLNNR PLNAL VALID_FROM USAGE STATUS
I 100045 1000 50000043 1 01012000 1 1
I 100045 1000 50000043 2 01012000 1 1
I have mentioned here the combination of first two structures only. But it contains data of other two source structures as well (for identifier J & K).
The data from the excel is copied to the flat file and same is specified in LSMW in the step 'Specify file'.
In 'Assign file' step the flat file is assigned to all the four source structure.
Now at the time of reading data system is throwing me an error as 'Ensure field sequence is correct for data for mutiple source structures' Message no. /SAPDMC/LSMW_OBJ_060026
How to overcome this?
<removed by moderator> answers will be greatly appreciated........
Mimiri
Edited by: Thomas Zloch on Jul 11, 2011 10:16 AMHello ,
have you maintained this check box for the key fields"
LSMW>Maintain Source fields>double click on fieds : MATNR WERKS PLNNR PLNAL
Selection Parameter for "Import/Convert Data"-->Tick this check box
regards -
Hi friends,
Iam doing the LSMW for Source list(ME01) for Materail..
Its a small transaction..Number fields also less compare to other transaction..
Problem is..its completely table control.. how can i give the fields in file format..
How its comming next line for updating in table control.. Any body done the lsmw for table control.please help me..
what kind of precauctions i have to take for that updation in Table control..
regards,
sampathhi,
You can have your own custom programs for LSMW. You need to register you custom program in table through SM30.
SDX0 - Program Definition ( BI or DI )
SDX1 - Program Assignment
SDX2 - Declaring Structures
SDX3 - Declaring field identifiers for structures
You can goto SM30 and can view the standard BI/DI programs definition by using the four digit Obejct Number...
~~Guduri -
Is LSMW used mainly for master data transfer? if yes, what can b the reason for this?
About BDC, is it used both for master data, transaction data,right?Hi,
The LSM Workbench is an R/3-based tool that supports You when transferring data from non-SAP
systems ("Legacy Systems") to R/3 once or periodically.
The tool supports conversion of data of the legacy system in a convenient way. The data can then be
imported into the R/3 system via batch input, direct input, BAPIs or IDocs.
Furthermore, the LSM Workbench provides a recording function that allows to generate a "data
migration object" in an entry or change transaction.
In LSMW have source and target field mapping. so that data should not be lost.
Regards,
Boobalan Suburaj -
How to transport an LSMW object from dev to Quality and to Production?
hi All,
Could any one please specify how to transport the lSMW object from developmen to Quality and finally to Production?
Thanks in Advance.
Regards.
Abhilash.Hi,
The "cleaner" way is using normal transport procedure via "Extras->Generate Change Request".
This will transport the entire project though, not possible to transport a single object this way.
step by step
1. Run Tcode LSMW in source system.
2. in the menu bar choose Extras-->Export. Now give the filename and save in your desktop.
3. Now login to destination system. again execute LSMW.
4. Now goto Extras-->Import.Give your file which was downloaded earlier.
5. Now tool bar click on import with diffrent name option and give your new project and subprojectname.
6. Now execute all steps.
Also refer the below link
http://help.sap.com/saphelp_crm50/helpdata/en/da/a22506a3291b418b759524b278dcde/content.htm
Please reward points if it helps
Thanks
Vikranth -
Help SOAP to RFC Scenario using BPM (Synchronous communication)
Hi,
I am doing a scenario from SOAP to RFC scenario(Synchronous communication). Here I am creating a PM Notification in the SAP system through a webservice.
I am using three BAPI'S here,
1. BAPI_ALM_NOTIF_CREATE
2. BAPI_ALM_NOTIF_SAVE
3. BAPI_TRANSACTION_COMMIT
I am successful in calling the first BAPI from the Web Service. For this I have not used BPM. But to commit the transaction(PM notification in this case), I have to execute the other two BAPI's as well. I have to pass the output of first BAPI to the second BAPI and then execute the 2nd BAPI. And finally have to execute the 3rd BAPI. FYI, 3rd BAPI is not dependent on any output. It has to be executed independently after execution of the first two BAPI's.
How can I execute this scenario? Do I have to use BPM? If yes please let me know the steps in detail. I have not done any BPM scenario till now. So please answer me in detail.
Thanks in Advance,
Vijay
p.s. reward points are mustHi Vijay,
Yes, You will indeed need a BPM in this case...
Based on my understanding of the Scenario u have explained, here are the steps that would be needed.
1. Receive With the Sync-Async Bridge open.
2. Transformation Step (Between the source Request and The BAPI_ALM_NOTIF_CREATE Request)
3. Send Synchronous
4. Fork
5. In one Branch of the fork - Transformation (Between the BAPI_ALM_NOTIF_CREATE Response and API_ALM_NOTIF_SAVE Request)
6. In the other branch of the fork - Transformation (Between a Dummy Source and the BAPI_TRANSACTION_COMMIT Request)
7. Send Synchronous (to make the 2nd BAPI Call)
6. Transformation ( BAPI_ALM_NOTIF_SAVE Response and the source Response)
7. Send Asynchronous (to make the 3rd BAPI call)
8. Send the Source Response and close the Sync-Async Bridge.
There might be alternative ways also of doing it...
Also a better design would be to take care of the 2nd and the 3rd BAPI call within the code of the 1st RFC Function Module.
Regards,
Abhy Thomas -
Hi,
Scenario:File to Proxy
My requirement:
I need to poll the file from the legacy system at 7 P.M.
1) If file is not present then I need to poll till 7.30 P.M and after that also if file is still not present then I need to rasie an alert also update the R3 table with the same.
2) If the legasy sytem is down or network problem then I need to rasie an alert to user saying Legacy system down also I neeed to update the table in R3 with the same error.
My question is:
Can I track this type of errors and raise it to users and also maintained it in R3?
Can I use the unix shell script to check the avability of file but how the error handling part can be taken care?
Is is possible to raise System down or network related erros or file not available through custome adapter module?
Can I track system down or network problem error through communication channel monitoring by creating alert rule. As I am aware if file server is not reachable then we get the error in communciation channel monitoring.
Please share your experience.
ChiragHi Chirag,
1) If file is not present then I need to poll till 7.30 P.M and after that also if file is still not present then I need to rasie an alert also update the R3 table with the same. - for this req, i think you need BPM, to start BPM you can have a receive step for a dummy source file for a dummy sender file adpater which will be scheduled to start at 7 PM.........then in bpm have a recieve step to get the actual file and specify a dead-line for 30 minutes............if file is got proceed further, otherwise in deadline branch have a synchronous send step to R/3 to update the data in r/3 table.............
2) If the legasy sytem is down or network problem then I need to rasie an alert to user saying Legacy system down also I neeed to update the table in R3 with the same error. - if your comm channel is erroring, then in RWB in alert configuration you can have no restiction option for your interface and then you can generate an alert for it in the alert inbox...........but i think to update this thing in r/3 table will not be feasible.
Regards,
Rajeev Gupta
Maybe you are looking for
-
I can't open files in the Downloads menu
Every time I download a file (either open or save), it never opens automatically, and I can't open it by clicking the entry in the Downloads menu/panel. I am able to "Open Containing Folder" and use the file normally from there, or go to the Library
-
Suddenly boot problem - no post - then crashes in windows
hi there! first off, here's my system: P4 2.80C @ FSB 200 HT enabled Corsair DDR400 2-2-2-5 865PE Neo2-LE Sapphire Radeon 9500 no OC Chieftec 360W Western Digital 120GB & Seagate 20GB no RAID BIOS - default settings WinXP Alright, my system has alw
-
i forgot my lock screen password is there anyway around that and if not how can i reset without being able to get into the system
-
so i have an existing apple store account.. i've never bothered with itunes but now want to download some of the free content. i go to login using my existing account: "This Apple ID has not yet been used with iTunes Store." "please review your accou
-
Aperture 2 raw conversion very bad with some subjects (like sunsets)
Please take a look at this composite: http://amrosario.com/rawsun.jpg These conversions were done in Aperture 2 using only the three different raw conversion engines and no other adjustments. As you can see, the 1.1 version is more yellow than the ot