Uploading long text for Material Master 'Purchase Order Text"
2008-07-18 13:53
471 查看
Uploading long text for Material Master 'Purchase Order Text"
By Rajinikanth Gangishetty, Yash TechnologiesRequirement: Loading the purchasing long text for the given materials. <?XML:NAMESPACE PREFIX = O />
The flat file in our example contains the long text for multiple materials. The header record contains the material information (Material Number and Text ID) and is identified by the starting character ‘H’. The item records contain the long text to be uploaded for the material and the starting character ‘I’ identifies the record. See the screenshot below:
Create a Project, Subproject and Object in the LSMW transaction
1. Maintain Object Attributes
Select the standard direct input method
Object - 0001
Method - 0001
2. Maintain Source Structures
Create two structures one for Header and one for Item. The item structure will be at lower level for the Header
3. Maintain Source Fields
Define the fields as per the flat file structure. In both the structures the first field must be identifier. Create the identifier field of character 1 and specify the identifying field content 'H' for header structure and 'I' for item stricture as shown below.
Here the Field LINE of item structure is char 132, so each text line from the input file must be less than or equal to the length 132.
4. Maintain Structure Relations
Assign the header source structure to the Header target structure and Item source structure to Item target structure.
5. Maintain Field Mapping and Conversion Rules
Map the source fields to the target fields
Header mapping
For NAME and ID map the source fields MATNR and TEXID respectively.
For OBJECT and SPRAS pass the constants. To enter a constant value for any field, place the cursor on the field and enter a value by clicking on constant button available in the application toolbar.
Item mapping
For TEXTFORMAT pass the constant '*' and for the TEXTLINE map the input field LINE of the ITEM structure.
Save the changes.
6. Specify Files
Place the cursor on Legacy data and click create button
Enter the input file details
Select the Radio button 'data for Multiple source structures' as we are populating the header and Item structures from the same input file
Select the delimiter 'Tabulator', if the fields in the input file are separated by tab.
7. Assign Files
Assign the input file to both the structures
8. Read Data
Execute the Read data.
9. Display Read Data [optional]
10. Convert Data - Execute the convert data
11. Display Converted Data [optional]
12. Start Direct Input Program - Execute this step.
Result: The Long text will be updated for the given Materials
Transaction MM03, View - Purchase order text
<SCRIPT type=text/javascript><!--
google_ad_client = "pub-1086451200925480";
google_alternate_color = "0000FF";
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = "336x280_as";
google_ad_type = "text";
//2007-04-05: 336 x 280
google_ad_channel = "5227776827";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_text = "000000";
google_color_url = "008000";
//-->
</SCRIPT>
<SCRIPT src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript>
</SCRIPT>
相关文章推荐
- Uploading Material Master Long Text (Basic data text, Inspection text, Internal comment)
- 解决django.db.utils.DataError: (1406, "Data too long for column 'gender' at row 1")
- Purchase for Order
- MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker") TypeError解决方法
- SSIS 之 Exception: Failed to retrieve long data for column "TS_Description"
- EXP-00079: 表 "PURCHASEORDER" 中的数据是被保护的。常规路径只能导出部分表
- insert<type 'exceptions.Exception'>:(1406, "Data too long for column '' at row
- Mysql "data too long for column"
- 详细介绍Toast.makeText(this, "string string string",Toast.LENGTH_LONG).show();
- the way to compart a long code line into parts in order to make the Horizontal scroll bar disappear in V.S' Text Editor
- Spring @Validate 报 :"No validator could be found for type: java.lang.Long" 异常
- Toast.makeText(this, "string string string",Toast.LENGTH_LONG).show()解析
- 使用Date时,出现"Incorrect datetime value: '' for column 'ordertime' at row 1 Query..."时,该怎么解决呢?
- Mysql "data too long for column"
- How to create columns like "bigint" or "longtext" in Rails migrations
- BADI--Purchase Requisition Header Long Text using Badi - ME_PROCESS_REQ_CUST.
- No resource identifier found for attribute 'tabSelectedTextColor' in package "xxx.xx.xx"
- 用Microsoft Office Visio for Enterprise Architects生成数据库时出现“无法打开登录所请求的数据库"masterDATABASE=master"。登录失败”
- EXP-00079: 表 "PURCHASEORDER" 中的数据是被保护的。常规路径只能导出部分表
- Troubleshooting: "WAITED TOO LONG FOR A ROW CACHE ENQUEUE LOCK! " (文档 ID 278316.1)