Sales order uploading through LSMW
*Hi All,*
*SAP version Up gradation how to Sales Order data migration through LSMW Batch input Record. Please tell send me any one step by step.*
*Regards,*
*Murali.*
Hi
check the link
[http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc]
Regards
Amitesh Anand
Similar Messages
-
Sale order Upload thorugh LSMW
Dear All,
I am trying to Upload Sale order with 100 Line items through LSMW.
system is creating 100 S.O against each line item.
In Lsmw there is a Procedure of Using BAPI ? What is the procedure of Uploading the same.
I don't want to use BDC's .
Can any one guide me how to Upload 100 Line items through LSMW?
Thanks for the Help.
Satishhi
In lsmw select the BAPI(Business object method)
In Business Object enter BUS2032 and
method as CREATEFROMDAT2
If it is thriugh IDOC
OR alternatively you can use Standard batch/ Direct input method
object as 0090
And try
regards -
Sales order uploading through bapi
hi
i want to upload sales order to bapi pls give the code and i also error handling through bapi
regards
A.KHi Awadhesh,
pls look at this link you will get a clear idea and the code.
http://abaplovers.blogspot.com/2008/02/bapi-sales-order-create-code.html
Happy to help you.
Regards,
Viveks -
Hi
Can we upload open sales orders through ..LSMW ...if it is posible ..pls tell me procedure
In LSMW Steps recording step .. can we tcode VA01...?
REGARDS
SESIDHARHi
Check this link
[Sales order uploading through LSMW;
And there is nothing like that you can upload only Master Data through LSMW. Once you are able to handle LSMW you can upload any data in SAP. Yes, there may be some constraints, but an expert can manage.
So go ahead.
Regards
Amitesh Anand -
Sale Order Upload: no batch input data for SAPMV45A 4003
Hi Gurus,
the error "no batch input data for SAPMV45A 4003 " is occuring in every sale order upload created by lsmw or thorugh abap..
The issue is occuring randomly which means the same upload file produces the error in the different positions at different time .I doubt that it's a random occurance. 4003 is the item container screen, so you are not transitioning properly between tabs or you are still stuck on the item conatainer screen when you are expecting to be back at the main overview screen. You need to analyze a specific transaction and the data population in 'Display all' mode or just look at the generated BDC transaction from SM35. That should give you an idea of where the recording code is not as expected.
-
Release Strategy Characteristic Upload through LSMW.
Release Strategy Characteristic Upload through LSMW.
Introduction:
In case of Purchase order, we need to maintain Release Strategy each year. This is due to organizational changes. Due to huge organization, this is around one week activity for us. Reason, we need to maintain characteristics for around 300 different release strategies. Since, we can't transport "Characteristics" from one system to other, we need to maintain them in Quality as well as in Production system.
Issue: We tried to use option of LSMW to maintain these "Characteristics". But, system is giving error as "Logical Path is not available".
Question: Who is responsible to create this "Logical Path" and where it can be done?Hi,
I think you moved LSMW from test to production and this might be happening due to this fact. Please redo steps in LSMW for:
Specify Files
Assign Files
Read Data
Create completely new paths, and allow system to recreate (you need the right authorization). This might help I hope.
Regards,
Tomek -
Sales order creation using LSMW
Hi All,
I am creating open sales order (VA01) using LSMW where I am using BAPI: BUS2032 and Method CREATEFROMDAT2.
I need to pass multiple line items for the same Header data, but the LSMW is creating multiple sales orders with a single line item every time.
I tried giving "on_change_transfer_record" after Header record but that doesn't work.
Can anyone suggest any suitable solution for this using BAPI only other than BDC, report program etc.
Thanks in Advance
Asif Ali KhanHi Asif Khan,
Please check this link
BAPI_SALESORDER_CREATEFROMDAT2 - Sales Order Create
http://sap-img.com/abap/bapi-salesorder-createfromdat2.htm
Best regards,
raam -
Trying to create a Sales Order Confirmation through IDoc
Hi,
I am trying to create Sales Order Confirmation through ALE with message control.
My recieving system is XI server.
Can u please send me the steps to what to be done to trigger IDoc automatically.
The condition types and access sequence created is for Output type customer but i am sending it to XI Server.
please help me.
Thank you in advance,
Gangolu.Hi Gangolu,
Have a look at url. Hope this provides some inputs.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/73527b2c-0501-0010-5398-c4ac372c9692
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6bd6f69a-0701-0010-a88b-adbb6ee89b34
Thanks
Lakshman -
Upload purchase order text through LSMW
Please tell me procedure for uploading sales order & purchase order text in material master through lsmw
Hi
Long Texts are stored in STXH table with 4 parameters TEXTNAME,OBJECT,ID and LANGUAGE
You can't find the complete text in any table
You will find these 4 parameters in the table STXH.
Texts are created using the fun module CREATE_TEXT and SAVE_TEXT and these texts are fetched using READ_TEXT fun module
For uploading these long texts using LSMW see
for Long texts Upload
Please take a look at this..
http://help.sap.com/saphelp_erp2005/helpdata/en/e1/c6d30210e6cf4eac7b054a73f8fb1d/frameset.htm
<b>Reward points for useful Answers</b>
Regards
Anji -
LSMW for sales order uploading
Hi Guys,
I need to upload single time sales order detials into SAP through flat file, is any sap standard LSMW methods are available or I need to develop a Z program.
Could you please give your suggestions?
Thanks,
Gourisankar.Hi gourishankar,
LSMW is not a bad one, but striaght BDC programme with BAPI would be the
best
so see this link it may help you.
http://www.****************/Tutorials/LSMW/Bank/page1.htm
thanks
karthik -
Dear Friends,
I am trying to upload sales order data using transaction VA01 by Batch Input Recording method in LSMW. But I am not able to get line items due to the fact that I am not able to assign two source structures. So i am trying to upload by Abap Coding in LSMW. But still I am not able to get the Item Data. So Kindly help me in this.
With Regards,
H.Krishnanuse the first method (Direct Input)
Object : 0090 (Sales)
Method : 0000
Programname: RVINVB10
In structure relations u can find header and line itemas.
before that define 2 structures.
===================================================
After creattion of one structure..
again click on create button> now it will ask samelevel/lowerlevel..give ur option>then u can add the fields in the next step.
pls.reward if it helps u and close this thread
Thanks
Eswar
Message was edited by: Eswar Kanakanti -
Sales Order Creation using LSMW IDOC method.. ( Custome Interface)
Hi ABAP'rs,
Please provide me LSMW steps for creating Sales Order using IDOC method.
Thanks and Regards,
Param.LSMW-IDOC in General
LSMW Step by Step Guide: Legacy System Migration Workbench is an R/3 Based tool for data transfer from legacy to R/3 for one time or periodic transfer.
Basic technique is Import data from Spreadsheet / Sequential file, convert from source format to target format and import into R/3 database. LSMW not part of standard R/3, if we need this product email [email protected]
Advantages of LSMW:
Most of the functions are within R/3, hence platform independence.
Quality and data consistency due to standard import techniques.
Data mapping and conversion rules are reusable across projects.
A variety of technical possibilities of data conversion.
Generation of the conversion program on the basis of defined rules
Interface for data in spreadsheet format.
Creation of data migration objects on the basis of recorded transactions.
Charge-free for SAP customers and partners.
Working With LSMW:
Use TCODE LSMW
Objects of LSMW:
Project ID with max of 10 char to Name the data transfer project.
Subproject Used as further structuring attribute.
Object ID with max of 10 Characters, to name the Business object .
Project can have multiple sub projects and subprojects can have multiple objects.
Project documentation displays any documentation maintained for individual pop ups and processing steps
User Guide: Clicking on Enter leads to interactive user guide which displays the Project name, sub project name and object to be created.
Object type and import techniques:
Standard Batch / Direct input.
Batch Input Recording
o If no standard programs available
o To reduce number of target fields.
o Only for fixed screen sequence.
BAPI
IDOC
o Settings and preparations needed for each project
Preparations for IDOC inbound processing:
Choose settings -> IDOC inbound processing in LSMW
Set up File port for file transfer, create port using WE21.
Additionally set up RFC port for submitting data packages directly to function module IDoc_Inbound_Asynchronous, without creating a file during data conversion.
Setup partner type (SAP recommended US) using WE44.
Maintain partner number using WE20.
Activate IDOC inbound processing.
Verify workflow customizing.
Steps in creating LSMW Project:
Maintain attributes choose the import method.
Maintain source structure/s with or without hierarchical relations. (Header, Detail)
Maintain source fields for the source structures. Possible field types C,N,X, date, amount and packed filed with decimal places.
Fields can be maintained individually or in table form or copy from other sources using upload from a text file
Maintain relationship between source and target structures.
Maintain Field mapping and conversion rules
For each Target field the following information is displayed:
o Field description
o Assigned source fields (if any)
o Rule type (fixed value, translation etc.)
o Coding.
o Some fields are preset by the system & are marked with Default setting.
Maintain Fixed values, translations, user defined routines Here reusable rules can be processed like assigning fixed values, translation definition etc.
Specify Files
o Legacy data location on PC / application server
o File for read data ( extension .lsm.read)
o File for converted data (extension .lsm.conv)
Assign Files to defined source structures
Read data Can process all the data or part of data by specifying from / to transaction numbers.
Display read data To verify the input data being read
Convert Data Data conversion happens here, if data conversion program is not up to date, it gets regenerated automatically.
Display converted data To verify the converted data
Import Data Based on the object type selected
Standard Batch input or Recording
o Generate Batch input session
o Run Batch input session
Standard Direct input session
o Direct input program or direct input transaction is called
BAPI / IDOC Technique:
IDOC creation
o Information packages from the converted data are stored on R/3 Database.
o system assigns a number to every IDOC.
o The file of converted data is deleted.
IDOC processing
o IDOCS created are posted to the corresponding application program.
o Application program checks data and posts in the application database.
Finally Transport LSMW Projects:
R/3 Transport system
o Extras ->Create change request
o Change request can be exported/imported using CTS
Export Project
o Select / Deselect part / entire project & export to another R/3 system
Import Project
o Exported mapping / rules can be imported through PC file
o Existing Project data gets overwritten
o Prevent overwriting by using
Import under different name
Presetting for Inbound IDOC processing not transportable.
Reward if useful.
regards
santhosh reddy -
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 -
Hi,
I need to upload sales orders from MS-excel spread-sheets. The upload process has to take place in Production once the system is live. LSMW does not seem to be a good option here as the user is going to run this upload process after go-live. We do not wish to use BDC's because it is not so convenient for the user to have a look at the errors occuring during the upload process. Do we have to create Idocs for creating sales orders or is there any other way out?
Thanks,
Alam.Hi Alam,
I would recommend IDOCS as it has excellent error handling capabilities. Especially in your case since the data load has to be done after go-live it would be easier to trouble shoot , given the fact that you might not have much time.
Other options would be using a BAPI to load the sales orders. Though this is also a good process, the error handling capabilities are not as good as idocs.
The advantage is that you dont have to setup the ALE settings and other related dependent customizing.
BDC is definitely a NO NO
Cheers,
VJ
Message was edited by: Vijayendra Rao -
Sales order change through bapi
iam uploading va02 changes through bapi..but its not changing the sales order
details in bapi_change function module item number its taking as zero. plz can any one
say where iam going wrong.this is my code
*______BAPI STRUCTURES
data : bapi_header type BAPISDH1 occurs 0 with header line,
bapi_item type BAPISDITM occurs 0 with header line,
bapi_header_x like BAPISDH1X occurs 0 with header line,
bapi_item_x type BAPISDITMX occurs 0 with header line,
it_return type BAPIRET2 occurs 0 with header line.
data: v_vbeln like BAPIVBELN-VBELN,
v_bstkd like bapisdh1-purch_no_c,
v_zterm like bapisdh1-pmnttrms,
v_inco1 like bapisdh1-incoterms1,
v_inco2 like bapisdh1-incoterms2,
v_arktx like bapisditm-short_text,
v_koe1n like bapisditm-currency.
*_____ Internal to hold the records in the text file
DATA : BEGIN OF it_header OCCURS 100,
VBELN(10) ,
BSTKD(35) ,
ZTERM(4) ,
INCO1(3) ,
INCO2(28) ,
POSNR(6) ,
matnr(18) ,
ARKTX(40) ,
END OF it_header.
*_____ Internal table to hold excel file data
DATA : it_intern TYPE alsmex_tabline OCCURS 0 WITH HEADER LINE.
SELECTION-SCREEN BEGIN OF BLOCK scr1 WITH FRAME TITLE text-111.
PARAMETER : p_file TYPE rlgrap-filename OBLIGATORY .
*paRAMETERS : p_header TYPE i DEFAULT 0.
parameters : p_begcol TYPE i DEFAULT 1 NO-DISPLAY,
p_begrow TYPE i DEFAULT 1 NO-DISPLAY,
p_endcol TYPE i DEFAULT 100 NO-DISPLAY,
p_endrow TYPE i DEFAULT 32000 NO-DISPLAY.
SELECTION-SCREEN END OF BLOCK scr1.
___________START-OF-SELECTION________________
START-OF-SELECTION.
PERFORM convert_xls_itab. "to convert excel data into internal table
___________END-OF-SELECTION________________
END-OF-SELECTION.
*& Form convert_xls_itab
text
--> p1 text
<-- p2 text
FORM convert_xls_itab .
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = p_file
i_begin_col = p_begcol
i_begin_row = p_begrow
i_end_col = p_endcol
i_end_row = p_endrow
TABLES
intern = it_intern.
EXCEPTIONS
INCONSISTENT_PARAMETERS = 1
UPLOAD_OLE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
PERFORM move_data. " to move the data into an internal table
ENDFORM. " convert_xls_itab
___________END-OF-SELECTION________________
END-OF-SELECTION.
PERFORM upload_so. "to upload salesorder changes
*& Form upload_so
text
--> p1 text
<-- p2 text
*& Form move_data
text
--> p1 text
<-- p2 text
FORM move_data .
DATA : lv_index TYPE i.
FIELD-SYMBOLS <fs>.
SORT it_intern BY row col. "Sorting Internal Table
CLEAR it_intern.
LOOP AT it_intern.
MOVE it_intern-col TO lv_index.
ASSIGN COMPONENT lv_index OF STRUCTURE it_header TO <fs>. " assigning each record to internal table row
MOVE it_intern-value TO <fs>.
AT END OF row.
APPEND it_header.
CLEAR it_header.
ENDAT.
ENDLOOP.
ENDFORM. " MOVE_DATA
" move_data
*& Form upload_so
text
--> p1 text
<-- p2 text
FORM upload_so .
LOOP AT it_header.
Header
v_vbeln = it_header-VBELN.
bapi_header-purch_no_c = it_header-BSTKD.
bapi_header-pmnttrms = it_header-ZTERM.
bapi_header-incoterms1 = it_header-INCO1.
bapi_header-incoterms2 = it_header-INCO2.
APPEND BAPI_header.
bapi_header_x-updateflag = 'U'.
bapi_header_x-purch_no_c = 'X'.
bapi_header_x-pmnttrms = 'X'.
bapi_header_x-incoterms1 = 'X'.
bapi_header_x-incoterms2 = 'X'.
APPEND BAPI_header_x.
item
REFRESH BAPI_item.
bapi_item-ITM_NUMBER = it_header-POSNR.
bapi_item-material = it_header-matnr.
bapi_item-short_text = it_header-arktx.
bapi_item-currency = it_item-koein.
APPEND BAPI_item.
bapi_item_x-updateflag = 'U'.
bapi_item_x-ITM_NUMBER = it_header-POSNR.
bapi_item_x-MATERIAL = 'X'.
bapi_item_x-short_text = 'X'.
bapi_item_x-currency = 'X'.
APPEND bapi_item_x.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = V_VBELN
IMPORTING
OUTPUT = V_VBELN.
BAPI to change sales order
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
SALESDOCUMENT = v_vbeln
ORDER_HEADER_IN = bapi_header
ORDER_HEADER_INX = bapi_header_x
SIMULATION =
BEHAVE_WHEN_ERROR = ' '
INT_NUMBER_ASSIGNMENT = ' '
LOGIC_SWITCH =
NO_STATUS_BUF_INIT = ' '
TABLES
RETURN = it_return
ORDER_ITEM_IN = bapi_item
ORDER_ITEM_INX = bapi_item_x
PARTNERS =
PARTNERCHANGES =
PARTNERADDRESSES =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CFGS_BLOB =
ORDER_CFGS_VK =
ORDER_CFGS_REFINST =
SCHEDULE_LINES =
SCHEDULE_LINESX =
ORDER_TEXT =
ORDER_KEYS =
CONDITIONS_IN =
CONDITIONS_INX =
EXTENSIONIN =
COMMIT WORK.
ENDLOOP.
IF IT_return-type = 'E'.
WRITE: / 'Error :', IT_return-message, / 'for VBELN:',it_HEADER-VBELN.
ELSEIF IT_return-type = 'S'.
WRITE: / 'Successfully CHANGED', it_HEADER-VBELN.
ENDIF.
ENDFORM. " upload_so
thankshi
You can use ORDER_ITEMS_IN. For further details use the documentation of the function module.This must help you in your requirement.
regards
Aakash Banga
Maybe you are looking for
-
New Hard Drive Enclosure not being detected by Mac
Hi. I've been having problems with my external hard drive. I went out and bought a hard drive enclosure today at Best Buy for more storage on my eMac. After putting it together, I plugged it into my Windows 7 computer to test it out and it worked per
-
Hi , Following error msg coming when notification was sending to mail . ORA-29279: SMTP permanent error: 554 5.5.1 Error: no valid recipients Please advise how to clear this error. Thanks&Regards Ranganath Konikineni
-
Parsing expressions back and forth
I'm using JEP ( http://www.singularsys.com/jep/ ) to parse expressions and calculate values from bytes. I'm trying to avoid having to have my users create an expression to calculate the real value and back to the byte. Right now, I'm looping through
-
Hi folks, i have to buy IPS license for my 2 IDSM-2 mosules in order to upgrade them from IDS to IPS. I take a look to Cisco pricing list and i found 2 software code and i don't know what is the correct one: could you help me ? 1)CON-SU1-WS-IDS2K9 2)
-
Adding Message Interfaces to Business System
Hi All, Can anyone tell me how and why we dont add message interfaces to a business system??.. The business system corresponds to Tech system which has software component...right?... so how do we get interfaces from diff components into the same busi