Add field in a query (logical data base)
Hi,
I want to add a field in a query .
The data source of its infoset is logical database .
When i tried to drag and drop the field, the alv grid turned to alv list.
Can you help me.
thanks,
Meriem.
Hi Merim,
As KAMESH mention,
you can add additional fields in your infoset and put the logic for that field in your infoset program and assign the same field in your existing group within infoset.
once you assign the infoset and generate the infoset then your field will be reflected in sap Query .
you can add additional field in your output.
Regards,
Prasenjit Mishra
Similar Messages
-
SAP QUERY -logical data base ADA
I have created a SAP Query with logical data base ADA,I have selected four tables in it.Do i need to link these tables if yes..where and how?The report is for fields in asset master data.
.But i get below error when i try to genaret the output :
Fields from parallel tables within a line
Line: 01
Field: Asset description
(ANLT-TXT50, table ANLT)
Field: License plate no. of vehichle
(ANLZ-KFZKZ, table ANLZ)
i get such similar five messages but they are warning..when i execute with warning however i get the fields with description but not with Value.Ex:i get asset description and not Asset number as required.You don't have to link them, they ar linked that is the power of a logical data base
To get the text in your report you need the key fields
Like
(Lanque Key)
company code
asset number
Asset sub number
Go to info sets and look to the standard ones like /SAPQUERY/AM01 -
Logical data base for license revenue report.
Hi All,
My requirement is to create "license revenue report through SAP Query with following fields:
VBAK:
Sales Document,Sales Doc type,net value of sales order in document,sales org,distribution channel,division,sales office,business area,customer purchase order number,customer purchase order date,sold to party.
VBAP:
Sales document item,target quantity in sales units,target quantity in UOM,usage indicator,billing block for item,business area,plant(own or external),
origin of bill of material,net price,SD document currency,material pricing pgroup,account assignment group for this material,activity type,personnel number.
VEDA:
contracts start date,contract end date,date on which contract is assigned.,installation date,agreement acceptance date
VBREVK:
clearing account for accrued revenues,clearing accountkey(offsetting account),total accrued value,currency key,amount in document currency,posting year and posting period.
VBREVE:
revenue amount,currency key,accrual period,company code,country of destination,profit center,posting year and posting period,amount in document currency,gl account,account for deferred revenue,account for non billed receivable
Is there any standard logical data base which gives all the required fields mentioned above? since i am not SD consultant i am not sure whether i have to take only above tables exactly or not
there are certain logical databases like SD_ORDER,SD_SALES_DOCUMENT which has tables VBAK,VBAP,VEDA but i am unable to join remaining tables VBREVE and VBREVK with those logical data bases
Please provide some valuable suggestions on this.
Thanks&RegardsHi All,
My requirement is to create "license revenue report through SAP Query with following fields:
VBAK:
Sales Document,Sales Doc type,net value of sales order in document,sales org,distribution channel,division,sales office,business area,customer purchase order number,customer purchase order date,sold to party.
VBAP:
Sales document item,target quantity in sales units,target quantity in UOM,usage indicator,billing block for item,business area,plant(own or external),
origin of bill of material,net price,SD document currency,material pricing pgroup,account assignment group for this material,activity type,personnel number.
VEDA:
contracts start date,contract end date,date on which contract is assigned.,installation date,agreement acceptance date
VBREVK:
clearing account for accrued revenues,clearing accountkey(offsetting account),total accrued value,currency key,amount in document currency,posting year and posting period.
VBREVE:
revenue amount,currency key,accrual period,company code,country of destination,profit center,posting year and posting period,amount in document currency,gl account,account for deferred revenue,account for non billed receivable
Is there any standard logical data base which gives all the required fields mentioned above? since i am not SD consultant i am not sure whether i have to take only above tables exactly or not
there are certain logical databases like SD_ORDER,SD_SALES_DOCUMENT which has tables VBAK,VBAP,VEDA but i am unable to join remaining tables VBREVE and VBREVK with those logical data bases
Please provide some valuable suggestions on this.
Thanks&Regards -
Logical Data Base to be used in the QUICKVIEWER
hello Abappers,
My client cannot select text fields using SQVI so he wants me to come up with a way for him to do so. I was thinking of creating a logical data base which can be selected in SQVI. I could build the FM READ_TEXT into the QV but what I need clarification on is outputting the text fields because the logical data base is really a set of table joins and since I am using the QV I do not have the flexibility that I would have if I was using a logical data base in a program.
Please advise if anybody has any ideas on this approach and how I would structure the output.
regardsHi Santhosh,
Since you say you are a beginner, lets start this way, hopefully U know from what datasources in ECC or R/3 you are supposed to load data from. Once you are sure about it, then follow this steps.
1) Go to RSA5 transaction in ECC or R/3 System ( source system ).
2) Select the specific datasource from which data is to be extracted to BI and press Activate Datasources button on the top right.
3) Then on check whether this datasource is available in RSA6 screen.
4) Come to BI system, there go to the Source Systems screen, there select the specific Source System (ECC or R/3).
Go to U'r specific Infoarea i.e., SCM in that select the datasource for which U are supposed to extract data, right click and select Replicate Metadata.
5) Once replication is done now right click again on datasource and create and run the infopackage , if its BI 7.0 data will be extracted till PSA.
6) After this create Transformation by right clicking on the Datasource again. Since I guess U will be using standard datasource U will get automatic transformations between the source fields and the infoobjects. Activate Transformations.
7) After this Create a DTP process by again right clicking on the Datasource. Here U specify the Data Target to which data is to be loaded.
8) Activate the DTP, once that's done successfully, Execute the DTP by clicking the Execute Button in the DTP.
9) Monitor U'r data loading thru Monitor screen.
Hope this helps.
Regards,
Syed -
Error while fetching data from Logical data base
Hi All,
I need to fetch the data from Logical data base DDF.First when i am trying demo code
REPORT demo_program_read_tables_2.
NODES: spfli, sflight.
GET spfli FIELDS carrid connid cityfrom cityto.
WRITE: / spfli-carrid,
spfli-connid,
spfli-cityfrom,
spfli-cityto.
GET sflight FIELDS fldate.
WRITE: / sflight-fldate.
I am getting error like ""spfli is not a node of the logical data base __S""
Should i declare anything esle?
MadhuREPORT demo_logical_database.
DATA wa_spfli TYPE spfli.
SELECT-OPTIONS s_carr FOR wa_spfli-carrid.
DATA: callback TYPE TABLE OF ldbcb,
callback_wa LIKE LINE OF callback.
DATA: seltab TYPE TABLE OF rsparams,
seltab_wa LIKE LINE OF seltab.
callback_wa-ldbnode = 'SPFLI'.
callback_wa-get = 'X'.
callback_wa-get_late = 'X'.
callback_wa-cb_prog = sy-repid.
callback_wa-cb_form = 'CALLBACK_SPFLI'.
APPEND callback_wa TO callback.
CLEAR callback_wa.
callback_wa-ldbnode = 'SFLIGHT'.
callback_wa-get = 'X'.
callback_wa-cb_prog = sy-repid.
callback_wa-cb_form = 'CALLBACK_SFLIGHT'.
APPEND callback_wa TO callback.
seltab_wa-kind = 'S'.
seltab_wa-selname = 'CARRID'.
LOOP AT s_carr.
MOVE-CORRESPONDING s_carr TO seltab_wa.
APPEND seltab_wa TO seltab.
ENDLOOP.
CALL FUNCTION 'LDB_PROCESS'
EXPORTING
ldbname = 'F1S'
variant = ' '
TABLES
callback = callback
selections = seltab
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
OTHERS = 13.
IF sy-subrc <> 0.
WRITE: 'Exception with SY-SUBRC', sy-subrc.
ENDIF.
FORM callback_spfli USING name TYPE ldbn-ldbnode
wa TYPE spfli
evt TYPE c
check TYPE c.
CASE evt.
WHEN 'G'.
WRITE: / wa-carrid, wa-connid, wa-cityfrom, wa-cityto.
ULINE.
WHEN 'L'.
ULINE.
ENDCASE.
ENDFORM.
FORM callback_sflight USING name TYPE ldbn-ldbnode
wa TYPE sflight
evt TYPE c
check TYPE c.
WRITE: / wa-fldate, wa-seatsocc, wa-seatsmax.
ENDFORM. -
Hi, people,
I`m using Logical Data Base ADA in my program to generate some files, but when the program is executed in DEV System the files are generated normaly, but in the PRD system don´t work.
Someone knows if exist same parameter or why this problem occurs ?
Tks for all.
FlavioAs ADA is a standard logical database, if you don't change this object, there should be no difference, except Authorizations that may differ between development and production systems , check via [SU53|http://www.sdn.sap.com/irj/scn/advancedsearch?query=su53+#sdn_content_category_value_wiki].
(In AM "Asset Accounting" class, check authorization objects : A_A_VIEW, A_S_ANLKL, A_S_GSBER, A_S_WERK.)
Regards,
Raymond -
Help with pnpce logic data base
Hallow I doing a program that use logic data base pnpce(my first time) and in the program I use get peras to bring the employee num and in the loop the name of employee
Something I doing wrong because its not working what?
I just wont to bring to my table person_tab employee num and name.
thankes
Tables :pernr
Nodes:persa
Infotypes:0000 like t_oooo,
00002 like t_0002.
START-OF-SELECTION.
GET peras.
LOOP AT t_0000.
MOVE t_0000-pernr TO person_tab-objid.
APPEND person_tab.
Endloop.
Loop at t0002.
MOVE t_0002-nachn TO person_tab-lastname.
MOVE t_0002-vorna TO person_tab-firstname.
APPEND person_tab.
ENDLOOP.
END-OF-SELECTION.Hi there. I'm not sure what version you are on, but in ERP 2005 this is an obsolete statement. Here's an alternate way to get the information you're looking for:
TABLES: PERNR.
INFOTYPES: 0002.
DATA: BEGIN OF person_tab OCCURS 0,
objid LIKE PERNR-PERNR,
lastname LIKE P0002-NACHN,
firstname LIKE P0002-VORNA,
END OF person_tab.
START-OF-SELECTION.
GET pernr.
person_tab-objid = pernr-pernr.
RP-PROVIDE-FROM-LAST P0002 space sy-datum sy-datum.
person_tab-lastname = p0002-nachn.
person_tab-firstname = p0002-vorna.
APPEND person_tab.
CLEAR person_tab.
END-OF-SELECTION.
Even if you don't end up using this code, you would need to change yours so that you aren't appending to your person_tab table until you have moved all of the data for the fields of your record. By appending twice like you currently are doing, you are creating two separate records (one with just the pernr and another with the first and last name). I hope this helps.
- April King -
Hiding dynamic selections which is default if Logical Data Bases is used
Hi All,
Am making use of PNP logical data base in my report .On the selection screen there is a default icon with text dynamic selections is visible besides the execute icon.Can please anyone tell me how to hide this,i have gone through the DBPNPSEL include but was not able to find the solution for the same.
Pointers will be appriciated.
Regards,
Zareena.Create your own report catogory
Goto --> Attributes --> Report Catogory
with all the fields that you require
That will solve your problem -
Hi
could pls let me know the Tcode to look for the logical data base in sap r/3
Thanks
PHello,
SE36
Regards
Saket Sharma -
Logical data base and work process
I have some questions on the above topics.
if some have an answer, let me know .
1. How many logical data bases can we use in our
report program
2. How to design our own selection screen when
using
logical database
3. How mnay update workprocesses can u have.
Thanks in advance.
Regards,
Roberts.KWelcome to the forum!
In response to question 1:
You can designate only 1 LDB on the Attribute screen of the program. You can however, also invoke a LDB program using Function Module LDB_PROCESS. There is some good documentation associated with it.
In response to question 2:
If you specify a LDB on your program attributes, the LDB will present a selection screen. Any parameters/select options that you specify in your program are added to the selection screen that the LDB presents. If you use the Function Module mentioned above, then you alone will control the selection screen and have to pass selection information to the function module.
In response to question 3:
I am not quite sure what you mean by this one, but if some of the other SDNers have answered your question, then no need to clarify for me. -
Logical Data base MSM vs Material master table MARA/MARC
Hi Experts,
What is the different between the logical data base (LDB) and the normal SAP table, for example MSM vs MARA/MARC/MBEW table. ? I mean we usually refer data to the normal SAP table in download or ABAP, what is the use of logical data base (exp MSM Material master) can download data or refer to MSM in ABAP?? Please help.
Best regards,
EricA logical database provides a particular view of database tables in the R/3 System. It is always worth using logical databases if the structure of the data that you want to read corresponds to a view available through a logical database.
-
hi experts!!
i am working on the LDb report and i have created a LDB zaxxx in se36 and using the same LDB to code in se38 and in attributes i have mentioned the name of LDB.
when i code follwoing:
GET ZAXXXX FIELDS INVOICE_NUM CUST_NAME CUST_PO_NUM INV_DATE.
ITS GIVING ERROR THAT ZAXXX IS NOT SPECIFIED FOR FIELD SELECTION.
when i use only
GET ZAXXXX . when i debug valuse are comming but when process the report its giving no valuse.
plz suggest me on the same..
maheshhi this may be of some help.
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.
LDB offers an easy-to-use selection screens. You can modify the pre-generated selection screen to your needs. It offers check functions to check whether user input is complete, correct, and plausible. It offers reasonable data selections. It contains central authorization checks for data base accesses. Enhancements such as improved performance immediately apply to all report programs that use the logical database.
Less coding s required to retrieve data compared to normal internel tables.
Tables used LDB are in hierarchial structure.
Mainly we used LDBs in HR Abap Programming.
Where all tables are highly inter related so LDBs can optimize the performance there.
Check this Document. All abt LDB's
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2flibrary%2fabap%2fabap-code-samples%2fldb+browser.doc
GO THROUGH LINKS -
http://www.sap-basis-abap.com/saptab.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9bfa35c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c6/8a15381b80436ce10000009b38f8cf/frameset.htm
/people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
Re: **LDB**
www.sapbrain.com/FAQs/TECHNICAL/SAP_ABAP_Logical_Database_FAQ.html
www.sap-img.com/abap/abap-interview-question.htm
www.sap-img.com/abap/quick-note-on-design-of-secondary-database-indexes-and-logical-databases.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9bb935c111d1829f0000e829fbfe/content.htm
Gothru the blog which provides info on LDB's:
/people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
Sample code
TABLES: SPFLI,
SFLIGHT,
SBOOK,
SCARR.
START-OF-SELECTION.
GET SPFLI.
WRITE:/ SPFLI: , SPFLI-CARRID, SPFLI-CONNID,
SPFLI-AIRPFROM, SPFLI-AIRPTO.
GET SFLIGHT.
WRITE:/ SFLIGHT: , SFLIGHT-CARRID, SFLIGHT-CONNID, SFLIGHT-FLDATE.
GET SBOOK.
WRITE:/ SBOOK: , SBOOK-CARRID, SBOOK-CONNID,
SBOOK-FLDATE, SBOOK-BOOKID.
GET SFLIGHT LATE.
WRITE:/ GET SFLIGHT LATE: , SFLIGHT-FLDATE.
with regards,
Hema SUndara.
pls reward if helpful. -
Add field group to Asset Master Data Screen Layout
Hi Gurus !!
Does anybody know how to add field group in SPRO(Define Screen Layout for Asset Master Data)?. I have created my layout by coping 1000, but then I need to add Fund Center in Time-Dependent data logical field group.
Thanks a lot,
SashaI don't think you can add a funds center to the Time dependent tab.
Instead you need to use Derivatuon strategy. Use tcode FMDERIVE for strategy and FMDERIVER for GL accounts to cost center and cost centers to asset numbers or number range. From here the system derives teh funds center. -
How to control attributes in 'Add Fields' in af:query Advance mode
Hi,
The VO attributes those set Queriable=false doesn't appear in the Add Fields dropdown in ad:query advance mode.
But I have few attributes in a VO those required to use in VO query so I cannot set those attrbutes Queriable as false.
Also observed that QBE doesn't work for the attributes whose Queriable set as false.
So can someone please suggest me how to achieve below,
VO attribute which having Queriable=true but doesn't appear in 'Add Fields' dropdown in af:query advance mode.
JDeveloper version 11.1.1.7.0
Edited by: user12820425 on Mar 21, 2013 10:16 AMHi Naresh
Thanks for your reply.
In ViewCriteria -> UI Hints we can set attribute Rendered Mode as never, but that perticular attribute still appear in 'Add Fields' section.
I think renderedMode=never means that attribute doesn't appear in Advance or Basic mode user need to manually select that attribute.
So please suggest me how to achive my requirement. -
What is logical data base and how it is differfrom DDIC AND DATABASE
HI ,
CAN ANY BODY HELP ME TO FIND THISHi
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.
LDB offers an easy-to-use selection screens. You can modify the pre-generated selection screen to your needs. It offers check functions to check whether user input is complete, correct, and plausible. It offers reasonable data selections. It contains central authorization checks for data base accesses. Enhancements such as improved performance immediately apply to all report programs that use the logical database.
Less coding s required to retrieve data compared to normal internel tables.
Tables used LDB are in hierarchial structure.
Mainly we used LDBs in HR Abap Programming.
Where all tables are highly inter related so LDBs can optimize the performance there.
Check this Document. All abt LDB's
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2flibrary%2fabap%2fabap-code-samples%2fldb+browser.doc
GO THROUGH LINKS -
http://www.sap-basis-abap.com/saptab.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9bfa35c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c6/8a15381b80436ce10000009b38f8cf/frameset.htm
/people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
Re: **LDB**
www.sapbrain.com/FAQs/TECHNICAL/SAP_ABAP_Logical_Database_FAQ.html
www.sap-img.com/abap/abap-interview-question.htm
www.sap-img.com/abap/quick-note-on-design-of-secondary-database-indexes-and-logical-databases.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9bb935c111d1829f0000e829fbfe/content.htm
Gothru the blog which provides info on LDB's:
/people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
<b>Reward points for useful Answers</b>
Regards
Anji
Maybe you are looking for
-
Crystal Report XI R2 merge modules install Enterprise components... Why?
I am in charge of creating the runtime component insallation (we are using the RDC) and have used the merge modules for Crystal Reports XI R2 to create a msi package for installation. I used the Microsoft Visual Studio Installer for the creation of t
-
I cannot locate /private/etc/hosts.
I am trying to look at hosts file for clues as to why MAMP is not working. but this entire directory structure is not there. I feel quite confused because I have worked with the hosts file before. Any advice is extremely appreciated.
-
Adobe Air on WinPE (2.1)
Has anyone ported Adobe Air to work under the WinPE (2.1) environment (using Microsofts AIK)? It seems like it should be possible since, WinPE is simply a stripped down version of Windows. I've tried copying the Air framework files and associated reg
-
Not enough memory loading image
I have a problem loading an Image in a Motorola 720. Using Image.createImage("name.png") throws an IoException, Not enough memory to load Image. The image decoding method takes a lot of memory.. or at least it looks like that. The image is an png 12k
-
Dynamic change selected columns
hi all, Created an anwers with 5 columns: level1 | level2 | level3 | level4 | facts I created a session filter on all the level columns. Like this: level1 = session.value or level2 = session.value or level3 = session.value or level4 = session.value N