F4 Help like Logical Database
I am writing a program that is not using Logical Database but the client wants to see the F4 Help for Organizational Structure similar to what is displayed in LDB PERNR with Info Type 0001. How can this be done? Since you cannot post pictures here, this is kind of difficult to explain.
Thanks.
Hi,
use search help PREM. U will get similar type of F4 help.
use like this ....
PARAMETERS : p_pernr TYPE PERSNO OBLIGATORY MATCHCODE OBJECT PREM.
Amitava
Similar Messages
-
hallow
i use the logical data base pnpce and i wont to now if i can
display a error message if the user put data invalid
ex.
in my program the user have to put pernr and date
if the user put wrong pernr i wont to bring him error message
in selection screen its simple but in pnpce i dont now how to do it
please help
regardshi suresh
this is my declertion where i have the <b>event</b> confused
regards
GET peras.
wa_person_tab-pernr = pernr-pernr.
rp_provide_from_last t_0001 ' ' pn-begda pn-endda.
wa_person_tab-orgeh = t_0001-orgeh.
wa_person_tab-stell = t_0001-stell.
wa_person_tab-werks = t_0001-werks.
wa_person_tab-persg = t_0001-persg.
wa_person_tab-persk = t_0001-persk.
APPEND wa_person_tab TO person_tab.
CLEAR wa_person_tab.
END-OF-SELECTION. -
Logical Database being obsolete, we migrate towards...?
Hello.
I have been asked to rewrite a program Z that is in a lack of performance lately. I have looked at it and saw that it was using a logical database. After fixing and changing a few performances things like the SELECT/ENDSELECT and that kind of usual perfomance stuff, I read in my research that I did that it was still maintainted and used on the old programs but it is now something obsolete.
After reading on what it is and how big is their impact, I was wondering what is now replacing them when you need something similar on a newer program.
For example, in the request I have, the DDF logical database is used and is huge too. Though, in the new version, where I will try to prevent myself of using a logical database due to the fact it is obsolete, I am wondering what I can use instead to make a similar job.
After all, a huge concept like Logical Databases /has/ to have something that took over to replace them, right?
Thanks in advance for your help!Hello again,
I understand what you mean but the performance cost actually is too high to be neglected. The program is actually making a call of GET KNA1, GET KNB1 and GET BSID which means 3 loops blocks in each other, not counting the possible loops needed in internal tables. This is quite a problematic at the moment because this old program now uses those three GET and the massive amount of datas in those three tables makes it that the performance is leading mostly to a short dump than a good final result.
This is why I was looking for an alternate way, looking towards if the Logical Database who is still used but declared "obsolete" was now having a replacement nowadays.
As far as the datas are concerned, to answer your question, the archivages of them happened time after time after time and everyday. It is getting to a point that we are too close of the actual date to even think of more archivage. Believe me, the datas involved, since this problem started, has been verified over and over again. But I know it was an option and thank you for suggesting it.
So it is really a perfomance issue and since the Logical Database takes a lot of performance, like John Armytage confirmed, I am trying to find an alternative to all this. Any suggestions? I still have not found anything that is replacing Logical Database today. -
MRP Area tables for MD06 information access like SQ01, DBM logical database
We currently use SQ01 DBM logical database to access MD06 information (tables MDKP and MDTB). The MRP results from the MRP Area are not showing in this query. This implies that the MRP area, MRP results are stored in other tables.
I have reviewed tables (MDLV, MDMA, MDLG, DVER, MDIP) from a similiar thread. However, they do not contain the MRP data (planned orders, stock, production orders ect) like in the DBM logical database. This data access is very powerfull for exporting planning data for more robust analysis.
Any help is much appreciated.
Thank youHi,
Please try FM: 'AUFBAUEN_MDPSX_ANZEIGEN'.
MD06 dame come many table.
Example:
(Plant level)
icm61w-fabkl = wk_fabkl. :Factory calender
imt61d-matnr = p_matnr. : Materials
imt61d-werks = it_tbl-werks. : Plant
AUFBAUEN_MDPSX_ANZEIGEN 呼出
CALL FUNCTION 'AUFBAUEN_MDPSX_ANZEIGEN'
EXPORTING
ecm61w = icm61w
ecm61x = icm61x
emt61d = imt61d
et399d = it399d
ECM61B =
ESFILT =
IMPORTING
icm61m = wa_e_cm61m
imdkp = wa_e_mdkp
imdsta = wa_e_mdsta
TABLES
mdpsx = it_mdps
regards,
Gaito -
Logical Database - PNPCE - Hide 'Org Structure' 'Search Help' etc buttons
Hi,
We have created a report by making a z copy of RCATS_APPROVE_ACTIVITIES. In the Z version we need to hide the buttons on the titlebar of the selection screen.
Buttons are
- Org Structure
- Search Help
- Dynamic Selection
- Selection Fields.
Can you please suggest if I can do something from the code ?
Regards,
Chiranjeevi.Hi,
Thanks for your suggestion. However, there is no title bar method that we can modify to remove the buttons. I have created a Z report Category by copying the existing one and made the modifications.
In that we can hide/display UI elements which are displayed by Logical Database.
Regards,
Chiranjeevi. -
Hi,
If any brother have got the knowledge of LDB then please tell me that how to make a dynamic selection in LDB.
Scenerio : in VFV LDB i want to get VBRK-FKDAT (Billing Date) in my ABAP Program, so how to pass this dynamically means by selection screen.
Thanks,
Muhammad Usman MalikHello ,
I also had the same problem and solved the same by changing the LDB VFV as told by the Raymond Sir,
First you need to register the Object R3TR LDBA VFV with SCCR to get the access key to change Logical Dbs SELECTION SCREEN code and SOURCE CODE section.
After that click Selections section of the LDB VFV and add Select options for field FKDAT.
Eg .
SELECT-OPTIONS: DD_ERDAT FOR VBRK-ERDAT.
*{ INSERT DEVK904455 1
SELECT-OPTIONS: DD_FKDAT FOR VBRK-FKDAT." Added to Bring Billing Date in logical Database VFV
*} INSERT
And after that change the Source code section of LDB VFV as follows
SELECT (L_TAB_FIELDS-FIELDS) INTO CORRESPONDING
FIELDS OF TABLE ZVBRK FROM VBRK
UP TO 100 ROWS
WHERE VBELN IN DD_VBELN AND
VBELN IN ILAST AND
VKORG IN DD_VKORG AND
*{ INSERT DEVK904455 1
FKDAT IN DD_FKDAT AND " Addded Billing Date in logical DB
*} INSERT
LAND1 IN DD_LAND1 AND
ERDAT IN DD_ERDAT AND -
Logical database in adhoc query
Hello All,
Can anyone tell me what is the logical database in adhoc query?Hi
When you create a query , you have to select an infoset. Infoset can be considered as a source from which data is populated in the Query Fields.
Infosets are created from Transaction SQ02.
There can be four methods through which an Infoset can become a source of data:
1. Table join ( By joining two or more tables from Data dictionary)
example: Joining tables PA0001 and PA0006 on Pernr to get a one resultant dataset
2. Direct read of Basis Table ( Like PA0001 as a source for data in Infoset )
3. Logical Database ( A Pre-written Program by SAP that extract data from clusters, tables taking care of authorizations and validity periods)
Example : Logical database PNP, PNPCE (Concurrent Employement),PCH ( LDB for Personnel Development Data)
Custom Logical DBs can be created in T_Code SE-36.
4. Data Retrieval by a Program ( Custom code written by ABAP developers which will collect and process data) . This program has a corresponding Structure in data dictionary and the fields of this structure will be used in query)
Reward Points, if helpful.
Regards
Waseem Imran -
How to define our own selection screen for logical database in abap-hr?
Hi Friends,
Can u please help me
How to define your own selection screens for logical database.
we use to do like(goto->attributes-HRReportcatagerious ).but How to desin using customer table like t599c, t599f and how to add to my logical database?
Thanks in advance
charancheck out this online help
http://help.sap.com/saphelp_erp2004/helpdata/en/9f/dba65c35c111d1829f0000e829fbfe/frameset.htm
Regards
Raja -
Logical database of ABAP query
Hi,
Can anybody please let me know what is the Logical database for ETXDCI, ETXDCH & ETXDCJ (Tax tables) with any sales document tables? I need to develop one ABAP query for the users.
I am a Functional person so I would like to know Can anybody please let me know how I can find out the Logical database?
Your time and help will be really appreciate.
Thanks & Regards,
Niki Shah.Try the BRF logical database.
I found it by searching in which programs the tables were used.
It show program SAPDBBRF which is the program for logical database BRF.
Kind regards,
Arthur Parisius -
Logical database : user defined selection screen
Hi Experts,
I am working with HR-ABAP. The logical databases provide a selection screen......but i want to use a selection screen of my own and not that of the LDB.
Plz help...............hi do like this....
go to attributes-->hr report catagory-->master data...here use the value _____000(5underscores and 000 )..
you wii get that..
regards,
venkat -
Logical Database - PNP, PCH, PNPCE
Hi Experts,
Im New to ABAP HR,
I would like to know about the logical databases we are using .
Logical Database - PNP, PCH, PNPCE, basic principles
If any body cud let me know about the differences , requiremnts , associated with these Logical databses will be much helpful for me.
Thanks
Rohini Devi
[email protected]Hi Rohini...
Global Employee Programming
Thanks
Message was edited by:
Aslam Riaz -
Hi All, I am quite familiar with Logical Databases but I need to understand the following.
1) I am using LDB ADA, but I want to use my own Selection Screen and not the default one that the LDB provides. I know I must put something in AT SELECTION-SCREEN but am unsure what.
2) Once I get the data, I want to store the data in an internal table - how do I go about doing this? If you can provide a code example that would be great.
Points for any relevant help.Hi,
A logical database is a special ABAP/4 program which combines the contents of certain database tables. You can link a logical database to an ABAP/4 report program as an attribute. The logical database then supplies the report program with a set of hierarchically structured table lines which can be taken from different database tables.
Logical database structures
There are three defining entities in an SAP logical database. You must be clear on all three in order to create and use one.
Table structure: Your logical database includes data from specified tables in SAP. There is a hierarchy among these tables defined by their foreign keys (all known to SAP), and you are going to define a customized relationship between select tables. This structure is unique and must be defined and saved.
Data selection: You may not want or need every item in the referenced tables that contributes to your customized database. There is a selection screen that permits you to pick and choose.
Database access programming: Once youve defined your logical database, SAP will generate the access subroutines needed to pull the data in the way you want it pulled.
Creating your own logical database
Heres a step-by-step guide:
1) Call up transaction SLDB (or transaction SE36). The path you want is Tools | ABAP Workbench | Development | Programming Environment | Logical Databases. This screen is called Logical Database Builder.
2) Enter an appropriate name in the logical database name field. You have three options on this screen: Create, Display, and Change. Choose Create.
3) Youll be prompted for a short text description of your new logical database. Enter one. Youll then be prompted to specify a development class.
4) Specify a root node, or a parent table, as the basis of your logical database structure. You can now place subsequent tables under the root table as needed to assemble the data object you want. You can access this tree from this point forward, to add additional tables, by selecting that root node and following the path Edit | Node | Create. Once youve saved the structure you define in this step, the system will generate the programming necessary to access your logical database. The best part is you dont have to write a single line of code.
Noted point is we cant add any selection criteria thru our se38 program if you are attaching any LDB to program.Ist of no use.
If you want to change selection criteria to the existing LDB, you have to goto SE36 tcode and provide LDB name and choose "Change" mode by selecting "Selections" Radio button.
declaration of params is different compared to normal se38 program in some aspects.
PARAMETERS :p_curr LIKE bkpf-waers FOR TABLE bkpf OBLIGATORY.
this BKPF table should be one of the node in the "Structure" Radio button.
Thanks
Sivaparvathi
Please reward points if helpful. -
Logical Database PGQ structure usage
Hello Everyone,
I have a question regarding Logical Database(LDB) usage...How to use the structure defined in LDB. We are using PGQ Logical database in one of custom programs. The structure of the LDB as hierarchy or tree is:
QALS
QAVE
QMFEL
QAPO
AFFHD
QAMV
QAMR
QASE ---> From this table
QASV
QASR ---> From this table
and etc
The code was something like this in the program:
GET QALS.
GET QAPO.
GET QAMV.
GET QAMR.
Now, my requirement is to get data additionally from QASE and QASR tables..So, I tried modifying the code according to the hierarchy structure defined in the PGQ LDB(check bold statements):
GET QALS.
GET QAPO.
GET QAMV.
GET QAMR.
<b>GET QASE.
GET QASV.
GET QASR.</b>
But in runtime I see that QAMR and QASE is filled up with # data ...I am not sure if is right way to do....Is this the way to use the structure defined in the Logical database? QAMV and QASV lie in the same level of hierarchy and I have to use them to get QASE and QASR data...Let me know, if I am not clear...
Thanks for taking your time and I appreciate if some one can help me.
--- AshleyHi Ankur
You can use program SAPDBPGQ that is program created to test logical database PGQ. Then you can get only part responsible for nodes QALS, QAPO and QAMV
Best regards -
How to make use of logical database in reports?
hi,
I am working on a Cash Flow Forecast report, which requires the usage of 'PSJ' Logical Database for the selection screen with Profit Center(PRCTR) as one field and the other field being Period ( in MM/YYYY format).
I have not worked on Logical Database before. Since, its for the first time I am working on LDB, I require help on it.
How to proceed for this, can someone help me with it?
On receiving further inputs, I will proceed and might come up with some more queries.
Regards,
RaviHi Hari,
Thanks a lot for being so patient. yeah, I will just send you a code snippet of mine. My code is of 3000 Lines. Hence, I will send few parts of it. Just go through and let me know if you need any further information from my side.
Here is the snippet:
*& TABLES
TABLES: PROJ, "Project definition.
PRPS, "WBS Element Master Data
COSP, "CO: External Table.
COFP, "CO: External Table.
SETLEAF, "Value in sets.
FAGLFLEXT, "Profit Center.
S031, "Statistics: Movements for Current Stocks.
SETHEADERT, "short Description of Sets.
AFVC, "Operation within an Order.
AUFK, "Order master data.
PRHI, "Work Breakdown Structure.
AFKO, "Order header data PP orders.
NRIV, "Number range Intervals.
SKB1, "G/L Account Master (company code).
FMCI. "Commitments Item master data.
Type Pool
TYPE-POOLS: SLIS.
FIELD-SYMBOLS: <DYN_TABLE> TYPE STANDARD TABLE,
<DYN_WA>,
<DYN_FIELD>.
DATA: COUNT TYPE I,
D_PERIOL LIKE COFP-PERIO,
D_PERIOH LIKE COFP-PERIO,
D_GJAHRL LIKE COFP-GJAHR,
D_GJAHRH LIKE COFP-GJAHR,
D_GJAHR LIKE COFP-GJAHR,
D_PERIO LIKE COFP-PERIO,
OBJNR LIKE COSP-OBJNR,
PKOKR LIKE PRPS-PKOKR,
G_NRLEVEL LIKE NRIV-NRLEVEL,
G_BELNR LIKE COFP-BELNR,
I_OBJ-OBJNR LIKE COFP-OBJNR,
G_OPNGBAL LIKE FAGLFLEXT-HSL01,
G_PAYROLL LIKE COSP-WKG001,
G_PYROL_TAX LIKE COFP-WKGBTR,
G_PENSION LIKE COFP-WKGBTR,
G_BTLDGR LIKE COFP-WKGBTR,
G_REIMPYMT LIKE COFP-WKGBTR,
G_INTCORCPT LIKE COFP-WKGBTR,
G_CAPEXP LIKE COFP-WKGBTR,
G_SLSLDGR LIKE COFP-WKGBTR,
G_REIMRCPT LIKE COFP-WKGBTR,
G_TOTPYMNTS LIKE COFP-WKGBTR VALUE 0,
G_TOTRECPTS LIKE COFP-WKGBTR VALUE 0,
G_MVMTFRMNTH LIKE COFP-WKGBTR VALUE 0,
G_CLSGBAL LIKE COFP-WKGBTR VALUE 0.
DATA: LYEAR(4) TYPE N,
LMONTH1(2) TYPE N,
MON1(2) TYPE N.
DATA: HYEAR(4) TYPE N.
DATA: LMONTH(2) TYPE N.
DATA: HMONTH(2) TYPE N.
DATA: TOTAL(10) TYPE N.
DATA: SUM(10) TYPE N.
DATA: G_PSPID LIKE PROJ-PSPID.
DATA: TOTAL1 LIKE COFP-WKGBTR,
TOTAL2 LIKE COFP-WKGBTR.
DATA: G_KOKRS LIKE COFP-KOKRS,
G_FIPOS LIKE SKB1-FIPOS,
G_POSIT LIKE COFP-POSIT,
G_BUKRS LIKE COFP-BUKRS.
DATA: L_RACCT LIKE FAGLFLEXT-RACCT VALUE '0000220000',
H_RACCT LIKE FAGLFLEXT-RACCT VALUE '0000227999'.
DATA: I TYPE I VALUE '74'.
DATA: P TYPE I VALUE '62'.
*& SELECT-OPTIONS
PARAMETERS : S_PRCTR LIKE PROJ-PRCTR. "Profit Center
SELECT-OPTIONS: SL_SPMON FOR S031-SPMON OBLIGATORY. "Period
*INITIALIZATION
INITIALIZATION.
SL_SPMON-SIGN = C_IN.
SL_SPMON-OPTION = C_BT.
SL_SPMON-LOW = SL_SPMON.
SL_SPMON-HIGH = SL_SPMON.
APPEND SL_SPMON.
AT SELECTION-SCREEN
Event which occurs each time the user hits enter on the selection
Screen.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR SL_SPMON-LOW.
PERFORM MONAT_F4.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR SL_SPMON-HIGH.
PERFORM MONAT_F4.
SELECT SINGLE * FROM PROJ WHERE PRCTR = S_PRCTR.
IF SY-SUBRC <> 0 AND NOT ( S_PRCTR IS INITIAL ).
MESSAGE E019.
ENDIF.
ALL WBS ELEMENT SELECTION
SELECT PSPID INTO TABLE I_PROJTAB FROM PROJ WHERE PRCTR = S_PRCTR.
IF SY-SUBRC = 0.
LOOP AT I_PROJTAB.
CALL FUNCTION 'GET_TREE_FROM_PRHI'
EXPORTING
I_POSID = I_PROJTAB-PSPID
I_PSPNR = 00000000
NO_BUFFER = ' '
TABLES
PSP_TREE = I_PRHI
EXCEPTIONS
INPUT_ERROR = 1
PSP_HIERARCHY_ERROR = 2
PSP_NOT_FOUND = 3
OTHERS = 4
ENDLOOP. " PROJTAB
ENDIF.
SELECT * FROM PRPS INTO TABLE I_PRPSVC FOR ALL ENTRIES IN I_PRHI
WHERE PSPNR = I_PRHI-POSNR.
SELECT * FROM AFVC INTO TABLE I_AFVC FOR ALL ENTRIES IN I_PRPSVC
WHERE PROJN = I_PRPSVC-PSPNR.
SELECT * FROM AUFK INTO TABLE I_AUFK FOR ALL ENTRIES IN I_PRPSVC
WHERE PSPEL = I_PRPSVC-PSPNR AND AUTYP NE C_TWENTY.
SELECT OBJNR FROM PRPS INTO TABLE I_OBJ FOR ALL ENTRIES IN I_PRHI
WHERE PSPNR = I_PRHI-POSNR.
IF SY-SUBRC <> 0.
MESSAGE E010.
ENDIF.
I hope that's of some use.
Thanks & Regards,
Ravi -
What are the logical database source (SQVI) should i use for quick viewer
Dear expert,
Would like to seek for your help, how to use (SQVI) quick viewer/SAP query to generate the listing of and can I use SQVI -quick viewer and select the data source as logical database source to generate in order to generate the listing of GL account number,GL account descrition , tax category,posting without tax allowed column in the query by company?
Between, what are the data source should I use for logical database to generate the query with listing of GL account number,GL account descrition , tax category,posting without tax allowed column in the query by company?
Please help.
Many Thanks.
Regards,
KarenHi,
Thank you for the prompt reply, what I would like the query to generate is the master data GL listing for GL account,GL description,Tax category, posting without tax allowed column where i use BRF as the data source for logical database to generate the quick viewver but the BRF data source do not have the GL description.
How I can join table/join query or what are the data source should i use so that i can able to generate the query with GL master data listing by company code by display GL account,GL description,Tax category, posting without tax allowed?
Between,do you have any reference/link/document on the how to use the SQV1?
Also, what the difference between SQV1 and SQ01 ?
And also what are the sap query,inforset query,quick viewer mean for and what are the difference between them also when should i use sap query,inforset query,quick viewer to generate the query?
Please help.
Many thanks.
KH
Maybe you are looking for
-
Error in invoking target 'agent nmb nmo nmhs' of makefile ins_emagent.mk
Hi, I am installing Oracle 11g R 2 on AIX 6.1. I have met all the pre reqs according to installation document, but at 69% of installation process i am getting the following error Error in invoking target 'agent nmb nmo nmhs' of makefile '/ora/product
-
Problem with the Titler WIndow
Hello, I don't know how it happened but the titler window is saparate in 2 windows : one with the title by it self and the other one with tools and buttons. How is it possible to have only one window again ? Thank you for your help and regards, Danie
-
My history keeps deleting itself. How do I prevent this?
I went to the options tab and private browsing is not on. The box about clearing history every time I exit isn't checked. Every thing is the same, except my history just automatically deletes itself. I don't know what happened.
-
Ssrs 2008 export to csv file display issue
In a new SSRS 2008 report, I would like to know if there is a way to automatically expand the width of some of the rows when the data is exported to a CSV file so the data is displayed correctly. Here are examples that I am referring to: 1. In one co
-
Please Help Me Is there any way of recovering files from time machine
Recently had a new hard drive fitted,tried to restore files from time machine,but failed went to Apple store with my imac and time machine. They said use migration app, needed to add a new user profile to do this. When entering time machine there wer