Upload PurchaseOrdertext in material master upto 132 characters
Hi all ,
I have written BDC for upload purchaseordertext as earlier have uploaded more than 132 to 250 characters in material master . but now it wont allow upto 132 characters .
Give Solution AEAP .
Thank u
Swapnil
first you need to find the string lingth and split the up to 40 chars and append the td_lines
lv_n = strlen( wa_lines-tdline ).
clear lv_n2.
if lv_n le 40.
lv_n2 = 1.
elseif lv_n2 le 80.
lv_n2 = 2.
elseif lv_n2 le 160.
lv_n2 = 5.
elseif lv_n2 le 200.
lv_n2 = 4.
elseif lv_n2 le 240.
lv_n2 = 5.
endif.
lv_char = wa_lines-tdline.
clear lv_n1.
do lv_n2 times.
clear wa_lines-tdline.
lv_n1 = lv_n1 + 1.
if lv_n1 = 1.
wa_lines-tdline = lv_char+0(40).
append wa_lines to gt_lines.
elseif lv_n1 = 2.
wa_lines-tdline = lv_char+40(40).
append wa_lines to gt_lines.
elseif lv_n1 = 3.
wa_lines-tdline = lv_char+80(40).
append wa_lines to gt_lines.
elseif lv_n1 = 4.
wa_lines-tdline = lv_char+120(40).
append wa_lines to gt_lines.
elseif lv_n1 = 5.
wa_lines-tdline = lv_char+160(40).
append wa_lines to gt_lines.
elseif lv_n1 = 6.
wa_lines-tdline = lv_char+200(40).
append wa_lines to gt_lines.
elseif lv_n1 = 7.
wa_lines-tdline = lv_char+240(10).
append wa_lines to gt_lines.
endif.
enddo.
at end of matnr.
Function module to create the texts
call function 'CREATE_TEXT'
exporting
fid = gv_textid
flanguage = gv_spras
fname = gv_tdname
fobject = gv_object
save_direct = gc_x
tables
flines = gt_lines
exceptions
no_init = 1
no_save = 2
others = 3.
Similar Messages
-
hi all,
in the material master , plant spec view i need to upload the shelf life fields
fields are : min. rem shelf life , tot shelf life , period of sled
how to upload this fields along in the materials mater for the existing materials1. In the initial screen, select the tables for which you want to populate values.
2. Click on the fields tab, here select only those fields for which you want to input values.
3. Execute
4. You will find input selection screen, where you can enter the material nos. (you can add more selection criteria, by clicking on the fourth icon you find at the bottom)
5. Specify your input values & execute
6. Then you will find the material nos. & the fields selected, here you can populate the values as required & save.
Hope the above helps.
Regards,
Vivek -
To upload values into material master table
Hi,
Can anyone tell me how to upload the changed values in a screen to material master table?Hi,
Actually my requirement is,there is an update screen.There are many fields in the update screen.When the user changes the value of a partiacular field and click on the checkbox beside it of which he wants to get uploaded into material master table,and click on the execute button,the values should get uploaded into material master table.
Can we upload all the field values at a time into material master table?How can we do that? -
Adding a picture to material master data ....
Hi Gurus, I have SAP ECC 6.0, I want add a picture for each material in my system. I am not using SAP Retail, just MM.
How can I do for upload pics to material master data? .....
Regards!
Jose.Hi Jose,
Go to MM02 Material Master Change Mode and in Menu bar Select System - Services for Object.
This option will allow you to Create an attachment to Material master.
Revert back in case doubts.
Reg,
Ashok
Assign points if useful. -
How to Restrict POS Short Description of an Article in Material master.
How to Restrict POS Short Description of an Article in Material master to 30 Characters while creating. Is there any user exit available to do so?
Edited by: Muneer VK on May 2, 2011 11:47 AMHi,
Fetch the records from DD03L. Pass the table name and retrieve names of all the fields. Use table DD03T to get Text for fields.
Regards,
Vara -
Material Master upload Programe
Hi anybody,
I developed Material master upload programe in ABAP. Material is uploaded. but more than 18 characters materials is upload upto 18 characters last character is "!".
Ex: SET SCREW M12X50MM L - I want upload this material.
But SAP takes automatically like SET SCREW M12X50M! 18 th character is "!" symbol.
how do i resolve this problem. I want upload more than 18 characters.
anybody please tell me this issue.
Tks,
S.Muthu.what are you talking about material code or material discription
rgds
Rajesh -
Error While Uploading Material Master Through Bdc Call Transaction
Hi Sap Gurus,
I am doing Bdc call Transaction for Material Master Uploading.
But After Entering data for 4-5 screen i got a error_
Field Mara-iprkz doesn,t exit in the screen saplmgmm 4000
Field Mara-prctr doesn,t exit in the screen saplmgmm 4000
Field Mbew-stprs doesn,t exit in the screen saplmgmm 4000
Field Marc-mtvfe doesn,t exit in the screen saplmgmm 4000
Enter Valuation class.
This is my Programme....................................
<removed by moderator>
Thanks in advance.
Arindam
Moderator message: please post only relevant code parts, your post must be less than 5000 characters to preserve formatting.
Edited by: Thomas Zloch on Apr 16, 2011 9:29 PMSorry for my obvious answer, but you should ask a more precise question.
Your errors are that you try to enter fields but they don't exist, so it sounds logic.
And the error "Enter Valuation class." means that the field is mandatory. So you must enter it.
Re-record the transaction using SHDB (eventually play with the http://wiki.sdn.sap.com/wiki/display/ABAP/Recordduringplay), run it in A display mode, and correct your program.
Sandra
perform bdc_dynpro using 'SAPLMGMM' '4000'.
perform bdc_field using 'MVKE-SKTOF'
'X'.
perform bdc_dynpro using 'SAPLMGMM' '4000'.
perform bdc_field using 'MARC-PRCTR'
wa_mara-prctr."'MUMBAI'.
perform bdc_dynpro using 'SAPLMGMM' '4000'.
perform bdc_field using 'MARA-IPRKZ'
'D'. -
Upload Material master with long text using LSMW
Hello,
i want ot upload material master data via MM01 using LSMW in following views: basic data 1 ,2, purchasing, purchase order text, plant data 1,2.
i have to upload long text in purchase order text with length more then 132 char. (approx 700 char long text). and i have text file in which long text is maintained in a single row. then how can i do it without formating text file or anyother possible solution.
please help.ca u clarify how can i do it.
suppos i have longtext "Air cooled type air-conditioning unit complete with following components & distance between indoor & outdoor unit is 10 RMT. A).Indoor evaporating unit comprising of cooling coils,insulated drain tray,20 micron HDPE washable filters,blower,motor,electical junction box etc. B).Outdoor condensing unit comprising of hermatic/semiharmetic compressor's.condenser coils,propeller/axial fans,motors,pressure switches/cutout etc.C).Charging of refrigerant gas & oil.D).Inter connecting refrigerating piping of copper duly insulated with EXPANDED POLYETHYLENE tubing.E).Complete electical power wiring of AL.&Control wirng of copper required from indoor & outdoor units.Earthing of the complete system with 8 G G.I.wire. F).Electrical panel will be completed with necessary starter,fuses,switches,timers,over-load relays,contactors,push button and indicating lamps,single phasing preventer etc..and also with remote control with cording. G).The panel should have 1 no.potential free contactor to connect with central fire detection system.The panel should have voltage scanner to ensure stabilized power input to the machine.H).Outdoor unit shall be mounted on MS angle base frame structure duly black painted with synthetic epoxy paint.I).The frame structure shall be mounted on MS plate & serrated rubber pads."
then what i have to do changes in lsmw.? -
Help reqd on Material Master uploading in LSMW by view steps....
Hi all....
Pls understand my requirement and post ur replies...i dont need the basic LSMW learning steps for MM,Vendor etc.,like that...
My problem is...im want to upload my material master datas by steps like 1st i want to uplaod the basic views 1&2 for all the material types in one shot...
next thing i want to load the other views like purchasing sales mrp plant qm accounting etc., in single shot......like screen to be extended formats....im mm01 or by mm02...
when i did....no problem i've faced upto MRP loading...but the next view like plan,QM,accounting is not coming when recording in RUN batch input session..it says..."the material has been already extended and no input was given for this screen"....
Hope u understand,my problem....
if u have answers...pls post me on urgent basis.....
thanks...
sankarCreate purchase requisition by LSMW
-
LSMW - RMDATIND Upload material master
Hi All,
I'm using LSMW direct input method (RMDATIND) to upload material master. However, I'm having issues on uploading material prices (eg: moving average price) where the format uploaded was incorrect.
LSWM Data Source I've declared for VERPR (Moving Average Price) is character with 14 Length size. Values populated in upload file is eg: 132.93.
The value been created in material master is-> 13 293,00.
Can anyone advise on this issues? Is there any wrong to input value or data source declaration? Thanks.Hi Blue Sky,
execute the whole process of LSMW in direct input and go to SM35 to check and process the session manually,,
-Regards
Sid -
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 -
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 -
Exchange rate error in Material Master Upload (MB1C - 561)
Hi.
While uploading material through MB1C with movement type 561, I am getting following error
My company code currency, material master currency is EUR but still following error is occuring.
"Enter rate EUR / rate type M for 01.10.2010 in the system settings
Message no. SG105
Diagnosis
For the conversion of an amount into another currency, an entry is missing in the currency conversion table.
Procedure
Add the missing entry in the currency conversion table.
Execute function
You can then continue to process the commercial transaction."
Why system is asking to maintain exchange rate for same currency?
What are the settings that I should maintain? Thanks in advance.
Regards
AnandHi,
My material master currency is EUR
Both Stock and Upload GL accounts currency is EUR
Co COde currency is EUR
Where else is the revevant Settings?
Further, I uploaded one material on 25/Oct/2010 well. But when I am trying to upload the same material again on or before or after
25/Oct/2010 system is giving exchage rate error
What could be the remedy?
Regards
Anand -
Material Master Upload using Bapi getting error "****** not a valid unit of
Hi Gurus,
i am uploading material master using BAPI Material_master_save_data , where the volume and Unit of Volume is Blank, Still i am getting error as "****** not a valid unit of volume ".kindly help me to resolve the issue.Many Thanks In advance.Jurgen,
I could able to solve the issue for invalid unit Error ....Now i am getting **** unit of measure is not defined , pls check your entry or else i am getting alternate unit of mesure is same as base unit of measure .
I have used below logic for Purchase Order Unit and Base Unit of measure .
if wa_upload-unmsr EQ wa_upload-ord_uom .
bapi_mara1-base_uom = wa_upload-unmsr.
bapi_mara1-po_unit = wa_upload-ord_uom .
elseif wa_upload-unmsr NE wa_upload-ord_uom.
wa_upload-ord_uom = wa_upload-alt_uom.
bapi_mara1-po_unit = wa_upload-ord_uom.
endif.
Many Thanks for your help. -
Uploading TAX Classification data in material master
Hi,
I have to upload tax classification data in material master for countries DE,IT,FR,ES,CH and GB.
I have used BAPI_MATERIAL_SAVEDATA and passing values to table TAXCLASSIFICATIONS.
But bapi is uploading tax classification only for country DE.
When I am creating through MM02 its getting updated.
Can anybody tell me what is the problem ?Hi Ganga,
Yes I am passing different countries to table .
LOOP AT IT_STAX into WA_STAX.
wa_taxclassifications-depcountry = wa_stax-aland.
wa_taxclassifications-tax_type_1 = wa_tstl-tatyp.
wa_taxclassifications-taxclass_1 = wa_stax-taxm1.
wa_taxclassifications-tax_ind = wa_stax-taxim.
APPEND wa_taxclassifications TO it_taxclassifications.
ENDLOOP.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = wa_headdata
TABLES
taxclassifications = it_taxclassifications
returnmessages = it_return[].
Maybe you are looking for
-
ADC to VGA, I think?
I have an old G4 Cube that I no longer use. I bought a monitor that I think is called a studio display (not the flat panel cinema display, but big and heavy like an old TV). It has what I believe is an ADC connection that draws power from the G4 Cube
-
Problem to generate SRM 7.0 configuration guide into solman
Hi gurus, We have a problem to generate SRM 7.0 configuration guide related to business scenario plan driven procurement with supplier collaboration into transaction SOLAR02. We are using Solution Manager 7.0 and when we execute the configuration gui
-
The Softonic toolbar attached itself to Safari after I downloaded this :http://paintbrush.en.softonic.com/mac. Now every time I open Safari it crashes because of ct_plugins and i get this error report Process: Safari [323] Path: /Applications/Safari.
-
Hi experts. My company stores and sells maize seed packaged in different sizes eg Bales (12 x 2 kgs), Bales ( 24x 1 kgs), Bags (5 kgs), Bags (10 kgs) etc Do I have to set different items with the above packages or how can i set the inventory so as to
-
1110 error, need help importing cds
Microsoft Windows XP Home Edition Service Pack 2 (Build 2600) VIA K7VM2 iTunes 6.0.1.3 CD Driver 2.0.4.3 CD Driver DLL 2.0.3.2 UpperFilters: GEARAspiWDM (2.0.4.3), Video Driver: S3 Graphics ProSavageDDR\S3 Compatible Display Adapter IDE\DiskST340014A