08-24-2015 11:31 AM
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
08-24-2015 11:43 AM
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.
08-24-2015 11:50 AM
Actually i want to generate employee's salary slip and for that i need to use LDB
08-24-2015 11:56 AM
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
08-24-2015 12:02 PM
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 ?
08-24-2015 12:07 PM
Hi,
See if you can create an RFC function that will call function LDB_PROCESS .
See program DEMO_LOGICAL_DATABASE
Regards.
08-26-2015 5:40 AM
FM: LDB_PROCESS . is not working for LDB "PNP".
I've Tried a lot but LDB PNP is not working.
08-26-2015 7:42 AM
08-26-2015 10:31 AM
Hi,
Thanks for your kind response .
as i have to use this LDB so will you please suggest some scenario please.
Thanks
08-26-2015 10:33 AM
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.