Setting defaults to a transaction based on authorizations
Hi all,
Is there a way to default a user's options to an authorization object based on the user's authorization without assigning parameters in SU01? Ideally this should be set in the roles.
TIA
If I understand your question correctly, you want to use parameters determined by the authority of the user.
Have you tried using a CASE?
Which type of transaction is this?
Kind regards,
Julius
Similar Messages
-
Set Default value for transaction code F-36
Hi
I need to set default value to feild special G/L indicator in transaction code F-36 How can I do that. Please advice.
Regards
KesharikaJust in case anyone would need to know. You can change the default values for transactions by using SE93.
Regards, -
Setting default filename for servlet-based download
I'm new to servlet programming and am attempting to download a file from the server to the client. When I am prompted to open the file from it's current location or save it to disk, the correct filename appears. However, when I click ok and the Save dialog appears, the default filename isn't the actual name of the file but instead contains the name of the package the servlet is located in. Can anyone tell me how I can change my code to have the default filename appear instead of the package name. Thanks.
Here is the code to call the servlet located in the package named 'frosttwo':
WebgapBeanFactory wgbf = WebgapBeanFactory.getWebgapBeanFactory();
String path = wgbf.getTransferFileDirectory();
String filename = path + request.getParameter("file");
System.out.println(filename);
response.sendRedirect("/servlet/frosttwo.Servlet1?file=" + filename);
Here is the code contained in the servlet:
public class Servlet1 extends HttpServlet {
private static final String CONTENT_TYPE = "text/html";
/**Initialize global variables*/
public void init(ServletConfig config) throws ServletException {
super.init(config);
/**Process the HTTP Get request*/
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String file = null;
try
file = URLDecoder.decode(request.getParameter("file"));
String filename = file.substring((file.lastIndexOf(File.separatorChar) + 1), file.length());
response.setContentType("application/octet-stream");
response.setHeader("Content-disposition", "attachment;filename=" + filename);
File f = new File(file);
FileInputStream is = new FileInputStream(f);
ServletOutputStream s = response.getOutputStream();
byte[] buffer=new byte[8192];
int length=buffer.length;
while((length=is.read(buffer))!=-1)
s.write(buffer,0,length);
s.flush();
catch (IOException ex)
System.err.println("There was an error sending file " + file);
ex.printStackTrace();
catch (Exception ex)
System.err.println("There was an error sending file " + file);
ex.printStackTrace();
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
doGet(request, response);
/**Clean up resources*/
public void destroy() {
Thanks again.I use something like this for res.setHeader and it works fine for me. In the save dialog box it puts this filename there. But if its not able to find the filename then sometime it used to put servletname instead of filename:
res.setHeader("Content-Disposition","multi-part attachment;filename=\""+
fname+"\";");
hope it helps
vinod -
Default value of prompt based on another request
Hello:
I have a requirement where I need to set default values of prompts based on another request.
The prompt is a Date Prompt.
I tried it using presentation variable, and writing sql query, where is says " WHERE promo_id= @{variable}"
but it is still not working.
Please let me know the workaround for this issue.
Thank you.
- VinayHow is the End Date determined for your BETWEEN operator? I would assume that is variable. Also, is the second report on another dashboard page or on the same page? Assuming both reports are on the same page, do the below. If not, you can use the same prompts on the second dashboard page. Set the scope to "dashboard" and the selection the user makes carries to the second page.
The easiest way is to have 3 Dashboard prompts: Promo_ID, Start_Dt, and End_Date. Set these prompts to PVs: pvPromoID, pvStartDate, and pvEndDate, respectively.
Filter report one on pvPromoID and pvStartDate.
Filter the second report on pvPromoID and use pvStartDate in the filter of the Date column of report two. Assuming the BETWEEN values are variable, then you can write the following on the Date column of your second report:
"Table Name"."Date ColumnName" <= '@{pvStartDate}' AND Table name"."Date Column Name" <='{EndDate}'
And on your Promo column, use the filter "Table Name".Promo = '@{pvPromoID}'
When the user selects the Promo ID, Start Date and End Date from the prompts, both the first and second reports will be filtered accordingly. -
Authorization default values of transaction F-53 for object F_FAGL_LDR
All,
I am getting this error when I go to adjust an existing role
"Authorization default values of transaction F-53 for object F_FAGL_LDR inconsistant"
Can any one help me resolve this issue? I tried to set the check indicator to "NO" but it is still giving me the error at the bottom.
Please assist.> ... they had me add Profit center to F_FAGL_LDR through SU21 and then I ran into the inconsistant issue.
This part was missing before hand... I can understand that SAP said this is not support, because you have modified as standard object by adding a field to it... that makes it yours now.
Whoever "they" is, they gave you bad advice.
To repair the authorization object preferably do so by transporting it from a system on the same release which still has the standard fields.
Cheers,
Julius
Edited by: Julius Bussche on Aug 15, 2009 3:30 PM -
In Transaction code va41 how to set default sales contract start date
Hi ,
In Transaction code " VA41 " how to set default sales contract start date and end date.
Can any one tell me the correct user exit for the same.
Thanks
Basuhi,
u have to use user exits or badis.
use sutable exits mentioned below.
SDTRM001 Reschedule schedule lines without a new ATP check
SDVFX006 User exit: Tax line (transfer to accounting)
V45A0001 Determine alternative materials for product selection
V45A0002 Predefine sold-to party in sales document
V45A0003 Collector for customer function modulpool MV45A
V45A0004 Copy packing proposal
V45E0001 Update the purchase order from the sales order
V45E0002 Data transfer in procurement elements (PRreq., assembly)
V45L0001 SD component supplier processing (customer enhancements)
V45P0001 SD customer function for cross-company code sales
V45S0001 Update sales document from configuration
V45S0003 MRP-relevance for incomplete configuration
V45S0004 Effectivity type in sales order
V45W0001 SD Service Management: Forward Contract Data to Item
V46H0001 SD Customer functions for resource-related billing
V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
Edited by: katigiri linganna on Apr 28, 2009 12:19 PM -
Setting Default Dashboard based on Groups/users in OBIEE 10g
Hi,
I am having a requirement and facing some issues with setting a default dashboard option to the users who ever access the application. Below is the brief description of entire requirement.
The main requirement is to integrate OBIEE into a .net and silver light application. We will be having a 3 links in the .net application , which in turn displays the OBIEE reports and dashboards upon clicking the 3 links.
We are using the concept of Init blocks, session variables and Go URL from an OBIEE standpoint for accomplishing this integration requirement. We have also configured LDAP server in OBIEE.
The issue we are facing is out of the 3 links in .net application, we have one link/icon called dashboard icon which should display bunch of OBIEE dashboard pages in the form of 4 tabs but currently it is showing the My Dashboard home page. For this to achieve to set default dashboard page is to go to My account and change the default dashboard to the desired dashboard and log out and log in back to the application and we will be all set with dashboard pages being displayed upon lcking the dashboard icon but this is manual process for each user as they need to login into the .net application and change the setting s in My Account manually to change the default dashboard setting to the desired one.
How should I make sure, whoever is logging into the Application (every user) should be able to see the default dashboard pages without changing the options manually by going to My Account.
The LDAP server is taking care of the Authentication part of the users as every user record is maintained in Active directory which in turn is part of LDAP server.
To brief high level requirement on single statement is how to make a default dashboard pages to users based on group in OBIEE. Is there any option in OBIEE, where we can change or set a default dashboard to particular group in OBIEE either in RPD or UI level.
Appreciate your help on this.
Let me know if anyone needs any more information in this regard.
Thank
PraveenYou can set 'PORTALPATH'. Have a look at these threads below:
how to get default dashboards when users logs in
Re: PORTALPATH for Each Group
- Bharath -
Set default transaction in Ic webclient
Hi All,
I am working in IC WEBCLIENT. When I am launching the transaction crm_ic and going to interaction history in navigation bar and in show field I am choosing Business Activity I am getting the mails and while choosing that mail I am getting Complaint as the default transaction. I want to get Business activity as the default transaction but it is showing Complaint 0. Can I get Business activity there and how?
Thanx
ChinmayaHi,
You need to do configuration for Business Transaction profile with the path mentioned by Glenn. In the first screen under the column "Trans.Type" you have to use your activity transaction (e.g 0010 is used in default Business Transaction profile). With this change you will be able to create Activity transaction as default transaction. Please remember to assign your Business Transaction Profile to your IC WebClient profile. Alternatively, make the above change in the Business Transaction Profile that you are using.
Secondly, you may have Sales or Service transaction to be created as Dependent transactions based on your requirements. This can be done in the sub-category by selecting your Business Transaction Profile and double clicking "Dependent Business Transactions".
Please go through the following to give you detailed conceptual understanding on this.
http://help.sap.com/saphelp_crm50/helpdata/en/e5/e9bc787a4711d68790005004f2f41f/frameset.htm
Regards,
Deepak -
Transaction based security vs. Authorization based security
Hi All just a general question does any one know any pro's and con's about implementing transaction based security vs. authorization object based
Thanks MikeWell, the Tcode goes into an authoruization object as well, namely S_TCODE, so it always boils down to authorization objects. When properly configured, PFCG will propose all necessary authorization objects once you put a transaction in the role menu. On a new system, have a look at SU25 and it's documentation to setup PFCG.
In my opinion putting the relevant transactions in the roles first and fine tuning the authorization values afterwards is the right way to go. Tracing may help but is no substitute for testing. -
Badi for setting default values in the transaction in APO.
BADI NAME: SMOD_APOCF005 which is used for setting default values in the transaction.
I have implemented the BADI using the below code but that BADI is not triggering. Please can you provide any solution for resolving this.
As per my requirement I am trying to set default values for these three fields RRP_TYPE, WHATBOM, CONVH.
DATA: LS_MATLOC LIKE LINE OF IT_MATLOC.
LOOP AT IT_MATLOC INTO LS_MATLOC.
LS_MATLOC-RRP_TYPE = '4'.
LS_MATLOC-WHATBOM = '5'.
LS_MATLOC-CONVH = '999'.
MODIFY TABLE IT_MATLOC FROM LS_MATLOC TRANSPORTING RRP_TYPE WHATBOM CONVH.
ENDLOOP.
DATA: LS_MATLOCX LIKE LINE OF IT_MATLOCX.
LOOP AT IT_MATLOCX INTO LS_MATLOCX.
LS_MATLOCX-RRP_TYPE = 'X'.
LS_MATLOCX-WHATBOM = 'X'.
LS_MATLOCX-CONVH = 'X'.
MODIFY TABLE IT_MATLOCX FROM LS_MATLOCX TRANSPORTING RRP_TYPE WHATBOM CONVH.
ENDLOOP.The BADI name: SMOD_APOCF005 .
T.code at APO : /sapapo/mat1
Once we enter in that T.Code with some Product and Location data.
There under PP/DS tab.
Under Planning Procedure there is a field PP Plng Procedure which I want to set as 4
And under Order Creation there is Plan Explosion which needs to be set as 5
And Under Horizons there is PP/DS Horizon which needs to be set as 999.
BADi is implemented and active.
And once the data is CIF from ECC to APO
These default values are not set in the T code in APO and the BADi is not triggering. -
Pass variable and set default value based on user's group
Hello
I'm using SharePoint 2010 and SQL 2012. I need to send a variable to the page and based on its value, set default value for a drop down list and send it to other web part to filter the data. Is it possible for certain users to send that value as a default
and limit user to see only this value in the text field or drop down list; for others - to allow to see the drop down list, but also set the default value for that list?
The main page was designed in SharePoint designer, using web parts (aspx page). I had setup a connection to Active Directory and already have the code to get user's groups and based on their group, I have that variable pulled into the web page for further
use. But I don't know how to pass that value as a default value to the web part (currently using SharePoint Filter web part). When I tried to set a default value for the web part - it automatically puts the quotation marks around the name of the variable
and shows it as a text instead of showing the value of the field.
Thank you!
P.s. I have limited knowledge of SharePoint and need guidance (links, examples, recommendations)!
Alla SandersThank you for your response. I'll try to give you more details. On PageA I check user's groups and based on the group, assign the value and pass it to the next page (no input from the user, all done behind the scene and user is redirected to PageB).
On the next page I read that value and would like to send it to the SharePoint List Filter Web as a default value, as well as send it to another web part that displays the list from SQL, filtered using that default value. Ideally, if the user is from Group
A, I'd like for them to have only one value in that drop down list; if user is from Group B - give him drop down list with 40 items to choose from. Below there is a part of the code and variable fnum has the value from PageA (if I print the value on the screen
- I do see that it has correct value, so the code that gets groups from Active directory works correctly). If I assign fnum as a default value of the list, it shows "fnum" instead of the value of variable fnum. I connect to SQL database, using external
content - so the other list that I'm filtering based on the value in that drop down list - is XSLT Data View Web part. I also have 2 more filters on that page, that user will have full access to and based on their input, it is also sent to the XSLT web part
to filter out more data. Since one of the filters is the date and I am filtering data starting from the date that user chooses - XSLT is the only web part that I was able to make it work with.
I looked at the link you provided (thank you). It is using Content Query Web part. Will it work with external content, as well as accepting multiple filtering, including custom starting date? I appreciate your help!
<%
string fnum = Request.QueryString["field1"];
%><table cellpadding="4" cellspacing="0" border="0" style="height: 1000px">
<tr>
<td id="_invisibleIfEmpty" name="_invisibleIfEmpty" colspan="2" valign="top" style="height: 101px">
<WebPartPages:WebPartZone runat="server" Title="loc:Header" ID="Header" FrameType="TitleBarOnly"><ZoneTemplate>
<WpNs0:SpListFilterWebPart runat="server" FilterMainControlWidthPixels="0" RequireSelection="False" ExportMode="All" PartImageLarge="/_layouts/images/wp_Filter.gif" AllowHide="False" ShowEmptyValue="True" MissingAssembly="Cannot import this Web Part." AllowClose="False" ID="g_1ccc4bca_3ba1_480b_b726_adfdb1e9e02d" IsIncludedFilter="" DetailLink="" AllowRemove="False" HelpMode="Modeless" AllowEdit="True" ValueFieldGuid="fa564e0f-0c70-4ab9-b863-0177e6ddd247" IsIncluded="True" Description="Filter the contents of web parts by using a list of values from a Office SharePoint Server list." FrameState="Normal" Dir="Default" AllowZoneChange="True" AllowMinimize="False" DefaultValue="fnum" Title="Facilities List Filter" PartOrder="2" ViewGuid="2da5d8db-6b55-4403-80a8-111e42049f8b" FrameType="None" CatalogIconImageUrl="/_layouts/images/wp_Filter.gif" FilterName="Facilities List Filter" HelpLink="" PartImageSmall="/_layouts/images/wp_Filter.gif" AllowConnect="True" DescriptionFieldGuid="2d97730a-cd0d-4cb9-8b55-424951201081" ConnectionID="00000000-0000-0000-0000-000000000000" ExportControlledProperties="True" TitleIconImageUrl="/_layouts/images/wp_Filter.gif" ChromeType="None" SuppressWebPartChrome="False" IsVisible="True" ListUrl="/Lists/FacilitiesList" AllowMultipleSelections="False" ZoneID="Header" __MarkupType="vsattributemarkup" __WebPartId="{768E2035-0461-4A09-8DDD-CA7020C2B23D}" WebPart="true" Height="" Width="615px"></WpNs0:SpListFilterWebPart>
Alla Sanders -
Authorization default values of transaction /MRSS/PLBOMGR for object /MRSS/
Hello,
When I add the tcode "/MRSS/PLBOORGM " throuh the menu tab and when I go the authrization tab and click on either
Change Authorization Data or Expert Mode for Profile Generation the is an error message stating the following :
======================================================================================
Authorization default values of transaction /MRSS/PLBOORGM for object /MRSS/PB1 inconsistent
Message no. 5@015
Diagnosis
The authorization fields contained in the authorization defaults are incomplete or incorrect.
System Response
The process had to be terminated to avoid generating inconsistent authorization data.
Procedure
Use transaction SU24 to adjust the authorization defaults to the object definitions in transaction SU21 and then repeat the process.
============================================================================================
SU24, the custom values maintained are same as SAP Default . Any suggestion?
Thanks
Osama KhalifaThis indicates one of two things resulting from changes to the authorization object AFTER SU22 had been maintained for it:
1) One or more of the fields were converted to org. levels using the "old" technique of maintaining the table instead of running the report for this.
2) One of more of the fields were changed in SU20 or SU21 but the original data in SU22 was not corrected.
Solution in both cases is to correct the proposals in SU24 (customer data) and report it to SAP to correct in SU22 (original SAP data).
Cheers,
Julius -
Set Default Printer based on user setting using Powershell script
Hi
I would like to create a script that runs on user log off and captures the default printer (set manually by the user) and then another script to reapply the settings (saved upon log off) when the user logs back in.
This is because local printers are set as default printer (PDF Creator Programs) when we all use Network Printers so this means a user has to set default printer to the network printer all the time.
I have found this script to start with:
$Printer = Get-WmiObject -namespace root\cimv2 -Query “select * from Win32_Printer Where Default = TRUE” -Impersonation 3 | select name | out-file C:\temp\Printer.txt
But the out file looks like this:
name
\\PrinterserverName\Accounts01
Which I dont see how it can be used on another script plus there are spaces after\Account01
Any Ideas please?
M
MaelitoHi Maelito,
According to your description, you want to export the default printer name to text file, then read this printer name from text file and set the default printer via Powershell:
#save printer name to text file
Get-WmiObject -namespace root\cimv2 -Query “select * from Win32_Printer Where Default = TRUE” -Impersonation 3 | select -ExpandProperty name | out-file C:\temp\Printer.txt
# read printer name from text file and set default printer
$name=get-content C:\temp\Printer.txt
(Get-WmiObject -Class Win32_Printer -Filter "Name='$name'").SetDefaultPrinter()
If there is anything else regarding this issue, please feel free to post back.
Best Regards,
Anna Wang
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
Set default value based on sql query?
Hi,
is it possible to set default value of an BC entity attribute by using sql expression?
Eg. "select max(x)+1 from y where userid=?"
Rgs
JernejJernej,
Yes, you can do this. Edit your entity object attribute, and in the Edit Attribute dialog select "Derived from SQL Expression". Then you can enter your expression in the Expression text box.
Blaise -
A better way to auto set category to bank transactions
I have a table with bank transactions, the third cell have "Memo", some kind of description, I want to classify the transaction based on words found in the "Memo" based in another table with first column with classification and the second column with words (can be more than one word) to find.
Example:
Table Transaction:
Value
Balance
Memo
Category
-100,00
1900,00
Company Phone - electronic bill
Communication
-200,00
1700,00
School payment
Education
1000,00
2700,00
Deposit trough machine
-20,00
2680,00
Bob's Diner
Food
-40,00
2640,00
Star Gas Station
Fuel
Table Category:
Category
Key
Communication
Phone, Cell
Education
School
Fuel
Gas, Ethanol
Food
Diner, Restaurant
So far I found 3 possible solutions but I'm looking for a elegant and easy way to do it, it need be easy to manage and add words as criterions.
Found Solutions:
1 - nested "IF" (Complicated to manager and to add new keys for new categories)
2 - Add columns to the first table, one column for each key to test, then use "Lookup" to get Category in the column header (Not elegant)
3 - Trough AppleScript (very slow).
I make a research to find a way to make some like a "Loop" or a "Repeat until" with only Numbers formulas but I don't found nothing.
Any help will be appreciated.
Thanks.
Ps: this is my AppleScript (my real table is a little different than that in this message, my table have a subcategory too).
on know_category from array to memo
set found to {"?", "?"}
repeat with description in array
repeat with |key| in item 3 of description
if |key| is in memo then
set found to description
exit repeat
end if
end repeat
if not found is {"?", "?"} then
exit repeat
end if
end repeat
return found
end know_category
on categories_as_array from table
set |result| to {}
tell application "Numbers"
repeat with |row| in rows of |table|
set values to value of cells of |row|
set AppleScript's text item delimiters to ", "
set Category to first item of values
set subcategory to second item of values
set keys to text items of (third item of values)
set AppleScript's text item delimiters to " "
set end of |result| to {Category, subcategory, keys}
end repeat
end tell
return |result|
end categories_as_array
tell application "Numbers"
set categories to categories_as_array of me from table "Category" of sheet "Config" of first document
set names to {}
repeat with |sheet| in sheets of first document
set end of names to name of |sheet|
end repeat
set |name| to {choose from list names} as text
repeat with |row| in rows of table "Transactions" of sheet |name| of first document
if not (value of item 7 of cells of |row|) is "Category" then
set memo to value of item 5 of cells of |row|
set found to know_category of me from categories to memo
set value of item 7 of cells of |row| to first item of found
set value of item 8 of cells of |row| to second item of found
end if
end repeat
end tellI apologizes but your handler categories_as_array seems to be wrong.
When I run the script it fails because it doesn't find a third item in values
I edited it this way :
on categories_as_array from table
set |result| to {}
tell application "Numbers"
repeat with |row| in rows of |table|
set values to value of cells of |row|
set AppleScript's text item delimiters to ", "
set Category to first item of values
set subcategory to second item of values
try
set keys to text items of (third item of values)
on error
set keys to ""
end try
set AppleScript's text item delimiters to " "
set end of |result| to {Category, subcategory, keys}
end repeat
end tell
return |result|
end categories_as_array
but the returned list which is :
{{"Category", "Key", ""}, {"Communication", "Phone, Cell", ""}, {"Education", "School", ""}, {"Fuel", "Gas, Ethanol", ""}, {"Food", "Diner, Restaurant", ""}}
is not the expected one.
My proposal would be :
on categories_as_array from table
set |result| to {}
tell application "Numbers"
repeat with |row| in rows of |table|
set {Category, values} to value of cells of |row|
set AppleScript's text item delimiters to ", "
set subcategory to first text item of values
try
set keys to text items 2 thru -1 of values
on error
set keys to {}
end try
set AppleScript's text item delimiters to " "
set end of |result| to {Category, subcategory, keys}
end repeat
end tell
return |result|
end categories_as_array
which returns :
{{"Category", "Key", {}}, {"Communication", "Phone", {"Cell"}}, {"Education", "School", {}}, {"Fuel", "Gas", {"Ethanol"}}, {"Food", "Diner", {"Restaurant"}}, {"fake", "sub1", {"key1", "key2", "key3"}}}
As you see, for tests I added a row to your table.
It contains :
fake
sub1, key1, key2, key3
Yvan KOENIG (VALLAURIS, France) mercredi 27 avril 2011 11:38:31
Maybe you are looking for
-
LVM Volumes not available after update
Hi All! I haven't updated my system for about two months and today I updated it. Now I have the problem that I cannot boot properly. I have my root partition in an LVM volume and on boot I get the message ERROR: device 'UUID=xxx' not found. Skipping
-
My Apple ID verification e-mails are not coming through to my e-mail account.
My Apple ID verification e-mails are not coming through to my e-mail account. How can I fix that?
-
Songs starting to fade in and out and stop playing
just downloaded an album for the first time from the itunes online and now all the songs I try to play will fade and then stop playing
-
Install OVM server 3.2.1 on iSCSI LUN
Hello friends, I have a Cisco Blade and would like to boot OVM server from an iSCSI lun. I create a LUN from a SAN and presented the lun to the blade. When the server boots up, it sees the iSCSI lun just fine but when I tried to install OVM server 3.
-
Fail to set vlan in driver [F1ControlPlane::cmgrSscGetVlan]
Hi, I've a problem with a IPS module SSM-10 installed on a ASA5510 in Transparent mode, on the event viewer of IPS module i find this Error: errorMessage: Error - Fail to set vlan in driver [F1ControlPlane::cmgrSscGetVlan] name=errUnclassified someb