To upload into sales text in MM01
Hi,
In MM01 i have to upload sales text from .xls format.
I tried using BDC for it but i dont think it works bcos
in session method (SHDB) the sales text part will not get
recorded since the sales text field does not have field name for it.
Can anybody tell me how to upload the sales text ( in text editor) from excel file.
Thank you,
Deepak
hi
this is regarding to the topic which i posted yesterday for loading long text in mm01 in sales text.
DATA: l_head LIKE thead.
DATA: t_lines TYPE TABLE OF TLINE WITH HEADER LINE.
l_head-tdid = '0001'.
l_head-tdspras = 'E'.
l_head-tdname = record-matnr_001.
l_head-tdobject = 'MVKE'.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
header = L_HEAD
INSERT = 'X'
SAVEMODE_DIRECT = 'X'
tables
lines = T_LINES
from the above sample code i think the text has to be stored in the internal table t_lines.
but over here t_lines in empty.
can anybody tell me what the error is????
With regards
Deepak
Similar Messages
-
Hi I have an issue were I need to upload a text message for around 1000 customers.
I mention the text in Sales Data --> Extras --> Text.
The text lengh is around is 75 letters. So i am planning to use the long text filed.
Now my doubt is:
1) How can I upload the data for 1000 customers. In XD99 (mass change) I could not find this field.
So where can i upload this.
2) If I use the long text using the word file, Will it appear in Sales Order and printout.
Please kindly help me in this.
Regards,
DSKIn case it is a 1 time effort go for a LSMW recording. it wont restrict you to enter maximum number of characters. Also whatever is in the customer master it will get copied to SO based on Text determination. It will even copy a whole word document.
-
Uploading Sales Text Through BDC
hi friends,
i want to upload Material Sales Text Through BDC Program.
Please let me know how to do this.
regards,
srinivashi friends,
i want to upload Material Sales Text Through BDC Program.
Please let me know how to do this.
regards,
srinivas -
Hi,
I would like to ask if you know any user exit where i can add new validation on the values being inputted by the user in the sales text during mm01/mm02..
thanks!Hi,
Please see the user exits used in mm01 and mm02.
Transaction Code - MM01
Exit Name Description
MGA00001 Material Master (Industry): Checks and Enhancements
MGA00002 Material Master (Industry): Number Assignment
MGA00003 Material Master (Industry and Retail): Number Display
Transaction Code - MM02
Exit Name Description
MGA00001 Material Master (Industry): Checks and Enhancements
MGA00002 Material Master (Industry): Number Assignment
MGA00003 Material Master (Industry and Retail): Number Display
you can use MGA00001 for checks and validations.
Regards,
Anusha v. -
How to insert sales text (MM02) into a single record of a Ztable.
Hi,
I'm extracting data from different data base tables and populating a Ztable which has Matnr as primary key and sales text as a field.
I have already used READ_TEXT to display the text and it is displayed in multiple records which in turn leads to duplication of Material numbers.
Now I want to avoid duplication of records (Matnr) as this being a primary record, and display the sales text of a particular material number into one single record.
Can anyone tell me how to insert sales text (MM02) transaction into one single record.
Thanks,
Govindsorry i am not enough clear about your requirement...
as i can understand i am explaining to you.
suppose your itab contains repaeating matnr.
matnr
1
1
2
2
2
3
3
like this.
data : text(200),
matnr like mara-matnr.
loop at itab.
call READ_TEXT fnmodule.
loop at tline.
concatenate text tline-tdline into text.
endloop.
matnr = itab-matnr.
at end of matnr.
itab1-matnr = matnr.
itab1-text = text.
append itab1.
clear text.
endat.
endloop.
NB change the code as per your requirement
regards
shiba dutta -
Uploading sales text and Purchase order text for material master
Hi,
I have created, material master with LSMW byt not updated SALES TEXT and Purchase order text with LSMW now i want to uplaod the sales and po text for material master can you give some link or ref. code to upload the text i have near 1000 items for which i want to uplaod text when i have done the recording with SHDB i have not found filed in recording.
regards,
zafarHi,
I have made the code in se38
as below but still it is not working
REPORT ZTEST_TEXT.
data: headerl like thead occurs 0 with header line.
data itab3 like tline occurs 0 with header line.
headerl-tdobject = 'MATERIAL'.
headerl-tdname = '00000000000LSMW123'. "(Material : 000000000300000560, Sorg : 0001, Dist channel: 01)
headerl-tdid = 'BEST'.
headerl-tdspras = 'E'.
append headerl.
move '*' to itab3-tdformat.
move 'Testing PO text' to itab3-tdline.
append itab3.
call function 'SAVE_TEXT'
exporting
header = headerl
insert = ' '
savemode_direct = ' '
tables
lines = itab3
exceptions
id = 1
language = 2
name = 3
object = 4
others = 5.
IF SY-SUBRC = 0.
CALL FUNCTION 'COMMIT_TEXT'
EXPORTING
OBJECT = headerl-tdobject
NAME = headerl-tdname.
ENDIF.
break-point.
regards,
zafar -
APPENDING data into the sales text header of a sales order
Hi,
I need to write data into the sales text of a SALES ORDER. My problem is that if i use SAVE_TEXT it writes the new text and erases the old text.Is there any function module to append the data into the sales text or any setting in the function module which allows me to do so.
RegardsHello Pankaj,
First using FM read_text and read the text.
Then Using the fm Edit_text edit the text as u want.
If useful reward .
Vasanth -
LSMW, to upload material sales long text , MM02
Hi
I have not been able to upload long the long text of the material master record related to view Sales text (see tcode MM02). The upload should use the tcode LSMW, below is the steps that I used to create my LSMW codes:
Step 1: Maintain Object attributes
Object : 0001
Method: 0001
Program name: /SAPDMC/SAP_LSMW_IMPORT_TEXTS
Program type: D
Step 2: Maintain source structure
I create two structures
MAT_LONGTEXT (Material Long text)
TEXT_LINES (Text lines)
Step 3: Sources fields
MAT_LONGTEXT with 3 fields: Identifier (C, 1, H), MATNR (C, 18, material), TXTID (C, 132, Text ID)
TEXT_LINES with 2 fields: IDENTIFIER (C, 1, I), LINE (text Line)
Step 4: Field Mapping and rule
OBJECT:
constant, /SAPDMC/LTXTH-OBJECT = 'MVKE'.
NAME:
Source: MAT_LONGTEXT-MATNR (Material)
Move, /SAPDMC/LTXTH-NAME = MAT_LONGTEXT-MATNR.
ID:
Source: MAT_LONGTEXT-IDENTIFIER (Identifier)
Move, /SAPDMC/LTXTH-ID = MAT_LONGTEXT-IDENTIFIER.
SPRAS : Language Key
Constant, /SAPDMC/LTXTH-SPRAS = 'E'.
TXTFORMAT:
Constant
/SAPDMC/LTXTL-TEXTFORMAT = '*'.
TEXTLINE :
Source: TEXT_LINES-LINE (Text Line)
Move, /SAPDMC/LTXTL-TEXTLINE = TEXT_LINES-LINE.
please helpI had these settings before, but nothing happened ...
Here is the code:
*& Report ZREADVERTRIEBSTEXT
REPORT ZREADVERTRIEBSTEXT.
data : tbody like TLINE occurs 0 with header line.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = '0001'
LANGUAGE = SY-LANGU
NAME = '5007093 101101'
OBJECT = 'MVKE'
* ARCHIVE_HANDLE = 0
* LOCAL_CAT = ' '
* IMPORTING
* HEADER =
TABLES
LINES = tbody
* EXCEPTIONS
* ID = 1
* LANGUAGE = 2
* NAME = 3
* NOT_FOUND = 4
* OBJECT = 5
* REFERENCE_CHECK = 6
* WRONG_ACCESS_TO_ARCHIVE = 7
* OTHERS = 8
*IF SY-SUBRC 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
*ENDIF. -
No Upload into ECC when replicating sales order to ECC
Hi All,
The replication of sales order from CRM to ERP works fine when using the SALESPRO business role. But when using IC_Agent the sales orders are not replicated with message in SMW01 "no upload into ECC".
The unusual issue also is that when I change the IC_Agent business role profile type from "IC Webclient Business Role" to "CRM Webclient Business Role" the sales orders replicated succussfully.
Anyone knows the relation between business role profile type and sales order replication? why the profile type stop the order from replication to ECC when its set to "IC Webclient Business Role"?
Note: I use the same transaction type and same order details in both cases
Regards,
Ahmed EldersHi,
please check notes:
Note 592881 - Generate test data for function modules - implementation
Note 517767 - Generate test data for function modules
Denis -
Automated insertion of text into Sales order header
Hi Guru's,
we are recently working on specific request for automated creation of sales documents.
On each sales order there is a need to update specific fields on header level with default values - no problem.
There is also need to insert specific text into Header text: "Service reendered YYYY-MM-DD" into each single order generated by this automated way.
Do you know any functionality that we can implement into our solution or any other solution which is coming to your mind?
THANK YOU!!!Hi
Please try with the following user exits.
USEREXIT_MOVE_FIELD_TO_TVCOM_H
You can use this user exit to influence text determination for header texts. For example, you can include new fields for text determination or fill fields that already exist with a new value.
USEREXIT_MOVE_FIELD_TO_TVCOM_I
You can use this user exit to influence text determination for item texts. For example, you can include new fields for text determination or fill fields that already exist with a new value.
Regards,
P Gomatheeswaran. -
Copy Fields Into Sales order Item Text
Hi All,
I got a requirement where i need to copy the populated custom fields including the appropriate field labels into item text in sales order creation and i am provided with Text Procedure: Z1 and Text ID: 00002. kindly help me.
Thanks,
Preethihi,
I have tried with save_text. but its not copied to the item text tab.
(goto->item->texts)
here is my code:
DATA : gt_text TYPE TABLE OF tline WITH HEADER LINE,
gt_textname LIKE thead-tdname,
gt_textobject TYPE TABLE OF thead WITH HEADER LINE.
CONSTANTS : c_0002 TYPE thead-tdid VALUE '0002',
c_vbbp TYPE thead-tdobject VALUE 'VBBP'.
CONCATENATE xvbap-zzrelid xvbap-zzsorg2
xvbap-zzsorg3 xvbap-zzsorg4
xvbap-zzsorg5 xvbap-zzsorg6
xvbap-zzsorg7 xvbap-zzsorg8
xvbap-zzsorg9 xvbap-zzsorg10
xvbap-zzcusttrdgrp INTO gt_textname.
gt_textobject-tdid = c_0002.
gt_textobject-tdname = gt_textname.
gt_textobject-tdobject = c_vbbp.
gt_textobject-tdspras = sy-langu.
APPEND gt_textobject.
CONCATENATE 'relationship Owner:' vbap-zzrelid INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 2 :' vbap-zzsorg2 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 3 :' vbap-zzsorg3 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 4 :' vbap-zzsorg4 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 5 :' vbap-zzsorg5 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 6 :' vbap-zzsorg6 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 7 :' vbap-zzsorg7 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 8 :' vbap-zzsorg8 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 9 :' vbap-zzsorg9 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 10 :' vbap-zzsorg10 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
header = gt_textobject
savemode_direct = 'X'
TABLES
lines = gt_text
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
kindly resolve y it is not copied to the item text tab and also in which user exit i need to place my code.
Thanks,
Preethi. -
CS Long Text Copy into Sales Order Long Text
Hello ,
In Depot Repair scenario , I am entering few details in Service Order long text . I want this text to be copied into Sales/Repair Order long text . Do anyone know how to do this.
Regards.Hi,
I am not sure but check in user exit IWO10009 PM Order: Customer Check for 'Save' Event
with FMs READ_TEXT & SAVE_TEXT, WRITE_TEXT ..
or in some sutiable user exit at the time of saving sales order , the above FMs will be helpful for ur case
regards
pushpa -
Upload sales text for material master using LSMW direct input method
Hello Experts,
I was trying to upload sales text for a material master using LSMW direct input method.
I followed the following steps for the same
Tab dlimited Text file format
MATNR LONGTEXT LINE
MATERIAL1 LONGTEXT FOR MATERIAL MATERIAL1 1
Step1 -> Maintain object attributes
Object -> 0001
Method-> 0001
Program name -> /SAPDMC/SAP_LSMW_IMPORT_TEXTS
Program type -> D
Step2 -> Maintain Source Structure
Source structure -> LONG_TEXT Source structure for long text
Step 3-> Maintain souce file
Source Fields
ZLONG_TEXT Source structure for long text
MATNR C(018) MATNR
LTEXT C(132) LTEXT
Step 4-> Maintain structure relationship
Structure Relations
/SAPDMC/LTXTH Long Texts: Header <<<< ZLONG_TEXT Source structure for long text
Select Target Structure /SAPDMC/LTXTH .
/SAPDMC/LTXTL Long Texts: Row <<<< ZLONG_TEXT Source structure for long text
Select Target Structure /SAPDMC/LTXTL .
Step 5-> Maintain Field mapping and conversion rules
Here i have assigned constan rules to couple of them like
/SAPDMC/LTXTH Long Texts: Header
Fields
OBJECT Texts: Application Object
Rule : Constant
Code: /SAPDMC/LTXTH-OBJECT = 'MVKE'.
NAME Name
Source: ZLONG_TEXT-MATNR (MATNR)
Rule : Transfer (MOVE)
Code: /SAPDMC/LTXTH-NAME = ZLONG_TEXT-MATNR.
ID Text ID
Rule : Constant
Code: /SAPDMC/LTXTH-ID = '0001'.
SPRAS Language Key
Rule : Constant
Code: /SAPDMC/LTXTH-SPRAS = 'E'.
/SAPDMC/LTXTL Long Texts: Row
Fields
TEXTFORMAT Tag column
Rule : Constant
Code: /SAPDMC/LTXTL-TEXTFORMAT = '/'.
TEXTLINE Text Line
Source: ZLONG_TEXT-LTEXT (LTEXT)
Rule : Transfer (MOVE)
Code: /SAPDMC/LTXTL-TEXTLINE = ZLONG_TEXT-LTEXT.
Step6 -> Specify file
Legacy Data On the PC (Frontend)
Data D:\Sales_Longtext.txt
Step7 -> Assign File
ZLONG_TEXT Source structure for long text
Data D:\Sales_Longtext.txt
Step8 -> Read data
Output result
Source Structure Read Written Not Written
ZLONG_TEXT 1 1 0
Transactions Read: 1
Records Read: 1
Transactions Written: 1
Records Written: 1
Step 8 -> Display read data
Field Name Field Text Field Value
MATNR MATNR MATERIA1
LTEXT LTEXT SALES TEXT FOR Material MATERIAL1
Step 9 -> Convert data
File Read: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.read
File Written: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
Transactions Read: 1
Records Read: 1
Transactions Written: 1
Records Written: 2
Step 10 -> Display converted data
1 /SAPDMC/LTXTH 1MVKE MATERIAL1 0001E
2 /SAPDMC/LTXTL 2/ SALES TEXT FOR Material MATERIAL1
Step 11 -> Start direct input program
Output result for the same
Legacy System Migration Workbench
Project: ZNRD_PRJ1 ORH
Subproject: ZNRD_SUBPRJ2 Upload long text
Object: ZNRD_LTEXT Long text tru direct input
File : ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
Long Texts in Total: 1
Successfully Transferred Long Texts: 1
Non-Transferred Long Texts: 0
Now when i check the material master sales view -> sales text it is empty.
Please help me with the same.
Regards,
Ranjith NHello Experts, I was trying to upload sales text for a material master using LSMW direct input method.
I followed the following steps for the same
Tab dlimited Text file format
MATNR LONGTEXT LINE
MATERIAL1 LONGTEXT FOR MATERIAL MATERIAL1 1 *************************************************************************************************************
Step1 -> Maintain object attributes
Object -> 0001
Method-> 0001
Program name -> /SAPDMC/SAP_LSMW_IMPORT_TEXTS
Program type -> D
Step2 -> Maintain Source Structure
Source structure -> LONG_TEXT Source structure for long text
Step 3-> Maintain souce file Source Fields
ZLONG_TEXT Source structure for long text
MATNR C(018) MATNR
LTEXT C(132) LTEXT
Step 4-> Maintain structure relationship
Structure Relations
/SAPDMC/LTXTH Long Texts: Header <<<< ZLONG_TEXT Source structure for long text
Select Target Structure
/SAPDMC/LTXTH . /SAPDMC/LTXTL Long Texts: Row <<<< ZLONG_TEXT Source structure for long text
Select Target Structure /SAPDMC/LTXTL .
Step 5-> Maintain Field mapping and conversion rules
Here i have assigned constan rules to couple of them like
/SAPDMC/LTXTH Long Texts: Header
Fields
OBJECT Texts: Application Object
Rule : Constant
Code: /SAPDMC/LTXTH-OBJECT = 'MVKE'.
NAME Name
Source: ZLONG_TEXT-MATNR (MATNR)
Rule : Transfer (MOVE)
Code: /SAPDMC/LTXTH-NAME = ZLONG_TEXT-MATNR.
ID Text ID
Rule : Constant
Code: /SAPDMC/LTXTH-ID = '0001'.
SPRAS Language Key
Rule : Constant
Code: /SAPDMC/LTXTH-SPRAS = 'E'.
/SAPDMC/LTXTL Long Texts: Row
Fields
TEXTFORMAT Tag column
Rule : Constant
Code: /SAPDMC/LTXTL-TEXTFORMAT = '/'.
TEXTLINE Text Line
Source: ZLONG_TEXT-LTEXT (LTEXT)
Rule : Transfer (MOVE)
Code: /SAPDMC/LTXTL-TEXTLINE = ZLONG_TEXT-LTEXT.
Step6 -> Specify file Legacy
Data On the PC (Frontend)
Data D:\Sales_Longtext.txt
Step7 -> Assign File ZLONG_TEXT
Source structure for long text
Data D:\Sales_Longtext.txt
Step8 -> Read data
Output result
Source Structure Read Written Not Written
ZLONG_TEXT 1 1 0
Transactions Read 1
Records Read: 1
Transactions Written: 1
Records Written: 1
Step 8 -> Display read data
Field Name Field Text Field Value
MATNR MATNR MATERIA1
LTEXT LTEXT SALES TEXT FOR Material MATERIAL1
Step 9 -> Convert data
File Read: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.read
File Written: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
Transactions Read: 1
Records Read: 1
Transactions Written: 1
Records Written: 2
tep 10 -> Display converted data
1 /SAPDMC/LTXTH 1 MVKE MATERIAL1 0001 E
2 /SAPDMC/LTXTL 2/ SALES TEXT FOR Material MATERIAL1
Step 11 -> Start direct input program
Output result for the same
Legacy System Migration Workbench Project:
ZNRD_PRJ1 ORH
Subproject: ZNRD_SUBPRJ2 Upload long text
Object: ZNRD_LTEXT Long text tru direct input
File : ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
Long Texts in Total: 1
Successfully Transferred Long Texts: 1
Non-Transferred Long Texts: 0
Now when i check the material master sales view -> sales text it is empty. Please help me with the same.
Regards,
Ranjith N -
Issue while uploading .TIFF file into Standard text using RSTXLDMC
Hi All,
We are facing issues while uploading .TIFF file into standard text through program RSTXLDMC.
Getting the following error.
TIFF format error: No baseline TIFF 6.0 file.
The image is a colored one.
Please provide me solution if anyone has worked in this area.
Thanks in Advance,
Anand Raj Kuruba.Hi,
Often this error occurs because the TIFF file you have has been saved with some form of compression. You need to open in a picture edit program and save as TIFF making sure options are set so there is no compression.
Andrew -
Upload Purchase order text tab using BDC
Is it possible to upload Purchase order text tab in material master (tcode mm01) using a BDC.
If so pls tell me how to upload the same, what is the field name of the box.
Regards,
Senthilu need to use READ_TEXT or SAVE_TEXT or WRITE_TEXT or COMMIT_TEXT to upload text into SAP.
Maybe you are looking for
-
SetText() works for one text area but not for another
I am student new to java so forgive me if I'm making an obvious mistake. I have a GUI with 3 tabs. Two tabs have a text area in each in them and an action listener tells the textarea what to print. The problem is one text area works and the other doe
-
Skip validation of 'OBLIGATORY fields populated or not'? so that user GO_BACK
Hello I placed a handful fields on selection screen, wherein there are push buttons are there and input free text fields. Based on these button cliks and controlling the other fields visibility. So, user thinks that there are 2 screens. I also placed
-
THE earth To change THE keypad language diseppear
Please someone CAN help me i just bought m'y new iPhone 3gs and have a big problèm with THE keypad in m'y old iPhone 3G i had THE earth To change between english and French. I'm doing thousand of mails per day in english and it's impossible To Wright
-
My new Macbook Pro does not have Frontrow
Just got a new Macbook Pro Intel 2 Duo Core but I can't find Frontrow? It came with a remote too. I downloaded an update but it's a ".pkg" so I'm unable to open it. Any help would be appreciated. thanks! ST
-
How do I simply move .jpg photos from my win7 PC to my iphone 4?
I am having trouble moving photos from my win7 PC to my new iphone 4. I emailed a few but that's too inefficient. I tried drapping and dropping with itunes but it says the phone's not connected, it is and I have moved other apps and items but phot