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к
Similar Messages
-
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 -
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 using function module parameters in abap program
i want to use the coding present in on one of the function module 'AS_API_INFOSTRUC_FIND' i got the problem using the function module parameters in my abap program.
these are the parameters inside fm
""Lokale Schnittstelle:
*" IMPORTING
*" VALUE(I_FIELDCAT) TYPE AIND_FCAT
*" VALUE(I_FIELDS) TYPE TABLE OPTIONAL
*" VALUE(I_OBLIGATORY_FIELDS) TYPE TABLE OPTIONAL
*" EXPORTING
*" VALUE(E_INFOSTRUC) TYPE AIND_DESC
*" REFERENCE(E_ALL_FIELDS) TYPE TABLE
*" REFERENCE(E_MATCHING_FIELDS) TYPE TABLE
*" EXCEPTIONS
*" NO_INFOSTRUC_FOUND
i want to declare E_ALL_FIELDS parameter in my abap program,
i have declared as
data: E_ALL_FIELDS TYPE TABLE.
but the system throws error that
'type of field 'TABLE' is generic .no table line has been specified'.
i want to use it in my abap program how can i declare in my abap program .You have to declare the table using any specific type.
The type table in the FM is generic so you can pass any type you need.
For instance:
TYPES: BEGIN OF ty_fields,
fieldname LIKE dfies-fieldname,
END OF ty_fields,
TYPES: TY_T_GLU1 LIKE GLU1 OCCURS 0,
ty_t_fields type ty_fields occurs 0.
DATA: lt_info_struct_fields TYPE ty_t_fields WITH HEADER LINE,
lt_matching_fields TYPE ty_t_fields WITH HEADER LINE.
CALL FUNCTION 'AS_API_INFOSTRUC_FIND'
EXPORTING
i_fieldcat = ft_fieldcat-fieldcat
i_fields = ft_fields_filled[]
IMPORTING
e_infostruc = lv_info_struct_name
e_all_fields = lt_info_struct_fields[]
e_matching_fields = lt_matching_fields[]
EXCEPTIONS
no_infostruc_found = 1. -
Error thread java : problem with the function "resume 0x***" (forum sun)
One problem with the function of jdb occured when I tried to use it to
pilot the processor with differents threads. In fact, I use a simple example with 2 threads.
I stop the two threads with two breakpoint, and I want to resume one or the other (with the function "resume 0x****"), the one wich I resumed stop again on the breackpoint and I decide again to resume one or the other. All of that to obtain a tree of execution.
I give you the code of the class and the code of jdb.
CLASS: (it's just a object Room with a variable degre that I increment and decrement with two threads increase and decrease)
public class Test{
public static void main(String[] args){
Room r = new Room();
decrease de = new decrease(r);
increase in = new increase(r);
de.start();
in.start();
class Room {
private volatile int degre=20;
public void more(){
degre += 4;
public void less(){
degre -= 3;
class decrease extends Thread{
private Room room;
public decrease(Room r){
room =r;
public void run(){
try{
while (!interrupted()){
room.less();
catch(InterruptedException e) {}
class increase extends Thread{
private Room room;
public increase(Room r){
room =r;
public void run(){
try{
while (!interrupted()){
room.more();
catch(InterruptedException e) {}
JDB:
Initializing jdb ...
stop at Test:7Deferring breakpoint Test:7.
It will be set after the class is loaded.
runrun Test
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
>
VM Started: Set deferred breakpoint Test:7
Breakpoint hit: "thread=main", Test.main(), line=7 bci=30
7 in.start();
main[1] stop at room:16
Set breakpoint room:16
main[1] stop at room:20
Set breakpoint room:20
main[1] resume
All threads resumed.
>
Breakpoint hit: "thread=Thread-0", room.less(), line=20 bci=0
20 degre -= 3;
Thread-0[1] threads
Group system:
(java.lang.ref.Reference$ReferenceHandler)0x10d Reference Handler cond. waiting
(java.lang.ref.Finalizer$FinalizerThread)0x10c Finalizer cond. waiting
(java.lang.Thread)0x10b Signal Dispatcher running
Group main:
(decrease)0x146 Thread-0 running (at breakpoint)
(increase)0x147 Thread-1 running (at breakpoint)
(java.lang.Thread)0x148 DestroyJavaVM running
Thread-0[1] resume 0x147
Thread-0[1]
Breakpoint hit: "thread=Thread-1", room.more(), line=16 bci=0
16 degre += 4;
Thread-1[1] resume 0x147
Thread-1[1]
Breakpoint hit: "thread=Thread-1", room.more(), line=16 bci=0
16 degre += 4;
Thread-1[1] print degre
degre = 24
Thread-1[1] resume 0x146 //It's here the problem, thread 0x146 have to stop on the //next breakpoint of decrease but nothing happen
Thread-1[1] resume 0x147
Thread-1[1]
Breakpoint hit: "thread=Thread-1", room.more(), line=16 bci=0
16 degre += 4;
Thread-1[1] clear
Breakpoints set:
breakpoint Test:7
breakpoint room:16
breakpoint room:20
PS: I tried many other examples with other class and other kind of breakpoints, but, in any cases, on thread doesn't manage to resume. When I try with general resume (no specification of the thread), It works but it isn't interresting for me because I want to decide wich thread continue his execution.Hi,
I have read the FAQ of the JMF.
The problem was the jar files of the JMF were not in the JRE\BIN\EXT
folder of the Java runtime!
now it works!
thanks
Reg -
Problem using two function based indexes at once!
Hello Oracle!
I've got problems using two function based indexes on geometries at once.
The problem occures, when I use a spatial join between two geometries both using function based indexes.
The test case:
CREATE TABLE quad (centroid NUMBER);
CREATE TABLE points (no NUMBER, point MDSYS.SDO_GEOMETRY);
CREATE OR REPLACE FUNCTION getQuad (centroid NUMBER) RETURN MDSYS.SDO_GEOMETRY DETERMINISTIC IS
BEGIN
RETURN MDSYS.SDO_GEOMETRY(2003, NULL, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,1),MDSYS.SDO_ORDINATE_ARRAY(centroid-5,centroid-5,centroid+5,centroid-5,centroid+5,centroid+5,centroid-5,centroid+5,centroid-5,centroid-5));
END;
INSERT INTO USER_SDO_GEOM_METADATA VALUES('quad','tiedge.getQuad(centroid)',MDSYS.SDO_DIM_ARRAY(MDSYS.SDO_DIM_ELEMENT('X', -100, 100, .0000001), MDSYS.SDO_DIM_ELEMENT('Y', -100, 100, .0000001)),NULL);
CREATE INDEX quad_idx on quad(getQuad(centroid)) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
INSERT INTO quad VALUES (0);
INSERT INTO quad VALUES (5);
INSERT INTO quad VALUES (10);
INSERT INTO points VALUES (1, MDSYS.SDO_GEOMETRY(1001,NULL,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1,1),MDSYS.SDO_ORDINATE_ARRAY(4,4)));
ALTER SESSION SET QUERY_REWRITE_INTEGRITY=TRUSTED;
ALTER SESSION SET QUERY_REWRITE_ENA[i]Long postings are being truncated to ~1 kB at this time.hi there,
For a better audience for this question, I'd look at the database forum.
guys on that will be a lot more familiar with FBIs
thanks
Barry -
Hi Guyz,
I am having small problem using LIKE function . The problem is I am using LIKE function in the WHERE clause
to compare a column to a particular value, which gets this value from the front end. If the user has a single quote in the string he entered then the LIKE function is not working because of the single quote. Is there any way I can escape the single quote like we escape '%' and '_'.
Thankyou.Mod_plsql supports bind variables, as do almost all front-end tools that deal with Oracle (and most other databases). I do not code mod pl/sql myself, but others here do, and I see bind variables in their code all the time (if I don't, they hear from me :-)).
If you pass a bind variable, the quote problem goes away. As far as I know (which is not very far), you should be able to take the string with the quote directly from your input field, bind it to the variable in your query and have no problems.
I suspect that the reson you are having issues is that you are just gluing strings together to create a sql statement. this is the wrong approach.
The java term for what you are looking for is prepared statement, I'm not sure what the equivalent is i mod plsql, but that should give you a start.
John -
Problem with renameTo function
Hello !
I hava got a problem on renameTo function. I can rename the short file name (for example: REPORT.TXT to REPORT.ERR), but I can't rename the long file name (for example: XXX_REPORT_20040125.TXT to XXX_REPORT_20040125.ERR). The following codes I have been used :
File f1 = new File("c:\\sunny\\data\\interfaces\\XXX_REPORT_20040125.TXT");
File f2 = new File("c:\\sunny\\data\\interfaces\\XXX_REPORT_20040125.ERR");
f1.renameTo(f2);
Thanks.JDK version? 1.1.8? 1.2.2? 1.3.1? 1.4.2? else?
Windows version? 3.11? 95? 98? 98SE? ME? NT 4? 2000? XP? 2003? else? -
Problem with 'GetType' Function calling in MSVC++
Hello
I have problem with the function in TestStand API .
When I call the function " GetType " with the following statements in
a DLL called from TestStand (NI) implemented in MS VC ++
, it does not work and this exception is caught by the ONLY ' try catch ' block
to catch exceptions in TestStand API giving the error message
" Unexpected operating system error".
VARIANT_BOOL ok;
VARIANT_BOOL hi;
BSTR Name;
PropertyObject *property = (*step_)->AsPropertyObject();
( *step_ is a STEP Object of type Step* *step_ )
property = property->GetPropertyObject( "TS.SData", 0);
enum TS:ropertyValueTypes i = property->GetType( "" , 0 , &hi , &ok
, &Name);//Problem
Please solve my problem.
You can email me at [email protected]
Thankyou very much.
Best regards
Fahad EjazHello,
The problem is that the Name is not initialized (the BSTR is defined as OLECHAR*). Thus, replace the
BSTR Name;
declaration with the following lines:
char buf[1024];
BSTR Name = _bstr_t(buf);
This should solve the problem.
Best Regards,
Silvius
Silvius Iancu -
Problem with CONTAINS function
Hi all!!
i got a problem with contains function. i'm running oracle 11g.
if i execute this query:
SELECT x.lid as id, x.sztitular as titular, e.szname as proName, x.szresumen as resumen, b.sztitle as catName,
f.szname as secName, d.szname as cliName, x.datecreation as datecreation
FROM CPR_PRACTICAL_CASE x,ctg_category b, CPR_CLIENT d, pro_product e, CAT_SECTOR f, CPR_PCASE_PRODUCT g, CPR_PCASE_SECTOR h,
PRO_PRODUCTCATEGORY i WHERE x.lid = g.lpcaseid and e.lid = g.lproductid and x.lid = h.lpcaseid
and f.lid = h.lsectorid and x.lclientid = d.lid and i.lproductid = e.lid and b.lid = i.lcategoryid
AND x.szlocale = 'es-ES' AND x.bavailable = '1'i get 1 row as result with the column sztitular = "rodillos de medidas"
if i only add one more sentece to that query:
AND CONTAINS( x.sztitular, 'rodillos',1) >0the query returns an empty set.. i really don't understand why because the term "rodillos" is present in the row's column called "sztitular"...
i've put an index on that column:
create index ITXT_TITULAR on CPR_PRACTICAL_CASE(sztitular) INDEXTYPE IS CTXSYS.CONTEXT;any help?
many thanks!!!!
Edited by: ElMazzaX on May 21, 2012 5:51 PM
Edited by: ElMazzaX on May 21, 2012 5:53 PMHow are you synchronising the index?
http://docs.oracle.com/cd/E11882_01/text.112/e24435/ind.htm#i1008452
Also see the Oracle Text forum:
Text -
Problem facing in Function module.
Hi friends,
Happy New year to all.
I am facing the problem while crating Function module.
As my requirement:
I need to call this Function module in SAP-BW application area. I am creating this in BW side(SE37).
The intenal table which i am passing to the function module will vary. The structure is not constant.
Data is flowing from one table(source table) to another table(Destination table) . In BW if we want to refer the data in source table in START ROUTINE while loading, we use SOURCE_PACKAGE internal table.
1) I am passing Source_package internal table as ITAB_SOURCE_PACKAGE. (this source_package strucute also not canstant, it will vary)
2) passing second internal table as ITAB1, this structure also vary. I will declare this structure before calling the function module.
In Function module Table tab i given as
PARAMETER TYPE Associated Type
ITAB1 LIKE ANY
ITAB_SOURCE_PACK LIKE ANY
In Import tab:
SOURCEINFOOBJECT pass value
In source code i written as
DATA: WA_SOURCE_PACK like line of ITAB_SOURCE_PACK.
DATA: WA_ITAB1 like line of ITAB1.
LOOP AT ITAB_SOURCE_PACK INTO WA_SOURCE_PACK.
READ TABLE ITAB1 WITH KEY SOURCEINFOOBJECT = WA_SOURCE_PACK-SOURCEINFOOBJECT
INTO WA_ITAB1.
IF SY-SUBRC NE 0.
WA_ITAB1-SOURCEINFOOBJECT = WA_SOURCE_PACK-SOURCEINFOOBJECT.
INSERT WA_ITAB1 INTO TABLE ITAB1.
ENDIF.
ENDLOOP.
(Note: this is piece of code)
While checking i am getting as error
Field "ANY" is unknown. It is neither in one of the specified tablesnor defined by a "DATA" statement. "DATA" statement. "DATA" statement.
For this what i need to do.
As i am not very good in ABAP, pls help me.
Thanks & Regard
MRKHi,
u have to do like this..decalre itab1 and ITAB_SOURCE_PACK in the tables parameter...
so change like this
In Function module Table tab do like this
PARAMETER TYPE Associated Type
ITAB1
ITAB_SOURCE_PACK
In Import tab:
SOURCEINFOOBJECT pass value
In source code i written as
DATA: WA_SOURCE_PACK type ITAB_SOURCE_PACK.
DATA: WA_ITAB1 type ITAB1.
LOOP AT ITAB_SOURCE_PACK INTO WA_SOURCE_PACK.
READ TABLE ITAB1 WITH KEY SOURCEINFOOBJECT = WA_SOURCE_PACK-SOURCEINFOOBJECT
INTO WA_ITAB1.
IF SY-SUBRC NE 0.
WA_ITAB1-SOURCEINFOOBJECT = WA_SOURCE_PACK-SOURCEINFOOBJECT.
INSERT WA_ITAB1 INTO TABLE ITAB1.
ENDIF.
ENDLOOP.
Regards,
Nagaraj -
Facing Problem in XD01 Function Exit
Hi,
I am facing the problem in XD01 Function Exit EXIT_SAPMF02D_001. whenenver i am going active the include ZXF04U01, it is always creating the Local change request. But It is should be Transportable change request. That is why, the Basic people is enabled to transport the request into Production Server.
So, How can i make the transportable change request for the same.
kindly suggest me the solution for this problem.Thank for replying,
My problem is not related to Local Object.
Function Exit was already lying in project. Problem occurs while activing the function exit. It gives the request number ( Local changes request number) but the Basis person enable to see the request number in his screen.
So, how should i make local change request to transportable change request. -
Hi all,
I am getting an error I can't solve until now.. Who can help?
The Default Trace in the EP 7.0/NWA gives the following information:
Severity: Error
Message: Problem in executing function module:[date]:com.sap.mw.jco.JCO$AbapException: (126) ERROR_IN_PDO: ERROR_IN_PDO
Category: /uwl/service
Location: com.sap.netweaver.bc.uwl.core.connect.abap.FunctionModuleActionHandler
Application: sap.com/tcwddispwda
The UWL connection tests are correct! So, who can help!
There is nothing to find in sap notes or sdn forum
Best regards,
G. LeursHi john,
I am also facing hte same issue.
when the user is trying to approve the Compleated shopping cart from the button availble in the UWL preview , I am getting the below error.
Exception type:com.sap.netweaver.bc.uwl.connect.ConnectorException Message:Wed Aug 25 12:16:52 CEST 2010 (Connector) :com.sap.netweaver.bc.uwl.connect.ConnectorException:Wed Aug 25 12:16:52 CEST 2010 (Connector) :com.sap.mw.jco.JCO$AbapException:ERROR_IN_PDO
we are not passing any ABAP role from teh SRM system.
it would be great if you can share your views regarding this.
Raji -
Performance problem with OLE_FLUSH_CALL function module
Hello Everyone,
I am facing problem with OLE_FLUSH_CALL function module (execution is taking long time which is going to be dump error).
Could you please help me in knowing solution for this problem?
Thanking you in advance.
SrinivasHi Srinivas,
the OLE_FLUSH_CALL does an RFC from ABAP backend to frontend UI. So high execution time could result from high network time, for example latency between UI and backend server.
How many UI interaction steps did you measure for the trace above? Ideally, there should only be one OLE_FLUSH_CALL per user interaction step. If its more, the application is not written in an optimized way.
Best Regards, Randolf -
Problem with the function module SO_DOCUMENT_SEND_API1
Hi Friends,
I am facing the problem wiht the function module SO_DOCUMENT_SEND_API1,
My actull requirement is : - i need to send the sap data to my externa mail id (Like as XYZ@) with out the any attachment , So i have implemented the code with the function module SO_DOCUMENT_SEND_API1.
The mail has successfully sent the sap inbox (SOST) but the mail are not reached to the external mail ID'S( XYZ@GMAIL)
i Have maintained my code lines same as below.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = wa_doc_data
put_in_outbox = ca_x
commit_work = ca_x
TABLES
packing_list = tb_packing_list
contents_txt = tb_mailbody
receivers = tb_receiver.
Can you please tell me soultion ,
Thanks
charan.Hi charan,
If u r able to see the mail in sost, then i think ur code has worked fine. if the mail is not going to outside domains from sost u need to do some configurations for that, u can find lots of configuration docs regarding mail setup in sap.
once try to pass below parameter also.
t_receivers1-rec_type = 'U'.
For configuring mail setup u need to sit with ur basis guy.
Moderator message: please do not use SMS speak.
Edited by: Thomas Zloch on Nov 23, 2010 5:51 PM
Maybe you are looking for
-
Changing layout into excel sheet.
Hi experts's, In a ALV report (not OOP's concept) i want to display changing layout fields in EXCEL sheet. please send if you have sample program. please suggest how to solve this problem. Thanks and regard pavan.
-
How to enable commenting in PDF?
Using RH9. Generating a PDF for review from WebHelp. RH shows me the Create PDF for review dialog box but the Enable commenting in Adobe Reader option is dimmed. How can I activate this feature?
-
Is this how slow rendering is expected to be?
I'm using a MBP (mid 2010) 2.8 GHz Intel Core i7 8 GB 1067 MHz DDR3 NVIDIA GeForce GT 330M 512 MB Mac OS X Lion 10.7 (11A511) Using FCP X I decided to do a little test, because the performance in the project I'm working on is driving me nuts. In my
-
How To do Initialization 2LIS_18_I0NOTIF - LO Cockpit
Hi guys..... i have used the Stocks 2LIS_03* datasources and the initialization is simple because there´s a section "Stock Management" in Initialization into LO Cockpit ...but i want to do the same with 2LIS_18_I0NOTIF but i´m not sure .... which is
-
Labview on windows c 6.00
i am working on Labview 2014. i need to confirm that does the exe created in labview2014, RUN properly on windows based HMI.?? if yes then is there any specific tool kit required for that??? in that exe i am going to work on serial data transfer. cur