Long Text at Activity Level in CJ20N
Hi all,
So, I have a typical newbie question. But somehow Im unable to find an answer to this query even by searching.
I need to print the Long Text Tab at the Activity Level (not at Project/WBS/Network level) in CJ20N using the Read_Text Function Module.
Just need info on what's the ID, Object, Name etc.
pk
Dzed,
Thanks for that valuable tip. That was exactly what i was looking for.
But unfortunately, my internal table is not getting updated even though im able to input the right parameters to the Function Module.
Here's what I've done:
DATA: BEGIN OF ist_lines OCCURS 0.
INCLUDE STRUCTURE TLINE.
DATA: END OF ist_lines.
select mandt
aufpl
aplzl
ltxa1
vornr
objnr
projn
from afvc into corresponding fields of table ist_afvc
for all entries in ist_prps
where projn = ist_prps-pspnr.
loop at ist_afvc into wa_afvc.
concatenate wa_afvc-mandt wa_afvc-aufpl wa_afvc-aplzl into wa_afvc-con3.
modify ist_afvc from wa_afvc.
endloop.
break br_abap1.
loop at ist_afvc into wa_afvc.
CALL FUNCTION 'READ_TEXT'
EXPORTING
* CLIENT = SY-MANDT
ID = 'AVOT'
LANGUAGE = 'E'
NAME = 'WA_AFVC-CON3'
OBJECT = 'AUFK'
* ARCHIVE_HANDLE = 0
* LOCAL_CAT = ' '
* IMPORTING
* HEADER =
TABLES
LINES = ist_lines
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.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endloop.
Im able to pass the right value for the variable 'WA_AFVC-CON3', but unfortunately the Internal table is not updated.
I know Im missing something here, but obviously Im too blind to notice that.
pk
Similar Messages
-
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 -
Activity Long Text from Service Notification
Hi,
We are designing a report to fetch some fields from the service notification. I am not able to get 2 fileds which are 'Notification Long Text' and 'Activity Long Text'. Can anyone help us to find out how we can bring these fields into the report?
(I can get activity text from table QMMA, but from where can I get activity long text?)
Please let us know the table names or any fucntional module to fetch these field values?
Regards,
SAMHi,
Thank you very much for your input.
I need to get the notification Activity Long Text .So which are the following parameters I need to pass to the FM READ_TEXT?
Text Name : ?
Language : EN
Text ID : ?
Text Object : ?
Please let me knowfrom where and what values I need to pass to the fileds Text name, Text ID and Text object?
Regards,
SAM -
Activity Long Text from the Notification
Hi,
We are designing a report to fetch some fields from the service notification. I am not able to get 2 fileds which are 'Notification Long Text' and 'Activity Long Text'. Can anyone help us to find out how we can bring these fields into the report?
(I can get activity text from table QMMA, but from where can I get activity long text?)
Please let us know the table names or any fucntional module to fetch these field values?
Regards,
SAMHi,
The same question i think
Language->EN, Text ID:- LTXT ,Text Object : QMMA , Name :- I think starting with 001Notification Number0001
But the simple way to identify all these are , open IW22 -> Open that Activity Longtext and goto menu ->Header -u will find Text Header details ..
Hope this helps u
regards
pushpa -
Long text problem while uploading Inspection plan through BDC.
Hi,
I am facing some problem while uploading the inspection plan. There are few MICs for which we are having long text, while uploading the inspection plan through BDC - some other long text is getting copied into the MIC's long text. After checking I came to know that in function module, read_text - some text which is stored in ABAP memory is getting copied into the inspection plan.
I am working in SAP release 4.7. I have checked with SAP notes: 97419, but it is also not satisfying.
Waiting for quick solution.
Thanks in advance.
FahiéHi a®s,
Thanks a lot for your kind reply.
My requirement is I want to maintain long text for few MICs (which are not having long texts at MIC level) in inspection plan (QP01).
When I am trying to manually assign the MIC's to inspection plan (QP01), long text is copied whereas I am not clicking the long text icon in (QP01). Long text is not maintained in MIC level, still some long text is copied to this MIC. This was also happening while uploading the inspection plan thro' BDC.
I believe what you have mentioned about function module SAVE_TEXT cannot be used here since long text is already copied before we pass the long text. Also if we pass some long text, still apart from the long text what we have passed there is some other long text copied (extra long text).
Waiting for quick solution.
Thanks in advance.
Fahié -
Create long text for network activity
Hello,
I'll create a long text for a network activity, but I found no BAPI for that.
When I create long text for an order activity I use the BAPI BAPI_ALM_ORDER_MAINTAIN. There it is possible to specifiy the long text lines.
In the BAPI BAPI_NETWORK_MAINTAIN there ist no table for specifying long text.
Did anyone know how to create a long text for an network activity?Hello Vivek,
I'll tried this too. My problem was, if I add long text to a existing network activity, everything works well. But in my programm I create a new network plan with one network activity (0010). After commit I become the correct network plan number. Then I try to add long text to the network activity. I get correct return codes but if I look in the transcation CJ20N I could not see some text. If I use the READ_TEXT function with the key I insert the text, I see the text, but not with the transaction CJ20N.
I compared the key I used in my program with the key if I insert text with transaction CJ20N. I could'nt found some differences.
SELECT SINGLE afvcp~mandt afvcp~aufpl afvcp~aplzl
INTO (mandant,aufpl,aplzl)
FROM afvcp INNER JOIN
afko ON
afko~mandt = afvcp~mandt
AND afko~aufpl = afvcp~aufpl
AND afko~aufnr = ordernumbernew.
"*Create Identifier
CONCATENATE
mandant aufpl aplzl
INTO lv_name.
header-tdobject = 'AUFK'.
header-tdname = lv_name.
header-tdspras = sy-langu.
header-tdform = 'SYSTEM'.
header-tdid = 'AVOT'.
header-mandt = sy-mandt.
header-TDLINESIZE = '079'.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
client = sy-mandt
header = header
insert = 'X'
savemode_direct = 'X'
owner_specified = ' '
local_cat = ' '
IMPORTING
function = func
newheader = newheader
TABLES
lines = lines
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5.
CALL FUNCTION 'COMMIT_TEXT'
EXPORTING
OBJECT = header-tdobject
SAVEMODE_DIRECT = 'X'
IMPORTING
COMMIT_COUNT = commit_count
COMMIT WORK AND WAIT.
For example in the debug the header ist filled with:
1 TDOBJECT C 10 AUFK
2 TDNAME C 70 210000044156300000001
3 TDID C 4 AVOT
4 TDSPRAS C 1 D
5 TDTITLE C 50
6 TDFORM C 16 SYSTEM
7 TDSTYLE C 8
8 TDVERSION N 5 00000
9 TDFUSER C 12
10 TDFRELES C 4
11 TDFDATE D 8 00000000
12 TDFTIME T 6 000000
13 TDLUSER C 12
14 TDLRELES C 4
15 TDLDATE D 8 00000000
16 TDLTIME T 6 000000
17 TDLINESIZE N 3 079
18 TDTXTLINES N 5 00000
19 TDHYPHENAT C 1
20 TDOSPRAS C 1
21 TDTRANSTAT N 1 0
22 TDMACODE1 C 16
23 TDMACODE2 C 16
24 TDREFOBJ C 10
25 TDREFNAME C 70
26 TDREFID C 4 4
In CJ20N the header is filled with
1 TDOBJECT C 10 AUFK
2 TDNAME C 70 210000044156300000001
3 TDID C 4 AVOT
4 TDSPRAS C 1 D
5 TDTITLE C 50
6 TDFORM C 16 SYSTEM
7 TDSTYLE C 8
8 TDVERSION N 5 00000
9 TDFUSER C 12
10 TDFRELES C 4
11 TDFDATE D 8 00000000
12 TDFTIME T 6 000000
13 TDLUSER C 12
14 TDLRELES C 4
15 TDLDATE D 8 00000000
16 TDLTIME T 6 000000
17 TDLINESIZE N 3 079
18 TDTXTLINES N 5 00007
19 TDHYPHENAT C 1
20 TDOSPRAS C 1
21 TDTRANSTAT N 1 0
22 TDMACODE1 C 16
23 TDMACODE2 C 16
24 TDREFOBJ C 10
25 TDREFNAME C 70
26 TDREFID C 4 -
How to fill Long Text in Accounting document in the item level.
Hi,
I need to fill Long Text field in item level of accounting document from the header texts from Billing header(say billing instructions)
I checked the user exit EXIT_SAPLV60B_008 but it didnt worked in my case. I have read the billing instructions in the Billing header using FM READ_TEXT but I am not able to save this text using FM SAVE_TEXT because for the field Long Text the parameter TDNAME is a concatenation of BUKRS(COmpany code) BELNR(Accounting doc. no.) GHAJR(fiscal year) BUZEI(line item) .
But I am not able to capture this accounting doc. number in the mentioned user exit instead I am getting Sales Invoice number and hence not able to give TDNAME parameter for FM save_text.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 -
CJ20N, auto-defaulted storage location at activity level
Hi all,
we have this problem at CJ20N (PS) screen.
At activity level, componenent overview, if user keys in the material no, a storage location is auto-defaulted
later we found out that if the material is extended to only 1 storage location, the storage will be auto-defaulted at componenet overwview, is there any setting to prevent the auto-defaulted storage .. pls adviceHi,
Carry out these IMG steps:
SPRO
Logistic Execution
Basic Shipping Functions
Shipping Point and Goods Receiving Point Determination
Set Up Storage-Location Dependent Shipping Point Determination
Assign Shipping Points According to Storage Location,,,,,,,,
Put in your combination of Shipping Conditions / Loading Group/ Plant/ Storage Location/ Proposed shipping point
Next time you create a Delivery document,, the system will pick up the above values from the Material/Customer master records and propose a Storage Location at line item number.
I just tried it and it works, let me know if this works.
Cheers,
Mohammed
Edited by: Mohammed Raheel on Jun 5, 2009 1:09 PM
Edited by: Mohammed Raheel on Jun 5, 2009 1:11 PM -
How to Populate long text(item text) from BOM CS01 to CJ20N transaction
I have requiremnt in which i need to Populate long text/item text of BOM from CS01 to CJ20N transaction(PS network)
Hi Naveen,
for anylong text related work use the functions READ_TEXT and SAVE_TEXT.
read the long text of the BOM item using the proper header and then populate the same text lines to the PS network using the new header specific to the PS network.
Prabhas. -
PO for item of service Level short and long text using sap script
Please let me know how to do the PO for item of service Level short and long text using sap script.
<MOVED BY MODERATOR TO THE CORRECT FORUM>
Edited by: Alvaro Tejada Galindo on May 5, 2009 10:25 AMHi ,
In the transaction related to PO select the path goto->header texts and then details of the texts like ID,objectname,language,name.Pass all theses details to 'READ_TEXT ' FM. Then you will get text lines described for a perticular Po ,similarly for item also.
Thanks,
Suma. -
Dear All,
In notification updating I need to fill Activity long text through BAPI function module in that BAPI I have parameters like 1. Object type, 2. Object Key, 3. Format column and 4. Long text. If enter all fields also it will not get updated. can you give me suggestion
Thanks and regards,
Krish.....Currently i am using BAPI_ALM_NOTIFY_DATA_ADD
BAPI_ALM_NOTIFY_SAVE
BAPI_TRANSACTION_COMMIT.
It is adding a activity but long text is not getting updated. -
CJ20N Project Activity Level Actual Dates Auto-Populating
Greetings All,
I have a question with regards to t-code CJ20N. Looking at the Activity level of a project, under the dates tab is a field for actual start (AFVGD-ISDD) and actual finish dates (AFVGD-IEDD). They are auto populating and we are not sure why. We do not want these fields to be auto populated. They are messing up resource allocation via CMP3 for us.
I have been looking around and have not been able to find any information on this. Any help is appreitated.
Thanks all!Hi,
Goto tcode OPST...and there is a check box propose date....
I think if you can uncheck this....w'ld solve ur problem.
Regards
Abhinay -
Activating Subscript For Inspection characteristic Long Text in T-code QE11
Hello All
I have maintained the inspection characteristic long text in QP01 as " H2O" where 2 is in Subscript.
No when I see the inspection characteristic long text in T-Code (QE11, QE12 & QE13) it appear as (H2O) & here "2" is not shown in the subscript.
So please tell how can we activate subscript for T-Codes (QE11,QE12 & QE13) so that it is displayed correctly.
Regards
Rahul BhardwajHello All
can anyone please help me out on this. I am there must be a solution for the same. -
Service / Material Long text Repetation in PO Print,
Dear ALL,
I have a requirement where in the Service activities do have a Long text going up to 1 or 2 paragraphs, these long text gets printed in the POs getting created using this service activities,
but we mainly have many service activities having the same long text description, so when i use these 5-6 service activities in the PO, the service activity long text gets repeated 5- 6 times in the POs, it is filling the PO print page,
can we have a check to restrict PO long text appearing in PO print so that it is not repeated, can we have a check and option to choose which text from Service activity to appear and which can be restricted, any check or tick box which allows to have or not have a specific Service / Material master basic data Long text in print outs.
alternatively can we maintain Long Text at Material Groups level or is there any way to maintain and bring Long texts inside POs
Thanks and regards
S Kumar
Edited by: KumarSAP&SAP on Aug 23, 2011 10:38 AMHi Kumar,
Chek with your ABAPer to achieve the Requirement , I think most of requirement can be achieve through the form set up
But i doubt that you can maintain the long text in Material group level -
How to get Long text in report from FBL3N
Hi,
I need to get Long Text from FBL3N (G/L Account Line Item Display) in my report.Can anyone tell me in which table it is stored?Hi
These long texts are not stored completely in any tables
where as the parameters of these texts like OBJECT,OBJECTNAME and ID, LANGUAGE are stored in STXH table
You have to pass these 4 parameters to the fun module READ_TEXT and to fetch the text.
Double click on the long text will goes to text editor
from menu GOTO-> HEADER you will see the above 4 paramters
see the doc of READ_TEXT fun module
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).
<b>Reward points for useful Answers</b>
Regards
Anji
Maybe you are looking for
-
Is it me? Snow Leopard is ruining my Mac experience.
I am using a Blackbook 2.16 Ghz 2 duo with 2Gb ram, and since my upgrade a couple of weeks ago everything just seems wrong. When i first installed i lost my iphoto application and had to have a service provider reinstall it. OK not a big problem. But
-
Getting records where date got hour or minute or seconds
Hi, I have a date column in database in this format. yyyy-MM-dd hh24:mi:ss now I would like to find all the records where it got either hour or minute or second. Thanks,
-
Where to find Patches for L8 synths
Howdy folks. A bunch of the synths in L8 are pretty skimpy when it comes to the number of factory installed presets. Maybe its because some of the ones in particular, like the ESE or ESM, are not that sophisticated...I don't know, just guessing. Does
-
Sos Error, please!!
in new and have got this error that i can't solve in my program.. any tips to solve it? Thanks ERROR:int expected but not found in file- exiting program public static void main(String args[]) int partno; double price; String desc; int minquan; int qu
-
Could not find the log in SCUL for changes made into user.
Hi, We assigned role to user in prob system in CUA . I cannot find who has made those changes into that user. I have looked in SCUL but could not find it. I did not find any changes in SUIM. Can anybody help me hjow can i find who has added that role