Regarding Read report
Hi all,
I have to read a report code along with all include files.
Is there any other way besides
Read report prg_name into itab.
As this is just providing main program source code.
I need main program source code along with include file code
so that i can perform a syntax check on a include file at runtime.
Thanks,
Smita
Hi,
Use this FM.
CALL FUNCTION 'RPY_PROGRAM_READ'
EXPORTING
LANGUAGE = SY-LANGU
PROGRAM_NAME = ITAB-PROGNAME
WITH_INCLUDELIST = 'X'
ONLY_SOURCE = ' '
ONLY_TEXTS = ' '
READ_LATEST_VERSION = ' '
WITH_LOWERCASE = ' '
IMPORTING
PROG_INF = WS_RPY_PROG
TABLES
INCLUDE_TAB = ITAB_INCLUDE
SOURCE_EXTENDED = ITAB_SOURCE
TEXTELEMENTS = ITAB_TEXTS
EXCEPTIONS
CANCELLED = 1
NOT_FOUND = 2
PERMISSION_ERROR = 3
OTHERS = 4.
Hope it will help.
Issa
Similar Messages
-
READ REPORT for specific version
I'm using function module RPY_PROGRAM_READ that calls READ REPORT.
However I'd like to get the code for a previous version. The READ REPORT is very limited with it's options and I can't find a function module (RFC enabled) that does this. Any suggestions?
Thank you and best regards!Check the Standard Program RSVRSRS1
OBJNAME = <Program Name>
OBJTYPE = REPS
VERSNO = <Version Number>
Kanagaraja L -
"Error reading reporting point information" message no. RM111
Hello friends,
I am doing the Reporting point backflush for a material and getting the error "Error reading reporting point information", message no. RM111.
i have given the milestone confirmation for the last operation in the rate routing for that material.
Even in REM Profile, Mandatory Reporting time backflush is activated.
In the production version of that material i have given the group of rate routing created for that material in Rate Routing field.
I have created the product cost collector for that material and production version. With costing lot size 1, even i have calculated the cost for that product cost collector. Though regarding costing couple of errors came, than also i saved it.
I am not sure whether system has created the reporting point while creating the product cost collector.How to check it?
Now for that material we have created the planned order.
Now when i am doing the backflush in MFBF t.c by giving the material code,plant and production version, system is throwing the error " Error reading reporting point information.
Thanks and Regards,
JitendraHello siva,
i executed the transaction MF30 as suggested by you, there system displayed following costing errors:
"No control record for Activity type PLVD/1301/ASBY in version 000 / 2010 activity planning/qty planning
Message no. KL023
Diagnosis
No activity planning or quantity planning has been carried out for Activity type PLVD/1301/ASBY in version 000 and fiscal year 2010.
Procedure
Activity Type Planning for cost centers or
Planning Quantities and Prices for business processes.
Even system is not picking the component prices, system throwing the error NO price could be determined for the material and batch so and so.
We are using the Preliminary cost estinmate.
is because of this system is not able to create reporting point in product cost collector?
Please Replay -
Error: Could not read reports properties. java.lang.NullPointerException
Hi All,
I am facing Could not read reports properties. java.lang.NullPointerException while trying to run the report using below string
String:_
/rcrmap2/weblogic/bea/ORA_PFRD/bin/rwrun module=/rcrmkr1/exe_dir/CA_PG1_T.rdf CUSTGRPID=''001139'' CANO=104 CACOPY=''F'' OPTION=''W'' CCODE=''KR'' USERID=apl_D_RCRMNIU3/Q5e3C4l1FPjrG6epG6f3C4dqFMgsDP@krcrmd DESTYPE=FILE DESNAME=/rcrmkr1/crms_RG/rep_dir/gcapg1_to_test_20110112_121902.rep BATCH=YES MODE=CHARACTER DESFORMAT=/rcrmap2/weblogic/bea/ORA_PFRD/reports/printers/wide.prt pagesize=132x80
Environment Variables :*
export ORACLE_LOCALPREFERENCE=/rcrmap2/weblogic/bea/rcrms/config/FRComponent/frcommon/tools/admin/
export WIDE_DEF=/rcrmap2/weblogic/bea/ORA_PFRD/reports/printers/hplwide.prt
export WIDE_VIW=/rcrmap2/weblogic/bea/ORA_PFRD/reports/printers/wide.prt
export REPORTS_FONT_DIRECTORY=/rcrmap2/weblogic/bea/rcrms/reports/fonts
export REPORTS_TAGLIB_URI=/WEB-INF/lib/reports_tld.jar
export REPORTS_NO_DUMMY_PRINTER=TRUE
export REPORTS_TMP=/tmp
export RW=/rcrmap2/weblogic/bea/ORA_PFRD/reports
export LD_LIBRARY_PATH=/rcrmap2/weblogic/bea/ORA_PFRD/jdk/jre/lib/ppc64:/rcrmap2/weblogic/bea/ORA_PFRD/jdk/jre/lib/ppc64/classic:/rcrmap2/weblogic/bea/ORA_PFRD/lib:/usr/dt/lib:
export LIBPATH=/rcrmap2/weblogic/bea/ORA_PFRD/lib:/usr/dt/lib:/rcrmap2/weblogic/bea/ORA_PFRD/jdk/jre/lib/ppc64:/rcrmap2/weblogic/bea/ORA_PFRD/jdk/jre/lib/ppc64/classic:/usr/lpp/cobol/lib:/oracle/oracle/11.1.0.7/lib:/oracle/oracle/11.1.0.7/lib32:/rcrmkr1/exe_dir/pvcs_12july/pco:.
export LDR_CNTRL=USERREGS@MAXDATA=0x80000000
export TK_ICON=/rcrmap2/weblogic/bea/ORA_PFRD/reports/plugins/resource
export REPORTS_DEFAULT_DISPLAY=NO
export REPORTS_CLASSPATH=/rcrmkr1/exe_dir:/rcrmap2/weblogic/bea/ORA_PFRD/reports/jlib/rwbuilder.jar:/rcrmap2/weblogic/bea/ORA_PFRD/reports/jlib/rwrun.jar:/rcrmap2/weblogic/bea/ORA_PFRD/jlib/zrclient.jar:/rcrmap2/weblogic/bea/ORA_PFRD/modules/oracle.jsp_11.1.1/ojsp.jar:/rcrmap2/weblogic/bea/ORA_PFRD/javacache/lib/cache.jar:/rcrmap2/weblogic/bea/ORA_PFRD/modules/oracle.javacache_11.1.1/cache.jar
Please help to provide your inputs
Regards,
HarishHi,
The problem was resolved by setting proper acl's to the corresponding directories (cache directory) in the application server
Regards,
Harish -
Regarding reading a function group
Hi,
I have a functionlaity like this:
I have a selection screen whcih accepts the function group name...
based on this i have to select all the function modules, includes, text elements if any, etc...in that
group...
is there any read statement to read the function group like READ REPORT & READ TEXTPOOL...
or give me the logic how to get this functionality
I got the tables TLBIT which gives the fucntion group..
Is there any means to fetch the data from this table..
hope u guys got my question..
thanks..
regards
raghuHi,
if you have Function group with you then concatenate the SAPLZ to that in the beginning. and then use READ REPORT
in side that you can get all the includes, now if you want FM's then take the include *****XX , read that include with read report then you can find the FM's in it.
read textpool of SAPLZFUNCGROUP. you will textelements etc.
Regards
vijay -
Hi !
Sir I have some questions regarding word report generation using(C language in labwindows) Please.
1.How can i add border to a word page?.
2.How can i add border and grid lines to a table generated in word report(Not the " cvi table control" inserted from gui,i am asking about the table generated in word report)?
3.How can i fill a cell of word report table withe the data type other than "character"?.
And sir one question about use of timer in cvi labwindows please.
Sir i'm trying to set minimum delay interval of timer control to 1millisecond(0.001s),as i set ,timer don't cares of the interval that is set by me it responds only to the default minimum time interval which is i think 10milliseconds(i'am using windows xp service pack3 version 2002).
Regards
Imran
Pakistan
Solved!
Go to Solution.Hello sir!
Sir i'm using daq6251.But Sir before implimenting it to my final application now i'm just trying to achieve 1millisecond time interval for timer in a vary simple programe i mean at this time no hardware (daq device) is involved i,m just trying to achieve minimum time interval of 1millisecond.
Sir i read form "help" of labwindows how this time interval can be set,i'm trying for,as described in help notes but i could'nt.I'm attaching a screen shot sir for you it may helpful for you to explain me.
And sir also waiting for your kind reply regarding word report generation.
Thanks.
Imran.
Attachments:
screen_shot_rigistry.docx 65 KB -
Unable to read report metadata
I have a report from SSRS2008R2 in user in PP2007 which works there properly.
When I try to use it in PP2010 I get "Unable to read report metadata" every time I try to change the default value of the parameters.
In PP2007 it all works properly.
thanksAfter analysing network traffic, I found that Report server returns an error to dashboard designer because a parameter is set as "read only".
This means that there is a parameter that has been set to internal in the report.
The important thing is :
Note: Publishing a report over an existing report on the report server does not overwrite the parameter information.
To update parameters for an existing report, either delete the report on the report server and republish, or update the parameter information for the report in Report Manager.
To modify the parameters information, open the report server. Go to your report, and select Manage, then Parameters ( on the left panel).
Internal parameters appears with unselected textbox for Hide and Prompt. Select Hide and then Apply.
Go back to Dashboard designer, you can now update the parameter values.
Regard,
Franck -
Error reading reporting point information
Dear All,
While i m doing backflashing with the tcode mfbf recving a error messge in reporting piont this -
Error reading reporting point information kindlly update me how can i resolve this
regards
pritpalDear pritpal.
Check the rem profile at MRP view of Material master (MM02). the correct profile has been selected sotaht it allows the RP backflush.
To check Rem profile allows RP back flush at OPS2.
For Milestone confirmation check wth controlkey which has assigned at Routing operation (CA02)
For Product cost collecter check with KKF6N.
Regards
Pradeep -
How to make "Read Report" pick up enhancement code as well
I want to enhance a SAP ECC6 program - H99CWTR0 (Wage type reporter). I need to add some more master data objects from other HR tables.
I have succesfully applied implicit enhancements to this program to allow my users to select extra data objects and to retrieve the relevant data from the database. However, the program reads a subroutine pool called H99CWTR0_ALV_TEMPLATE and makes dynamic run time changes and generates a temporary subroutine pool. I have also had to apply implicit enhancements to the template but this is not read by H99CWTR0. So I am unable to to keep the shared data segment in line with the driver program H99CWTR0 which leads to an ABAP dump.
I would prefer to make all changes to SAP programs using the enhancement framework rather than having to clone SAP programs into the "Z" namespace.
Is there a way of making the "Read report" pick up the implicit enhancement code as well as all the other includes in the template?Hi Prabhu
The dump text said -
"The length of COMMON PART "DRIVER_DATA_EXCHANGE" in program "%_T0DYT0" is different from the corresponding area in the calling program "H99CWTR0".
Length of the COMMON PART in program %_T0DYT0: 1224 bytes
Length of the COMMON PART in program H99CWTR0: 1232 bytes
There is probably an error in the program "H99CWTR0"."
My enhancement to H99CWTR0 is being accessed, but the equivalent enhancement to H99CWTR0_ALV_TEMPLATE is not. Hence the discrepancy in the length of common shared data segment.
The ABAP line "read report iv_template into lt_code." in include H99CWTR0_FORMS is not reading the implicit ehancement code I added. So when the ABAP line "generate subroutine pool lt_code name ov_driver message mm line ll" is called to generate the temporary subroutine code my code is lost.
Regards
Phil Smith -
Dear All,
I have a requirement where i need to read the source code of a report into an internal table along with the line number.
We have READ REPORT programname INTO tablename but in this case i will get only the source code.
Ex : If the source code of programname is
DATA : a TYPE c,
b TYPE c,
c TYPE c.
a = 'A'.
b = 'B'.
CONCATENATE a b INTO C.
WRITE: c.
If i do a read report for the above program i will get output in my table as
TEXT LINENO
DATA : a TYPE c,
b TYPE c,
c TYPE c.
a = 'A'.
b = 'B'.
CONCATENATE a b INTO C.
WRITE: c.
What i need is something like the below.
TEXT LINENO
DATA : a TYPE c, 1
b TYPE c, 2
c TYPE c. 3
a = 'A'. 4
b = 'B'. 5
CONCATENATE a b INTO C. 6
WRITE: c. 7
I dont want to do a loop and add line numbers to each line as it may take time when the souce code is large.
Thanks,
Hari Prasad>
rajesh kumar wrote:
> Hi ,
>
> Check out this prog , we can easily display the line no .
>
>
REPORT ZDEMO .
>
> TYPES: BEGIN OF T_TYPE,
> LINE(72),
> END OF T_TYPE.
>
> DATA: PROGRAM LIKE SY-REPID VALUE 'YSCR_RPTRD00006_HOT_PICK',
> ITAB TYPE STANDARD TABLE OF T_TYPE WITH
> NON-UNIQUE DEFAULT KEY INITIAL SIZE 500 ,
> WA TYPE T_TYPE.
>
> READ REPORT PROGRAM INTO ITAB.
> IF SY-SUBRC = 0.
> LOOP AT ITAB INTO WA.
> WRITE :/ sy-tabix ,WA-LINE .
> ENDLOOP.
> ENDIF.
>
>
> Regards ,
> Rajesh .
You are anyway looping the full report. Which he does not want. -
Regarding read and compare of internal table.
HI,
i want to read internal table based on key pernr.
suppose if we load the dec month data we want the last record of that month.
if we load march 2008 data we want todays record.
for this there are two fields datefrom and dateto.
how to compare thesse two fields in read statement.
regards,
swami.Hi,
Check this code
loop at itab.
endloop.
if month = december
read table itab with key sy-tabix = sy-dbcnt.
"above stmt will fetch the last record
elseif month = march
read table itab with key sy-tabix = 1.
"above stmt will fetch the first record.
endif.
Reward if helpful.
Regards. -
Help needed regarding ALV report
Hi,
I have a query regarding ALV report.
The requirement is as follows:-
When the user executes the ALV report and if he sums one numeric field column values and filters out some of the field columns ( for example there r 5 columns in the report and the user has filtered out 2 of them and viewing only 3 columns)
and now the requirements is that when the user runs the report later he should see the modified report ( i mean only 3 cloumns and the total value of the column which he has made) but not the original output which was there when the report was developed.
First of all i wanna know is it possible to do r not. If yes then how
Hope u have got what i want.
eagerly waiting for ur reply.
regards,
maqsoodHi
Yes you can! You have to manage the layout variant.
So when you call your ALV you have to set the parameter I_SAVE = 'A'.
In this way you'll allow the user to save the variants for layout.
After you has to have a chance to choose the variant in selection-screen.
See the demo program BCALV_GRID_11 to manage the variant in selection-screen.
Max -
Hi All,
Yesterday i submitted a query regarding Interactive reports.and i recieved lots of reply .But the replies are all about ALV interactive report.I want to know just about the interactive reports where ew use AT LINE OF SELECTION, HIDE e.c.
PLZ send methe documents related that.
Thanks and Regards
RASHMIHi
Interactive Reports
As the name suggests, the user can Interact with the report. We can have a drill down into the report data. For example, Column one of the report displays the material numbers, and the user feels that he needs some more specific data about the vendor for that material, he can HIDE that data under those material numbers. And when the user clicks the material number, another report (actually sub report/secondary list) which displays the vendor details will be displayed.
We can have a basic list (number starts from 0) and 20 secondary lists (1 to 21). Events associated with Interactive Reports are: 1. AT LINE-SELECTION 2. AT USER-COMMAND 3. AT PF<key> 4. TOP-OF-PAGE DURING LINE-SELECTION. HIDE statement holds the data to be displayed in the secondary list. sy-lisel : contains data of the selected line. sy-lsind : contains the level of report (from 0 to 21)
Interactive Report Events:
AT LINE-SELECTION : This Event triggers when we double click a line on the list, when the event is triggered a new sublist is going to be generated. Under this event what ever the statements that are been return will be displayed on newly generated sublist.
AT PFn: For predefined function keys...
AT USER-COMMAND : It provides user functions keys.
REPORT ZTEJ_INTAB1 LINE-SIZE 103 LINE-COUNT 35(5) NO STANDARD PAGE
HEADING.
*TABLES DECLARATION
TABLES : KNA1, VBAK, VBAP.
*SELECT OPTIONS
SELECT-OPTIONS: CUST_NO FOR KNA1-KUNNR.
*INITIALIZATION
INITIALIZATION.
CUST_NO-LOW = '01'.
CUST_NO-HIGH = '5000'.
CUST_NO-SIGN = 'I'.
CUST_NO-OPTION = 'BT'.
APPEND CUST_NO.
*SELECTION SCREEN VALIDATION
AT SELECTION-SCREEN ON CUST_NO.
LOOP AT SCREEN.
IF CUST_NO-LOW < 1 OR CUST_NO-HIGH > 5000.
MESSAGE E001(ZTJ1).
ENDIF.
ENDLOOP.
*BASIC LIST SELECTION
START-OF-SELECTION.
SELECT KUNNR NAME1 ORT01 LAND1 INTO
(KNA1-KUNNR, KNA1-NAME1,KNA1-ORT01,KNA1-LAND1)
FROM KNA1
WHERE KUNNR IN CUST_NO.
WRITE:/1 SY-VLINE,
KNA1-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
16 SY-VLINE,
KNA1-NAME1 UNDER 'NAME',
61 SY-VLINE,
KNA1-ORT01 UNDER 'CITY',
86 SY-VLINE,
KNA1-LAND1 UNDER 'COUNTRY',
103 SY-VLINE.
HIDE: KNA1-KUNNR.
ENDSELECT.
ULINE.
*SECONDARY LIST ACCESS
AT user-command.
IF SY-UCOMM = 'IONE'.
PERFORM SALES_ORD.
ENDIF.
IF SY-UCOMM = 'ITWO'.
PERFORM ITEM_DET.
ENDIF.
*TOP OF PAGE
TOP-OF-PAGE.
FORMAT COLOR 1.
WRITE : 'CUSTOMER DETAILS'.
FORMAT COLOR 1 OFF.
ULINE.
FORMAT COLOR 3.
WRITE : 1 SY-VLINE,
3 'CUSTOMER NO.',
16 SY-VLINE,
18 'NAME',
61 SY-VLINE,
63 'CITY',
86 SY-VLINE,
88 'COUNTRY',
103 SY-VLINE.
ULINE.
FORMAT COLOR 3 OFF.
*TOP OF PAGE FOR SECONDARY LISTS
TOP-OF-PAGE DURING LINE-SELECTION.
*TOP OF PAGE FOR 1ST SECONDARY LIST
IF SY-UCOMM = 'IONE'.
ULINE.
FORMAT COLOR 1.
WRITE : 'SALES ORDER DETAILS'.
ULINE.
FORMAT COLOR 1 OFF.
FORMAT COLOR 3.
WRITE : 1 SY-VLINE,
3 'CUSTOMER NO.',
16 SY-VLINE,
18 'SALES ORDER NO.',
40 SY-VLINE,
42 'DATE',
60 SY-VLINE,
62 'CREATOR',
85 SY-VLINE,
87 'DOC DATE',
103 SY-VLINE.
ULINE.
ENDIF.
FORMAT COLOR 3 OFF.
*TOP OF PAGE FOR 2ND SECONDARY LIST
IF SY-UCOMM = 'ITWO'.
ULINE.
FORMAT COLOR 1.
WRITE : 'ITEM DETAILS'.
ULINE.
FORMAT COLOR 1 OFF.
FORMAT COLOR 3.
WRITE : 1 SY-VLINE,
3 'SALES ORDER NO.',
40 SY-VLINE,
42 'SALES ITEM NO.',
60 SY-VLINE,
62 'ORDER QUANTITY',
103 SY-VLINE.
ULINE.
ENDIF.
FORMAT COLOR 3 OFF.
*END OF PAGE
END-OF-PAGE.
ULINE.
WRITE :'USER :',SY-UNAME,/,'DATE :', SY-DATUM, 85 'END OF PAGE:',
SY-PAGNO.
SKIP.
*& Form SALES_ORD
*& FIRST SECONDARY LIST FORM
FORM SALES_ORD .
SELECT KUNNR VBELN ERDAT ERNAM AUDAT INTO
(VBAK-KUNNR, VBAK-VBELN, VBAK-ERDAT, VBAK-ERNAM, VBAK-AUDAT)
FROM VBAK
WHERE KUNNR = KNA1-KUNNR.
WRITE:/1 SY-VLINE,
VBAK-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
16 SY-VLINE,
VBAK-VBELN UNDER 'SALES ORDER NO.' HOTSPOT ON,
40 SY-VLINE,
VBAK-ERDAT UNDER 'DATE',
60 SY-VLINE,
VBAK-ERNAM UNDER 'CREATOR',
85 SY-VLINE,
VBAK-AUDAT UNDER 'DOC DATE',
103 SY-VLINE.
HIDE : VBAK-VBELN.
ENDSELECT.
ULINE.
ENDFORM. " SALES_ORD
*& Form ITEM_DET
*& SECOND SECONDARY LIST FORM
FORM ITEM_DET .
SELECT VBELN POSNR KWMENG INTO
(VBAP-VBELN, VBAP-POSNR, VBAP-KWMENG)
FROM VBAP
WHERE VBELN = VBAK-VBELN.
WRITE : /1 SY-VLINE,
VBAP-VBELN UNDER 'SALES ORDER NO.',
40 SY-VLINE,
VBAP-POSNR UNDER 'SALES ITEM NO.',
60 SY-VLINE,
VBAP-KWMENG UNDER 'ORDER QUANTITY',
103 SY-VLINE.
ENDSELECT.
ULINE.
ENDFORM. " ITEM_DET
REPORT demo_list_at_pf.
START-OF-SELECTION.
WRITE 'Basic List, Press PF5, PF6, PF7, or PF8'.
AT pf5.
PERFORM out.
AT pf6.
PERFORM out.
AT pf7.
PERFORM out.
AT pf8.
PERFORM out.
FORM out.
WRITE: 'Secondary List by PF-Key Selection',
/ 'SY-LSIND =', sy-lsind,
/ 'SY-UCOMM =', sy-ucomm.
ENDFORM.
After executing the program, the system displays the basic list. The user can press the function keys F5 , F6 , F7 , and F8 to create secondary lists. If, for example, the 14th key the user presses is F6 , the output on the displayed secondary list looks as follows:
Secondary List by PF-Key Selection
SY-LSIND = 14
SY-UCOMM = PF06
Example for AT USER-COMMAND.
REPORT demo_list_at_user_command NO STANDARD PAGE HEADING.
START-OF-SELECTION.
WRITE: 'Basic List',
/ 'SY-LSIND:', sy-lsind.
TOP-OF-PAGE.
WRITE 'Top-of-Page'.
ULINE.
TOP-OF-PAGE DURING LINE-SELECTION.
CASE sy-pfkey.
WHEN 'TEST'.
WRITE 'Self-defined GUI for Function Codes'.
ULINE.
ENDCASE.
AT LINE-SELECTION.
SET PF-STATUS 'TEST' EXCLUDING 'PICK'.
PERFORM out.
sy-lsind = sy-lsind - 1.
AT USER-COMMAND.
CASE sy-ucomm.
WHEN 'FC1'.
PERFORM out.
WRITE / 'Button FUN 1 was pressed'.
WHEN 'FC2'.
PERFORM out.
WRITE / 'Button FUN 2 was pressed'.
WHEN 'FC3'.
PERFORM out.
WRITE / 'Button FUN 3 was pressed'.
WHEN 'FC4'.
PERFORM out.
WRITE / 'Button FUN 4 was pressed'.
WHEN 'FC5'.
PERFORM out.
WRITE / 'Button FUN 5 was pressed'.
ENDCASE.
sy-lsind = sy-lsind - 1.
FORM out.
WRITE: 'Secondary List',
/ 'SY-LSIND:', sy-lsind,
/ 'SY-PFKEY:', sy-pfkey.
ENDFORM.
When you run the program, the system displays the following basic list with a the page header defined in the program:
You can trigger the AT LINE-SELECTION event by double-clicking a line. The system sets the status TEST and deactivates the function code PICK. The status TEST contains function codes FC1 to FC5. These are assigned to pushbuttons in the application toolbar. The page header of the detail list depends on the status.
Here, double-clicking a line no longer triggers an event. However, there is now an application toolbar containing five user-defined pushbuttons. You can use these to trigger the AT USER-COMMAND event. The CASE statement contains a different reaction for each pushbutton.
For each interactive event, the system decreases the SY-LSIND system field by one, thus canceling out the automatic increase. All detail lists now have the same level as the basic list and thus overwrite it. While the detail list is being created, SY-LSIND still has the value 1.
Regards
Anji -
Use of READ REPORT and INSERT REPORT
Hi Guys,
i need a small help from u guys.......
i want to know the use of READ REPORT and INSERT REPORT with Example
the requirement is...
i want to declare an internal table with fields from custom table.
if any field is aded in the custum table then that field also should get populated in the program.
Ex: custom table fields are
MANDT
BUKRS
MATNR
LIFNR
field1
field2
field3
now suppose if a new field field4 is added in the Table
then the Program should automatically pick-up the fields from FIELD1...FIELD4.
i heard by using READ and INSERT report we can do it
plz help me ...
Thanks
Sunil.:-)If you're on 46C or above, you can use the following to generate tables dynamically.
CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
EXPORTING
IT_FIELDCATALOG = GT_FIELDCAT
IMPORTING
EP_TABLE = GS_DATA_HEAD
EXCEPTIONS
GENERATE_SUBPOOL_DIR_FULL = 1
OTHERS = 2.
But you are restricted to 32 calls, if I remember correctly. If you are in a later release, you can use the RTTS classes to create internal tables dynamically, without the restriction on subroutine pools.
These classes are CL_ABAP_TYPEDESCR and subclasses.
There are a few blogs on SDN that give examples of their use.
Matt -
Read report line too long error ?
hi friends.
my program allowed this error.
read_report_line_too_long
what do I do ?
help me pleaseDon't do any setting changes, try to modify the code if it is custom namespace.
assume this the code with more than 72chars..
read table itab into wa_itab with key matnr = v_matnr vbeln = vbeln transporting something binary search
you have to break that into two lines like the below..
read table itab into wa_itab with key matnr = v_matnr
vbeln = vbeln
transporting something binary search
where ever you find the line more than 72 chars you change it. not event comment lines should not exceed more than 72 chars.
what are you doing exactly can you let me know..
if you are using READ REPORT if you have a program with more than 72 chars length then you will end up with that error. see the standard SAP documentation
DATA prog TYPE c LENGTH 30.
DATA itab TYPE TABLE OF string.
prog = '...'.
READ REPORT prog INTO itab.
Catchable Exceptions
CX_SY_READ_SRC_LINE_TOO_LONG
Cause: At least one line of the source code is longer than the rows of the internal table itab.
Runtime Error: READ_REPORT_LINE_TOO_LONG
Maybe you are looking for
-
How to add one textbox value into another textbox value every month in a list of infopath 2013
InfoPath 2013. I have created a list in which I placed 2 textboxes. I have one textbox named Paid Amount: Second textbox named Invoice Amount: I want when I add any amount in Invoice Amount textbox in every month it Add into Paid Amount textbox How I
-
I have no problem to 'loadjava' a jar file with 6 classes in it as SYS in the SYS schema. However when I try the same with another user who has been granted JAVASYSPRIV, it fails with the following errors : "Error while accessing MD5 table... Error w
-
[Urgent] Interruption of access to the Table Storage
Hi, We have a code that takes a record from Table Storage (placed below). This works perfect but since some moment it is always return null. But using VS tools I can see there are records in table. Please help us to solve this issue asap. StorageCred
-
I've been reading thru the postings for XSQL and read a couple of references on how to get an out variable from a stored procedure. I read this thread from 3/31: http://technet.oracle.com:89/ubb/Forum11/HTML/001444.html Anyway, I followed the advice
-
HT5569 i don't know how to use my 3g on my iPhone 4 how do i turn it on an use it.
Need to use 3g because i am out alot and i dont know how to turn on the 3g and i dont know how to use it.