How do I get Item Level text from PO ME21N Prior To Saving The PO?
I saw this asked a few times but no solution so I will ask again.
Imagine that you are creating a PO in ME21N. You have some Header Level Text and then imagine you have 2 items in this PO. Each of these two items has Item Level Text.
Once a PO is saved, I know how to use Read_Text to get the texts for the header and items. You simply pass which text you want (ex. F01) the PO number and the language and it returns the texts for the header. For item level you combine PO number and Item number you want in the Name parameter of Read Text (example 112233445500010) then tell it which text you want (ex F01) and that is how it knows which item you want the text for.
However: When the user is first creating the PO, they want to see how it will look in printing but prior to actually saving the PO. They dont want to save the PO until they know how it will print with Print Preview.
I was very surprised that the print preview actually worked for the Header Texts prior to saving. I debugged Read_Text and see that when it sees no PO number passed, it simply supplies the text (F01) and the language and pulls it out of an FM READ_CATALOG which I am assuming is memory. In theory, you will only have one F01 text at the header level and it makes sense to me that it is able to retrieve that.
BUT: My Item Level Texts are not returning anything. It makes sense to me as well because you cannot simply tell it give me the F01 texts you see because if you have multiple items, you will have multiple F01 texts, one for each item number if you put text to each item.
How can I get the item level texts out before saving the PO? Since the PO is not saved yet, there is no PO number and nothing is stored in STXH and STXL. Where are the texts stored and how can I retrieve them? I tried passing just the item number but as expected it still returned nothing.
Any ideas?
Ok I figured it out. I will add this for anyone else that may have this issue.
The short version is that just like header level texts, item level texts that have not yet been officially saved to the PO are stored in a catalog. If you were to debug READ_TEXT you will see that it will look in the catalog to see if there is an entry there for the corresponding texts (ex F01, F02 etc).
For header texts, you simply pass the language and which text you want without the PO number and it will return header texts.
Item level however you have to specify which line item you want plus which text and then the language.
During debugging if you debug Read_text and go to the FM READ_CATALOG you will see the following:
READ TABLE CATALOG WITH KEY CATALOG_KEY.
Load the table Catalog into the debugger and see how it stores them.
In one solution I read on this forum it said to use 10 zeros and then your item number.
Mine was stored with 10 spaces, not zeros. Loaded 10 spaces plus the item number and it returned my text with READ_TEXT.
Hope this helps someone else one day!!
Similar Messages
-
Import data to Purchase Order Item Level Text from DMS system
Hi,
I have the material PO Text maintained against the Material in the DMS system.
In R/3, when I am creating the Purchase Order, I want the system to retreive the PO Text maintained in DMS against the material in the Purchase Order and paste it in the Purchase Order Item details - Material PO Texts.
Could anyone suggest me which User Exit or BAPI and the Function Module to fetch this data from DMS.
Thanks in advance.
Regards,
JeetendraDear Gurus,
We are able to populate the "Import Data" in the backend PO in our backend system 4.6C, thorugh user exit
EXIT_SAPMM06E_004 & EXIT_SAPLV50E_004.
Now when we create PO from SRM , the import related foreign trade data gets filled up from the master data.
Problem: In Header and Line item condition: We are not getting the condition type GRWR automatically, if the PO is comming from SRM. Because of this the statistical value is 0.
( If we create manual PO, the condition GRWR appears in PO - and the Statistical value gets filled in automatically )
How can we put the condition type GRWR into the PO using user exit ?
Thanks and regards,
Anil Rajpal
Edited by: ANIL on Aug 12, 2010 6:18 PM -
How can I get High Lighted text from JTextPane?
I can get Selected text when right click.
But, I have to get high lighted text without Right click.
How can I do this?
Is it possible any way?Hi,
you could try it with Document doc = editor.getDocument();
int start = editor.getSelectionStart();
String selectedText = doc.getText(start, editor.getSelectionEnd() - start);(editor above being your JTextPane).
Ulrich -
How do I get photos back from I photo? IPhoto not compatible after MAC OS update to 10.9.4
What version of iPhoto are your running? What do you see when you open your library? Any messages?
This screenshot shows which previous versions of iPhoto are compatible with Mavericks. It also indicates which versions qualify for a free upgradeto iPhoto 9.5.1 and which require a purchase:
Note 1: every day more users are reporting problems with iPhoto 8.1.2 so I've included it in the non compatible category.
Note 2: If your previous version of iPhoto was iPhoto 7 (08) or earlier you'll need to download and run the iPhoto Library Upgrader 1.1 application on the library before opening it with iPhoto 9.5.1 -
How do i get songs on itunes from old computer to itunes on the new computer?
i have an ipod that i used with itunes on an old computer...got new computer and ipad. how should i transfer my songs and apps?
follow the steps given here...
Syncing to a "New" Computer or replacing a "crashed" Hard Drive -
I have several books and lots of music in my iTunes Library that I can't seem to sync to my iPad. I have tried "Add File to Library" and it does not work. Can anyone help?
Repair your Quicktime.
START > CONTROL PANEL > PROGRAMS N FEATURES / hightlight QUICKTIME and click CHANGE then REPAIR. -
Get Items in CRM from the headere GUId
Hi,
Can anyone tell me how can we Get Items in CRM from the headere GUId?
ThanksUse FM CRM_ORDER_READ.
Pass Header GUID in table IT_HEADER_GUID
Item details are displayed in ET_ORDERADM_I.
You can also use test report 'CRM_ORDER_READ' if you have any test data
Regards
Kaushal -
My hard drive crashed how can i get my old music from my itune account
my hard drive crashed how can i get my old music from my itune account
If you have the media on an iDevice then you should be able to get most of your non-iTunes purchases back as well. See this post from forum regular Zevoneer for options.
tt2 -
my epson stylus SX235W has all of a sudden decided it won't print from my mac. it says rastertoescpII has unexpectedly quit. what is this and how do i get it to print from my mac again?
Open the Sharing pane in System Preferences. If the Computer Name is not set, enter a name. You may first have to click the lock icon in the lower left corner and authenticate to unlock the settings.
Credit for this solution to ASC user Yuengdog1983. -
How user can get a Sales Text for the any Line Item in the Billing?
Salute Masters ! !
How user can get a Sales Text for the any Line Item in the Billing?
It's coming for other Order (Line Item for Bought out Item at Project Site - Some Item they procure at project site & complete the task).
Where I can configure in system for all.
Rgds
Srivastav
09973504950Hi,
Sales text can be copied from customer to order , order to delivery and delivery to billing .
Check the T-code : VOTXN , do the customization as per your requirement.
check the below link :
http://help.sap.com/saphelp_erp60_sp/helpdata/en/dd/55f993545a11d1a7020000e829fd11/content.htm -
How to get tem level text of PO???
Dear all,
I want to get the data for Item level text of PO. But not able with the function read_ text as in header level text.
So please tell me how I can get for tem level text of PO.
Thanks in advance.
Sachin GautamHi Sachin,
Follow the steps.
1. Go to the text tab for the item.
2. Choose the Item text.
3. Double click on the text editor.
4. GOTO -> Header.
Get the text name (PO Number+item number eg: 100000000200010 for item number 10).
Language
Text ID and Text Object
Put these values in READ_TEXT.
Hope it helps.....
Lokesh
Pls. reward appropriate points -
How to get Text from (.txt) file to display in the JTextArea ?
How to get Text from (.txt) file to display in the JTextArea ?
is there any code please tell me i am begginer and trying to get data from a text file to display in the JTextArea /... please help...public static void readText() {
try {
File testFile = new File(WorkingDirectory + "ctrlFile.txt");
if (testFile.exists()){
BufferedReader br = new BufferedReader(new FileReader("ctrlFile.txt"));
String s = br.readLine();
while (s != null) {
System.out.println(s);
s = br.readLine();
br.close();
catch (IOException ex){ex.printStackTrace();}
}rykk -
How can i stop my macbook from getting my kids texts from their phones attached to my itunes?
how can i stop my macbook from getting my kids texts from their phones attached to my itunes?
APPLE ID for each device family member itunes
http://www.apple.com/support/appleid/basics/ -
Sale Order Item Level Text Field which table and field
Hi,
Thanks for your prompt reply and best solution.
Can you please tell me one more thing, in sale order at item level the TEXT Field maintaining by user at transaction level now they want that field in one of the report, so can you please tell what is the table and field where i will get this sale order item level text details.Hello,
is this going to work for item level text as well.
can you tell how to proceed with this functional module
or is there any other thing required.Please elaborate to
understand better way.
You can check out two table in respect to Sales TEXT i.e. STXH (STXD SAPscript text file header) and STXL(SAPscript text file lines).
The best approach of tracing out the Text in respect to Sales Order would be to use the Function module READ_TEXT and put this FM in SE37 and execute with the following parameter.
Client
Text ID of text to be read
Language of text to be read
Name of text to be read
Object of text to be read
Archive handle
Text catalog local
When you are essentially looking to read item level Text with respect to Sales Order then your Text OBject would be VBBP.
Regards,
Sarthak -
How do you get your ring/text tones that were purchased back on your phone
how do you get your ring/text tones that were purchased back on your phone
Hey there oops31,
Welcome to Apple Support Communities.
It sounds like you want to know how to get tones that you’ve previously purchased on your iPhone 4s. The article linked below outlines the options for downloading past purchases and includes information about syncing tones from iTunes to your iOS device.
Download past purchases - Apple Support
Audiobooks, ringtones, and tones
If you made a backup of these items on your Mac or PC, you can sync the items to your iOS device. You can't download these items again from iTunes in the Cloud.
Cheers,
-Jason
Maybe you are looking for
-
Hello, I have an issue regarding limit items in SRM. By default, I have the following settings : - "Account Assignment" = "Unknow" - "Follow-Up Actions" = "Invoice Only" I would like to change these default values to : - "Account Assignment" = "Know"
-
Mac mini display color changed. How do I get it back to normal?
I picked up my keyboard to remove dust and dirt, and I must have pressed some button or two, because now the colors in my display are horribly wrong. I opened Library/ColorSync and then Profile First Aid. I verified and repaired and got this message:
-
Officejet J6480 - cartridge error, cartridge on right needs to be replaced
I had this error last week with an old non-hp cartridge; replaced with hp and one week later getting the same message. Have tried unplugging and restarting -- no luck! Any suggestions?
-
Acrobat Reader crashs for users with network home folders
When network users logon to a MacBook running 10.6.4 Adobe Acrobat 10.0.1 will crash. The users home folder are on a Mac Mini server running 10.6.6. The Safari plug-in cashes also. A local standard user will run Acrobat without problems.
-
DefaultFileName does not work with apache-webligic bridge in service pack 5
The DefaultFileName directive does not work with apache-webligic bridge from service pack 5. It used to work with the apache-webligic bridge from service pack 3. Can anybody tell me why? Thanks. Wei