Doubt in Read_text function
Hi all
I have created one support message in crmd_order solution manager. In that i have entered Description (Su99). I can see the description in SUZZ LOG. but i can read the text using function module READ_TEXT
How can i access.
Parameters
CLIENT 900
ID SUZZ
LANGUAGE EN
NAME 469D18B8C04721CFE10000000A210107
OBJECT CRM_ORDERH
ARCHIVE_HANDLE 0
LOCAL_CAT
Export parameters Value
HEADER
Tables Value
LINES 0 Entries
Result: 0 Entries
anybody help me
Hi Muthu,
check the code,
DATA: it_lines LIKE TABLE OF tline WITH HEADER LINE.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = 'LTXT'
language = sy-langu
name = '000001100184'
object ='AUFK'
IMPORTING
HEADER =
TABLES
lines = it_lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
Thanks.
Similar Messages
-
How to use read_text function module
Hi how to use read_text function module to read purchase order header text .what are all tht things to pass in ID,Name and Object
thanks,
MaheDear,
Use below code.
DATA:IT_LINE LIKE TLINE OCCURS 0 WITH HEADER LINE,
V_TDNAME LIKE THEAD-TDNAME.
V_TDNAME = PO_NUMBER.
CALL FUNCTION 'READ_TEXT'
EXPORTING
* CLIENT = SY-MANDT
ID = 'F01'
LANGUAGE = 'EN'
NAME = V_TDNAME
OBJECT = 'EKKO'
TABLES
LINES = IT_LINE.
Thanks and Regards, -
Problem in read_text function
Hi all,
I want to read multiple rows by read_text functions but it shows me single row only.
Plz help me how to read multiple rows ..>
ankita patel wrote:
> Hi kartik...
> I am using this code because I want to modify my internal table field..
>
> If i am not using it , only blank value store in internal table.
>
>
> IF NOT I_TAB-NO_OF_BOX IS INITIAL.
>
> exit.
> ENDIF.
Hi ankita,
See.
What ur code is currently doing is reading one line then
checking this condition
IF NOT I_TAB-NO_OF_BOX IS INITIAL.
exit.
ENDIF.
Condition is true so it exits.
So its not reading other lines.
do like this
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = 'B01'
language = sy-langu
name = name
object = 'EBAN'
TABLES
lines = lt_text.
if sy-subrc = 0. " This is important
loop at lt_text.
concatenate i_TAB-NO_OF_BOX lt_text-TDLINE to i_TAB-NO_OF_BOX.
endloop.
endif.
MODIFY I_TAB. "here if u want u can put this check IF NOT I_TAB-NO_OF_BOX IS INITIAL. but i think its not required as now we are looping at lt_text only if sy-subrc is 0
кu03B1ятu03B9к -
Print the head text in a Smartforms - READ_TEXT Function
Hello,
I have a huge problem to print a MM document's. I need show the text head in the footer of the document. For this i use the READ_TEXT function. To use this function i enter to vl03n transaction, enter the document number, go to the text head, double click, and i see the parameters = Name (document number), language (ES), id (0001), object (VBBK)...
In the smartform code I write this:
<b>DATA: leng TYPE thead-tdspras,
l_fname TYPE thead-tdname.
DATA: il_tline LIKE tline OCCURS 0 WITH HEADER LINE.
leng = 'ES'.
l_fname = is_dlv_delnote-hd_gen-deliv_numb.
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = '0001'
language = leng
name = l_fname
object = 'VBBK'
TABLES
lines = il_tline.
comentario = ''.
LOOP AT il_tline.
CONCATENATE comentario il_tline-tdline INTO comentario SEPARATED BY space.
ENDLOOP.</b>
But to try print a document with number 0012345678 through to the IDCP transaction return me the follow error:
Text 0012345678 ID 0001 language <b>EN</b> no exist
why change the language?
i see the STXH table, and i found this register:
MANDT TDOBJECT TDNAME TDID TDSPRAS
200 VBBK 0012345678 0001 S
Where is my problem?
Please, help me!!!
Regards.Hi rudiRocket,
Welcome to Numbers discussions.
Yes I see what you're talking about, never noticed it. To remove the shadow I tried numerous fonts but, still the shadow. Let's hope someone else has a better answer. Be aware folks on these Discussion boards are, as yourself end users not Apple employees.
In the mean time please read the below instructions:
Send feedback directly to the Numbers team for enhancement requests: at the top of your screen to the right of the blue Apple please click "Numbers" > "Provide Numbers Feedback". Explain in detailed what you've found. This makes your request known to the Numbers team directly; don't expect to hear back from them. I've sent many as well.
Let's hope the next version of iWork incorporates many of the requested enhancements.
Thank you in advance for doing that.
Again, welcome to Numbers Discussions, have fun here.
Sincerely,
RicD -
In the read_text function module, how to find the lines
The coding follows like this,
call function 'READ_TEXT'
exporting
client = sy-mandt
id = id
language = sy-langu
name = name
object = object
importing
header = header
tables
lines = tab
exceptions
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
others = 8.
can u provide me with the correct data form which i can read the lines.I think this code will help you to read the lines
*--LOCAL VARIABLES
DATA : LV_NAME TYPE THEAD-TDNAME,
LV_TEMP(128) TYPE C ,
*--Structure to Hold the Header Data for Func Modules
*--Read_text
X_HEADER TYPE THEAD .
CLEAR : LV_NAME ,
LV_TEMP ,
V_IND_FG ,
X_HEADER ,
IT_TLINES ,
IT_TLINES[] .
LV_NAME = P_DELV_NO .
X_HEADER-TDOBJECT = 'VBBK'.
X_HEADER-TDNAME = LV_NAME .
X_HEADER-TDID = 'ZMAN'.
X_HEADER-TDSPRAS = 'E'.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = X_HEADER-TDID
LANGUAGE = X_HEADER-TDSPRAS
NAME = X_HEADER-TDNAME
OBJECT = X_HEADER-TDOBJECT
TABLES
LINES = IT_TLINES
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.
ERROR.
CLEAR :IT_TEXT,
IT_TEXT[] .
V_IND_FG = 'X' .
EXIT .
ENDIF.
LOOP AT IT_TEXT .
IT_TLINES-TDFORMAT = '*'.
IT_TLINES-TDLINE = IT_TEXT-LINE.
APPEND IT_TLINES.
CLEAR IT_TLINES.
ENDLOOP.
Thanks,
Koshal -
Showing error in read_text function module
- Forcast ID Number: Read function module READ_TEXT where ID = Z001, Object = VBBK to get the Forcast ID. Display it on the output.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = 'Z001'
LANGUAGE =
NAME =
OBJECT = 'VBBK'
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
TABLES
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.
its showing error---unable to interprete OBJECT.possible cases of spelling or comma errorLook at the Bold ones ... U need to give values for
language and name
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = 'Z001'
LANGUAGE = ' '
NAME = ' '
OBJECT = 'VBBK'
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
TABLES
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. -
Hi,
I have a doubt in one of the abap function module i use.
This contain code to retrieve ,update and delete and create values in table. I am using this function module to
retrieve ,update and delete and create values in table. This is the ABAP code.
FUNCTION ZUP_DESIG12.
*"*"Local Interface:
*" IMPORTING
*" VALUE(DESG_CODE) TYPE ZUP_DESIG-DESG_CODE OPTIONAL
*" VALUE(DESG_DESC) TYPE ZUP_DESIG-DESG_DESC OPTIONAL
*" VALUE(DESG_ACT) TYPE ZUP_DESIG-DESG_ACT OPTIONAL
*" VALUE(DESG_OPT) TYPE ZUP_DESIG-DESG_OPT OPTIONAL
*" EXPORTING
*" VALUE(DESG_CODE_C) TYPE ZUP_DESIG-DESG_CODE
*" VALUE(DESG_DESC_C) TYPE ZUP_DESIG-DESG_DESC
*" VALUE(DESG_ACT_C) TYPE ZUP_DESIG-DESG_ACT
*" VALUE(DESG_OPT_C) TYPE ZUP_DESIG-DESG_OPT
*" TABLES
*" WA STRUCTURE ZMSTR_DESIG
DATA CNT TYPE I.
SELECT MANDT DESG_CODE DESG_DESC DESG_ACT FROM ZMSTR_DESIG
INTO TABLE WA.
IF DESG_OPT = 'U'.
UPDATE ZMSTR_DESIG
SET DESG_DESC = DESG_DESC
DESG_ACT = DESG_ACT
WHERE DESG_CODE = DESG_CODE.
MESSAGE 'Updated Successfully' TYPE 'I'.
ELSEIF DESG_OPT = 'C'.
SELECT COUNT( * ) FROM ZMSTR_DESIG INTO CNT
WHERE DESG_CODE = DESG_CODE.
IF CNT > 0.
MESSAGE 'Duplicate Designation code' TYPE 'I'.
ELSE.
WA-DESG_CODE = DESG_CODE.
WA-DESG_DESC = DESG_DESC.
WA-DESG_ACT = DESG_ACT.
MODIFY ZMSTR_DESIG FROM WA.
MESSAGE 'Inserted successfully' TYPE 'I'.
ENDIF.
ELSEIF DESG_OPT = 'D'.
DELETE FROM ZMSTR_DESIG WHERE DESG_CODE = DESG_CODE.
MESSAGE 'Deleted successfully' TYPE 'I'.
ENDIF.
ENDFUNCTION.
can any one what is wrong in this function.
Regards,
H.V.SwathiMy doubt is how to write code to insert data to table. I have written code like this.
try{
String str1= wdContext.currentTestElement().getCode();
String str2= wdContext.currentTestElement().getDesc();
boolean str3= wdContext.currentTestElement().getAct();
String str4= wdContext.currentTestElement().getOpt();
String str5;
if(str3)
str5=new String("x");
else
str5=new String(" ");
Zup_Desig12_Input input=new Zup_Desig12_Input();
input.setDesg_Code(str1);
input.setDesg_Desc(str2);
input.setDesg_Act(str5);
input.setDesg_Opt(str4);
wdContext.nodeZup_Desig12_Input().bind(input);
wdContext.currentZup_Desig12_InputElement().modelObject().execute();
}catch(Exception e)
wdComponentAPI.getMessageManager().reportSuccess(e.toString());
But i am getting java.lang.ArrayIndexOutOfBoundsException: -1
in line
input.setDesg_Act(str5);
can any one help me plz -
Hi all
I have created one support message in crmd_order. In that i have entered Description (Su99). I can see the description in SUZZ LOG. but i can read the text using function module READ_TEXT
How can i access.
Parameters
CLIENT 900
ID SUZZ
LANGUAGE EN
NAME 469D18B8C04721CFE10000000A210107
OBJECT CRM_ORDERH
ARCHIVE_HANDLE 0
LOCAL_CAT
Export parameters Value
HEADER
Tables Value
LINES 0 Entries
Result: 0 Entries
anybody help meDear Muthu Kumar,
If you are referring to message text, you can access it from Table T100.
You can access the text for the comibation of:
SPRSL - Language Key
ARBGB - Application Area
MSGNR - Message number
If you are referring to text entered in Transaction SU99:
You can access the text from Table SUKRIT field TEXT.
Go to SE16 -> enter table name SUKRIT -> Click on Table Contents icon or press enter -> enter proper selection criteria -> choose execute or (Key F8).
Go to SE11 -> enter table name SUKRIT choose database table radiobutton -> choose display -> click on Contents icon from application tool bar -> enter proper selection criteria -> choose execute or (Key F8).
You can access the text for the combination of:
SPRSL - Language Key
TCD1 - Transaction Code
TCD2 - Transaction Code
TCD3 - Transaction Code
TCD4 - Transaction Code
TCD5 - Transaction Code
Regards,
Naveen. -
Doubt in keyPressed() function!
Hi to all,
Im doing project in J2ME. In my source code, i used keyPressed() function to get the user's choice by using switch case.Now my doubt is, should i use one more keyPressed() function in inside my previous keyPressed() func.(i.e. nested keypressed() func)?.. For eg: In my application, there will be four choices.. 1.Cars 2. Bikes 3.Mobiles 4.exit...If an user press the key '3' means, i need to giv him one more choice screen like 1.Nokia 2.Sony ericsson 3.Motorola.. If an user press '2' means, have to display the info about sony ericsson...Right now im using code like the following:
public void keyPressed(int key)
switch(key)
case KEY_NUM1:
break;
case KEY_NUM2:
break;
case KEY_NUM3:
break;
case KEY_NUM4:
break;
Now my doubt is....Should i use like the following:
public void keyPressed(int key)
switch(key)
case KEY_NUM1:
break;
case KEY_NUM2:
break;
case KEY_NUM3:
public void keyPressed(int key)
switch(key)
case KEY_NUM1:
break;
case KEY_NUM2:
break;
case KEY_NUM3:
break;
case KEY_NUM4:
break;
break;
case KEY_NUM4:
break;
}My doubt is how to write code to insert data to table. I have written code like this.
try{
String str1= wdContext.currentTestElement().getCode();
String str2= wdContext.currentTestElement().getDesc();
boolean str3= wdContext.currentTestElement().getAct();
String str4= wdContext.currentTestElement().getOpt();
String str5;
if(str3)
str5=new String("x");
else
str5=new String(" ");
Zup_Desig12_Input input=new Zup_Desig12_Input();
input.setDesg_Code(str1);
input.setDesg_Desc(str2);
input.setDesg_Act(str5);
input.setDesg_Opt(str4);
wdContext.nodeZup_Desig12_Input().bind(input);
wdContext.currentZup_Desig12_InputElement().modelObject().execute();
}catch(Exception e)
wdComponentAPI.getMessageManager().reportSuccess(e.toString());
But i am getting java.lang.ArrayIndexOutOfBoundsException: -1
in line
input.setDesg_Act(str5);
can any one help me plz -
Hi ,.
In the Function Module :MS_CONVERT_TO_OTHER_CURRENCY.
I have to export following parametes:
DATE
FROM_CURRENCY
FROM_AMOUNT
TO_CURRENCY
COMPANY_CURRENCY
RATE (optional) .
Here my doubt is :what is the purpose of COMPANY_CURRENCY .What value i have to populate here , how i have to find the company currency?
I think we have to find this COMPANY_CURRENCY based on the sales organization.
Please update me regarding this COMPANY_CURRENCY .
Thanks,
Suresh.Have you tried using 'CONVERT_TO_FOREIGN_CURRENCY' instead?
DATA: v_amount TYPE p DECIMALS 2.
CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY'
EXPORTING
date = sy-datum
foreign_currency = 'INR'
local_amount = '1.00'
local_currency = 'USD'
IMPORTING
foreign_amount = v_amount
EXCEPTIONS
no_rate_found = 1
overflow = 2
no_factors_found = 3
no_spread_found = 4
derived_2_times = 5
OTHERS = 6.
IF sy-subrc = 0.
WRITE: / 'US dollar to Indian rupees - ', v_amount.
ENDIF. -
Hi,
I am new to oracle , i have a doubt : I have written a query using analytical functions to get the desired , but i wanted the same in a normal query .
INPUT TABLE :
NAME AMOUNT
A 100
A 200
A 300
B 200
B 300
C 300
Query : SELECT name,AMOUNT,ROW_NUMBER( ) OVER (PARTITION BY name order by name NULLS LAST) SRLNO
FROM data ORDER BY name, SRLNO;
output table:
NAME AMOUNT SRLNO
A 100 1
A 200 2
A 300 3
B 200 1
B 300 2
C 300 1
QUESTION: I wanted the same output table with normal SQL quey , but i don't want to use any partition statement here (nor any analytical functions) .
Please provide solution for this .i don't want to use any partition statement here (nor any analytical functions) .Why not? What you want to do is what analytics does. I get suspicious when anybody - but especially somebody who's new to Oracle - aks how to do something different from using the built-ins provided by Oracle.
I wanted the same output table with normal SQL queySo you're ruling out Pipelined functions and MODEL clauses? Or not?
Cheers, APC
blog : http://radiofreetooting.blogspot.com -
Doubt in enqueue_array functionality
Hi,
I am using enqueue_array function to insert multiple rows in the queue. Payload type is user defined object (obj) containing one attribute: JMS Message. If I create a type (tbl) which is table of obj at the schema level then enqueue_array works perfectly and inserts all the rows into the queue.
But If I don't declare a type at the schema level and instead declare it in the pl/sql block, then enque_array function doesn't work. I don't get any error but no row gets inserted in the queue.
My doubt is why no row is getting inserted in the 2nd case? Does Oracle treats the 2 types in different ways? Please clarify. Thank you.Hi,
I am using enqueue_array function to insert multiple rows in the queue. Payload type is user defined object (obj) containing one attribute: JMS Message. If I create a type (tbl) which is table of obj at the schema level then enqueue_array works perfectly and inserts all the rows into the queue.
But If I don't declare a type at the schema level and instead declare it in the pl/sql block, then enque_array function doesn't work. I don't get any error but no row gets inserted in the queue.
My doubt is why no row is getting inserted in the 2nd case? Does Oracle treats the 2 types in different ways? Please clarify. Thank you. -
Doubt in GUI_UPLOAD function
Hi friends,
CALL FUNCTION 'GUI_UPLOAD '
EXPORTING
FILENAME = FILE
FILETYPE = 'ASC'
*HAS_FIELD_SEPARATOR = 'X'
TABLES
DATA_TAB = ITAB.
In the GUI_UPLOAD function what the filetype should be and has_field_separator should be given what value? What does it mean.How should i prepare the file for example for VA01 transaction if i have a file like this it is not working. What is the problem. I am new to BDC so i need your help on this.
Thanks in Advance.try the following.
DATA: begin of ITAB occurs 0,
field1 type char10,
field2 type char10,
end of itab.
data: filename type string value 'C:\TMP.TXT'.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = filename
FILETYPE = 'ASC'
TABLES
DATA_TAB = itab.
loop at itab.
write:/ itab-field1, 20 itab-field2.
endloop.
create a file with tab-delimitations. -
Doubt in update function module
dear friends..
i have created an UPDATE function module with Processing type- Update Module, Start Immediate. i have handled the exceptions using Raise statement in the function module..
the call function looks as..
CALL FUNCTION 'ZFI_LCTXN_TABLES_UPDATE'
in update task
EXPORTING
ZLCTMB1 = p_lctmb1
NU_ENTRY = p_global-ins_zlctmb1
TABLES
UPD_PO = UPD_PO
UPD_SH = UPD_SH
EXCEPTIONS
ERROR = 1
OTHERS = 2.
p_subrc = sy-subrc.
commit work.
but if the update fails, and even though the RAISE ERROR works, and update termination message is registered in SM13, i dont get the value for sy-subrc as 1 .
is it the right way..if yes please tell me how to generate an error message within the transaction..so that the user knows the update has failed..
thank you for your time
NivinHi,
Maybe it's usefull for you.
<b>
IF sy-subrc EQ 4.
MESSAGE e001 RAISING not_found.
ELSEIF sy-subrc EQ 8.
MESSAGE e002 RAISING not_found.
ELSE.
ENDIF.</b>
Using this to create a message and raise in the same time !
Regards.
Marcelo Ramos -
Hi,
I am creating one RFC in that i need to declare one import parameter whose length is is.
when i am giving like i_exclide like kna1-loevm is not accepting.
when i am declaring like i_exclude like char1.
it is giving error like reference parameters are not allowed in RFC.
anybody can tell me how to declare.
thanks,
maheedharHi,
Go to se37,
Give ur RFC function module and click change.
Go to "Import" tab , you can find a checkbox "Pass Value" , check this checkbox.
Now you try to compile the code , you wont get that error.
Reward points for useful answer.
Thanks,
Jey
Maybe you are looking for
-
N97 Mini can no longer be found on iPhoto.
hey, will some one kind enough to sort me out this ' dreadful problem , my N97 mini has been working fine with iPhoto, getting images/ videos off my phone, now when i plug it in, i click Mass storage and nothing on iPhoto changes, everything else wor
-
Based on the examples here and here I have a datagrid which uses an XML object as its dataprovider. The xml goes like this: <questions> <question> <prompt>What are your heroes?</prompt> <answers> <answer> <correct>true</correct> <text>Luther Higgs</t
-
MM03 - Adding extra Field in Existing Screen
Requirement is : MM03---Select view --Basic Data -- Additional Data (On Application tool bar) --- Additional Ean tab. In Additional EAN tab there are 6 fields already available , i need to add one more field.. a) I checked for user exits , Badi's a
-
Best practice migration 10.4.11 G4 PPC to Intel server
We are ready to upgrade our aging server to a new Intel system. I am wondering the easiest approach. The current server is not running the Universal 10.4. I don't believe there is any viable option that doesn't require lots of hands on rebuilding to
-
Ejb Client Access (ClassCastException)
This is the problem which i am facing for two weeks. My deployment is doing fine. When i try to run my Client i get an error like java.lang.ClassCastException and some sentences related to PortableRemoteObject.narrow. I am not able to fix the bug. Ca