2013 Oct 18 10:35 AM
Hi All,
I would like to know how to debug the logical database (i.e. DDF) program used in transaction F104 through F104.
Actually, we have custom tcode created which is copy of F104 transaction. But Zcode is returning message 'Document header for company code <xxxx> Doc. Number <xxxxxxxxxx>not found' from LDB program SAPDBDDF from sub routine PUT_BKPF. But same is not applicable from standard tcode F104.
Kindly suggest ASAP.
Thanks in advance.
Regards,
Ashwini
Check B0SG fields. As per documentation of logical database, they can influence on the data readed from the database
In order to improve performance, individual tables can be excluded from selection. The following tables can be set in the application report AT THE TIME OF INITIALIZATION or AT THE START OF SELECTION:
Also make sure your program does a GET BSID before GET BKPF . The document number is readed in PUT_BSID form
| SAVE_BELNR = BSID-BELNR. | |
| SAVE_BUZEI = BSID-BUZEI. | |
| SAVE_GSBER = BSID-GSBER. | |
| SAVE_GJAHR = BSID-GJAHR. |
2013 Oct 18 10:48 AM
Regards
2013 Oct 21 6:45 AM
I tried this already. It will not trigger when we execute the transaction.
Regards,
Ashwini
2013 Oct 18 10:54 AM
Check B0SG fields. As per documentation of logical database, they can influence on the data readed from the database
In order to improve performance, individual tables can be excluded from selection. The following tables can be set in the application report AT THE TIME OF INITIALIZATION or AT THE START OF SELECTION:
Also make sure your program does a GET BSID before GET BKPF . The document number is readed in PUT_BSID form
| SAVE_BELNR = BSID-BELNR. | |
| SAVE_BUZEI = BSID-BUZEI. | |
| SAVE_GSBER = BSID-GSBER. | |
| SAVE_GJAHR = BSID-GJAHR. |
2013 Oct 21 7:11 AM
Hi Alejandro,
Sorry I could not get how mentioned paraameters helps debugging the LDB through transaction specified.?
Kinldy clarify.
Regards,
Ashwini
2013 Oct 21 7:50 AM
Excuse me, I'm not correctly read the message. I only provide some information to solve the issue, as per previous experiences, but not to help you debug.
Debugging a logical database program is not easy as far as some short dumps may occur if a commit work is raised in a SELECT-ENDSELECT statement.
Maybe identifying database logic you will find better the error.
2013 Oct 21 8:15 AM
I'll try to give you some ideas for debugging.
For every GET table in the logical database ,the form PUT_table is executed.
For instance, if your program contains somthing like
GET BKPF.
write: / BKPF-BELNR.
The form put_bkpf from SAPDBDDF will be called for each row. If you look at this form there are some put BKPF statements. After this statetemt, your code will receive the control and
write: / BKPF-BELNR
.
If you put a break-point, at the beginning of this form, you could be able to debug after each GET.
If your program doesn't stop, is beacuse some condition or a previous selection is not correct.
In this case, try to put a break-point in a previous table in the logical database structure , in put_bsid form, for instance, or even in put_KNB1
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |