EXCLUDE field from logical db
Hi All,
I need to exclude a particular selection option from a custom program which
uses the standard selection screen of a logical database.
Will I be able to EXCLUDE it manually after going to the Selection include after
geting the Access key? Already we are using a selection screen version for the cusom program.
I hope to make the change in the same version only.
Please comment on the feasibility.
Thanks,
Neethu
Hi Neethu,
With Access key you will be able to modify it. But at the same time you need to go through the entire source code of the LDB & analyze its impact. If you dont need that field to be displayed you can change the source code to make it invisible instead.
Regards
Abhii
Similar Messages
-
Exclude one field from Logical Database's dynamic selection screen
Hi Guru,
I have a requirement to amend a program to exclude the document number field (bsik-belnr) from the dynamic selection-screen of the logical database KDF(Vendor Database) so that the program will not filter according to the document number.
I have use the below syntax in my zprogram.
selection-screen exclude select-options: doc-no.
However I get syntax error "The addition EXCLUDE is only allowed in INCLUDE DBKDFSEL".
Please advice.
Best Regards,
FungThe selection part of the logical database defines input fields for selecting data.
The runtime environment displays these on the selection screen when you run an executable program linked to the logical database.
Include called DB<ldbname>SEL.
SELECTION-SCREEN BEGIN OF VERSION ver TEXT-xxx.
SELECTION-SCREEN EXCLUDE ... .
SELECTION-SCREEN END OF VERSION ver.
Defines a selection screen version (with a three-character name ver ). Between BEGIN OF VERSION and END OF VERSION , you can exclude selection screen objects for the version ver , i.e. remove them from the selection screen with SELECTION-SCREEN EXCLUDE.
SELECTION-SCREEN DYNAMIC SELECTIONS FOR TABLE dbtab
If one of these tables is active in the report (i.e. it is declared under TABLES or lies somewhere on the path from the root of the database hierarchy to a table declared with TABLES ), a pushbutton called 'Dynamic selections' appears on the selection screen. -
Hi everyone
I am missing the old feature in LC designer 7.1 to mark an active field as not being part of the taborder. Have anyone found a way to set this up in LC designer 8.2
We have many forms with open fields that we fill out automatic when the user opens the form - this can be edited, but mostly will not be. We therefore want the user to start in the first field. But before we can leave the page the taborder will return to these fields - we want it to go to next page. I hope this is included in the new taborder, and do not need to be coded.
please help!!
Thomas, Jyske BankIn case you wanna skip an image field in taborder, you can wrap the image field in subform and set the subform to protected.
I had to do this because in the forms im creating it was possible to tab into an imagefield and when you pressed enter, it was possible to load any image to that field.
Sorry for bumping up an old thread,i thought this might help somebody in the future.
-jojotin -
Hi All,
My users require the ability to select a sharepoint group from a drop down list and then be able to select a user from a people picker based on the drop down selection. The best solution I was able to up with, was create a people picker
for each drop down selection and set the Sharepoint group field to the selected group. All people picker filed are hidden except the one that matches the drop down selection. When creating an entry from the sharepoint list this method
works perfectly.
However, when I add the list onto a site page using an "Listview webpart", then add an infopath web part and then finally connect the two parts, I get a "List View Lookup Threshold" error when selecting an entry from the list. I
understand from the error and reading that this error is related to the number of People pickers in the list. Is there a way to exclude temporary people picker fields from a site page query, as they are only temporary fields to allow the users
to select a person and then assign the name to another field.
DwayneHi Dwayne,
In SharePoint 2013, we could manually create a list for all users. Here are the reference:
Go to Site Settings > People and Groups > SiteMembers
Modify url
http://sitename/_layouts/15/people.aspx?MembershipGroupId=8 to
http://sp/sites/tutu/_layouts/15/people.aspx?MembershipGroupId=0 , now you will see All people in this site.
Change the view to List view, and copy the listview id in the url
http://sitename/_layouts/15/people.aspx?MembershipGroupId=0&View={viewID}
Go to Settings > List settings, copy the list id in the url
http://sitename/_layouts/15/listedit.aspx?List=listeid&Source=....
Now type the address in IE:
http://sitename/_vti_bin/owssvr.dll?CS=109&Using=_layouts/query.iqy&List=[LISTID]&View=[VIEWID]&CacheControl , such as
http://sp/sites/tutu/_vti_bin/owssvr.dll?CS=109&Using=_layouts/query.iqy&List=f3958d27-9c2f-4f8d-b221-89466e816667&View=696BFDC5-0C6E-4E27-818F-0E6292A18407&CacheControl=1
Save the owssvr.jqy from SharePoint site
Now you could see the file in your desktop with all users, save it as allusers in Excel.
Then import it to your SharePoint site, add an app > find an app > import spreadsheet
Regards,
Rebecca Tu
TechNet Community Support -
Exclude one field from application.cfm loop
i am using a cfloop collection tag in the application cfm file to loop through and remove special charachters from submitted forms for xss protection. I want to exclude one or two fields from this because they are date time fields so can't have all the restrictions all of the other fields can. I am picturing something like
<cfloop collection="blah" item="blahblah">
<cfif field name is not one of the date time fields>
< general remove bad charachters code>
<cfelseif field name is one of date time fields>
<remove special charachters code>
</cfif>
</cfloop
how do i get the field name to use in the condition above?Ummm...
<cfloop collection="form" item="field">
<cfif field NEQ "aDateField" AND field NEQ "bDateField" AND field NEQ "cDateField">
Processs the non-date fields
<cfelse>
Process the date fields
</cfif>
</cfloop>
Or slightly easier to maintain.
<cfloop collection="form" item="field">
<cfif NOT ListFind(field, "aDateField,bDateField,cDateField")>
Processs the non-date fields
<cfelse>
Process the date fields
</cfif>
</cfloop>
Or the best yet, would be to provide the list you are checking against from sometype of data repository where it is easy to maintain, like a database or configuration or something. But I will leave that exercise to you to figure out. -
Exclude "note" field from syncing to plaxo?
Is it possible to exclude the "note" field from syncing to plaxo or google contacts? I want the names and contact information, but not the notes. I keep personal information there. Thanks!
You can uncheck songs in the Library and there is an option for your iPod to ignore them. Connect your iPod, go to Preferences>iPod>Music, tick the radio button "only update checked songs"
-
How can I get the "text" field from the actionEvent.getSource() ?
I have some sample code:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.ArrayList;
public class JFrameTester{
public static void main( String[] args ) {
JFrame f = new JFrame("JFrame");
f.setSize( 500, 500 );
ArrayList < JButton > buttonsArr = new ArrayList < JButton > ();
buttonsArr.add( new JButton( "first" ) );
buttonsArr.add( new JButton( "second" ) );
buttonsArr.add( new JButton( "third" ) );
MyListener myListener = new MyListener();
( (JButton) buttonsArr.get( 0 ) ).addActionListener( myListener );
( (JButton) buttonsArr.get( 1 ) ).addActionListener( myListener );
( (JButton) buttonsArr.get( 2 ) ).addActionListener( myListener );
JPanel panel = new JPanel();
panel.add( buttonsArr.get( 0 ) );
panel.add( buttonsArr.get( 1 ) );
panel.add( buttonsArr.get( 2 ) );
f.getContentPane().add( BorderLayout.CENTER, panel );
f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
f.setVisible( true );
public static class MyListener implements ActionListener{
public MyListener() {}
public void actionPerformed( ActionEvent e ) {
System.out.println( "hi!! " + e.getSource() );
// I need to know a title of the button (which was clicked)...
}The output of the code is something like this:
hi! javax.swing.JButton[,140,5,60x25,alignmentX=0.0,alignmentY=0.5,
border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@1ebcda2d,
flags=296,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,
disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=14,bottom=2,
right=14],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=true,
rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=first,defaultCapable=true]
I need this: "first" (from this part: "text=first" of the output above).
Does anyone know how can I get the "text" field from the e.getSource() ?System.out.println( "hi!! " + ( (JButton) e.getSource() ).getText() );I think the problem is solved..If your need is to know the text of the button, yes.
In a real-world application, no.
In a RW application, a typical need is merely to know the "logical role" of the button (i.e., the button that validates the form, regardless of whether its text is "OK" or "Save", "Go",...). Text tends to vary much more than the structure of the UI over time.
In this case you can get the source's name (+getName()+), which will be the name that you've set to the button at UI construction time. Or you can compare the source for equality with either button ( +if evt.getSource()==okButton) {...}+ ).
All in all, I think the best solution is: don't use the same ActionListener for more than one action (+i.e.+ don't add the same ActionListener to all your buttons, which leads to a big if-then-else series in your actionPerformed() ).
Eventually, if you're listening to a single button's actions, whose text change over time (e.g. "pause"/"resume" in a VCR bar), I still think it's a bad idea to rely on the text of the button - instead, this text corresponds to a logical state (resp. playing/paused), it is more maintainable to base your logic on the state - which is more resilient to the evolutions of the UI (e.g. if you happen to use 2 toggle buttons instead of one single play/pause button). -
Retrieving hierarchy fields from MDM to SAP R/3 using MDM ABAP API's
Hi all,
I have developed a code to retrieve fields from MDM to SAP R/3 using MDM ABAP API's, i could retrieve all of the fields excluding the Lookup[Hierarchy] fields like- FACILITY CODE etc...
please update me if anyone has any experience on this.
Thanks and regards,
Aastha MehrotraHi ,
Any one worked in the MDM API to retrieve Hierarchy fields ???
Regards,
Arun. -
LSMW accept file from logical path?
Dear All,
Can LSMW designs for conversions accept file from logical path?
The requirement is during actual conversion execution -the conversion team can store files anywhere they want, configure logical file names/paths and use our LSMWs without needing program modifications.
Kindly let me know.
Thanks in Advance
RanjanHai KCR
Using Tcode MM01 -- Maintain the source fields are
1) mara-amtnr char(18)
2) mara-mbrsh char(1)
3) mara-mtart char(4)
4) makt-maktx char(40)
5) mara-meins char(3)
the flate file format is like this as follows
MAT991,C,COUP,Srinivas material01,Kg
MAT992,C,COUP,Srinivas material02,Kg
AMT993,C,COUP,Srinivas material03,Kg
MAT994,C,COUP,Srinivas material04,Kg
MAT995,C,COUP,Srinivas material05,Kg
goto Tcode LSMW
give Project Name
Subproject Name
object Name
Press Enter -
Press Execute Button
It gives 13 radio-Button Options
do the following 13 steps as follows
1) select radio-Button 1 and execute
Maintain Object Attributes
select Standard Batch/Direct Input
give Object -- 0020
Method -- 0000
save & Come Back
2) select radio-Button 2 and execute
Maintain Source Structures
select the source structure and got to click on create button
give source structure name & Description
save & Come Back
3) select radio-Button 3 and execute
Maintain Source Fields
select the source structure and click on create button
give
first field
field name matnr
Field Label material Number
Field Length 18
Field Type C
Second field
field name mbrsh
Field Label Industrial Sector
Field Length 1
Field Type C
Third field
field name mtart
Field Label material type
Field Length 4
Field Type C
fourth field
field name maktx
Field Label material description
Field Length 40
Field Type C
fifth field
field name meins
Field Label base unit of measurement
Field Length 3
Field Type C
save & come back
4) select radio-Button 4 and execute
Maintain Structure Relations
go to blue lines
select first blue line and click on create relationship button
select Second blue line and click on create relationship button
select Third blue line and click on create relationship button
save & come back
5) select radio-Button 5 and execute
Maintain Field Mapping and Conversion Rules
Select the Tcode and click on Rule button there you will select constant
and press continue button
give Transaction Code : MM01 and press Enter
after that
1) select MATNR field click on Source filed(this is the field mapping) select MATNR and press Enter
2) select MBRSH field click on Source filed(this is the field mapping) select MBRSH and press Enter
3) select MTART field click on Source filed(this is the field mapping) select MTART and press Enter
4) select MAKTX field click on Source filed(this is the field mapping) select MAKTX and press Enter
5) select MEINS field click on Source filed(this is the field mapping) select MEINS and press Enter
finally
save & come back
6) select radio-Button 6 and execute
Maintain Fixed Values, Translations, User-Defined Routines
Create FIXED VALUE Name & Description as MM01
Create Translations Name & Description as MM01
Create User-Defined Routines Name & Description as MM01
after that delete all the above three just created in the 6th step
FIXED VALUE --MM01
Translations --MM01
User-Defined Routines --MM01
come back
7) select radio-Button 7 and execute
Specify Files
select On the PC (Frontend) -- and click on Create button(f5)
give the path of the file like "c:\material_data.txt"
description : -
separators as select comma radiao- button
and press enter save & come back
8) select radio-Button 8 and execute
Assign Files
Save & come back
9) select radio-Button 9 and execute
Read Files
Execute
come back
come back
10) select radio-Button 10 and execute
Display Imported Data
Execute and press enter
come back
Come back
11) select radio-Button 11 and execute
Convert Data
Execute
come back
Come back
12) select radio-Button 12 and execute
Display Converted Data
Execute & come back
13) select radio-Button 13 and execute
Start Direct Input Program
select the Program
select continue button
go with via physical file
give the lock mode as 'E'
and execute
Thanks & regards
Sreenivasulu P -
Is it possible to view the data that is extracted from logical database.
Hi ,
i have a standard program(T-code F.38) that uses logical database.This program also uses fields groups to define the structure.
Now my question how can i see the data that is been fetched from logical database?Is that possible?
I need to do further modifications on this data.Please advice whether its possible?hi,
one possibility is dat. goto SLDB give ur ldb name and goto source code.
u will get code.
now see dat and by giving same conditions u can check data using se16. -
Input Tax code from logical partner LS but not from indiv vendor partner LI
Hi,
Find that tax code at vendor invoice is being taken from logical partner (LS) , but not from the individual vendor partner number (LI) . Bothe the partners are maintained in WE20 , OBCA , OBCD & OMRY.
Like to know the reason / setting to pick up tax code from logical partner (tax rates are same in both cases).
With regards,
MrinalHi Dove,
I think you can use a substitution for field Bank Type at Item Level (TCODE OBBH). This would fill your bank type when you post the document in FI, then you won't have problems in F110.
Hope that helps.Cheers.
Ignacio. -
Need to copy a custom field from sales order to billing document
Hi All,
I have a requirement, I need to add a new field in the sales order header part and even a field in the billing document, once i add this field up in both the documents in the header part i need to create a copy routine using the VOFM tran, can any body help me on what's the procedure to add a field in billing document and does the copy routine transfer the data ( Custom Field ) from Sales Order to the Billing Document, if yes can somebody help me with the procedure on how to and code of it.
solved it myself ....
Regards.
Message was edited by: seshi
seshiHello,
Regarding item 1, is it in the region of the global links (ie logout, home, preferences, etc.)? If not, have you tried creating a link via personalizations to the region you wish to have the link displayed (item type = link, destination = fully qualified name of your .xml page/region?
Regarding item 2, you may have to create the custom subtab programatically using the controller for the region of the current subtab layout.
Regarding item 3, you can also add a submit button to the page button bar region via personalizations. You can then add any logic you want to the button in the controller for the page.
Hope this helps. -
Setting primary key fields from sequence. Please advise
What is the most logical place to automatically set primary key fields from
sequence?
jdoPrestore seems to be a little late - my instance will not have id till
it's committed. I can not do it in constructor because it gets called every
time Kodo needs to construct an instance. What other options do I have for
automatic pk assignment except do it in my code (hate it)?
I wish I could use store managed OIDs but I need access to OID underlying
data
Please also see my previous message "Application Identity Extention"I came up with following pattern:
public class OrgUnit implements InstanceCallbacks {
private long orgUnitId = -1;
private transient long tempOrgUnitId = -1;
public long getOrgUnitId() {
if (orgUnitId < 0) {
if (tempOrgUnitId < 0) {
tempOrgUnitId = JDOFactory.getNextSequenceId(getClass());
return tempOrgUnitId;
} else {
return orgUnitId;
public void jdoPreStore() {
if (!JDOHelper.isDeleted(this)) {
if (orgUnitId < 0) {
setOrgUnitId(getOrgUnitId());
I use -1 as an indicator that ID has not been assigned yet. If you use Long
instead of long it will be cleaner since we can test for null
"Alex Roytman" <[email protected]> wrote in message
news:9q27co$r35$[email protected]..
What is the most logical place to automatically set primary key fieldsfrom
sequence?
jdoPrestore seems to be a little late - my instance will not have id till
it's committed. I can not do it in constructor because it gets calledevery
time Kodo needs to construct an instance. What other options do I have for
automatic pk assignment except do it in my code (hate it)?
I wish I could use store managed OIDs but I need access to OID underlying
data
Please also see my previous message "Application Identity Extention" -
How to print the data if we take different fields from diffrent tables
Hi ABAPers,
I take diff fields from 3 tables. Those are
these fields from EKBE
EBELN
EBELP
BELNR
BUZEI
BWART
BUDAT
AREWR
REEWR
WERKS
MWSKZ
these fields from EKKO
BUKRS
BSART
WAERS
these field from EKPO
TXZ01
MATNR
MTART
I want to print the data all fields.What logic can i write?
Please help me for this question and i am waiting for your response.
Regards,
Raja Sekhar.Hi,
First you have to fetch data from all the three tables and then consolidate into final table.
In Declaration:
1.Declare Internal Table for EKKO holding:
EBELN
BUKRS
BSART
WAERS
2.Declare Internal Table for EKPO holding:
EBELN
EBELP
TXZ01
MATNR
MTART
3.Declare Internal Table for EKBe holding:
EBELN
EBELP
BELNR
BUZEI
BWART
BUDAT
AREWR
REEWR
WERKS
MWSKZ
*==> This table has
MANDT
EBELN
EBELP
ZEKKN
VGABE
GJAHR
BELNR
BUZEI
as Primary keys field,you should have values for all the PK aotherwise you will get multiple entries*
4.Declare a Final Internal Table i_final with all the fields you want
EBELN
EBELP
BUKRS
BSART
WAERS
TXZ01
MATNR
MTART
BELNR
BUZEI
BWART
BUDAT
AREWR
REEWR
WERKS
MWSKZ
Data Fetching
select EBELN
BUKRS
BSART
WAERS
from EKKO
into table i_ekko
where .........<selection criteria>.
if not i_ekko is initial.
select EBELN
EBELP
TXZ01
MATNR
MTART
from EKPO
into table i_ekpo
for all entries in i_ekko
where EBELN = I_EKKO-EBELN
AND ......<If any other selection criteria>.
if not i_ekpo is initial.
select EBELN
EBELP
BELNR
BUZEI
BWART
BUDAT
AREWR
REEWR
WERKS
MWSKZ
from EKBE
into table i_ekbe
for all entries in i_ekpo
where ebeln = i_ekpo-ebeln
and ebelp = i_ekpo-ebelp
and ..........<If any othet selection criteria>
endif.
endif.
Consolidate
sort i_ekko by ebeln.
sort i_ekpo by ebeln ebelp.
sort i_ekbe by ebeln ebelp.
LOOP AT i_ekbe into wa_ekbe.
read table i_ekko into wa_ekko with key ebeln = wa_ekbe-vbeln binary search.
if sy-subrc = 0.
====>Move all the required firlds from I_EKKO to i_final , like
wa_final-BUKRS = wa_ekko-BUKRS.
endif.
read table i_ekpo into wa_ekpo with key ebeln = wa_ekbe-vbeln
ebelp = wa_ekbe-ebelp binary search.
if sy-subrc = 0.
====>Move all the required firlds from I_EKPO to i_final , like
wa_final-EBELP = wa_ekko-EBELP.
wa_final-TXZ01 = wa_ekko-TXZ01.
endif.
==>Also all the required fields from EKBE to final table, like
wa_final-BELNR = wa_ekbe-BELNR.
endloop. -
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.
Maybe you are looking for
-
CAUTION : DO NOT USE LIVE UPDATE OR WINFLASH TO UPGRADE THE BIOS!
Hello, I've been having trouble with my MSI K8N Neo2 Platinum motherboard a few weeks now. My system configuration is not heavy at all and consists of MSI K8N Neo2 Platinum nForce3 Ultra AMD64 Venice (E6) 3200+ 2 x 512Mb DDR400 Geil RAM 2.5-2-2-5 in
-
Select-option length specification (in report program, not module pool)
Dear forumers, Is there a way to properly customize the length of a select-option in a report program? Currently, the select-option S_ADMAIL is shown in the selection screen at a length of 18 characters. No matter what I've coded, this length does no
-
AdobeAIR Runtime Redistribution exit code 9
Hi there, Anyone see the exit code "9" for the AdobeAIR using the bundle runtime installer? This only seems to happen on Mac OSX Steps to replicate the issue: 1. On a Mac, uninstall Adobe AIR 1.5.0 in /Application/Utilties/ 2. Run the bundle runtime
-
Hi all, some one installed a new ODI on my machine and made a new master repository on the same user, then when i tried to access ODI this error appeared "your master repository is not up to date" , so i took backup and I upgraded the master reposito
-
Hi, Are there general rules to follow to improve the quality of streaming video through Flash? I am working on a website that has a lot of video and the client is asking me to put the video up on a video hosting website and then call it in from there