Logical databse
hi all
i had tried so many times to change the selection screen of logical database but i was not able to do this whenever i change the screen that change is disappeard on runtime can anyone help me on how to change the selection screen of logical databse.
sunanda
You can define a selection view from the ABAP
Workbench by choosing Extras ® Selection views to open the
Logical Database Builder, or by choosing Further objects
from the initial screen of the Repository Browser. They
are identified using a three-character key describing the
origin of the selection view. Predefined selection views
have the key SAP, customer-defined ones have the key CUS.
This way, users can define the best logical database
selection views for their requirements.
If you want to use a selection view in a logical database,
it must be called STANDARD, and must be assigned to a
logical database. Selection views that are not assigned to
a particular logical database may have any name, and they
can be used freely.
For more information ,refer this help:
http://help.sap.com/saphelp_47x200/helpdata/en/f7/3ecfa4149c11d2953c0000e8353423/frameset.htm
Additionally you may also want to view this part of the help:
http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9c2e35c111d1829f0000e829fbfe/frameset.htm
Regards,
Subramanian V.
Message was edited by: Subramanian Venkateswaran
Similar Messages
-
Hi
I call in loop logical database by FM LDB_PROCESS in different parameters but only first step is return ok
next return error subrc = 1 LDB_NOT_REENTRANT
How to init this calling in second step?Hi
Firstly why you are calling the LDB using FM instead mentioned that in Program attributes and call that using GET statement ?
Regards,
Sreeram -
SAP Query with Logical databse BRM
Hi All,
I'm developing one report by SAP Query using with logical database BRM to pick the accounting documents. But I would like add some kind of where condtion for one of field for BKPF table. Is there way to achieve this by using logical database concept? If there is a way please help me.
Thanks in advance.
Regards,
TNRhi
in SQVI, kindly follow the below steps:
a. in the left hand pane, click on the data fields.
b. expand the 'accounting document header'.
c. for the field BKPF-TCODE click on the 'List Fields' and the 'Selection fields'.
d. click on execute,
e. you can now enter the values for the BKPF-TCODE.
regards
eashwar
Edited by: eashwar1 on Feb 11, 2010 11:55 AM -
SAP Query with Logical databse
Hi All,
I'm developing one report by SAP Query using with logical database BRM to pick the accounting documents. But I would like add some kind of where condtion for one of field for BKPF table. Is there way to achieve this by using logical database concept? If there is a way please help me.
Thanks in advance.
Regards,
TNRhi
in SQVI, kindly follow the below steps:
a. in the left hand pane, click on the data fields.
b. expand the 'accounting document header'.
c. for the field BKPF-TCODE click on the 'List Fields' and the 'Selection fields'.
d. click on execute,
e. you can now enter the values for the BKPF-TCODE.
regards
eashwar
Edited by: eashwar1 on Feb 11, 2010 11:55 AM -
User exit for logical databse SDF
Hi,
I got 2 requirements for tcode FBL3N as below. My problem now is on 2nd requirement.
1. for the output listing - to display the vendor code and name 1 and name 2
we have afew types of vendors; alternate payee, vendor on behalf, one off vendor, cross company vendor etc.
To extract the vendor details, I did some coding in FM ZFI_INTERFACE_00001650 and attach to the BTE
for this, I have added 3 fields in structure RFPOS and RFPOSX; lifnr, name1 and name2
the result: everything is ok and the output has been accepted by user althought got incorrect data when come to multiple vendor in 1 document. the FM will only select the 1st vendor in the document
2. for the selection screen - to add vendor code
we agreed to add in the dynamic selection and for this, I have changed the SDF logical database
i have added field lifnr in structure FAGLFREESEL and has added statement -> tables: FAGLFREESEL in the FBL3N program (based on SNote). At first i plan to copy the FBL3N to Z program, but my user dont want alot of Z program and Z tcode being created
after run the FBL3N, the vendor field appear in the dynamic selection
the problem is: the output is not based on the selected vendor. seems like the program is ignoring the vendor field.
I believe I need to put some selection coding somewhere in the logical database to also check on the additional field (lifnr) but no idea on that. and of course my selection for the vendor must be same as what I did in FM ZFI_INTERFACE_00001650 (1st requirement) since we have alot of vendor types.
somebody please advice or give some idea on how do I proceed with the 2nd requirement.
thanksHi Sumaiya,
How did you resolve this, I have a similar issue. Please share.
Thanks
Shailaja -
How to pass dynamic selection to logical databse using ldb_process function
dear friends,
can anybode tell me how to pass dynamic selection to the logical database when i m using LDB_PROCESS function module. however, in EXPRESSIONS paramter of the function module i m passing the selecti-option, it is passing their also but when i used more than two select-option or paramter it throw an exception FREE_SELECTIONS_ERROR.
SO PLEASE GUIDE ME HOW TO PASS MORE THAN TWO SELECT-OPTION IN LOGICAL DATANSE DYNAMICALLY USING LDB_PROCESS.would be nice if you post the answer to all
-
Dynamic selction in logical databse using LDB_PROCESS method
dear friends,
can anybode tell me how to pass dynamic selection to the logical database when i m using LDB_PROCESScancel
-
Problem in Logical Databse Call via Function Module - Urgent
Hi Experts,
To use the Logical Database(LDB) in the function module(Custom) I am using the function module - LDB_PROCESS. But I didn't get any output. I am attaching the code. Please Help me in this.
DATA : W_LDBNAME LIKE TRDIR-LDBNAME.
DATA : IT_CALLBACK LIKE TABLE OF LDBCB WITH HEADER LINE,
IT_SELECTIONS LIKE TABLE OF RSPARAMS WITH HEADER LINE,
IT_PERNR TYPE TABLE OF PERNR WITH HEADER LINE.
MOVE 'PNP' TO W_LDBNAME.
IT_CALLBACK-LDBNODE = 'PERNR'.
IT_CALLBACK-GET = 'X'.
IT_CALLBACK-CB_PROG = SY-CPROG.
IT_CALLBACK-CB_FORM = 'CALLBACK_PERNR'.
APPEND IT_CALLBACK.
CLEAR IT_CALLBACK.
IT_SELECTIONS-KIND = 'S'.
IT_SELECTIONS-SELNAME = 'PNPPERNR'.
IT_SELECTIONS-SIGN = 'I'.
IT_SELECTIONS-OPTION = 'EQ'.
IT_SELECTIONS-LOW = '100178'.
APPEND IT_SELECTIONS.
CLEAR IT_SELECTIONS.
CALL FUNCTION 'LDB_PROCESS'
EXPORTING
LDBNAME = W_LDBNAME
VARIANT =
EXPRESSIONS =
FIELD_SELECTION =
DYN_NODE_TYPES =
TABLES
CALLBACK = IT_CALLBACK
SELECTIONS = IT_SELECTIONS
EXCEPTIONS
LDB_NOT_REENTRANT = 1
LDB_INCORRECT = 2
LDB_ALREADY_RUNNING = 3
LDB_ERROR = 4
LDB_SELECTIONS_ERROR = 5
LDB_SELECTIONS_NOT_ACCEPTED = 6
VARIANT_NOT_EXISTENT = 7
VARIANT_OBSOLETE = 8
VARIANT_ERROR = 9
FREE_SELECTIONS_ERROR = 10
CALLBACK_NO_EVENT = 11
CALLBACK_NODE_DUPLICATE = 12
CALLBACK_NO_PROGRAM = 13
CALLBACK_NO_CBFORM = 14
DYN_NODE_NO_TYPE = 15
DYN_NODE_INVALID_TYPE = 16
OTHERS = 17.
IF SY-SUBRC <> 0.
MESSAGE I039(ZABA) WITH SY-SUBRC.
ENDIF.
LOOP AT IT_PERNR.
message i039(zaba) with 'Inside loop'.
WRITE : / IT_PERNR-PERNR, IT_PERNR-BUKRS.
ENDLOOP.
*& Form CALLBACK_PERNR
text
-->L_LDBNAME text
-->L_IT_PAYROLL text
-->TYPE text
-->PAY99_REULT text
-->L_EVT text
-->L_CHK text
FORM CALLBACK_PERNR USING L_LDBNAME LIKE TRDIR-LDBNAME
L_IT_PERNR LIKE PERNR
L_EVT type C
L_CHK type C.
message i039(zaba) with 'Inside Callback'.
WRITE : / L_IT_PERNR-PERNR,
L_IT_PERNR-BUKRS.
MOVE-CORRESPONDING L_IT_PERNR TO IT_PERNR.
APPEND IT_PERNR.
CLEAR IT_PERNR.
ENDFORM. "CALLBACK_PERNR
Thanks in advance
Arul Jothi.Hi,
I think Arul commented the 'it_selections' while trying out.. I couldn't get the fm work for PNP.. it worked fine with the FI LDBs.. just didn't seem to like the PNP..
Regards,
Suresh Datti -
Get pernr based on company code in logical databse
Hi,
When using the get pernr event, all the pernrs that I get are in the ascending order I want them first grouped based on the company code and then on pernr.
Any suggestions would be appreciated abd suitably rewarded.
for ex: get pernr.
write:/ pernr, bukrs.
end-of-selection.
result: 00000099 1001
00000002 1003
Regards
Vick
Message was edited by:
vick vennavfor ex: get pernr.
write:/ pernr, bukrs.
end-of-selection.
result: 00000099 1001
00000002 1003
We are sending the payroll information to the 3rd party for pay check purposes, at my client side they have inserted a custom include in the standard program and populating the information in a flat file which needs to be sorted first based on company code and then on pernr. If I try to do it later,the code is becoming a mess, so I want to know is there a way to get pernr using logical database whose order is based on company code.
Regards -
Logical databse call using FM LDB_PROCESS in ABAP WD
hi
i want to use LDB in a webdynpro application to read the data. i came to know that we can use LDB_PROCESS FM to achieve this. we need to pass callback routines to this FM. as we can not write subroutines in ABAP OO, how do i do this. do i need a wrapper FM around LDB_PROCESS and call that in turn in the webdynpro method or is there any better way to do that.
thanksl
Edited by: sudhakar murthy on Oct 20, 2009 4:10 PMhi
if you go through that help link you will find an example at the bottom where we need define some call back routines using FORM and ENDFORM. I can not do that in ABAP WD as WD is based on ABAP OO.
thanks -
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,
I have the following issue:
we need to make use of BADI 'MD_PURREQ_CHANGE' here I need to use Logical Database 'DBM' in my implimentation method. Shall we make use of Logical Databse in ABAP Objects? If yes, could you give any ideas please?
Thanks & regards
SreenivasHi,
I tried several times, it seems that is not possible to make use of Logical Database from ABAP Objects.
IS there any ideas?
I am providing some more details:
While I was testing the MRP BADI the MDTB table is not being updated with any data . OSS note 440016 says that there is a customizing setting by which you can still update the MDTB table but this would lead to performance issues (easier to query though).
In standard SAP, MRP data is stored as an aggregated list (table is stored as a data cluster and I need an ABAP extract to get something meaningful from it) in table MDTC for improved performance.
Does any body having an ideas on this?
Thanks & regards
Sreenivas -
Report using logical data base
Hello friends,
please give me a sample report program using logical database with explanation where logical databse used and how it works?See the program given below, it uses logical database PNP.
DESCRIPTION : TO GENERATE SIMPLE REPORT USING HR ABAP
LOGICAl DATABASE- PNP .
REPORT Zdemop_HR_prog_1
LINE-SIZE 200 .
*Database Table
TABLES: PERNR, " Pernr structure for Logical database
PA0001, " Actions
PA0002. " Personnel Info
*Infotypes
INFOTYPES: 0001, " Actions
0002. " personnel info
*Variable Declaration
DATA: FORM_NAM LIKE P0001-ENAME,
V_AGE(5) TYPE C, "variable for calculating age in days
V_CTR1 TYPE I VALUE 0, "counter
V_CTR2 TYPE I VALUE 0, "counter
VAR(5) TYPE C , " variable to store btrtl
VAR1(5) TYPE C . " variable to store werks
*Internal Table Decalartion
DATA: BEGIN OF I_TAB1 OCCURS 0,
WERKS LIKE PA0001-WERKS, "personnel area
BTRTL LIKE PA0001-BTRTL, "personnel sub area
PERNR LIKE PA0001-PERNR, "employee number
ENAME LIKE PA0001-ENAME, "employee name
BEGDA LIKE PA0002-BEGDA, "employee join date
PERSG LIKE PA0001-PERSG, "employee group
PERSK LIKE PA0001-PERSK, "employee sub-group
PLANS LIKE PA0001-PLANS, "position
GBDAT LIKE P0002-GBDAT, "date of birth
END OF I_TAB1.
*START-OF-SELECTION
START-OF-SELECTION .
GET PERNR .
RP-PROVIDE-FROM-LAST P0001 SPACE PN-BEGDA PN-ENDDA . " Macro for IFT-0001
RP-PROVIDE-FROM-LAST P0002 SPACE PN-BEGDA PN-ENDDA . " Macro for IFT-0002
**--> Populate internal table
MOVE P0001-WERKS TO I_TAB1-WERKS .
MOVE P0001-BTRTL TO I_TAB1-BTRTL .
MOVE P0001-PERNR TO I_TAB1-PERNR .
MOVE P0001-ENAME TO I_TAB1-ENAME .
MOVE P0002-BEGDA TO I_TAB1-BEGDA .
MOVE P0001-PERSG TO I_TAB1-PERSG .
MOVE P0001-PERSK TO I_TAB1-PERSK .
MOVE P0001-PLANS TO I_TAB1-PLANS .
MOVE P0002-GBDAT TO I_TAB1-GBDAT .
**--> Append data to internal table
APPEND I_TAB1 .
CLEAR I_TAB1 . " Clear header I_TAB1
*END-OF-SELECTION
END-OF-SELECTION.
*****sorting the internal table on Personnel Area & Personnel Sub-Area
SORT I_TAB1 BY WERKS BTRTL.
*TOP_OF_PAGE
PERFORM TOP_OF_PAGE.
*Output Display
LOOP AT I_TAB1.
*for calculating the age in days
V_AGE = SY-DATUM - I_TAB1-GBDAT.
*control break on Personal Sub Area
AT NEW BTRTL .
IF SY-TABIX NE 1.
FORMAT COLOR COL_NORMAL ON.
WRITE:/5 'Total Number of Employees for personnel Sub-Area:',
VAR , 'is ',
V_CTR1.
CLEAR V_CTR1.
FORMAT COLOR OFF.
ENDIF.
ENDAT .
**Control Break on personnel Area
AT NEW WERKS.
IF SY-TABIX NE 1.
FORMAT COLOR COL_TOTAL ON.
WRITE:/5 'Total Number of Employees for Personal Area: ',
VAR1 ,'is ', V_CTR2. "color col_total.
CLEAR V_CTR2.
SKIP 1.
FORMAT COLOR OFF.
ENDIF.
ENDAT .
WRITE:/5 I_TAB1-PERNR, "personnel number
16 I_TAB1-ENAME, "emp name
47 I_TAB1-BEGDA, "join date
60 V_AGE, "age in days
74 I_TAB1-WERKS, "P area
84 I_TAB1-BTRTL, "P sub Area
94 I_TAB1-PERSG, "emp group
104 I_TAB1-PERSK, "emp sub group
114 I_TAB1-PLANS. "position
V_CTR1 = V_CTR1 + 1.
V_CTR2 = V_CTR2 + 1.
VAR = I_TAB1-BTRTL .
VAR1 = I_TAB1-WERKS .
ENDLOOP.
*& Form top_of_page
Header Output
FORM TOP_OF_PAGE.
FORMAT COLOR COL_HEADING ON.
WRITE:/5 'Employee',
16 'Employee',
47 'Join Date',
62 'Age',
74 'Personal',
84 'Personal',
94 'Employee',
104 'Employee',
114 'Position ',
/5 'Number',
16 'Name',
60 '(In Days)',
74 'Area',
84 'Sub-Area',
94 'Group',
104 'Sub-Group'.
FORMAT COLOR OFF.
SKIP 1.
ENDFORM. " top_of_page
Regards,
Joy. -
Logical database PNP (Suppress message)
Hi,
we are having 1 report which is using logical database PNP
this is being shown in ALV
when the user runs the report the output is shown and after pressing BACK button the below lines are being shown
Personnel numbers skipped by the database driver
Reason 1: insufficient authorization, no. skipped personnel nos.:
this is being done by logical databse program SAPDBPNP
is there any way to supress this mesasge
thanking you in advance
regards
Sai easwarI belive this is not concurent employment why we need to use
PNPCE
Please be specific about your question
Regards -
Field symbols and logical databases
Hi,
How to use field symbols in an abap HR program with logical database? For most of the reports and interfaces in HR, I have used GET PERNR with logical database to fetch data from the tables. I understand that this method of programming using logical databses, is less coding and improves the performance. I am curious to know the usage of field pointers here. How does this help? Is it necessary from a performance point of view? I would like to look at an example that has LDB and field symbols used in combination. I did not find one in the threads.
Any thoughts and what do you recommend?
Thanks in advance,
VGField-Symbols utilize memory more efficiently.Hence Better utilization of memory better is performance.
Memory utilization is one of the factor for performance.
[LDBFIELD-SYMBOLS|https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/generictemplatetoAccessLDB]
[Field Symbols|https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/abap%252bsyntax]
Hope this resolves your query.
Regards,
Gurpreet
Maybe you are looking for
-
I can no longer access my itunes store account
When I try to log into my itunes store account information, I keep getting this weird error message that says: We could not complete you iTunes store request. An unknown error has occurred (5002). There was an error in the itunes store. Please try ag
-
Custom Schedule Task ( Null Pointer Exception)
Hi All, I had written Custom Schedule task: Below is the code When i run the Schedule task it is failing throwing Null Pointer Exception. the code is not able to fetch userId ,passwordex and passwordwar values in execute method. please help me packag
-
Mouse pointer lag (trackpad and mouse)
Hi all, I recently purchased a MacBookPro 13 inch for my work. It's the i7 version wth 8 gig of ram with mountain lion installed. I have some major problems with both my mouse and my trackpad. The cursor has a lot of lag, it kind of make stutter and
-
How to type Korean Characters in command prompt of Korean win2k3/XP
We are not able to type the Korean multi-bytes in command prompt of Korean-Win2k3/XP. But we able to copy paste the Korean characters command prompt successfully. Here we are using "MS-IME2002" as keyboard type In case of Korean-Win2k8, able to type
-
is it possible to build a tree with the tree coordinates i have a tree cordinates field and the description of the co-ordinate in my database tree-coord description 1.1.2 AAA 1.1.3 aaa 2.1.2 VVV 2.2.3 TTR I have build