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

ldb_process and PNP

Former Member
0 Kudos
349

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

4 REPLIES 4
Read only

Former Member
0 Kudos
210

Look at sample program DEMO_LOGICAL_DATABASE.

Rob

Read only

Former Member
0 Kudos
210

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

Read only

Former Member
0 Kudos
210

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

Read only

jacek_wojciechowski
Discoverer
0 Kudos
210

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'.