Application Development 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: 

How to call logical data base in bapi

Former Member
0 Kudos

Hi expert,

Good day .. I'm working on a task in which i have to display some information in android from sap so i need to use logical data base in bapi as i've been searching from last day but didn't get it. Please guide me.

I have developed an abap program that uses logical database and generate report is it possible that we can use program from bapi to get data from program and use it in bapi ??

Regards,

Hafiz usman

9 REPLIES 9

former_member216168
Active Participant
0 Kudos

Could you explain better your requirement?

Which BAPI do you need to use, and what kind of information you'll need to return?

I think LDB is not the better option... Depends on the situation, you could make a RFC that calls this BAPI and after get information from tables that you need and return everything in your RFC.

0 Kudos

Actually i want to generate employee's salary slip and for that i need to use LDB 

0 Kudos

Can't you do that in this RFC module as I suggested?

1 - Get BAPI information

2 - Get LDB salary values

3 - "Join" everything in a return table

0 Kudos

I will use RFC but thing is like user will input his employee number and then bapi will get salary values using LDB but how can i use LDB in BAPI this is my question ?

rosenberg_eitan
Active Contributor
0 Kudos

Hi,

      

See if you can create an RFC function that will call function LDB_PROCESS .

See program DEMO_LOGICAL_DATABASE

Regards.

0 Kudos

FM: LDB_PROCESS . is not working for LDB "PNP".

I've Tried a lot but LDB PNP is not working.

0 Kudos

The reason (also for Infoset) SAP provided PNPCE.

Regards,

Raymond

0 Kudos

Hi,

Thanks for your kind response .

as i have to use this LDB so will you please suggest some scenario please.

Thanks

shadab_maldar
Active Participant
0 Kudos

Hi Hafiz,

if your BAPI(or RFC) is a customized one than in your BAPI you can use submit program(Exporting list to memory and return) which will in turn provide you the output data from your report(LDB Report).

After that use the function modules 'LIST_FROM_MEMORY' and 'LIST_TO_ASCI' to decode the data.

Hope this helps you.

Regards,

Shadab.