MM02: Updating characterstics in PO text and Material description
Hello Experts,
I have a requirement wherein, I have to update the characterstics of a material
to the Po text and Material description as soon as they are changed in MM02.
At present there is a custom program doing the same,but I need to automate it,
directly from MM02.
Please help me with your views.
Thanks,
Sumit Mittal.
Try using the customer exit EXIT_SAPLMGMU_001 for this purpose.
Good Luck!
-D
Similar Messages
-
Display 'item text' and 'material PO text' in a purchase order ?
hello,
i am creating a purchase order and i have inputted the 'item text' and 'material PO text' in the ITEM TEXT of the ITEM DETAILS section. I have a smart forms where i am displaying the purchase order by displaying fields from various tables like ekko,ekpo,t024,eket etc ..
I want ti display the 'item text' and the 'material PO text' on the smartform but i cant find the table or the fields which keep these values(text) ??
help me on this one ? thanks for yur time...c the example below:
PERFORM read_text USING g_transp 'Z010'.
FORM read_text USING l_text l_id.
DATA : lt_text TYPE TABLE OF tline WITH HEADER LINE.
DATA : l_name LIKE thead-tdname.
CLEAR l_name.
l_name = g_delivery.
CLEAR lt_text.
REFRESH lt_text.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = l_id
language = sy-langu
name = l_name
object = 'VBBK'
TABLES
lines = lt_text
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.
CLEAR l_text.
LOOP AT lt_text.
CONCATENATE l_text lt_text-tdline INTO l_text.
ENDLOOP.
ENDFORM. "read_text -
Service Text and Material PO text
Hi All,
We are facing problems with SAP Texts in ECC 6.0
We have maintained some texts in Service long text and material PO text in respective masters. While creating PO we can change the Material Po Text. But when we try to edit the service long text in PO, system says it is password protected. The same is the case for material PO text while creating PR.
Can some one highlight what is the password for changing the text or how the same can be changed.
Regards,
Prashant TawdeHi,
tyr this
SPRO>MM>Purchasing>PO>Define Screen Layout at Document Level
but it will be applicable for service Po also
check following link also
[http://help.sap.com/saphelp_nw04s/helpdata/en/67/232037ebf1cc09e10000009b38f889/content.htm]
Regards
Kailas Ugale -
How to Update the Basic Data text in Material Master.
Hi Abapers,
I have more than 5000 materials for update basic Data text inside Material Master.
how to update basic data text using abap programe? is there any bapi or normal program?.
anybody give me sample of this.
Thanks
S.Muthu.
IT Dept.Hi
You can do by using the FM SAVE_TEXT.
Just populate text into table i_tline.
Local data declaration
DATA: l_wa_thead TYPE thead, " Header
l_wa_tline TYPE tline. " Work area for tline
Populate header
l_wa_thead-tdobject = c_obj_material.
l_wa_thead-tdname = wa_data-matnr.
l_wa_thead-tdid = c_id_best.
l_wa_thead-tdspras = sy-langu.
l_wa_thead-tdluser = sy-uname.
l_wa_thead-tdfdate = sy-datum.
l_wa_thead-tdtxtlines = '1'.
IF i_tline[] IS NOT INITIAL.
l_wa_tline-tdformat = c_slash.
APPEND l_wa_tline TO i_tline.
ENDIF.
Text shd start from next line
l_wa_tline-tdformat = c_slash.
CONCATENATE c_text wa_data-text
INTO l_wa_tline-tdline SEPARATED BY space.
Append the new text to the int table
APPEND l_wa_tline TO i_tline and l_wa_thead
C* Local data declaration
DATA: l_wa_thead TYPE thead, " Header
l_wa_tline TYPE tline. " Work area for tline
Populate header
l_wa_thead-tdobject = c_obj_material.
l_wa_thead-tdname = wa_data-matnr.
l_wa_thead-tdid = c_id_best.
l_wa_thead-tdspras = sy-langu.
l_wa_thead-tdluser = sy-uname.
l_wa_thead-tdfdate = sy-datum.
l_wa_thead-tdtxtlines = '1'.
IF i_tline[] IS NOT INITIAL.
l_wa_tline-tdformat = c_slash.
APPEND l_wa_tline TO i_tline.
ENDIF.
Text shd start from next line
l_wa_tline-tdformat = c_slash.
CONCATENATE c_text wa_data-text
INTO l_wa_tline-tdline SEPARATED BY space.
Append the new text to the int table
APPEND l_wa_tline TO i_tline.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
client = sy-mandt
header = l_wa_thead
savemode_direct = c_check
TABLES
lines = i_tline
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5.
IF sy-subrc = 0.
COMMIT WORK.
endif. -
Info Record Text and Material Text not displayed in Subcon. PO printout
Hi,
I have this scenario, where the Info record text from Info Record PO text does not appear in Print out but appears in Print preview.
Also the Info record text for standard Purchase order is displayed in Print preview and Print output.
The config settings for texts for Purchase order is the same for Purchase order with no Item Category (Standard) and Subcontracting (item category L).
Also the texts in Purchase order automatically copies in Standard purchase order (adopt button not present) but not in Subcontract purchase order (Adopt text is present).
I have checked the config for copying rule, for Info record text is automatically adopt.
I am unable to identify the missing config for this.
Also the same problem exists for Material text from Material Master PO text is not displayed in Fax output but appears in Print output.
Please let me have your inptus,
Regards, MuthuvelThe solution to this is SPRO->SAP Reference IMG->Materials Management->Purchasing->Messages
->Text for Messages->Define Text for Purchase Order.
Select Texts for Document Item folder - There will be a list by Document Type and Item Category. Make sure there are entries for your combination, otherwise they will not be part of the output message. -
PO line item text and material po text
Hi,
I want to fetch the text maintained at item po level and print the same with form..
I am passing following parameters in my Include text in smartforms..
Text name &VAR6& ..... concatenated po number and item
( 4700000011 + 00010) = 470000001100010
Text object EKKO
Text ID F01
Language EN
but its failing to fetch the same....I guess the problem is with var6 value...not sure
also for material po text i m passing
Text name &G_ZEKPO-MATNR& ..
Text object MATERIAL
Text ID BEST
Language EN
This is also failing.....
In both cases text is maintained... what is the problem??
Pls help..See this sample code
ABAP READ_TEXT functions to read the SAP Long Text
You have to used the READ_TEXT functions to read the SAP long text. e.g. Sales Order, Purchase Order Item text etc.
To check your long text header, go into the long text. Click Goto -> Header
Example of READ_TEXT functions reading tables PBIM - Independent requirements for material.
REPORT ZTEXT .
TABLES: PBIM.
stxh, stxl, stxb - trans tables for text
ttxit - text on text-ids
ttxot - Short texts on text objects
Transaction MD63
SELECT-OPTIONS: S_MATNR FOR PBIM-MATNR,
S_WERKS FOR PBIM-WERKS.
DATA: BEGIN OF HTEXT.
INCLUDE STRUCTURE THEAD.
DATA: END OF HTEXT.
DATA: BEGIN OF LTEXT OCCURS 50.
INCLUDE STRUCTURE TLINE.
DATA: END OF LTEXT.
DATA: BEGIN OF DTEXT OCCURS 50.
DATA: MATNR LIKE PBIM-MATNR.
INCLUDE STRUCTURE TLINE.
DATA: END OF DTEXT.
DATA: TNAME LIKE THEAD-TDNAME.
SELECT * FROM PBIM WHERE WERKS IN S_WERKS.
MOVE PBIM-BDZEI TO TNAME.
CALL FUNCTION <b>'READ_TEXT'</b>
EXPORTING
CLIENT = SY-MANDT
ID = 'PB'
LANGUAGE = 'E'
NAME = TNAME
OBJECT = 'PBPT'
ARCHIVE_HANDLE = 0
IMPORTING
HEADER = HTEXT
TABLES
LINES = LTEXT
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
LOOP AT LTEXT.
IF LTEXT-TDLINE NE ''.
MOVE LTEXT-TDLINE TO DTEXT-TDLINE.
MOVE PBIM-MATNR TO DTEXT-MATNR.
APPEND DTEXT.
ENDIF.
ENDLOOP.
ENDSELECT.
LOOP AT DTEXT.
WRITE:/ DTEXT-MATNR, DTEXT-TDLINE.
ENDLOOP.
http://www.sapdevelopment.co.uk/sapscript/sapscript_texts.htm
Also
*Internal table to store standard texts
DATA: IT_TEXTS like T_LINE occurs o with header line.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = "Text ID
language = "Laguage
name = "Text name
object = "text object
ARCHIVE_HANDLE = 0
IMPORTING
HEADER =
tables
lines = IT_TEXTS "Internal table
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. -
Purchase order item text and material valuation class
Dear Experts,
A purchase order item text needs to be maintained for a particular material valuation class when the PO is created, is there anyway that this can be customized?Hi,
Maintained Text in Material master record
patah:Goto material mater change view,select plant view, then go to puchase order text there u
can maitain material text. same text is automatically comes while creating Purchase order.
regards,
Ali -
Container element in task item text and task description inconsistent
We use the purchase order release workflow 20000075: Workflow for release of purchase order
The container element Release indicator (&_WI_Object_Id.ReleaseIndicator&) is used in the PO release effected task TS20000168 in work item text (title) and task desription (body text).
When we release the PO a workflow notification is send to the PO creator, the title text shown Release indicator = Z (released) and task body text shown release indicator = Z (same).
However, we do a cancel (undo) to the release of the PO, now when we view the same workflow nofication again the task work item text (title) shown Release indicator = Z (released) and task body text shown release indicator = X (blocked) -latest status.
In this scenario the title text does not updated with the latest release indicator value, the task body text does. Task work item title text and task body text is inconsistent for the release indicator. When we view the workflow notification at this point is confused with the release indicator Z and X (approved in task tile and Blocked in task body text).
Please help how to resolve this issue, any way to make the body text release indicator does not change once the notification is generated??This is very weird!!!!! I will suggest you to check the binding such that the PO Object is binded from Workflow to Task and viceversa.
Thanks
Arghadip -
Hi,
It is possible to have the Material Description (MAKTX-MAKT) in the KE24 tr., instead of the Product Hierarchy (MARA-PRDHA)?
I have the Product (number) that it is the Material (number), but I can´t see the material description (or product description, in KE24)
Regards
FranciscoHi
Never tried in KE24... you can change the layout and see if Description field is available
however, in KE30 - you can choose menu Settings > Char Display and choose Key & Description
This will display both mat code and its name
br, Ajay M -
How to add basic data text into material master?
Hi anybody,
I want update only basic data text into material master. how to update basic data text ?
is it any bapi or functional module is there in abap?
anybody please tell me.
tks
s.muthuHi Subramanyan,
Check this function module:
CREATE_TEXT
Check out this sample program:
REPORT ZMM_INSERT_LONGTEXT.*Internal table to hold long text...
DATA:
BEGIN OF T_UPLOAD OCCURS 0,
MATNR LIKE MARA-MATNR, " Material number
ID(2) TYPE C, " Identification
LTEXT LIKE TLINE-TDLINE, " Long text
END OF T_UPLOAD,*Internal table to hold long text....
T_LINE LIKE TLINE OCCURS 0 WITH HEADER LINE.DATA:
W_GRUN LIKE THEAD-TDID , " To hold id
W_OBJECT LIKE THEAD-TDOBJECT VALUE 'MATERIAL',
" To hold object id
LV_VALUE(70). " Value to hold material number
START-OF-SELECTION.* This perform is used to upload the file
PERFORM UPLOAD_FILE.* This perform is used to place the text in MM02 transaction
PERFORM PLACE_LONGTEXT.
*& Form create_text
This routine used to create text in MM02 transaction
Passed the parameter w_grun to P_C_GRUN
and lv_value to P_LV_VALUE
FORM CREATE_TEXT USING P_C_GRUN
P_LV_VALUE. DATA:
L_ID LIKE THEAD-TDID,
L_NAME(70). MOVE : P_C_GRUN TO L_ID,
P_LV_VALUE TO L_NAME. CALL FUNCTION 'CREATE_TEXT'
EXPORTING
FID = L_ID
FLANGUAGE = SY-LANGU
FNAME = L_NAME
FOBJECT = W_OBJECT
SAVE_DIRECT = 'X'
FFORMAT = '*'
TABLES
FLINES = T_LINE
EXCEPTIONS
NO_INIT = 1
NO_SAVE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
CLEAR LV_VALUE.
ELSE.
DELETE T_LINE INDEX 1.
ENDIF.ENDFORM. " create_text&----
*& Form upload_file
This routine is used to upload file
No interface parameters are passed
FORM UPLOAD_FILE . CALL FUNCTION 'UPLOAD'
EXPORTING
CODEPAGE = ' '
FILENAME = ' '
FILETYPE = 'DAT'
ITEM = ' '
FILEMASK_MASK = ' '
FILEMASK_TEXT = ' '
FILETYPE_NO_CHANGE = ' '
FILEMASK_ALL = ' '
FILETYPE_NO_SHOW = ' '
LINE_EXIT = ' '
USER_FORM = ' '
USER_PROG = ' '
SILENT = 'S'
IMPORTING
FILESIZE =
CANCEL =
ACT_FILENAME =
ACT_FILETYPE =
TABLES
DATA_TAB = T_UPLOAD
EXCEPTIONS
CONVERSION_ERROR = 1
INVALID_TABLE_WIDTH = 2
INVALID_TYPE = 3
NO_BATCH = 4
UNKNOWN_ERROR = 5
GUI_REFUSE_FILETRANSFER = 6
OTHERS = 7
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. SORT T_UPLOAD BY MATNR ID.
ENDFORM. " upload_file
*& Form place_longtext
This routine places the text in MM02 transaction
No interface parameters are passed
FORM PLACE_LONGTEXT . LOOP AT T_UPLOAD. T_LINE-TDFORMAT = 'ST'.
T_LINE-TDLINE = T_UPLOAD-LTEXT.
APPEND T_LINE. IF T_UPLOAD-ID EQ 'BT'.
MOVE T_UPLOAD-MATNR TO LV_VALUE.
MOVE 'GRUN' TO W_GRUN. "Test ID for Basic data text
PERFORM CREATE_TEXT USING W_GRUN LV_VALUE.
ENDIF. IF T_UPLOAD-ID EQ 'IT'.
CLEAR W_GRUN.
MOVE T_UPLOAD-MATNR TO LV_VALUE.
MOVE 'PRUE' TO W_GRUN. "Test ID for Inspection text
PERFORM CREATE_TEXT USING W_GRUN LV_VALUE.
ENDIF. IF T_UPLOAD-ID EQ 'IC'.
CLEAR W_GRUN.
MOVE : T_UPLOAD-MATNR TO LV_VALUE,
'IVER' TO W_GRUN.
"Test ID for Internal comment
PERFORM CREATE_TEXT USING W_GRUN LV_VALUE.
ENDIF.
ENDLOOP.ENDFORM. " place_longtext
Hope this helps you.
Regards,
Chandra Sekhar -
A report for MM where basic list will contain the material no and material
how to develop a report for MM where basic list will contain the material no and material description for the range of material no chosen by user. ...plz help me...how to do this step by step..
Hi Raja,
Firstly declare a select-option for material number.
write a select query specifying the required field and specify a where clause
as
WHERE MATNR IN S_MATNR.
Obviously you will select the records into internal table and so loop that internal table and display the records...
The records will be displayed on the basic list.
Hope this will solve your problem.
Regards,
Narin Nandivada -
Material Description in Chineese language
Dear All,
I am trying to upload language key ZH - Chineese and material description in chineese language by bdc and Lsmw from text file. But after uploading, text is showing in some other format which is not chineese. Please give me some suggestion to overcome this problem.
Regards,
Mohit.Hallo.
Do I need to logon in ZH language to do this?
My system is Unicode, so I would like to connect in english (or italian) language, and after enter material description in chineese language without logon in chinese language.
After I will nedd to enter in arabic language, so I suppose that it is equal.
Thanks.
Mario -
Length of Material Description
MM Experts,
is there a way to increase the size of Material Description (now its 40 characters) in material master ?
Cheers
DeepalIf you change any standard feature in SAP ex: Material Code Length, Material description Length etc...
SAP AG will not support at Free of Cost, either they will refuse to support or Charge very high..
So it is better to adjust with the Standard settings/features..
in your case Define a New Item text as Material Description and use the same in the Purchasing output documents.. -
How to stop material description changed after changing customer on SO
I have updated material description on a SO. However after changing the Sold-to, the material description refreshed back to original.
Anyone knows how to stop system to change material description back to default?Hi
In standard SAP when we change sold to party in sale order system redetermine prices and taxes but this is new thing for me that system also redetermines material description. Amitesh Anand I have also chcked this in my system and material description is getting changed after changing the customer.
Field is VBAP-ARKTX and you can ask your ABAPER to write the code in userexit MV45AFZZ and
USEREXIT_PRICING_PREPARE_TKOMP. I have checked this system is calling this exit. Give it a try and update the status.
Thank$ -
BDC - MM02 _long text for material PO upload
Hi experts,
I want to upload Long text for material PO in MM02 (Purchase order text view)
throuh BDC upload. I have successfully done recording for this transaction. But in the recording it show no table field for that particular long text.
Pls help me to do this issue.
Thanks.Hi
See the sample program for this and modify as per your requirement.
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
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-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.
<b>Reward points for useful Answers</b>
Regards
Anji
Maybe you are looking for
-
IPod nano Shuts Down my Windows 7 in the middle of syncing
What the heck... I received this iPod Nano as a gift, moved all of my items into iTunes, only to have it repeatedly shut down my PC mid-sync. I've seen this issue in threads dating back to 2010, but I haven't been able to find any posting that actua
-
Free Goods in Mobile CRM 5.0
Dear Friends, I have installed Mobile Client 5.0 SP5 on my desktop machine. I have also downloaded all customizing for Free goods condition and condition records,but still i am not able to simulate free goods on mobile client. Please suggest me a sol
-
Videos stop playing, restarting browser fixes
I believe my Macbook AIr with Lion pre-installed, has had this problem from Day 1 ... After I've had my browser open for awhile, say a day or two, video playback stops working. Mainly youtube, or something embedded in facebook. I can follow the li
-
Video not fitting into preview window
Hello, I have been running into a problem that I have not had untill I restored my computer a few months back. To start off I know my video files are in 720p and I have the sequence setting set accordingly. When I place the video files into the "Sour
-
HI, I am trying to upgrade from Lion to OSX Maverick but when i click OK I receive a message saying that The product distribution file could not be verified. It may be damaged or was not signed. I would love to install the new OSX. PLease help!!! tha