Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem with GET LDB statement

Former Member
0 Likes
928

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

4 REPLIES 4
Read only

Former Member
0 Likes
835

Any help is appreciated.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
835

Did you call the ALV in AT END OF SELECTION block ?

NB: Check the documentation for the Flow of an Executable Program.

Regards,

Raymond

Read only

0 Likes
835

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

Read only

0 Likes
835

Seems than database inconsistencies break the logical database logic, you could try to execute report RFINDEX program ?

Regards,

Raymond