How to upload long texts to project definitions?
Hi everyone,
Does any of you know a program for uploading long texts to project definitions?
Thanks in advance and best regards.
Txema.
Found this post in SDN ABAP forum on the similar issue , check this out it might be helpful
Project Systems WBS, Long Text Field
Regards
Sreenivas
Similar Messages
-
How to download and upload long text for project, WBS , Network,
Hi all,
I have two isssues.
1) I am extracting Projects, WBS , Network , Network activity and network activity element from a SAP 4.7 system using bapi's
BAPI_PROJECTDEF_GETDETAIL
BAPI_PROJECT_GETINFO
BAPI_NETWORK_GETINFO
BAPI_BUS2054_GETDATA
I am able to get all the details except long text. I want to know how do i extract the long text other than getting it manually by using select_text and Read_text Function module, is there any bapi to achieve this.
The reason why i am not using Function modules Read_text and Write_text is, object name( TDNAME ) value stored in STXH table for project, wbs and network are the project, wbs and network itself so i dont have any issues with this but the TDname value for activity and activity element are completely different ( Routing number and counter is stored respectively ) which i am not getting as the part of the bapi(BAPI_NETWORK_GETINFO) output.
2) I have to upload the extracted Project and it sub object data to ECC 6.0 system , i am able to achieve this by using BAPI's BAPI_PROJECTDET_CREATE, BAPI_PROJECT_MAINTAIN and BAPI_NETWORK_MAINTAIN. I am not able to load the longtext for the same, is there any way to load the long text .
All help will be greatly appreciated and rewarded.
Thanks & Regards,
Rajanidhi Rajasekeran.I don't think there is any BAPI to do it.
We are doing it by read_text & edit_text . required fields for text name can be fetched by following select
if not e_activity[] is initial.
select aaufnr aaufpl baplzl bobjnr b~vornr
into corresponding fields of table t_longtext
from afko
as a
left join afvc
as b
on aaufpl = baufpl
for all entries in e_activity
where a~aufnr = e_activity-network
and a~aufnr is not null.
endif.
txtname = wa_longtext-objnr.
replace c_nv in txtname with sy-mandt. -
How to UPLOAD Long Text in QS21
Dear All,
I have written BDC to upload Master Inspection Characterstics,
The Problem is I need to upload the long Text, (which is of some 250 chars).
How to do this.
Help is appriciated.
Thanks in advance
ArunHi,
I think there is an ICON to enter the long text.
U can start filling the LONG text here using
RSTXT-TXLINE(03) - this takes around 70 chars the next
chars in RSTXT-TXLINE(04) and so on. U can get this
in SHDB recording.
Regards,
GSR. -
How to upload long text using BAPI_SERVICE_CREATE
Hi,
I'm uploading service master records (transaction AC03) through my program using function BAPI_SERVICE_CREATE. As per the requirements, for each service number, I've to pass long text also (refer to the last text area on the transaction screen).
In the tables section of the bapi BAPI_SERVICE_CREATE, there is a provision for an internal table on the form SERVICE_LONG_TEXTS. But it is of no use as even if I pass data to it, it is not written to the database.
Can anyone tell me solution for my problem?
Thanks.
Anuj.Anuj,
Create a new program using the following code and run it using an existing service number to see if the longtext gets updated. I ran it in my system and it is working fine. If it works for you, then you can modify your code accordingly.
report zlongtext.
data: header like thead,
ilines like tline occurs 0 with header line.
parameters: asnum like asmd-asnum.
start-of-selection.
header-tdobject = 'ASMD'.
header-tdname = asnum. " Make sure it has leading zeroes.
header-tdid = 'LTXT'.
header-tdspras = sy-langu.
ilines-tdformat = '*'.
ilines-tdline = 'Just a test to see how it works'.
append ilines.
clear ilines.
call function 'SAVE_TEXT'
exporting
header = header
INSERT = ' '
savemode_direct = 'X'
tables
lines = ilines
exceptions
id = 1
language = 2
name = 3
object = 4
others = 5.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
else.
call function 'COMMIT_TEXT'.
if sy-subrc = 0.
write: / 'updated successfully'.
endif.
endif. -
How to upload long text in CA02 Transaction
Hi,
I am getting a file with the following format.
Input File Record Layout:
Group# like PLKO-PLNNR,
Group Counter like PLKO-PLNAL,
Operation# like PLPO-VORNR,
Work Center# like PLPOD-ARBPL,
Control Key like PLPO-STEUS,
Short-text like PLPO-LTXA1,
Long-text type c(1000).
i have to upload the long text in the CA02 transaction. Could you please let me know the procedure that i should follow in uploading this in doing a call transaction in BDC.
Thanks in Advance,
SureshTake a look at FM SAVE_TEXT
To get the parameters of the FM :
Goto the long text in CA02 and then via the menu :
Goto --> Header .
A popup is displayed containing the input parameters :
Text Name
Language
Text ID
Text object.
Hope it helps,
Erwan.
Message was edited by: Erwan LE BRUN -
How to activate Long Text of Order Header in IW31/32
Hi Expert,
I have one reqm. like want to upload Long Text in Order Header.
I have used FM 'Create_Text', its working f9 i.e. creating Long Text for Order Header but not displaying it
in IW32/33 transaction. Entry for Long Text is available in Table STXL and STXH.
Please advice me how to activate that Header Long Text which I uploaded earlier.
Thanks,
Jay.Hi Madhukar,
Yes I am passing everything correctly, as I am getting Long Text record created in Table STXL & STXH, but not able to see in IW32/33 at the header long text.
So this is my doubt like how 2 update or activate long text of Order Header?
Thanks,
Jay. -
Uploading long text as one long text for the same records.
Hi,
i am uploading long text into one custom application.in that i had one issue,
I am uploading long text with the combination of material,palnt,division,sales organization and distribution channel.
Now my reqiurement is when ever two or more than two records are same for the material,palnt,division.The respected text shulod be created as a single text.
will any body suggest me with logic, how to handle it?Hi,
i am having records like this...
MATNR VKORG VTWEG TEXT
865498 0012 00654 test1
865498 0012 00654 test2
865498 0012 00654 test3
865498 0012 00654 test4
865498 0012 00654 test5
865498 0012 00654 test6
865498 0012 00654 test7
in the above test data MATNR , VKORG, VTWEG records are same but TEXT is different.
Now my requirement is , i need to upload the data in to application as
MATNR VKORG VTWEG TEXT
865498 0012 00654 test1test2test3test4test5test6test7
how can i handle it? -
How to print long text in scripts
plzzzzzzzzz answer this qestion
how to print long text in scriptsHi Kranthi,
You can create Text Id and include that in your script.
For example:
/E TEXT
/: INCLUDE ZTEXT OBJECT TEXT ID ST
Hope this helps.
Please reward if useful.
Thanks,
Srinivasa -
How to upload a text file from a shared folder and provide an o/p
how to upload a text file from a shared folder and provide an o/p containing the details in each order in the text file
Hi,
Use <b>GUI_UPLOAD</b> to upload a text file from a shared folder.
Use <b>GUI_DOWNLOAD</b> to download data in a file on the presentation server or use <b>OPEN DATASET, TRANSFER</b> and <b>CLOSE DATASET</b> statements to download data to the application server.
Now, I hope the code for data fetching, if required, is already present in the report.
Reward points if the answer is helpful.
Regards,
Mukul -
How to upload a text in .pdf to convert it?
How to upload a text in .pdf to convert it?
How to upload a text in .pdf to convert it?
-
Tcode FV50: How to find long text in FI Document line item Before Saving.
Hi,
How to find long text in FI Document line item.
During Parking of the FI document through Tcode FV50 i m giving the some text in the long text not in the text field.
I would like to validate the Long Text Before Saving in user exit "U300" under the "Sunstitution" .
Please anybody can be help me out where exactly this long text is going to be stored or in which internal table or memory id.
Please give me the answer as soon as possible .
Note:- Read_Text function module is not useful. Because Read_text useful after saving document.Hi Amit,
In application area FINANCIAL ACCOUNTING , go for node LINE ITEM. Here create a step & maintain the prerequisite as per your requirement & in the check you can mention the code or you can direct it to a custom program like ZFI_RGGBR000.
Here while maintaining the check you will get structures BKPF & BSEG in which you will get the desired field you are looking for.
Just try to explore in your system how the other validations are maintained.
After you are done with all your code, you have to run the regeneration program RGUGBR00.
Here utmost care should be taken while running regeneration program, you should select all the checkboxes in the selection screen except GENERATE SETS, GEN SUBSTN ROUTNS IN ALL CLNTS & TRACE PROG. GENERATE CALLS .
Hope this make your doubt clear.
Regards
Abhii -
Hi,
I need to get the long text that we maintained in CJ20n tcode under long text at project level. I need to display the same in Script layout or report. I didnot find any table or functional module to get it. please help me out.
regards,
ChandraHi
Double click on the Long text, it will take you to Text editor
from the Menu GOTO-> HEADER
you will find the OBJECT,ID,OBJECTNAME and LANGUAGE parameters for that lang text which are to be passed to the READ_TEXT fun module
for displaying it on report use the above fun module and fetch the text in IT_LINES internal table and write it on report output
You can also see the doc of the read_text
READ_TEXT
READ_TEXT provides a text for the application program in the specified work areas.
The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.
After successful reading, the system places header information and text lines into the work areas specified with HEADER and LINES.
If a reference text is used, SAPscript automatically processes the reference chain and provides the text lines found in the text at the end of the chain. If an error occurs, the system leaves the function module and triggers the exception REFERENCE_CHECK.
Function call:
CALL FUNCTION 'READ_TEXT'
EXPORTING CLIENT = SY-MANDT
OBJECT = ?...
NAME = ?...
ID = ?...
LANGUAGE = ?...
ARCHIVE_HANDLE = 0
IMPORTING HEADER =
TABLES LINES = ?...
EXCEPTIONS ID =
LANGUAGE =
NAME =
NOT_FOUND =
OBJECT =
REFERENCE_CHECK =
WRONG_ACCESS_TO_ARCHIVE =
Export parameters:
CLIENT
Specify the client under which the text is stored. If you omit this parameter, the system uses the current client as default.
Reference field: SY-MANDT
Default value: SY-MANDT
OBJECT
Enter the name of the text object to which the text is allocated. Table TTXOB contains the valid objects.
Reference field: THEAD-TDOBJECT
NAME
Enter the name of the text module. The name may be up to 70 characters long. Its internal structure depends on the text object used.
Reference field: THEAD-TDNAME
ID
Enter the text ID of the text module. Table TTXID contains the valid text IDs, depending on the text object.
Reference field: THEAD-TDID
LANGUAGE
Enter the language key of the text module. The system accepts only languages that are defined in table T002.
Reference field: THEAD-TDSPRAS
ARCHIVE_HANDLE
If you want to read the text from the archive, you must enter a handle here. The system uses it to access the archive. You can create the handle using the function module ACHIVE_OPEN_FOR_READ.
The value '0' indicates that you do not want to read the text from the archive.
Reference field: SY-TABIX
Default value: 0
Import parameters:
HEADER
If the system finds the desired text, it returns the text header in this parameter.
Structure: THEAD
Table parameters:
LINES
The table contains all text lines that belong to the text read.
Structure: TLINE
Exceptions:
ID
The text ID specified in the parameter ID does not exist in table TTXID. It must be defined there together with the object of the text module.
LANGUAGE
The parameter LANGUAGE contains a language key that does not exist in table T002.
NAME
The parameter NAME contains the name of a text module that does not correspond to the SAPscript conventions.
Possible errors:
The field contains only blanks.
The field contains the invalid characters * or ,.
OBJECT
The parameter OBJECT contains the name of a text object that does not exist in table TTXOB.
NOT_FOUND
The system did not find the specified text module.
REFERENCE_CHECK
The text module to be read has no text lines of its own but refers to the lines of another text module. This reference chain can include several levels. For the current text, the chain is interrupted, that is, one of the text modules referred to in the chain no longer exists.
WRONG_ACCESS_ TO_ARCHIVE
The exception WRONG_ACCESS_TO_ARCHIVE is triggered if an archive is accessed using an incorrect or non-existing archive handle or an incorrect mode (that is, read if the archive is open for writing or vice versa).
IN SCRIPTS you can use the INCLUDE statement to print the Long texts
/: INCLUDE TEXT<name> ID <id> Lang <en> paragraph <za>
Regards
Anji -
How to create Long Text in Module Pool Program
Hi all,
I want to develop a new module pool program and I want to use Long text screen in this program and also want this text will store in table.I never develop such type of module pool before.This long text will like sales order long text.Please let me know the steps how I can develop such type of program and how I save long text huge data in table.
Thanks & Regards
NirmalHai ,
here you have to use custom control, for this
DATA: line(256) TYPE c,
text_tab LIKE STANDARD TABLE OF line,
field LIKE line.
1) Create custom control in your screen
2) CREATE OBJECT: container EXPORTING container_name = 'TEXTEDIT', "--> (this is custom control name in screen)
editor EXPORTING parent = container.
3) CALL METHOD editor->get_text_as_stream "This method reads data from custom control , inserts into itab 'text_tab'
IMPORTING
text = text_tab. "
READ TABLE text_tab INTO line INDEX 1. read the text into wa 'line'
if you want more clarity , see 'ABAPDOCU' >ABAP USER DIALOGS> COMPLEXSCREEN ELEMENTS--> DEMO CUSTOM_CONTROL -
How to read long text in Document line item
Hi,
How to read long text in FI Document line item.Use Read_text function module.
you need to pass
ID
LANGUAGE
NAME
OBJECT to the function moduel
To find the Text id name language and object these are the following steps. Example: FB02
1. goto FB02, Enter Document number
2. from menuselect Goto>Header-->header Text..... New window will be displayed
3. select the Header Text. here you can see all the text.
4. click on the TEXT (which you want to know the Text id) , then press log ICON (you can find in bottom right of the text window) it looks like a rolled paper.
5. in the Next window you will find Text Name. Text ID, Language. etc...
Regards,
Lalit Mohan Gupta. -
How to upload PO text of material master ?
dear gurus,
how to upload PO text in material master in mass , can i use LSMW or BDC ? if yes then how?
I have done the recording but LSMW is not working for PO text.
Upesh khairnar.Hi!
try using Purchasing Inforecord for this. in here you maintain master data linkage for Material Master and Vendor Master. You will just have to input the Material Number, the Vendor Account, and the Purchasing Org. In here you can maintain the PO text defaulted per Material Number. After the maintenance of Inforecord, the PO text will be reflected on the PO document.
Here is the ff Transaction Code:
- ME11 (Create Inforecord)
- ME12 (Change Inforecord)
- ME13 (Display Inforecord)
Hope this helps, Thank you.
Mik
Maybe you are looking for
-
Hi experts, Would you please help me out to understand about give below error : "Nothing generated for period parameter 29 on key date 18.11.2010" Where in 18.11.2010 is the hiring date of employee and 29 is the pay roll area. I have cross checked a
-
Plant address field zip_code and city
Is there a way to make these fields not required? Thanks Will reward any help
-
1) Does anyone here know the legal position regarding purchasing second hand software? Are people allowed to sell their software with the license keys to a new purchaser. If they have lost the key but the disks are clearly genuine Apple supplied (wit
-
Publishing through Portal - "Connection to backend system failed"
We are having a problem publishing documents through our SAP Portalu2019s service u201CPublish Course Contentu201D under Course Administration. When we go to publish, we get a status u201CConnection to backend system failedu201D with the message u201
-
I have done the following. 1 Bildscan with 300 dpi. 2. Import in Iphoto 3. with iPhoto i cutted out the part i needed 4. Edit with gimp to find out the actual DPI ==> result 72 dpi My question May I use this Phot in a Photobook? (apple recomends at l