2007 Sep 10 4:37 PM
Hi,
could you give me a working example of using FM LDB_PROCESS with logical dabase PNP, please? Every example, which I found there dont work and I dont know why.
Thanks in advance
Krzysztof
2007 Sep 10 5:17 PM
2007 Sep 10 5:31 PM
I am almost positive the function module LDB_PROCESS doesn't work with PNP.. have tried it a few times without success & left it at that..
Regards,
Arya
2009 Nov 09 11:22 AM
hi,
Have you solved this problem yet or not? Please do reply. I am stuck with the same problem
would appreciate your effort.
thank you for your time and support.
Regards,
Seema Peswani
2023 Feb 23 10:16 AM
For any fellow traveler still trying to get PNP to work with LDB_PROCESS in 2023:
It doesn't work because structure PN used internally for selections is populated in PAI processing based on various options for period selection on the selection screen, and PAI isn't processed when using LDB_PROCESS FM.
However, if you REALLY need to get it to work, here's a small ABAP hack you can run before the LDB_PROCESS call.:
PERFORM % IN PROGRAM sapdbpnp IF FOUND. "Load PNP program so we can access program variables
ASSIGN ('(SAPDBPNP)PN') TO FIELD-SYMBOL(<fs_pn>).
ASSIGN COMPONENT 'BEGPS' OF STRUCTURE <fs_pn> TO FIELD-SYMBOL(<fs_begps>).
<fs_begps> = '18000101'.
ASSIGN COMPONENT 'ENDPS' OF STRUCTURE <fs_pn> TO FIELD-SYMBOL(<fs_endps>).
<fs_endps> = '99991231'.