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
Similar Messages
-
How to upload Purchase Order Data thru LSMW
Hi All,
I need to upload Purchase order data thru LSMW. LSMW Provides standard object method which does not suit for split valuation. But in the client place split valuation is maintained. Is there any other of option of uploading the data.
Regards,
SrivatsanDear Srivatsan
For Upload Purchase order Data through LSMW
Business object BUS2012 - Purchase Order
Basic type PORDCR04
Message type PORDCR
Method CREATEFROMDATA
With regards
B.Ravindranath -
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.
-
How to upload Purchase oder text through BDC. or BAPI
Hi...
I wish to know how to upload purchase oder text wich is in MM01 t-code and has a screen number 4040 and program name SAPLMGMM, i want to migrate a material master data to another client by this fields, Basic, Purchasing, Purchase oder text ( long text), general plant date/storage1 and accounting. for that i am suspicious about uploading a purchase oder text with bdc...if i am true how i can have this by bapi or another means...please help me
...thaking you....Hi,
Use FM - BAPI_PO_CREATE1
It will fetch both HEADER and ITEM text.
This module is used to create a PO and as u r involved in a data migration, I can suggest to use this one.
Hope It'll help.
Thanks & Regards,
Ankur -
Issue when uploading Purchase Order for Services (LSMW and BAPI_PO_CREATE1)
Hi,
I`m getting the error message "In case of account assignment, please enter acc. assignment data for item" when trying to updoad a Service Purchase Order via LSMW using BAPI_PO_CREATE1.
I'm using two files, one for header and item data and the other one to service lines. Even the account assignment is maintained the error persists. What am I doing wrong?
Regards,
EvertonHi
Check If you are giving the Account Assignment Number correct.
I mean....for a value...to be recognized by the BAPI, the number should be exactly same as it is stored in DATABASE.
For example: the number stored in database is 0000123...and you enter 123..in the program, then BAPI would fail to recognise the number. The value should be exactly as the field length.
Regards,
Vishwa. -
Upload Purchase order text using BDC while updating Material Master MM02
Hi All,
Please help me out with sample code upload PO Txt ( long text...which is more than 72 chars)using MM02. Its very urgent
I am not able to pass data into following fields seen in recording,
RSTXT-TXLINE(02),
RSTXT-TXLINE(03),
RSTXT-TXLINE(04),
RSTXT-TXLINE(05), as we can see only RSTXT-TXLINE field in the RSTXT structure......
how to split the long text into 72 chrs each and pass into data into the RSTXT-TXLINE(02), RSTXT-TXLINE(03), RSTXT-TXLINE(04)....correspondingly........
Thanks in advance.....
Reagards,
Prasad KR.Hi
see the sample program
REPORT zmm_longtext
NO STANDARD PAGE HEADING
LINE-SIZE 255.
Internal Table for Upload of Long Texts Data
DATA: BEGIN OF itab1 OCCURS 0,
matnr LIKE mara-matnr, " Material
text1 LIKE tline-tdline, " Long Text
text2 LIKE tline-tdline, " Long Text
text3 LIKE tline-tdline, " Long Text
text4 LIKE tline-tdline, " Long Text
text5 LIKE tline-tdline, " Long Text
text6 LIKE tline-tdline, " Long Text
text7 LIKE tline-tdline, " Long Text
text8 LIKE tline-tdline, " Long Text
text9 LIKE tline-tdline, " Long Text
text10 LIKE tline-tdline, " Long Text
text11 LIKE tline-tdline, " Long Text
text12 LIKE tline-tdline, " Long Text
text13 LIKE tline-tdline, " Long Text
text14 LIKE tline-tdline, " Long Text
text15 LIKE tline-tdline, " Long Text
text16 LIKE tline-tdline, " Long Text
text17 LIKE tline-tdline, " Long Text
text18 LIKE tline-tdline, " Long Text
text19 LIKE tline-tdline, " Long Text
text20 LIKE tline-tdline, " Long Text
text21 LIKE tline-tdline, " Long Text
text22 LIKE tline-tdline, " Long Text
text23 LIKE tline-tdline, " Long Text
text24 LIKE tline-tdline, " Long Text
text25 LIKE tline-tdline, " Long Text
END OF itab1.
Internal Table for Upload of Long Texts Data
DATA: BEGIN OF itab OCCURS 0,
matnr LIKE mara-matnr, " Material
text LIKE tline-tdline, " Long Text
END OF itab.
To create Long Text lines for CREATE_TEXT function module
DATA:BEGIN OF dt_lines OCCURS 0.
INCLUDE STRUCTURE tline. " Long Text
DATA:END OF dt_lines.
Variable declarations for CREATE_TEXT function module
DATA : dl_name TYPE thead-tdname, " Object Name
dl_lan TYPE thead-tdspras, " Language
gv_matnr TYPE matnr.
Constants
CONSTANTS:
Object ID for Long Text of Material Basic Data 1
c_best TYPE thead-tdid VALUE 'GRUN',
c_material TYPE thead-tdobject VALUE 'MATERIAL'. " Object
Parameters
PARAMETERS p_file LIKE rlgrap-filename.
At selection-screen on Value Request for file Name
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
Get the F4 Values for the File
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
IMPORTING
file_name = p_file.
Start Of Selection
START-OF-SELECTION.
*To Upload Flat file
CALL FUNCTION 'UPLOAD'
EXPORTING
filename = p_file
filetype = 'DAT'
TABLES
data_tab = itab1
EXCEPTIONS
conversion_error = 1
invalid_table_width = 2
invalid_type = 3
no_batch = 4
unknown_error = 5
gui_refuse_filetransfer = 6
OTHERS = 7.
SORT itab1 BY matnr.
LOOP AT itab1.
CLEAR gv_matnr.
SELECT SINGLE matnr INTO gv_matnr
FROM mara WHERE bismt = itab1-matnr.
IF itab1-text25 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text25.
APPEND itab.
ENDIF.
IF itab1-text24 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text24.
APPEND itab.
ENDIF.
IF itab1-text23 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text23.
APPEND itab.
ENDIF.
IF itab1-text22 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text22.
APPEND itab.
ENDIF.
IF itab1-text21 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text21.
APPEND itab.
ENDIF.
IF itab1-text20 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text20.
APPEND itab.
ENDIF.
IF itab1-text19 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text19.
APPEND itab.
ENDIF.
IF itab1-text18 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text18.
APPEND itab.
ENDIF.
IF itab1-text17 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text17.
APPEND itab.
ENDIF.
IF itab1-text16 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text16.
APPEND itab.
ENDIF.
IF itab1-text15 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text15.
APPEND itab.
ENDIF.
IF itab1-text14 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text14.
APPEND itab.
ENDIF.
IF itab1-text13 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text13.
APPEND itab.
ENDIF.
IF itab1-text12 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text12.
APPEND itab.
ENDIF.
IF itab1-text11 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text11.
APPEND itab.
ENDIF.
IF itab1-text10 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text10.
APPEND itab.
ENDIF.
IF itab1-text9 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text9.
APPEND itab.
ENDIF.
IF itab1-text8 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text8.
APPEND itab.
ENDIF.
IF itab1-text7 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text7.
APPEND itab.
ENDIF.
IF itab1-text6 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text6.
APPEND itab.
ENDIF.
IF itab1-text5 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text5.
APPEND itab.
ENDIF.
IF itab1-text4 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text4.
APPEND itab.
ENDIF.
IF itab1-text3 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text3.
APPEND itab.
ENDIF.
IF itab1-text2 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text2.
APPEND itab.
ENDIF.
IF itab1-text1 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text1.
APPEND itab.
ENDIF.
CLEAR itab.
ENDLOOP.
DELETE itab WHERE matnr EQ ' '.
Upload the Texts
SORT itab BY matnr.
LOOP AT itab.
dt_lines-tdformat = 'ST'.
dt_lines-tdline = itab-text.
APPEND dt_lines.
dl_lan = sy-langu.
dl_name = itab-matnr.
Call the Function Module to Create Text
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
fid = c_best
flanguage = dl_lan
fname = dl_name
fobject = c_material
save_direct = 'X'
fformat = '*'
TABLES
flines = dt_lines
EXCEPTIONS
no_init = 1
no_save = 2
OTHERS = 3.
IF sy-subrc <> 0.
WRITE:/ 'Long Text Creation failed for Material'(001),
itab-matnr.
ELSE.
WRITE:/ 'Long Text Created Successfully for Material'(002),
itab-matnr.
ENDIF.
AT END OF matnr.
REFRESH dt_lines.
ENDAT.
ENDLOOP.
Reward points for useful Answers
Regards
Anji -
Updating Material master purchase order text -LSMW
Dear Experts
How can update Purchase order Text through LSMW, while am doing recording system is not recording this field from material master
Regards
Ajeesh.sDear Expert
Please throw some light on this issue
Regards
Ajeesh.s -
Upload of purchase order text in the material master
Now we have information of Purchase order text for all the material.
Is it possible to upload the Purchase order text using LSMW.
Some friends were telling that LSMW is not possible for Purchase Order text.
Can anyone suggest how I can upload this purchase order text for all 1000
material using LSMW program.
/if not LSMW is there any other method to upload it
thanks in advance
deepak.s.gouraDear Deepak,
there is standard direct upload i believe
go to lsmw
Execute 1st option
then inLSMW:Object Attribute screen
in standard batch/ direct input
firsr radio button
select object 005
and method 003
Program name RSTXLITF.
Then go by normal process i.e source field , field mapping...
In this way u can also upload Text in the Material master.
Rewards if helpful
Regards
Sanjay L -
Hi,
Please Help me in uploading Purchase Order Text into SAP.
I heard that CODE or theh same is available .please send me that document.
Thanks
shreyaHi,
I prefer to load this by LSMW with following object:
Object 0001 Long texts
Method 0001 (No selection)
Program name /SAPDMC/SAP_LSMW_IMPORT_TEXTS
Program type D Direct input
Best Regards, Murugesh AS -
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 -
Upload of purchase order details using LSMW
Hi friends,
I encountered a problem while uploading purchase order details using LSMW . in the field mapping I could not able to fine the field TCODE. as a result I could not assign the transaction code ME21. could you please suggest me a solution.
thanksHai
Check with the following
Select fifth Radio button then follow the bellow step
<b>5) select radio-Button 5 and execute
Maintain Field Mapping and Conversion Rules
Select the Tcode and click on Rule button there you will select constant
and press continue button
give Transaction Code : ME21 and press Enter</b>
Thanks & regards
Sreenivasulu P -
Long text in PURCHASE order text view in program RMDATIND
hi all,
ive to upload data for material master iam doing this using lsmw & standard object 0020 program RMDATIND.purchase order text.In this iam unable to upload purchase order text in Purchase order text view can anyone plz tell me how to do tht??? its a bit urgent
points will be awarded!
rgds
Message was edited by:
abbaper
Message was edited by:
abbaperHi
In LSMW
for Long texts Upload
Please take a look at this..
http://help.sap.com/saphelp_erp2005/helpdata/en/e1/c6d30210e6cf4eac7b054a73f8fb1d/frameset.htm
Regards
Anji -
hi friends
how to upload purchasing order text in mm01 transaction.
when i record purchasing order text it is storing in as a module pool program screen when i watch in the after recording , it does not have field and table name.
how to upload it?
thanks®ards
deepikaHi,
You can use the function module CREATE_TEXT for uploading the long text in the purchase order but this one has to be done after you have created the Purchase order succesfully. To use the above function module use the following steps.
1) Upload the longtext seperately into an internal table using GUI_UPLOAD and then use the following code to upload that text.
TYPES : BEGIN OF ty_upload,
matnr(18) TYPE c,
txline(5000) TYPE c,
END OF ty_upload.
DATA : it_upload TYPE STANDARD TABLE OF ty_upload,
wa_upload TYPE ty_upload.
DATA : v_tdid TYPE tdid,
v_tdobject TYPE tdobject,
v_en TYPE spras VALUE 'EN'.
CALL FUNCTION 'IQAPI_WORD_WRAP'
EXPORTING
textline = wa_upload-txline
outputlen = '132' ( Give the length depending upon your requirement)
TABLES
out_lines = it_outlines
EXCEPTIONS
outputlen_too_large = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
v_sno = 1.
CLEAR it_outlines.
LOOP AT it_outlines.
READ TABLE it_outlines INDEX v_sno .
IF sy-subrc = 0.
it_tlines-tdline = it_outlines-tdline.
APPEND it_tlines.
CLEAR: it_tlines,it_outlines.
v_sno = v_sno + 1.
ENDIF.
ENDLOOP.
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
fid = v_tdid
flanguage = v_en
fname = v_matnr
fobject = v_tdobject
save_direct = 'X'
fformat = '*'
TABLES
flines = it_tlines
EXCEPTIONS
no_init = 1
no_save = 2
OTHERS = 3.
IF sy-subrc = 0.
Here if sy-subrc is Zero means the text is updated successfully.
Here for getting the tdid and tdobject go to the Tcode ME21 and there inside that one get the values for them and in the PO text of the header text tab.
Hope this one will help you.
Regards,
Venkat. -
LSMW - Purchase Order Text in Material Master
All MM Experts,
I tired to create simple Batch Input Recording but the screen does not get recorded for Purchase Order text maintenance in mass for article master data. we are maintaining Purchase Order Text in article master data in basic data screen on additional data button under purchase order text tab.
Any suggestion on creating LSMW for purchase order text.LSMW has a standard direct input for long texts, hence it is not necessary to do a recording.
help.sap.com gives real good help for loading loading long texts with LSMW, further has this been discussed many many times here in MM and in the data migration forum.
try to search a bit, you dont really need more than the words you already have used on the subject to get a good variety of answers -
Problem in Uploading sales order text data using LSMW
Hi All,
I am facing Problem in uploading open sales order data from legacy to SAP using LSMW.
We are trying to upload sales order data using LSMW Standard Batch/Direct input using program name RVINVB10 and program type D. We are not able to upload item text but have no problem in uploading remaining data.
the details we are passing to BTEXHKOM structure are......
BTEXHKOM-OLDNR = IHEADER-OLDORD_NO.
BTEXHKOM-LAISO = 'EN'.
BTEXHKOM-TDID = 'Z009'.
and the for structure BTEXLKOM
BTEXLKOM-OLDNR = IHEADER-OLDORD_NO.
BTEXLKOM-TXPARGRAPH = '/'.
CONCATENATE LITEM-DEPTID LITEM-DEPTNAME
INTO BTEXLKOM-TXLINE SEPARATED BY ' '.
we have three input source structures.
IHEADER Header structure
LITEM Line item structure ( Material data )
IPARTN Partners structure
The structure relationships are
BTEXHKOM <<< IHEADER.
BTEXLKOM <<< IHEADER.
Please let me know if I am doing some thing wrong or some thing else need to be done.
Thanks,
Chindam.you can pass below values also
OLDNR : order number and item nuber
TXPARGRAPH : VBBK
TXLINE : your text.....
Maybe you are looking for
-
Our office uses Sage (Accpac) Pro 100 ERP 7.4, and we use Foxpro to generate reports (income statements and otherwise) from Sage. We're looking to do away with Foxpro for report customization and printing because of major technical problems, and Crys
-
Many times a day I need to access "Batch" and "Image Processor" in Bridge. There is no shortcut, so I have to go the Tools-Photoshop-Batch and Tools-Photoshop-Image Processor menu - the items I need are locked into a second level menu. Which is impra
-
I want to disengage the spell or word suggester whenever the curser hangs over a word
When the curser is moved around the page and stops close to a word, a box appears with a multilanguage list of suggestions for that word. I want to disengage this facility == This happened == Every time Firefox opened == many moons ago
-
Can't see my apps listed in itunes, before upgrading it works ok
Can't see my apps listed in itunes, before upgrading it works ok
-
Massive issues with Windows 8.1 "Update"
Hey There, My name is Nidequin, Speaker of the Truth, This is my first forum post, and its an important one, Firstly, let me tell you that i am a Semi-Professional gamer and a lot of my time is spent on competitive gaming or Youtube Video making thus