‎2014 Jul 17 11:28 AM
Hi,
I am working on change request which displays the output in ALV GRID.
After executing on return its not coming to the selection screen.
It shows a screen output generated using WRITE statement, however we have not used any write statement in the entire report.
After debugging sometime we found that, its because of the statement GET BKPF.
It occurs in the program - SAPDBDDF at line 1579.
Also there is a select query at line number 1553,where values are fetched from BKPF table.
Even though we have value in the table for the corresponding where condition, it fails. Dont know why.
Can someone guide me how to overcome this? i want to go back to the selection screen on back from the ALV grid
Regards,
Karthik
‎2014 Jul 18 6:52 AM
‎2014 Jul 18 7:04 AM
Did you call the ALV in AT END OF SELECTION block ?
NB: Check the documentation for the Flow of an Executable Program.
Regards,
Raymond
‎2014 Jul 18 12:39 PM
Hi Raymond,
ALV display is after END-OF-SELECTION.
After debugging for sometime:
New screen on return is being generated by the WRITE statement from the include SAPDBDDF.
In program there are statements like GET BSID, GET BKPF,..etc. When these lines executed systems executes the above mentioned include internally.
Which will not be able debug unless system debugging is switched on. PUT BSID, PUT BKPF are the executable performs in SAPDBDDF.
The new screen messages are raised because the document number (BELNR) is not available in BKPF.
Is this because of any data problem i.e., archived documents ? Please suggest your views.
PS: We don't see this problem in production system.
Regards,
Karthik
‎2014 Jul 18 12:59 PM