06-04-2010 6:32 AM
Hi gurus,
I have copied a standard program from sap to make it as Z program.In the standard program there is an INSERT REPORT statement which generate the report dynamically.Now in my copied Z program also the same statement is there.The report generated is of same name but the code inserted is different.I ran both the programs together.Now if i am trying to run any of these two, the system is hanging at the insert statement and time out is happening.Please help me because this problem is also causing the stadard report not to run.
Regards,
Sarath.
06-04-2010 6:38 AM
HI,
which is the standard program ? it might be writing the genarating source code / program from the standard & the Z
06-04-2010 6:39 AM
Hi,
In that Dump has many details. kindly provide " WHAT HAPPEND " and "ERROR ANALYSIS".
Thanks & reagrds,
Vallamuthu.M
06-04-2010 7:29 AM
Thanks for the repies.
System actually hangs at that point and a time out is occuring.The standard program name is RPSDEV00.In that there is a check box for making it as a pivot tabel while downloading excel.During this action this problem is happening.
Regards,
Sarath.
06-04-2010 7:47 AM
06-04-2010 8:17 AM
I checked this already.It is giving descriptions about y this time out has occured.No other information.
06-04-2010 8:41 AM
Hi ,
I wrote one zprogram as below . it generates report RPSDEV02 , it worked successfully.
DATA: BEGIN OF REP_TAB OCCURS 100,
TEXT(72) TYPE C,
END OF REP_TAB.
INSERT REPORT 'RPSDEV02' FROM REP_TAB.
Can you do one thing , please create 1 zprogram and write this above code and see if you get this program run successfully. So that we can at least see the area of error. Might be something regarding Buffer.
Regards,
Uma
06-04-2010 9:08 AM
The code was working earlier witouut giving this time out error.When i ran both the standard and Z program together is started hanging.Now the both programs are hanging at this INSERT REPORT statement.
06-04-2010 10:07 AM
06-04-2010 7:35 AM
Hi ,
Please specify the standard program name and also elaborate the error you are getting.
Regards,
Uma
06-04-2010 7:41 AM
Standerd program name is RPSDEV00
I am pasting the piece of code where issue is happening
FORM GEN_REPORT.
DATA: FELD(7) TYPE C.
DATA: IND TYPE I.
DATA: MSGNR(178) TYPE C.
DATA: LINNR(6) TYPE C.
DATA: WORD(30) TYPE C.
FELD(4) = 'FELD'.
new data-definition in report
READ REPORT 'RPSDEV01' INTO REP_TAB.
IF SY-SUBRC = 0.
IND = 9.
DO COUNT TIMES.
UNPACK SY-INDEX TO FELD+4(3).
CLEAR REP_TAB.
REP_TAB-TEXT = FELD.
REP_TAB-TEXT+8 = 'LIKE DATA-NUMBER,'.
INSERT REP_TAB INDEX IND.
ADD 1 TO IND.
ENDDO.
ELSE.
MESSAGE E016 WITH TEXT-X12.
ENDIF.
syntax-check
SYNTAX-CHECK FOR REP_TAB
MESSAGE MSGNR LINE LINNR WORD WORD.
IF SY-SUBRC NE 0.
MESSAGE E016 WITH TEXT-X13 MSGNR LINNR WORD.
ENDIF.
INSERT REPORT 'RPSDEV02' FROM REP_TAB. "At this point of time system is hanging.
text-elements
READ TEXTPOOL 'RPSDEV01' INTO REP_TXT LANGUAGE SY-LANGU.
INSERT TEXTPOOL 'RPSDEV02' FROM REP_TXT LANGUAGE SY-LANGU.
06-04-2010 8:19 AM
Hi
That means system has a problem in creation process of this report RPSDEV02 , can you please check out the details in table REP_TAB, See what source code it contains or if you can let us know the contents.
Regards,
Uma
06-04-2010 10:20 AM
I think if you can try writing a zprogram which i have sent you , and if that program does not work then the problem something with buffers and if that zprogram works then the problem is with the internal table that you are paasing to INSERT statement. You must try writing that zprogram and see what happens...
Regards,
Uma
06-04-2010 10:40 AM
There is a report already generated with the name 'RPSDEV02'.This is suppose to be generated in the run time and get deleted by the statement delete report.The problem happening is both insert and delete is not happening.If i can delete this generated program the issue may get resolved.
06-04-2010 10:55 AM
Hi ,
this does not behave the way you are assuming it.
Even if the program 'RPSDEV02 already exists , the INSERT should work.
Please have a look to the documentation of INSETR.
INSERT will create a new report named eg abc if it does not exist , and if abc is already existing then also INSERT will work fine. It puts the internal table (passed in FROM parameter of INSERT )data as a source code in this abc report in both the cases.
So dont assume that , you are getting the error because this reports is already exist. This is not correct.
Regards,
Uma
06-04-2010 11:24 AM
Thanks uma.
I already have went through the documentaion.I also expected the program to behave like that only.Now what i did is in the copied Zprogram i changed the name of the program generated dynamically.Now the Z program is working fine.Since the standard program is stil using the same program name for dynamic generation it is hanging there.If i use any other program name instead of "RPSDEV02" this will work.In standard i can not do that.So what i am thinking is like if i can delete this program from SAP and try to regenerate it throught the standard program it will work as it was working earlier.
Regards,
Sarath.