Copy long text from PROJ to WBS
When creating a new project (CJ01) I create new WBS and populate its fields from project automatically.
I use enhancement and everything is copying ok except the long text.
I do READ_TEXT and it get long text from project (TEXT_HEADER-TDNAME D99999999)
Then i do SAVE_TEXT and not getting any error (TEXT_HEADER-TDNAME E99999999)
But the long text of WBS is empty.
How should i copy long text right?
I traced program and found out that after my enhancement is passed,
WBS element is not activated and rewrited by initial data from PRPS-POST1
How should i activate wbs then?
Thank you for help!
Hello,
That code can help you If the text not exist.
be carreful, that code have not declaration
Thierry
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '01'
object = 'PSTX'
IMPORTING
number = wl_name.
ws_prtx-prmandt = sy-mandt.
ws_prtx-probtyp = 'E'.
ws_prtx-prpspnr = wv_posnr.
ws_prtx-prtxtky = wl_name.
APPEND ws_prtx TO wt_prtx.
CALL FUNCTION 'CJVB_PRTX_POST'
TABLES
tinsert = wt_prtx
tdelete = wt_d_prtx
tupdate = wt_u_prtx.
ws_pstx-psmandt = sy-mandt.
ws_pstx-pstxtky = wl_name.
ws_pstx-pstxtar = '03'.
ws_pstx-pstxtti = 'COMMENTAIRES'.
ws_pstx-pstxthu = p_uname.
ws_pstx-pstxthd = sy-datum.
ws_pstx-pstxtau = p_uname.
ws_pstx-pstxtad = sy-datum.
ws_pstx-psformat = ''.
APPEND ws_pstx TO wt_pstx.
CALL FUNCTION 'CJVB_PSTX_POST'
TABLES
tdelete = wt_d_pstx
tinsert = wt_pstx
tupdate = wt_u_pstx.
IF sy-subrc = 0.
wl_object = wc_obtxt.
wl_id = wc_idtxt.
wl_spras = sy-langu.
ws_head-tdobject = wl_object.
ws_head-tdname = wl_name.
ws_head-tdid = wl_id.
ws_head-tdspras = wl_spras.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
client = sy-mandt
header = ws_head
insert = ' '
savemode_direct = 'X'
TABLES
lines = wt_tline
EXCEPTIONS
OTHERS = 1.
Similar Messages
-
How to copy long text from production order to automatically created P.R
Hello experts,
I want to add some text to the long text , in the production order and save it.
There is an external process in our routing, in which when the order is saved and released, there is a P.R created automatically.
My requirement :- The text in the long text tab of the Production order should flow to one of the text types {Item text} in the P.R item created.
I checked in SPRO [ IMG-> MM->Purchasing -> P.R-Texts for PR-> define copying rules].
For text type , 'Item text' already has the text linkages : Order/network, with source texts "component text' and 'transaction text'.
However, the text being maintained in the order is not flowing on its own anywhere into the P.R created.
Is there any other config that needs to be done to achieve this?
Regards
P.RHi, A production order long text exists at a header level and a Purchase req gets triggered at an operation level of a production order during external processing.
So if you expect a mapping of a header text to operation level text, it should not be definitely possible in the SAP standard. (May be an enhancement would still work but you need to decide on it).
If you maintain a long text at the same operation where you trigger a pur.req (a text on your own or via a standard text key-CA10 tcode), you would see that populated, at the item-level text tab of the generated pur req automatically, as a standard behaviour.
Hope you would go with the standard system behaviour. -
Copying header text from PM notification to PM order
Hi!
My task is to copy the header long text from the notification into the PM order (made from/attached to the notification). I've checked the customizing, but there is only an option to copy standard texts into the order.
So I would like to put the text into a memory ID, during notification saving, and put the text into the PM order. And of course without modifying the standard...
How can I insert text into an order, which does not have its document number yet? I think I can not use the SAVE_TEXT...
Thank you..
TamáHi,
Try to find userexit after SAVE. so you have document number, then you can use
SAVE_TEXT.
aRs -
Copy long text during creating new assets by reference
Hi,
I would like to have copy long text during creating new assets by reference. Is it place in spro where I can set it?
Rgds, StenwaHi Stenwa,
For the field Description you cen set the indicator Indicator: "Copy field group from reference asset" in the screen layout rule.
If this indicator is set, the screen layout rule specifies that when you create an asset using another asset as a reference, the specified field group is automatically supplied with values from the reference asset.
For the logtext there is a possibility to maintaine a text in the tables STXH or STXL with key ANLA
regards Bernhard -
Reading long text from excel file to an internal table
Hi
Can any body tell me how to read long text from excel file to an internal table.
When i am using this FM KCD_EXCEL_OLE_TO_INT_CONVERT then it is reading only 32 characters from each cell.
But in my excel sheet in one of the cell has very long text which i need to upload into a internal table.
may i know which FM or what logic i need to use for this problem.
RegardsHi,
Here is an example program. It will upload an Excel file with two columns. You could also assign the Excel structure dynamically, but I wanted to keep the example simple. The main point is that the internal table (it_excel in this example) must match the Excel structure that you want to convert.
Remember, this is just an example to help you figure out how to properly use the technique. It will certainly need to be modified to fit your requirements, and as always there may be a better way to get the Excel converted... this is just one possibility that has worked for me in the past.
*& Report zexcel_upload_test *
REPORT zexcel_upload_test.
TYPE-POOLS: truxs.
TYPES: BEGIN OF ty_excel,
col_a(10) TYPE n,
col_b(35) TYPE c,
END OF ty_excel.
DATA: l_data_tab TYPE TABLE OF string,
l_text_data TYPE truxs_t_text_data,
l_gui_filename TYPE string,
it_excel TYPE TABLE OF ty_excel.
FIELD-SYMBOLS: <wa_excel> TYPE ty_excel.
PARAMETERS: p_file TYPE rlgrap-filename.
* Pass the file name in the correct format
l_gui_filename = p_file.
* Upload data from PC
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = l_gui_filename
filetype = 'ASC'
has_field_separator = 'X'
CHANGING
data_tab = l_data_tab
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc <> 0.
* MESSAGE ...
EXIT.
ENDIF.
* Convert from Excel into the appropriate itab
l_text_data[] = l_data_tab[].
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
i_field_seperator = 'X'
i_tab_raw_data = l_text_data
i_filename = p_file
TABLES
i_tab_converted_data = it_excel
EXCEPTIONS
conversion_failed = 1
OTHERS = 2.
IF sy-subrc <> 0.
* MESSAGE ...
EXIT.
ENDIF.
LOOP AT it_excel ASSIGNING <wa_excel>.
* Do something here...
ENDLOOP.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
PERFORM filename_get CHANGING p_file.
* FORM filename_get *
FORM filename_get CHANGING p_in_file TYPE rlgrap-filename.
DATA: l_in_file TYPE string,
l_filetab TYPE filetable,
wa_filetab TYPE LINE OF filetable,
l_rc TYPE i,
l_action TYPE i,
l_init_dir TYPE string.
* Set the initial directory to whatever you want it to be
l_init_dir = 'C:\'.
* Call the file open dialog without multiselect
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
window_title = 'Load file'
default_extension = '.XLS'
default_filename = l_in_file
initial_directory = l_init_dir
multiselection = 'X'
CHANGING
file_table = l_filetab
rc = l_rc
user_action = l_action
EXCEPTIONS
file_open_dialog_failed = 1
cntl_error = 2
error_no_gui = 3
OTHERS = 4.
IF sy-subrc <> 0.
REFRESH l_filetab.
ENDIF.
* Read the selected filename
READ TABLE l_filetab INTO wa_filetab INDEX 1.
IF sy-subrc = 0.
p_in_file = wa_filetab-filename.
ENDIF.
ENDFORM. " filename_get
Regards,
Jamie -
Using browser javascript to copy selected text from a pdf file opened in Air app.
I have posted this question on reader forum as well, but I think it is more suited here...
I am trying to create a note-taking application in air. I want to extract selected text from pdf file as a string object or to the clipboard.
Obviously, all pdfs in my local storage will not be scripted to recieve postMessages and act accordingly, and that is not practical either. So, my problem is, how can I copy the selected text in the pdf file (opened as an object in htmlloader within my Air app) to clipboard or directly in another control by say clicking a button in air application? I suppose, this is possible using javascript, however, I don't know which reader methods are exposed to the wrapper htmlloader control. In short, I want to execute app.execMenuItem("Copy") command through htmlloader javascript. Any alternate solutions are also welcome.
This is similar to passing inbuilt commands/methods/functions (of adobe reader) to pdf-reader plugin embedded in a webpage via javascript. This is possible in IE where the pdf is rendered as activex object, and hence JSObject interface of pdf document/reader is accessible to the browser javascript. I have also read that this same JSObject is accessible to VB as interface for IAC, so as the Air is Adobe's own product, I was wondering if equivalent of JSObject is accessible to htmlloader control as well.
Thanks in advance...
MitsThank you Thom for your reply...
from
http://www.adobe.com/devnet/acrobat/javascript.html
...Through JavaScript extensions, the viewer application and its plug-ins expose much of their functionality to document authors, form designers, and plug-in developers...
As it is explicitly mentioned, that the functionality of adobe reader are exposed for plugin development, I thought someone here might have used external javascript to execute some safe methods in adobe reader. The functionality (i.e. external javascript interface-JSObject) is already available for VB programmers to develop IAC. Further, the Acrobat SDK example called "AcroPDFinHML" shows how one can embed a pdf-reader in a html page and execute some safe methods (like gotonextpage(), zooming etc.) in IE as ActiveX plugin. I have checked it myself for adobe reader 9, and it works perfectly, so there is no security issue as such to implement the same for another browser (like in my case, the htmlloader control in flex/air app).
I intend to create a note taking application in air, where it is very much required that I should be able to copy selected text from various pdf documents, that are open in my app, and subsequently paste/collect/save the collected notes and process them afterwords (offcourse, from the pdfs that allow me copying text). However, it is not happening for me here. As the pdfs are opened through adobe reader plugin, it does not register the copy command executed by my air app. It registers the system level copy command (by keyboard shortcut Ctrl+C), but my air app has no way to execute the system level copy command programmatically. So I am kind of stuck here...
Thanks again for your reply. Having known what am I intend to accomplish, any other (may be alternative) solutions will be appreciated nonetheless...
Mits -
I need to read a long text from MM03, view - Sales Text. I cannot use FM READ_TEXT as there is no header data available there.
How do i do it?Amol,
Sales Text CANNOT exist without the HEADER DATA.
You have to use READ_TEXT with these paramters.
Text Name Material Number (NAME)
Language EN
Text ID 0001 (ID)
Text object MVKE (OBJECT)
regards,
Ravi
Note : Please close the thread if the issue is solved.
Message was edited by: Ravikumar Allampallam -
Propagate long text from order to notification, notification to order
Hi Experts!
Like in subject I want to propagate long text from PM order to PM notification and the other way round. If text will be changed in one document it should be changed in second too.
Have you any idea how to do that?
Thank from advance
Bartek
Edited by: Julius Bussche on May 4, 2009 11:25 AM
Subject formatting corrected.Hi,
If these are two different fields having different data elements then I dont think its possible until and unless they both have the same data element...
if they have the same data element I think you can keep the long text for the data element and it will reflect both the sides...
Regards,
Siddarth -
VOFM copy item text from STO to delivery
Hello,
Has anyone succesfully copied item text from a stock transport purchase order to the delivery by using a rule defined in VOFM data transfer > text ?
I can do it for the 1st item of the PO, but the second item just pulls the info from the sales order text from material master.
I know that SAP has an OSS note saying that this way is not anymore necessary, you can adopt text from STO with customizing settings. However I have to add some more text, not just copying the PO text, so I have to use this way.Hi Jurgen,
Can you tell me step-by-step process to copy sto text to delivery?
I have been able to customize copying of text from sales order to delivery to billing but sto to delivery is not happening.
Your help will be highly appreciated.
Thanks.
Warm regards,
Rahul Mishra -
Printing long text from Routing instead of Production order for an order.
Hi Gurus,
When a production order prints it is printing the long text from the routing master rather than the long text on the actual production order.
This field is used to provide specific instructions in special circumstances in addition to the standard text.
I need system to be changed so that printing takes long text from production order.
Please help me.
Naveen.AHi,
In the production order long text, the text we are maintaining is only for information. It can't be able to print. In Production order, copies all the masters and the texts which we are maintaining in the masters only will be able to print. Standard SAP will not print the production order long text.
Regards,
V. Suresh -
Printing long text from material master in from MM07ET
Hello,
I'm using WEE1 output condition to print labels for gr. I'm using the standard object MM07ET and I need to include in the label the long text from material master - table STXL. I know that there is a function READ-TEXT in ABAP for this but I don't have access to abap development. I need to know if it's possible to include a command in the sap scrip to retrive the long text without modifing the program SAPM07DR.
Thank you!Hi,
Sorry for the late Reply, Please use the following code in SAPSCRIPT
/: INCLUDE &EKPO-EMATN& OBJECT MATERIAL IDGRUN LANGUAGE EN
&EKPO-EMATN& material Number ( Here please maintain the Field value which is used to print Material Number )
MATERIAL is the Object Name
GRUN Is Text ID
EN Language
You can use the above code for priting long text in the SAPSCRIPT FORM. to find the object name and ID please follow the below Steps
Go to the window were you have maintained Long text... Double click on the text, then it will open a new window.. there Click on the top Goto-->Header.. here you will find the relevant data as follows:
Language: EN
Text ID : GRUN
Text Object: MATERIAL
Name: Material Code
Regards
GK. -
Copy Chinese Text from Word to SAP Script
Hi,
I need to change Chinese form. I am not able to copy Chinese text from word document to SAP Script.
When I copy Chinese text from word to SAP Script, I am getting the Chinese text 承运商签 as ?????.
I have done the following steps in my PC and SAP front end settings.
1. At the Operating system level install the Chinees language.[Control panel - >Regional and language Option - >language Tab - > Click on Install Files for East Asian languages] If these language already installed then click on Detail and add the Chinese languages[Chinese (PRS) and Chinese(Taiwan).
2. At SAP level click on Customizing of Local layout[Alt+F12] and click on options.Go to tab I18N and click on Activate the multi-byte functionalities to support check box.
4.Take care of the Font while assigning to Character formar or paragraph format. Dont use normal font name. Example of chinese phone "CNSONG".
Please help on the same.
Thanks & Regards,
Govind.Hello,
I hope when you are changing form ,you hv logged in chinese language .
Sap log-in: Chinese ,PC-setting : chinese font loaded & correct charcter format in script : chinese font.
If all this is there then you should not hv trouble in getting chinese text from word to SAP script.
Thanks. -
How to Add Long Text from CA10 on SAP Script
Hi Friends,
I got a requirement to add a long text from CA10 on to the SAP Script.
How to do this ?
Is it using INCLUDE ?
Please give me some solution
Thanks in Adv.Hi Bhupal,
Could you tell me how did u add the long text from CA10. I have the same requirement.
Thanks in advance.
Manisha -
Copy functionality which did not copy Long Text values causing us an issue
Two new Master Recipes created in Bathurst by using copy functionality in transaction C201 contained SRC value errors believed to be caused by changes in the copy
functionality which did not copy Long Text values causing us an issue when creating Process Orders. Current workaround is to manually edit the
value fields and re-save the MRs, the issue is then resolved.This will resolve the issue
SAP Note 1452700 - "New" button is disabled after
displaying text
Note Language: English Version: 1 Validity: Valid Since 03/25/2010
Summary
Symptom
In display mode you navigate via the text hyperlink to the text view.
When you navigate back, the "New" button on the "Notes" assignment block is
disabled. -
Is there any way to prevent the copying of text from Presenter's Notes tab?
PowerPoint Notes Page text exposed on a Presenter Notes tab can be selected and copied from the Notes tab and then pasted into any text document. Is there any way to prevent the copying of text short of not providing notes text at all?
Hi Robingo,
Excel is strictly treated as a data source and Siena only imports the data in your tables, not the formatting.
If there is some business logic behind the formatting, you could mimic the same logic in Siena. For example, the font is bold or red if a value is in a certain range, the font is in italics if the data is for a specific customer, etc.
Thanks
Robin
Maybe you are looking for
-
How to restore a previous backup on iphone 5c
I just bought an iphone 5c yesterday and I accidentally restored the phone to a previous backup (from my old iphone) when I was trying to sync my music from itunes. How do I retrieve my info from before I did this? Any help is greatly appreciated
-
Problem deploying JDeveloper files
Hi, I'm new to jdeveloper, and i'm having some problem deploying the applets that the wizard makes, i deployed the files into a zip and when i unziped them, the html file that was in the zip keeps comming up with can't find package.test.class (packag
-
Time machine and backing up to a Windows disk
Hi all Setup as follows : iMac 2.4GHz Core 2 duo 1GB memory and a Windows XP SP2 desktop with a USB HDD attached. I am new to the world of Macs and am very interested in using Time Machine. My Mac can see the USB HDD when I choose "Connect To Server"
-
Does Cisco NAC support Wireless LAN?
Hi There I know Cisco NAC supports Wireless LAN. I have deployed this myself with various brands of Autonomous APs. These works fine only in in-band mode, not in out-of-band mode. However, Cisco did mentioned for Cisco AP, with Cisco NAC and Cisco sw
-
hi all i want to use IWO10018 exit to create an extra tab in transaction iw32 can any body suggest me how to procede where to declare and code for the screen regards navjot