Purchase Order Long text
Dear ALL
my request is i want to know all kind of purchase order longtext which are stores in a STXH table.
please anybody can tell me how do i recall all text which my users had added in PO while creating it.
i knw the function 'read_text' but do not know how to use it .
can you also explain the function and how do i use it.
please explain the difrent type of PO long text.
thnq.
Nayan Lad.
Check this code,
give textid,textname,textobject are the input to read_text function
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 'READ_TEXT'
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.
Regards,
Midhun Abraham
Edited by: Midhun Abraham on Oct 3, 2008 9:08 AM
Similar Messages
-
I am trying to upload the purchase order long text in mm01 using BAPI
Hi All,
I am trying to upload Purchase Order Long text (which is in chinese Language) and Language field with ZH(chinese) in MM01 using BAPI_MATERIAL_SAVEDATA.
It is uploading properly, But in the Language field it is showing Z1(Customer reserve) instead of ZH(Chinese).
What could be the reason for this and how it can be resolved.
Thanks in advance,
RajaHi,
Which input parametr did you use? See table T002
LANGU = '1'
LAISO = 'ZH'
Rgds,
JP -
Standard Purchase Order Long Text In ALV Report
Hi Gurus,
I am able to get the charecter space for long text in the ALV report but i could not able to get the text in that space out put.
I have used ekko and ekpo tables.
Please provide me the code are solution to display the Text in that particular space.
Thanks,
SRHi all,
I am able to see the PO text, But when i moved it to production system i find
1) it is taking too much time to execute. 2) I find the first PO text in the purchase document is getting repeated for all other purchase documents in the run where their is no Po text .
Please help me how to restrict the repeated Text.
And also to improve the performance
regards,
dileep -
How to disbale the Purchase order item texts (Material PO text)
Hi,
In ME22n, i want to disable texts for material at item level . i tried thru SPRO , but it disables header and item level texts.
How can i achieve this ?
Thanx,Hi Khushi,
I think you cannot disable them but you can delete them using T.Code OLME(But it is not suggestible).follow the path Purchase Order>Texts for Purchase Orders>Define Text Types for Item Texts. Here you have to delete.
But why you want to disable any text to be written in PO?
Thanks & Regards,
Rock. -
Purchase Order Description Text
Hi All,
I am trying to display a POD text but it is cutting off, can anyone help to write the purchase order description text. Currently it can only display only 130 characters.
gv_repid = sy-repid.
SELECT SINGLE ebeln INTO i_tab-ebeln FROM ekpo WHERE matnr = i_tab-matnr.
line_id = 'BEST'.
line_name = i_tab-matnr.
line_lang = sy-langu.
line_object = 'MATERIAL'.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = line_id
language = line_lang
name = line_name
object = line_object
TABLES
lines = i_tabs
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.
ENDIF.
LOOP AT i_tabs.
CONDENSE i_tabs-tdline.
CONCATENATE i_tab-text i_tabs-tdline INTO i_tab-text SEPARATED BY space.
MODIFY i_tab TRANSPORTING text.
ENDLOOP.
Regards,
FredHi
This is my code:
FORM reading_text.
Begin of i_tab occurs 0,
text(150) type c
end of i_tab.
gv_repid = sy-repid.
SELECT ebeln INTO i_tab-ebeln FROM ekpo WHERE matnr = i_tab-matnr.
EXIT.
ENDSELECT.
line_id = 'BEST'.
line_name = i_tab-matnr.
line_lang = sy-langu.
line_object = 'MATERIAL'.
ALL FUNCTION 'READ_TEXT'
EXPORTING
id = line_id
language = line_lang
name = line_name
object = line_object
TABLES
lines = i_tabs
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.
ENDIF.
LOOP AT i_tabs.
CONDENSE i_tabs-tdline.
CONCATENATE i_tab-text i_tabs-tdline INTO i_tab-text(150) SEPARATED BY space.
MODIFY i_tab TRANSPORTING text.
ENDLOOP.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
header = i_tab-text
TABLES
lines = i_tabs.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
It's giving me a dump:call_function_conflict_leng
There are other fields in an internal table.
Regards,
Fred
Edited by: Fred Mogaadile on Sep 26, 2008 6:17 AM
Edited by: Fred Mogaadile on Sep 26, 2008 6:19 AM -
Issue at Purchase order Item Text Transferring
Hello,
I have an issue with Purchase order Item text transferring from SAP R/3 to EDI.
Here I am using Function Module - IDOC_OUTPUT_ORDERS.
within the function module i have user exit to populate this.
User Exit Name : EXIT_SAPLEINM_002
Include name : ZXM06U02
I need to populate data manually ( Hardcode ) for E1EDPT1 is 'LINK'.
and E1EDPT2 is " some text".
When I write the code at user exit ,it is populating so many time Link Field.
However i need to get only one time for each Item of Purchase order.
and also I have one more question as per SAP Standard Purchase order each item has :
1. Item text
2. Info record PO Text
3. Material PO Text
4. Delivery Text
5. Info Record Note
when Create PO and it created Idoc ,even when i fill all the text ,when i see data at WE02 ,it has only few text not all.
Please give me advice ,how should i follow.
Thanks
Seshu
Issue at Purchase order Item Text TransferringHi,
Do this check before adding the text..
IF INT_EDIDD-SEGNAM = 'E1EDPT1'.
add the text..
ENDIF.
Thanks,
Naren -
How can i get order long text?
Hi Experts
We are developing one order report and trying to get order long text, but we search several tables and we didn't fine which table is the right table to save long text, anyone can tell me how to achieve long text for order. Thanks in advance.
Best regards
georgeHi George,
STXL: Long Text (Header - English)
Extract all records where XTDOBJECT='AUFK' and XTDID='KOPF' and XTDSPRAS in ('E')
XTDNAME is MANDT+AUFNR
STXL: Long Text (Operations- English)
Extract all records where XTDOBJECT='AUFK' and XTDID='AVOT' and XTDSPRAS in ('E')
XTDNAME is MANDTAUFPLAPLZL
STXL: Long Text (Components- English)
Extract all records where XTDOBJECT='AUFK' and XTDID='MATK' and XTDSPRAS in ('E')
XTDNAME is MANDTRSNUMRSPOS
This may help you
Babu -
Purchase orders item texts incorrect display
Hi everyone,
i am having a bit of a hard time solving an incorrect display of purchase orders item texts.
For an unknown reason, i can't manage to modify the item's text of a purchase order, it's as it has been set on "display".
I checked AKTH, ME21,ME21N and PT0F( the item i use) on spro :
Materials Management=>Purchasing =>Purchase Order= > Define Screen Layout at Document Level => Reference data item for the texts and it's always set on Optionnal Entry.
I even tried to set them on Requested Entry but i didn't manage to get the text-item field modified.
Any kind of help would be appreciated.
Thanks.
SiidouYes i did, thanks.
I found the answer: when the item-text is set on Requested Entry, sap considers it as if it was set on dispalay.
I set the item text in AKTH, ME21,ME21N and PT0F on OPptional entry and i can modify it again. -
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 -
Make produciton order long text mandatory...
Hi All..
We want to make produciton order long text mandatory. Tried with SHD0 where we unable to find the proper field. please confirm is it possible with any ways???
one more thing ... what ever the long text has been entered in the produciton order, how to pull the text to confirmation screen (CO11N).
Please provide the inputs....
Edited by: srinivas rapelly on Dec 19, 2008 12:26 PMHi Srinivas,
SAP has provided the Long Text Tab screen only for Information purpose. Hence it is not possible to make it mandatory.
One thing can be tried out - Try to use some User Exit in Production Order creation and see that the order will not be saved untill the Long Text field is entered with some text.
Similarly use one more User Exit in Production Order Confirmation and see that the data from the Production Order Long text screen is populated.
Take the help of ABAPer.
Hope this will help.
Regards
radhak mk -
when we create a sales order.there is a field called text for each line item.in that there is a text item called item- production note.
if i write anything over here.can i see that in my production order long text.
my issue is.
i want some text to be transferred from sales order to production order. and i want to print that text with my production order.Use READ_TEXT to read the long text from Sales Order and then use COPY_TEXTS function module to copy it to process/production order long text. Your developer will be able to help you with this.
Then in your shop floor layout, you can read the production order text.
Other option is that you can directly read the Sales Order long text in your shop floor layout using READ_TEXT.
Try and revert back.
Regards,
Swapnil -
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 -
Hi,
I am trying to configure purchase order mail text for my customized output type. I have written the mail title & text in my output type but still when I am sending the mail to the vendor the system is picking up the PO number as the default subject & not even displaying the mail text which I have written. Please suggest me what I am missing in my configuration.
Thanks.Hi,
I tried the settings told by you but it did not solve the issue.
My question is how can I display the mail title & text that I have configured in NACE for my output type whenever I send any PO through mail to the vendors.
Please suggest.
Thanks -
Use Word Editor for purchase order header text
Dear community!
Currently in our system when we create purchase order header text we are using the standard sap text editor.
I saw another system where they are using some kind of microsoft word editor plug in to create purchase order header texts and purchase order item texts.
I would like to figure out how I can activate this editor in the system.
Any help is appreciated - full points will be rewarded
Thanks & regards
AlexHi,
I tried to do that....
but we are on SAP_BASIS 701 / 0008 / SAPKB70108
when i start the report I get the message:
MS Word is a default editor now. Please read SAP Note 742662.
hints??? -
User Exits for Purchase order Header Text Validation
Hi Experts,
I need user exit for validate a Long text in Purchase order header data for a Particular Doc type.
We are using 4.6 B so badi is not available .
So pls tell me user exit for the same or any other method as i was unable to find user exit for this scenario.
Note : This valiadation should trigger whhile creating PO.
Warm Regards
Santosh Kumar
Edited by: Santosh L on Mar 19, 2010 9:58 AMi have used concept of global memory through call stack
Maybe you are looking for
-
HR-PA Personnel Administration Adjusted Hire date not in std extractor?
All, Does anybody know if the dates in PA0041, like adjusted hire date, Original hire date, Severance date, etc are available in extractors? I have been doing BW for some time, but am new to HR. I don't want extend the 0employee data source with th
-
Deleting Photos from iPhoto on the iPad
After selecting photos in iPhoto in the edit mode the Delete button is not active. Is this a bug or am I doing something wrong?
-
Hp Blades - flex10 technology questions
Hello, I have a few doubts regarding HP blades and Oracle VM. In particular: - HP BL460c G6 model comes with an embedded "flex10" network adapter. If connected to a standard switch interconnect module (NOT to a VC interconnect module!), this adapter
-
IBooks shutting down since 8.0.2 update
IBooks keeps going back to the home page since updating to iOS 8.0.2
-
HT202033 Am I able to change the back panel in Apple iPhone 5c
Am I able to change the back panel in Apple iPhone 5c