Search Help - Restricting entries in standard search helps
Hi, is there any way to restrict entries in an SAP supplied search help? The search help in question is 'SSH_T007A', this search help also has a user exit 'F4_TAXCODE_USER_EXIT'. I'm not sure if the user exit is of any use or how to use it. Ideally what I need to do is to restrict the list of applicable tax codes to only those that we want our users to select. Does anyone have an idea of how to do this with a minimum of customization?
Thanks in advance,
Kevin May
Hi Seshatal,
Thanks for the input, but this field does NOT have any ON VALUE REQUEST event associated with it ....
as soon as F4 is hit, it goes to Function help_start ,so I don't think we can make any changes here as it is standard .
I think including a standard search help will help....how to achieve this ?
Thanks,
Similar Messages
-
How can i make entry in standard SAP table
hi all
how can i make entry in standard sap table.
ex- lfa1
without using programming,BDC.Hi,
in the table if u find delivery and maintainance allowed with restrictions in delivery /maintainance tab u can enter data from program only.
see the below example.
tables: lfa1.
lfa1-lifnr = '0878877'.
lfa1-name1 = 'my name'.
lfa1-ort01 = 'bangalore'.
lfa1-land1 = 'in'.
modify lfa1.
rgds,
bharat. -
Short dumop in J2I5 (provide duplicate entry in Standard table)
Hello Expert ,
We have a problem in T.Code J2I5 ( Excise Register Extraction) input entry is lelect Excise group 20 . and a date from 04.08.09 onwards. and select the register RG23D . it shows the run time error ( Eg The ABAP/4 Open SQL array insert results in duplicate database record ) . but in the standard Tcode is there possible to provide duplicate entry in Standard table
Thaks & regards
Aditya Kr TripathiRuntime Errors SAPSQL_ARRAY_INSERT_DUPREC
Except. CX_SY_OPEN_SQL_DB
Date and Time 29.01.2010 10:57:09
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
problem occurs in this code :
assign I_RG23D_TAB-I_RG23D_TYP to <x_rg23dtyp> casting.
<x_extrctdata> = <x_rg23dtyp>.
class CL_ABAP_CONTAINER_UTILITIES definition load.
call method CL_ABAP_CONTAINER_UTILITIES=>FILL_CONTAINER_C
EXPORTING
IM_VALUE = i_rg23d_tab-i_rg23d_typ
IMPORTING
EX_CONTAINER = i_report_tab-extrctdata
EXCEPTIONS
ILLEGAL_PARAMETER_TYPE = 1
others = 2.
I_REPORT_TAB-EXTRCTDATA = I_RG23D_TAB-I_RG23D_TYP.
COMPUTE I_REPORT_TAB-EXTRCTLNGT = STRLEN( I_REPORT_TAB-EXTRCTDATA ).
APPEND I_REPORT_TAB.
ENDLOOP.
IF M_EXTRACTED = 'X'.
LOOP AT I_RG23D_KEY.
DELETE
FROM J_2IEXTRCT
WHERE BUDAT = I_RG23D_KEY-BUDAT
AND SERIALNO = I_RG23D_KEY-SERIALNO
AND REGISTER = I_RG23D_KEY-REGISTER
AND EXGRP = I_RG23D_KEY-EXGRP.
ENDLOOP.
ENDIF.
Control table check here for data Extraction
INSERT J_2IEXTRCT FROM TABLE I_REPORT_TAB.
If the insertion of the extract table is successfull then the table
for Extraction is Inserted
IF SY-SUBRC EQ 0.
PERFORM FILL_EXTDT USING C_RG23D M_EXTRACTED.
ENDIF.
ENDFORM. " RG23D
*& Form RG23CPART1
Purpose : RG23C Part I extraction logic
FORM RG23CPART1.
DATA: $PART1 TYPE PART1_TYP,
$LINCNT LIKE SY-LINCT,
M_EXTRACTED VALUE '',
$RC LIKE SY-SUBRC.
*********************************************************************************************8 -
New Menu Item entry in Standard Help Menu
Hi experts,
I have added a custom menu item under the standard Help menu of SAP using SE41 (Menu Painter) with pragram name: MENUSYST and status: MEN
I added the new entry and gave it a function code and activated the function code as well as the interface MENUSYST.
This worked fine and the entry is visible at the desired location. Now on click of this new entry, I need to open a URL. I had a look at the HELP_START function module but modifying that to call the URL on click of the new menu item, would require an access key.
Is there any other method available to accomplish the task?
Regards,
Reema.Hello,
Basically I need to open a Custom Web Dynpro Application that I have created. Also I need to pass the trannsaction code as a parameter in the URL of the WDABAP Application.
Pl help me proceed.
Regards,
Reema. -
Restrict F4 display-- Standard T-codes
Hello Experts,
We want to restrict display through f4 help.
here is the example of what we want to achieve.
In t-code CRQ3, there are 2 input fields plant and work center.
we want to restrict user from viewing work centers from other plant on which they don't have authorization.
Thanks
Harshavardhan WankhadeHi,
You can use a search help exit to put in additional validation. There is more info here:
http://help.sap.com/erp2005_ehp_04/helpdata/EN/cf/21ee52446011d189700000e8322d00/frameset.htm
Your ABAP team will be able to help with this. -
Authority Check on Table - Restrict Entries based on check
Hi,
I need to add an authorization check to a table.
The check will restrict certain entries from displaying, based on the check of some table fields.
The table is custom and I know which authority object to use, as well as which fields to restrict.
How do I do this?
Thanks!Hi N.,
select all data into internal table, loop at the table, do authority check for each table, delete records that fail authority check, display results.
Or use SELECT INTO structure, check authority , append if authority check is OK (SY-SUBRC = 0), ENDSELECT, then display.
Try which way is better based on memory requirement and performance.
I hope this answer will help you. If not, feel free to ask for details.
Regards,
Clemens -
Hey guys,
how can i add entries to a standard table (generic table)?
I have a function modul which has an export table of standard table and i'd to add some entries to this table. How can i do that? i don't know the table line type.
thx,
Wei-MingHi Wei-Ming,
I was not sure what you were asking at the very first question, but it was clear for me at your 2nd post (but it seems it was not obvious for the other persons).
You must use field symbols or data references to manipulate the generic complex data objects (structure or internal table).
For example:
FIELD-SYMBOLS <ls_line> TYPE ANY.
FIELD-SYMBOLS <l_field> TYPE ANY.
APPEND INITIAL LINE TO et_test ASSIGNING <ls_line>.
ASSIGN COMPONENT 1 OF STRUCTURE <ls_line> TO <l_field>.
or
DATA dref TYPE REF TO DATA.
CREATE DATA dref LIKE LINE OF et_test.
ASSIGN dref->* TO <ls_line>. "dereferencing data reference
I let you search the forum and the ABAP documentation for more information.
BR
Sandra -
Restrict Entries in Internal Orders
Hi
We have a requirement wherin specific Internal orders should not be allowed to be posted through Financial Transactions ( i.e No entry of Primary Cost Element should be allow on those orders) only secondary cost elements should be allowed
How can i configure this requirement in the Internal Order
Please advise
Regards
AshkHello Ashk,
As a suggestion you can use a User Status for the specific orders that restricts certain business transactions being preformed, such as postings from FI.
See customizing transaction OK02 and its accompaning online help.
You'll find it under SPRO -> IMG -> Controlling -> Internal Orders -> Order master data -> status management.
Regards, Elaine -
Validation Restricting Entry to One Cost Object
I am trying to create a validation in GGBO to restrict postings of Vendor Invoices (KR doc type) and journal entries (SA doc type) to only one cost object (cost center, internal order or WBS element) on expense account lines. I understand standard functionality limits posting to only one "real" object; however, getting the business to understand has proven difficult so I need a validation.
I have the following in the Prerequisite:
BKPF-BLART = 'KR' OR BKPF-BLART = 'SA' AND
BSEG-HKONT >= '700000' AND
BSEG-HKONT <= '799999'
For the check I have tried numerous ways, but below is one attempt:
BSEG-AUFNR <> ' ' AND BSEG-KOSTL = ' ' AND BSEG-PROJK = ' ' OR
BSEG-KOSTL <> ' ' AND BSEG-AUFNR = ' ' AND BSEG-PROJK = ' ' OR
BSEG-PROJK <> ' ' AND BSEG-AUFNR = ' ' AND BSEG-KOSTL = ' '
Nothing is working and I am getting frustrated. Any ideas?
Thank you in advance!You should write it as below:-
Pre-requisites:-
( BKPF-BLART = 'KR' OR BKPF-BLART = 'SA' ) AND
( BSEG-HKONT >= '0000700000' AND BSEG-HKONT <= '0000799999' )
Check:-
( BSEG-AUFNR NE ' ' AND BSEG-KOSTL EQ ' ' AND BSEG-PROJK EQ ' ' ) OR
( BSEG-AUFNR EQ ' ' AND BSEG-KOSTL NE ' ' AND BSEG-PROJK EQ ' ' ) OR
( BSEG-AUFNR EQ ' ' AND BSEG-KOSTL EQ ' ' AND BSEG-PROJK NE ' ' )
Message:-
As you need.
Regards,
Gaurav -
Restricting Entries In Drop Down
Hi ,
We have a requirement where we want to restrict the drop down of tax codes on portal.The scenario is like this in the standard table t007a we have lets say 50 tax codes created for input tax code on the portal we want to show only 10 tax codes relevant for T&E booking.Kindly tell from where the data gets populated in drop down,so that we can restrict the same.Hi Sanjeev,
Use DDBy Key and fill dropdown with 10 tax codes which you are required. or based on certain condition you ca restrict values.
Here sample code for fixed values in dropdown using dropdown by key.
data: wd_node_info type ref to if_wd_context_node_info,
entry type wdr_context_attr_value,
value_set type wdr_context_attr_value_list,
k6 type string value '1',
v6 type string value 'Dealership HO',
k7 type string value '2',
v7 type string value 'Area',
k8 type string value '3',
v8 type string value 'Region',
k9 type string value '4',
v9 type string value 'HO' .
entry-value = k6.
entry-text = v6.
APPEND entry to value_set.
entry-value = k7.
entry-text = v7.
APPEND entry to value_set.
entry-value = k8.
entry-text = v8.
APPEND entry to value_set.
entry-value = k9.
entry-text = v9.
APPEND entry to value_set.
wd_node_info = wd_context->get_node_info( ).
wd_node_info = wd_node_info->get_child_node( 'LEVEL' ).
wd_node_info->set_attribute_value_set( name = 'LEVEL' value_set = value_set ).
Cheers,
Kris.
Edited by: kissnas on Mar 7, 2011 12:09 PM -
How to read specific entry in standard table view :
Hi Friends,
Can anybody please give me code on how to read a record in table view having 5 records.
I have a requirement on how to read the specific address out of 5.
I tried doing in ON_NEW_FOCUS method.
Thanks,
ChitrakantHello,
Try to do it in the DO_PREPARE_OUTPUT mathod before calling super->do_prepare_output( ). What we need to do is,
1. get the collection from context node ( get_collection_wrapper )..
2. filter the entity based on the value ( using iterator !!! )
3. set back to context node
4. call super->do_prepare_output.
Hope it helps.
Regards,
Sandeep Kumar B -
Restrict entry of SO type for a Sales area
Going forward I need to restrict a certain sales area from being able to process a certain order types.
I went to IMG > Sales and Distribution> Sales> Sales Documents> Sales Document Header---> Assign Sales Area To Sales Document and removed the entry for that Sales Org / Dist channel / Division / Order type but it is still allowing me to create a sales order when I would expect it not to. Am I missing another step?Hi
Kindly check the below pointrs
1..KIndly check the division you are enytering at the time of sales order and in the document also
2. enter tthe sales area at the time of creation of sales order t code VA01 & document type.
3. check the t code OVAZ for the sales org / dist channel / division and remove the same
4. check in the customisation for the belwo entries also
Combine sales organizations
Combine distribution channels
Combine divisions
Assign permitted order types to the sales areas
5. Check the t code OVXG
6. Check any user exit maintain in the include FV45KF0V_VBAK-AUART_PRUEFEN
REgards
Damu -
Restricting entry values for "document date"
We need to restrict BKPF's "document date" whereever it is entered.
This may not be a programming question per se, but programmers usually know at least as much as users do on the front end of SAP.
Users must not be allowed to enter invalid document dates (e.g. something with a year of 1204), which they currently CAN do. Is there a way to restrict this field in the table???
Here is a slice of teh data right out of the table so you can see the culprit T-codes. This must not happen:
Type Doc. Date TCode
SD 01/02/1201
BL 01/02/1201
SD 01/02/1201
BL 01/02/1201
SD 01/02/1201
BL 01/02/1201
SB 02/02/0211 FB50
BL 02/02/0211 FB50
BL 12/23/1022 MIGO
WE 12/23/1022 MIGO_GR
BL 05/02/1011 FB60
BL 05/02/1011 FB08
KR 05/02/1011 FB60
KR 05/02/1011 FB08
SB 05/13/0211 FB50
BL 05/13/0211 FB50
Thanks!Hello,
As Gabriel has mentioned you can apply this check by implementing an FI Validation(Trxn. GGB0). This will take care of the trxn. when the a/c'ing doc is created manually e.g., FB* tcodes.
As you must be aware that an a/c'ing doc is created whenever a debit/credit transaction happens inside the system, e.g, GI/GR, Asset a/c'ing. For e.g., the MIGO trxns you've provided in your list.
In these cases the a/c'ing doc is generated automatically & the validation you've defined wont work! You've to implement the validation(via a BAdI, Customer Exit etc) in the respective transaction which can be cumbersome
Hope you get the basic idea.
BR,
Suhas
PS: Please don't try to modify the date on the a/c'ing doc directly via SQL statements! -
E-recruiting - Add manual entries in hitlist search
We have created a new posting channel in e-recruiting.
With this new posting channel, we would like to create entries in standard hitlist for employee and for candidates (As standard posting channel 1 and 2 do)
We tried copying the PUBLISH method of CL_HRRCF_PUBLISHER_INT and CL_HRRCF_PUBLISHER_EXT but it doesn't work.
Thanks in advance for your help.
Best regards,
DominiqueHello Dominique,
did I get your requirement right that you try to join internal and external publication in a single posting channel? So one publication publishes for external and internal job search?
Unfortunately this will probably not work the way you tried. The standard publishers for internal and external publicatios check their channel hard coded. I assume you excluded these checks when copying the coding but these restrictions are made for a reason. First of all the tables for the standard publishing channels cannot handle more than one channel so your channel would block the standard channels, you could never again publish for external or internal only as it could mess up the tables. Furthermore while some e-recruiting applications do not check for the candidate type in the publication (e.g. apply on application group can be done in bsp for iternal candidates although not meat to) others will not. So you will probably run in troubles with such a channel now or later.
If you wat to reduce the work for publishing there are ways of course. You could create a channel triggerig a workflow copying the information to standard internal and external channel so you reduce the work for the recruiter. Or you develop your own publication maintenance. I once build a screen which allows the publication maintainence directly in the table instead of the detailed view. Together with some buttons for some standard presets (channels, standard laguage, standard durations) you can create publications with 2 clicks.
Kind regards
Roman -
Hi frnds,
I sumtyms dont get the desired result while using the
"BINARY SEARCH" addition with the "READ" statement.
y is that? is there any rules to be followed to use binary search option in read statement.
Regards,
Madan...Hi
Please go thru this.
Binary Search in Standard Tables
If you read entries from standard tables using a key other than the default key, you
can use a binary search instead of the normal linear search. To do this, include the addition
BINARY SEARCH in the corresponding READ statements.
READ TABLE <itab> WITH KEY = <f> <result> BINARY SEARCH.
and
READ TABLE <itab> WITH KEY <k1> = <f1> ... <kn> = <fn> <result>
BINARY SEARCH.
The standard table must be sorted in ascending order by the specified search key. The BINARY
SEARCH addition means that you can access an entry in a standard table by its key as quickly
as you would be able to in a sorted table.
Example
DATA: BEGIN OF LINE,
COL1 TYPE I,
COL2 TYPE I,
END OF LINE.
DATA ITAB LIKE STANDARD TABLE OF LINE.
DO 4 TIMES.
LINE-COL1 = SY-INDEX.
LINE-COL2 = SY-INDEX ** 2.
APPEND LINE TO ITAB.
ENDDO.
SORT ITAB BY COL2.
READ TABLE ITAB WITH KEY COL2 = 16 INTO LINE BINARY SEARCH.
WRITE: 'SY-SUBRC =', SY-SUBRC.
The output is:
SY-SUBRC = 0
The program fills a standard table with a list of square numbers and sorts them into
ascending order by field COL2. The READ statement uses a binary search to look
for and find the line in the table where COL2 has the value 16.
http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb35f8358411d1829f0000e829fbfe/content.htm
Thanks
Shiva
Maybe you are looking for
-
FM For Check File is Already Open in CLIENT.
Hi Experts, I have a program that, User gives a file name (file has some rows), Program runs with data that included in file, and when program finishes, write something to file which user given before using (WS_DOWNLOAD) But if user dont close the fi
-
Trigger Process chains through ABAP program using selection screens
Hi All I am loading flat files through process chains. My requirment is such that i need to create a ABAP selection screen so that user can load the flat file from his PC. when the user is loading the flat file i have to copy the file onto the app
-
Hi Does anyone know of an in-Car GPS system that is compatible with a MacBook Pro Version 10.6.8 Snow Leopard. (IE: Navman is not compatible). Thanks in advance Don.
-
Error in invoking target 'ntcontab.o'
Hi, I'm installing oracle 11gR1 on AIX 6.1 server, and I meet this problem on linking oracle step, Please help me to slove it,thanks INFO: Start output from spawned process: INFO: ---------------------------------- INFO: INFO: rm -f ntcontab.* INFO
-
Sales order item quantity not rounded and allowing decimals with UoM EA
Hi gentlemens, I noticed something strange in our SAP ERP system. When we enter a material in a new sales order item, we are allowed to enter quantity 1,5 EA (1 and half Each). But when I check the config of the UoM EA in table T006, the number of de