Material text read
Could you please let me know how to use READ_TEXT func module for material text . We have long text in Material Basic data section , i want to read this text . I am not abaper ...could you please let me know which parameter should be passed at the time of execution of this function module .
Like
CLIENT
ID
LANGUAGE
NAME
OBJECT
ARCHIVE_HAND
LOCAL_CAT
Regards
HI
You can use tables STXT and STXL to get the parameters.
You need to give
ID = TDID
LANGUAGE = TDSPRAS
NAME = TDNAME
OBJECT = TDOBJECT
Hope it helps...
Chandu
Similar Messages
-
Hi ,
I want to write the material text, which is also carried to the Purchase Order as PO Text to a new z report.
This text is not storted in a table. From where can i get the data to print on a z report.
Thanks,Hi,
I tried to create an internal table as you said. But somehow its also not working, its giving dump.
I am writing the process i did, pls suggest where i went wrong.
I created an Internaltable to get the matnr.
in the function module 'read_text' i am entering
DATA: t_tline TYPE tline occurs 0 with header line.
IF SY-SUBRC = 0.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = 'BEST'
LANGUAGE = 'EN'
NAME = ITAB-MATNR
OBJECT = 'MATERIAL'
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
TABLES
LINES = t_tline
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8
thanks, -
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. -
Creating Material text in va02 item lines using Bapi
Dear all,
I want to add Material Sales Text in Text Tab of Tab Control on VA02 line items.
ie when I open a sales order in va02. And I click on the line item in the sales order, I want to add on Material text in , Text Tab.
I am using BAPI_SALESORDER_CHANGE AND table ORDER_TEXT for updating the text.
I am not sure if order_text is the right table to update the text.
My code is
REPORT zapo_ranjan_test .
DATA:order_header_inx LIKE bapisdh1x.
DATA:return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
DATA:order_item_in LIKE bapisditm OCCURS 0 WITH HEADER LINE.
DATA:order_item_inx LIKE bapisditmx OCCURS 0 WITH HEADER LINE.
DATA : test1 like BAPISDTEXT occurs 0 with header line.
order_header_inx-updateflag = 'U'.
order_item_in-itm_number = '000003'.
APPEND order_item_in.
order_item_inx-itm_number = '000003'.
order_item_inx-updateflag = 'U'.
append order_item_inx.
test1-doc_number = '2292443'.
test1-itm_number = '000003'.
test1-text_id = '0001'.
test1-text_line = 'Phone Number'.
append test1.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = '0002292443'
ORDER_HEADER_IN =
order_header_inx = order_header_inx
SIMULATION =
BEHAVE_WHEN_ERROR = ' '
INT_NUMBER_ASSIGNMENT = ' '
LOGIC_SWITCH =
TABLES
return = return
order_item_in = order_item_in
order_item_inx = order_item_inx
PARTNERS =
PARTNERCHANGES =
PARTNERADDRESSES =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CFGS_BLOB =
ORDER_CFGS_VK =
ORDER_CFGS_REFINST =
SCHEDULE_LINES =
SCHEDULE_LINESX =
ORDER_TEXT = test1
ORDER_KEYS =
CONDITIONS_IN =
CONDITIONS_INX =
EXTENSIONIN =
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'.
COMMIT WORK.
Write : / 'Done.'.
My bapi returns documnet changed successfully.
Look forwad to get any clue or help .
regards,
Ranjan AHi Ranjan,
For creating text in Va02, you may use "SAVE_TEXT" FM instead of BAPI.
you need to know the text object and text id before using this FM.
Below is a sample code for that:
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = wa_success-vbeln
IMPORTING
output = wa_success-vbeln.
i_header-tdobject = 'VBBK'.
i_header-tdname = wa_success-vbeln.
i_header-tdid = '0001'.
i_header-tdspras = 'E'.
APPEND i_header.
CLEAR v_text.
CONCATENATE 'GEO DN# ' wa_success-donum INTO v_text.
i_tline-tdformat = '*'.
i_tline-tdline = v_text.
APPEND i_tline.
CLEAR v_text.
CONCATENATE 'CUSTOM INV# ' wa_success-ivnum INTO v_text.
i_tline-tdformat = '*'.
i_tline-tdline = v_text.
APPEND i_tline.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
header = i_header
insert = ' '
savemode_direct = 'X'
TABLES
lines = i_tline "I_TAB
EXCEPTIONS
id = 01.
Best Regards,
Pradeep. -
Re: Material Text- Tag colunm
Hi,
this is the issue regarding material master(mm02).
user want to fetch the data related to the TAG column for all the materials.
Ex: There are 1000's of materials only some materials are maintained with TAG column(sales text tab in the material master).
I want to fetch the materials which is having *,/ data,
do we have any solution in the standard,if yes can u give me a valuable answer for this call.
Regards,
siva.Shiva, there is no direct tcode or table for material texts..you've to develop a report which gets the required info using the Function Module: READ_TEXT by passing the reqd parameters.
Regards
Raghu. -
Hi,
I want to know user exit name for sales order when it copies material text to sales order in line item text.
Pop window will get triggered when material text copied from material to sales order item text.
Thanks & Regards,
Shekhar
Edited by: chandra shekhar dubey on Nov 17, 2010 9:20 AMHi,
Try using USEREXIT_AVAILABILITY_IN(RV03VFZZ) or USEREXIT_ADD_FIELD_TO_LINE(FV45VFZZ) exits in SD. Due to various combinations possible (for example if you use route-scheduling it may behave differently than otherwise), it may not be possible to apply a common logic.
I would suggest using USEREXIT_ADD_FIELD_TO_LINE to modify the date fields in the structure MVERF (field EDATU : Delivery date, MBDAT : Material avail. date and so on). At this point, system has already calculated the first set of dates based on customer requested delivery date, so you will need to do adjustments in all fields accordingly.
Eg in this exit:
w_date = sy-datum + 60.
offset = w_date - mverf-mbdat.
mverf-mbdat = mverf-mbdat + offset.
mverf-lddat = mverf-lddat + offset.
mverf-edatu = mverf-edatu + offset.
Please note it will need some adjustments if you have a shipping calendar (eg sundays off..) in which case the offset may be a little different for EDATU.
cheers, -
Have to chane material text collectively
hi all
can you help me, i want to change material text collectively at a timehi
you mean material description? if yes, use transaction MASS, select object type BUS1001, execute.
select material description MAKT, execute. give your material number and change all at once.
you can also use transaction MM17 (perform the second line in the above solution)
Regards,
Sats. -
Hi all,
How can I group same material text(regardless of same material no.) into one row instead of 3 rows?
Thanks.
[http://www.markpeak.com/temp/0material.jpg]Hi Alex,
One more question. I added the text 0txtmd as attribute to the infoobject, but how can I fill it with ABAP ?
It is not allowed to set as navigational as well.
Alternatively, I created ztxtmd but I cannot see in text transfer rule.
[http://www.markpeak.com/temp/0material2.jpg]
Can you give me some hints, thanks. -
How to show the same result as I input (PO Material Text)
I have a question that
I need to show PO Material Text in the form.
i use this function as usual....
CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = 'BEST'
LANGUAGE = 'E'
NAME = T_NAME
OBJECT = 'MATERIAL'
TABLES
LINES = T_TLINE
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.
LOOP AT T_TLINE.
MOVE T_TLINE-TDLINE TO THE_DOC.
CONCATENATE THE_DOC1 THE_DOC INTO THE_DOC1.
ENDLOOP.
ENDIF.
MY_MTEXT = THE_DOC1.
the result maybe concatenate all lines into 1 line
but now, i'd like to show the same line as I input now,
for example:
i input the PO Material Text :
123
456
789
if i use that function, it should become :
123 456 789
but i'd like the result is the same as i input like this.
123
456
789
so, should I need to use "INCLUDE......" in ABAP Script Form?
Pls advise.
Thx
how to do that?Thx for your advice,
But I've already use perform...function ...to return the my_mtext. ( but it the single line that i concatenate all the line content..)
FORM GET_MATERIAL_PO_TEXT_FOR_MOULD USING MY_MATNR
MY_EBELP
CHANGING MY_MTEXT.
but my problem is that...the line of PO text varies....how can I know how many variables need to pass the value to program.
if the value contains 3 lines.. i want to pass this 3 lines and show in the form.
i'm confuse...how to do that ..? -
Delivery Text reading , help plz
Dear all
i am supposed to read the Material text from delivery doc so i m using the following code but not piccking the same at all .
Data: DESC3(1320).
TIDNO = '0001'.
CONCATENATE DELNO
T_LITEM-POSNR
INTO TNAME.
TOBJT = 'VBBP'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
DESC1 = mslines-tdline(132).
CONCATENATE DESC3 DESC1
INTO DESC3 SEPARATED BY SPACE.
IF SY-TABIX GE 10.
EXIT.
ENDIF.
ENDLOOP.
*& Form FINDTEXT
text
FORM FINDTEXT.
REFRESH mslines.
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = tidno
language = sy-langu
name = tname
object = tobjt
TABLES
lines = mslines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
DELETE mslines WHERE tdline IS INITIAL.
ENDFORM. "FINDTEXT
Helllllllppppppp plz.
Thnx
Moni
Message was edited by: md monirujjamanHi Moni,
First thing to do is to check the key you are using to try and access the text. Look up the header of the text you are after using SE16 on table STXH. If you have some trouble finding it you can make a change to the delivery text (using the standard delivery change transaction) and select all records where TDLUSER = [Your SAP logon].
This should help you locate the exact key you are looking for. Remember also that leading zeros should be included in the key where appropriate (check in debug that the key is built correctly).
If the key is correct (including the language!!!) then the READ_TEXT function will for sure retrieve the lines you are looking for. Remember also that if you are peforming this code within a delivery userexit the possibility exists that the text has not even been saved yet (still running in update task). In this case, you will have to access the text from memory directly (this can be a painful process).
Hope that helps.
Cheers,
Brad -
SD PS Integration: How to copy material text in Project Network?
Hi
We are creating project from contract where every material from contract creates a Network/ activity in project. The requirement is to pull material text in Network. Does it require user exit because I was unable to find any thing in configuration? If this is correct then how can I apply user exit here?
Regards
Vthis is not standard SAP and hence exit needs to be looked at or some development or exit on substitution to replace the text from material
Edited by: Virendra Pal on Dec 21, 2008 10:53 PM -
How to get Vendor name and Material text in FAGLL03 transaction?
Hello All,
I am executing FAGLL03 report which display Vendor No and material No in item level but I want Vendor name and Material text to be display for every vendor no. and material no.
Please let me know any approach to do this?
Thanks in advance.
Regards
SteveHi Raymod,
Again I am getting the same error after executing all reports and FM.
Internal error in ANALYZE_ACT_FIELDCAT
Message no. MSITEM012
Diagnosis
An internal error has arisen in the form routine ANALYZE_ACT_FIELDCAT for program RFITEM_INC.
This is due to inconsistencies between table T021S (special fields) and structure RFPOSEXT.
System Response
During the processing of special fields in the line item list, errors and even a program termination may occur.
Procedure
Recreate the special fields in Customizing. If the error occurs again, contact SAP.
Can you pls check it out in your system if you can?
It is not working here ..
Thanks and Regards
Steve -
SRM PO vendor text not copied to PO material text in ECC Po
Hi all,
We are on SRM 5.0 Extended Classic.
In ECS,is it std functionality that the PO vendor text from SRM PO is copied to PO material text in the ECC PO?If so,Do we need to do any configuration on the SRM side for this transfer?
Thanks!Hi,
In standard the Vendor text in SRM P.O would not get transfered to P.O Material text in ECC.
I am not sure why do you want to transfer vendor text to material text.
You need to use BADI BBP_ECS_PO_OUT_BADI to transfer this text to the required field in P.O.
Please speak to your ABAPer and get the coding done to achieve your requirement.
Let us know in case of any further clarifications.
Regards,
Teja -
Hi ,
I want to Uplaod Material text in MM02 . Around more than upto 2000 materials.
i m trying to uplaod using call function 'CREATE_TEXT'. But it gives error in mm02 like, no text maintained.
give me proper solution,
thnxs
Regards,
Swapnil VaidyaSwapnil
Check whether you are passing correct Text ID, Text Object and Text Name to the function module..
Thanks
Amol Lohade -
When will Apple have a searchable text reader and upload file capability?
When will Apple have a searchable text reader and upload file capability? I have a large text file I need to upload to my iPhone, search, and dial.
Anything planned?I had a Palm the I used for work and travel it had a very nice application called DOCUMENTS TO GO. It allowed you to upload, view, and edit .doc, .xls, and .ppt files. this was very handy when traveling. Also, I could sync my palm with my iMac and work PC using bluetooth, took care of the file transfers as well. I would like to have the same capability on my iPhone. I bought it to replace all of my old stuff i need it to the same as my old stuff. I hope that Apple reads this and gets on the ball. Until then I still have to carry my Palm or thumb drive on trips.
Maybe you are looking for
-
After I replaced WIN XP with WIN 7 many attachments won't open. Message says Adobe Reader (using Adobe X) can't open "xxxxxxxxx.pps" because it is either not a supported file type or because the file has been damaged (for example, it was sent as a
-
Is there a way of producing a canonical form of an XML message from Java? Also, does anyone know of a good tutorial about canonical form. I have tried reading the W3C paper on it and found it completely illegible. Thanks in advance, Adrian
-
How to config JDBC adapter for internal database
Hi all, I have configured a scenario that sends data from PROXY to JDBC adapter, JDBC adapter connects to the internal database. The Proxy adapter is OK, but the Receiver JDBC adapter I really don't have any idea about it. Please let me know. The ver
-
Answer for a strange Interview Question
Hi Guys. I gave an Interview and was asked a strange question. the Question is which two object in IR cannot be transported via CTS + . As far As I know everything can be transported using CTS+ even the JAR files . If any one know can you please let
-
Approved hours in CATS works as Good Received in MM
Employees from subcontractors are working at projects defined in PS. They are using CATS to write the project hours on projectactivities. When these hours are approved by the manager the hours are loaded into PS. Is it possible to load the same appro