07-25-2012 6:25 AM
Hi ,
Please help me understand what is /PBS/CFIFREAD.
Subroutine pool /PBS/CFIFREAD .
I checked in google for the term /PBS/CFIFREAD and i found this link .
http://www.pbs-software.de/medien/handbuecher/e_cfi_user.pdf
But i didnt find it relevant.
I have a subroutine in my program that is like this.
PERFORM fetch_zfaw(/pbs/cfifread)
USING awkey_f
zfaw zzpat zzban zztbi rc.
what does this do?
Pleae guide
Regards,
SuryaD.
07-25-2012 7:42 AM
Hi,
It seems its a add on tool for data archiving . The report /PBS/CFIFREAD contains a list of sub routines for archiving data . So in your report it is assumed that some archiving functionality is done using the sub routine fetch_zfaw .
Regards,
Riyas.
07-25-2012 7:10 AM
07-25-2012 7:24 AM
Its an archiving tool which is an addon software you need to install with your SAP R/3.
07-25-2012 7:41 AM
Hi Uday,
Thanks for your reply.
i have a report that calls this in a subroutine like this .
PERFORM fetch_zfaw(/pbs/cfifread)
USING awkey_f
zfaw zzpat zzban zztbi rc.
And the report comes here upon execution and stays stuck forever.
what cud be the reason?
Please guide.
Regards,
suryaD.
07-25-2012 7:49 AM
Surya,
I cant exactly say what this subroutine is doing. All, I would suggest is to go for debugging.
Place a break point on this subroutine and go for debugging stepwise by pressing F5 function key. You should be able to see complete code of this subroutine.
Hope it helps.
Regards
Uday
07-25-2012 7:42 AM
Hi,
It seems its a add on tool for data archiving . The report /PBS/CFIFREAD contains a list of sub routines for archiving data . So in your report it is assumed that some archiving functionality is done using the sub routine fetch_zfaw .
Regards,
Riyas.
07-25-2012 8:41 AM
Hi Uday and Riyas,
thanks for taking ur time in replying.
Uday like u mentioned, i debugged.
the program eventually gave a TIME_out error.
This is because of the subroutine being inside the DO ..ENDO.
Looks like this is endless..do endo..
000390 READ TABLE t_awkey INDEX 1.
000400 awkey_f = t_awkey-awkey.
000410 READ TABLE t_awkey INDEX l_count.
000420 awkey_t = t_awkey-awkey.
000430 ENDIF.
000440
000450 *
000460 PERFORM set_zfaw(/pbs/cfifread) USING awkey_f rc.
000470
000480 * Initialisierung des Zugriffs
> DO .
000500 PERFORM fetch_zfaw(/pbs/cfifread)
000510 USING awkey_f
000520 zfaw zzpat zzban zztbi rc.
000530
000540 IF ( rc LE 4 ).
000550 IF zfaw-awkey > awkey_t.
000560 EXIT.
000570 ENDIF.
000580 READ TABLE t_awkey WITH KEY awkey = zfaw-awkey
000590 BINARY SEARCH.
000600 IF sy-subrc <> 0.
000610 CONTINUE.
000620 ENDIF.
000630 CLEAR l_continue.
000640 check_index 'ZFAW-'.
000650 IF l_continue IS NOT INITIAL.
000660 CONTINUE.
000670 ENDIF.
000680
Is there any furthr analysis that i can do to analys the issue?
pl guide
Regs,
SuryaD.
07-25-2012 8:54 AM
check the parameter value and try to set some if else condition instead of DO.... Enddo. If its a standard program, then I dont think we are supposed to do any changes. Instead try controlling the data that is being passed to this subroutine which is generally by means of parameters.
so try your luck on controlling these parameters values and also wait for more suggestions.
regards
uday
07-25-2012 9:34 AM
thanks for your time in replying to my queries.
Closing thread .
Regards,
SuryaD.
07-27-2012 7:22 AM
Hi All,
Just want to update reg this issue.
The program execution was getting stuck at this READ into the Archive data becasue there was no data in it.
Later we asked the archive team to add data.
issue fixed.
Regards,
SuryaD.