‎2009 Jul 15 8:14 PM
hi
i want to create a report which shows the log of BDC session method of failed transactions, the report will also show the incorrect fields of the transaction, this program must be in the form of report and the input is session name as in SM35.
please note: the program should not use table control, and the error should be downloaded as a flat file.
<<text removed>>
Regards
Swarnali Basu
Edited by: Matt on Jul 22, 2009 3:49 PM - don't offer points
‎2009 Jul 15 8:20 PM
Hello,
What do you need? the full source code??, call your abap team to do it.
Bye
‎2009 Jul 15 8:25 PM
hi
thanks for your reply but its hardly of any help, i have developed a part of it but i cant download the error file to flat file, if u have any fruitful suggesstion then post else please do not write.
Regards
Swarnali
‎2009 Jul 15 8:29 PM
Hello Again...
Your post wasnt clear...remember to be more specific on your post....anyways....if you need to download an internal table to your hard disk use this FM as follows:
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = file_tab
filetype = 'ASC'
write_field_separator = 'X'
TABLES
data_tab = your_it_table
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6.
bye
‎2009 Jul 15 8:36 PM
Thanks again
but i knew this FM, what i am looking for is i want to capture those field name and field value which is shown when a session fails in SM35, these field name and field value should be downloaded in a flat file, ultimately may be i have to use this FM, but how do i capture in the 1st instance.
1. go to SM35.
2. Analyse a failed session
3. Check the number of incorrect entries
4. you might find fields like KUNNR (field name) and the field value(more than 1).
then i want the output in the flat file as
KUNNR(field name) ....
5(field value)....
i hope this makes my ques clear.
‎2009 Jul 15 8:45 PM
Swarnali,
You may check the DB table APQI ( Queue info definition) in SE11 , In this table , the error sessions holds the status as E for incorrect processed sessions ( QSTATE Queue status ) for the corresponding session name ( GROUPID Group name: Batch input session name ). You can retrive the error records from it.
In order to find the screen fields details for erred session , Click on session name , It takes to details session details , go to screen( Tab) ,it just show the error screen ,not fields . In know the fields , there is a button on right side top (Field list).
U may debug it to find the table for this. Combine the results of previous query with this
I hope , it gives some info.
Regards,
Santhosh
‎2009 Jul 16 8:42 AM
HI
even if i take the filed QSTATE from table QID, how do i get the fields name and field value, i have got the internal table from the program RSBDC_ANALYSE but it uses table controlhowever i m using aa report so how do i match those? can u help me with a sample code if possible?
‎2009 Jul 16 8:55 AM
Hi,
Make use of the following FMs
RSTS_GET_ATTRIBUTES
RSTS_OPEN_RLC
RSTS_READ
RSTS_CLOSE.
Check the program RSBDC_PROTOCOL.
Regards,
Ankur Parab
‎2009 Jul 16 10:48 PM
Hello Swanali,
I think, We are closer to the solution.
As u have found in the program RSBDC_ANALYSE, there is an internal table all_bdc_dynpro
which gets filled with the records of screen fields details.
If you put break point in the subroutine <b> scan_transaction and scan_dynpro </b> and see as how all_bdc_dynpro is filled ,
u would how how all_bdc_dynpro is filled.
Key code point :
APQD - table U get all you want
In subroutine <b>scan_dynpro</b> , you see how the data is moved
I believe , you would it up based on this input
Regards,
Prabu
‎2009 Jul 21 11:31 AM
i have solved the issue by my own....thanks to all who have tried to help
‎2009 Jul 21 9:32 PM
Swanali ,
Can u just share with us as how you have solved the problem ,It would help us in future .
Thanks,
MVP
‎2009 Jul 23 6:39 AM
hi
i am editing the program a bit, as soon as i complete i will surely let u all know