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

How to call logical data base in bapi

Former Member
0 Likes
1,290

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

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
Read only

Former Member
0 Likes
1,226

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.

Read only

0 Likes
1,226

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

Read only

0 Likes
1,226

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

Read only

0 Likes
1,226

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 ?

Read only

rosenberg_eitan
Active Contributor
0 Likes
1,226

Hi,

      

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

See program DEMO_LOGICAL_DATABASE

Regards.

Read only

0 Likes
1,226

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

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

Read only

0 Likes
1,226

The reason (also for Infoset) SAP provided PNPCE.

Regards,

Raymond

Read only

0 Likes
1,226

Hi,

Thanks for your kind response .

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

Thanks

Read only

shadab_maldar
Active Participant
0 Likes
1,226

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.