Changing Variant Parameters Programmatically
Hi Guys/Dolls
I've developed a program that has a user selection date range on it and I have saved this program as a variant. I submit this program has a batch job on a monthly basis but need to change the dates on the variant each month to be the start and end date of the previous month.
I believe I need to use the following Function Modules; please correct me if I am barking up the wrong tree. Unfortunately I have absolutely no idea how to use them within ABAP. Do I need anything else to change my variant parameters?
RS_VARIANT_CONTENTS
RS_CHANGE_CREATED_VARIANT
Does anybody have a very small snippet of code that will allow me to change the date of the variant.
Many thanks in advance.
Raj
Ok Guys/Dolls
I've managed to hack a solution and have posted this for reference.
The code is as follows:-
FORM change_variant .
DATA: h_rc LIKE sy-subrc.
DATA: ival TYPE STANDARD TABLE OF rsparams WITH HEADER LINE.
DATA: ls_variantdesc LIKE varid.
*1st check to see that the variant exists.
CALL FUNCTION 'RS_VARIANT_EXISTS'
EXPORTING
report = sy-repid
variant = variant_name
IMPORTING
r_c = h_rc
EXCEPTIONS
not_authorized = 01
no_report = 02
report_not_existent = 03
report_not_supplied = 04.
* If variant exists then obtain the contents of the variants.
IF h_rc = 0.
CALL FUNCTION 'RS_VARIANT_CONTENTS'
EXPORTING
report = sy-repid
variant = variant_name
move_or_write = 'W'
* NO_IMPORT = ' '
* EXECUTE_DIRECT = ' '
* IMPORTING
* SP =
TABLES
* L_PARAMS =
* L_PARAMS_NONV =
* L_SELOP =
* L_SELOP_NONV =
valutab = ival
* OBJECTS =
* FREE_SELECTIONS_DESC =
* FREE_SELECTIONS_VALUE =
* EXCEPTIONS
* VARIANT_NON_EXISTENT = 1
* VARIANT_OBSOLETE = 2
* REPORT_NOT_EXISTENT = 3
* OTHERS = 4
IF sy-subrc = 0.
* Change value of the variants to what you want it to be.
LOOP AT ival WHERE selname EQ 'PNPBEGDA' OR
selname EQ 'PNPBEGPS' OR
selname EQ 'PNPENDDA' OR
selname EQ 'PNPENDPS'.
ival-low = ''.
MODIFY ival.
ENDLOOP.
LOOP AT ival WHERE selname EQ 'P_CNGDAT'.
ival-low = '20000201'.
ival-high = '20001231'.
MODIFY ival.
ENDLOOP.
* Now re-save the variant with the appropriate changes.
* Clear and re-populate the variant description.
CLEAR ls_variantdesc.
ls_variantdesc-aename = sy-mandt.
ls_variantdesc-aename = sy-uname.
ls_variantdesc-aedat = sy-datum.
ls_variantdesc-aetime = sy-uzeit.
CALL FUNCTION 'RS_CHANGE_CREATED_VARIANT'
EXPORTING
curr_report = sy-repid
curr_variant = variant_name
vari_desc = ls_variantdesc
* ONLY_CONTENTS =
TABLES
vari_contents = ival
* VARI_TEXT =
* VARI_SEL_DESC =
* OBJECTS =
EXCEPTIONS
illegal_report_or_variant = 1
illegal_variantname = 2
not_authorized = 3
not_executed = 4
report_not_existent = 5
report_not_supplied = 6
variant_doesnt_exist = 7
variant_locked = 8
selections_no_match = 9
OTHERS = 10.
IF sy-subrc = 0.
PERFORM set_pnp_default.
ENDIF.
ENDIF.
ENDIF.
ENDFORM. " change_variant
FORM set_pnp_default.
* The following 2 statement will set Today as the default on the PNP
* selection and also move the cursor to that field.
* IMPORTANT NOTE - you must have 'PNPTIMR1' in capitals otherwise it
* doesn't work.
pnptimed = 'D'.
SET CURSOR FIELD 'PNPTIMR1'.
ENDFORM. " set_pnp_default
Similar Messages
-
Change 'report parameters' of scheduled report
How can I change the report parameters (not schedule parameters) programmatically and then schedule the 'modified' report immediately?
Scheduling works off - Binding off InfoObjects model
Modifying Parameters are based off - Binding off RAS model
Should I be using the ReportDocument Object?
Edited by: jam mend on Feb 2, 2009 6:31 PMIReport boReport = (IReport)boInfoObjects.get(0);
IReportProcessingInfo reportInterface =
(IReportProcessingInfo) boReport.getPluginProcessingInterface("CrystalReport");
reportInterface.getReportParameters()
seems to have it. -
I have Photoshop cs6 Ext on an ASUS laptop. How can I increase the font size of the contents of the FILTER Panel situated on bottom left of screen. The font size is extreamly small and almost unreadable. I have changed display parameters, not the resolution, to no avail.
David.Paragraph breaks are good for readability. ;-)
Have you noticed any difference between your MacBook and others at the Apple store? Wondering whether this is a configurable setting at the system level, i.e., DPI.
You can default Firefox to a larger zoom level to avoid having to zoom every page. You'll still be able to adjust the size for individual sites as needed. It sounds as though you are aware of these add-ons:
* Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
* NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/
There are some discussions about changing coming in Firefox 22 (I think) to address higher density displays like the Retina display. So perhaps there will be a built-in setting to address this in the future. -
How to change NLS parameters in Oracle XE?
Hi
I have to change some parameters in database using Oracle XE server but I don't know how to do it. I must change these parameters:
NLS_CHARACTERSET
NLS_NCHAR_CHARACTERSET
How to do it?
Thanks for help.Thanks, but I'm newbie and I have to ask you about more details :)
What do you mean when you saying: init file (or spfile)? Where can I find these files?
Registry entry (NLS_LANG) is correct, but when I'm using web based administration application I can see more NLS settings. Unfortunately I can't change them :(
Using XE version I can't (I'm not sure about that) create another instance, there is only one instance created by installer. Is it possible to change NLS settings in this case? -
How to change NLS parameters in SQL Developer?
I think that Oracle National Language Support is quite confusing. How can I easily change NLS parameters for SQL Developer (for all connections) to match exactly those that my database is using?
Hello,
SELECT 5/8 x FROM dual;F9 -> 0.625
Change decimal separator in preferences
F9 -> 0,625
It is different when I execute a query/script with F5, then I always get 0.625
SELECT * FROM nls_session_parameters
WHERE parameter = 'NLS_NUMERIC_CHARACTERS';
PARAMETER VALUE
NLS_NUMERIC_CHARACTERS .,
SELECT 5/8 x FROM dual;
X
0.625
Change settings
SELECT * FROM nls_session_parameters
WHERE parameter = 'NLS_NUMERIC_CHARACTERS';
PARAMETER VALUE
NLS_NUMERIC_CHARACTERS ,.
SELECT 5/8 x FROM dual;
X
0.625Even changing the settings with ALTER SESSION makes no difference
ALTER SESSION SET NLS_NUMERIC_CHARACTERS = ',.';
SELECT * FROM nls_session_parameters
WHERE parameter = 'NLS_NUMERIC_CHARACTERS';
PARAMETER VALUE
NLS_NUMERIC_CHARACTERS ,.
SELECT 5/8 x FROM dual;
X
0.625
ALTER SESSION SET NLS_NUMERIC_CHARACTERS = '.,';
SELECT * FROM nls_session_parameters
WHERE parameter = 'NLS_NUMERIC_CHARACTERS';
PARAMETER VALUE
NLS_NUMERIC_CHARACTERS .,
SELECT 5/8 x FROM dual;
X
0.625It seems the script output does not care about my settings :-(
Regards
Marcus -
Change step parameters in teststand edit mode
Hello,
I would like to know if it's possible to change the parameters in a step in edit mode of teststand.
I have attached a sequence with one step, in this step I want to select DMMx.
After the selection I want to teststand to fill in the parameters in the step so I can the choose which type of measurement and such.
If this is not possible how could I make something like this possible.
As you may see this will be a HAL, and the only option I can see which would do this is bij a string array but I don't want to type in the commands in string.
Attachments:
ring.vi 14 KB
Sequence File 1.seq 5 KBHi Darkxceed
My recommendation for doing a HAL i TestStand would be to use an object oriented approach.
Create a class hirachy of your instruments like the following inside of LabVIEW:
Then use Dynamic Dispatch to make TestStand choose the instrument of interest. There is an example of using Dynamic Dispatching in TestStand here:
TestStand Using LabVIEW OOP Truck Example
https://decibel.ni.com/content/docs/DOC-24098
This solution will offcourse require you to read up on creating applications using object oriented programming in LabVIEW. We at NI have a course that walks you through both the theory and practical implementation. It is called Object Oriented Programming in LabVIEW. If you have a SSP agreement, you should be able to find it as Self Paced Online Training as a part of your contract.
There is also a good introduction to OOP in LabVIEW and HAL here:
https://decibel.ni.com/content/docs/DOC-32506
(There is a video embedded in the PDF)
Best Regards
Anders Rohde | CLD | Platinum Applications Engineer | National Instruments Denmark -
How to Change Database parameters as suggested by EWA report
Dear Experts,
As per EWA report , i have been asked to change several DB parameters as per note 0124361 . Should i go aghead and change the parameters ? What is the procedure of chaging those parameters? what is the real process that should be followed ? Please revert.Points guaranteed.
Regards,
SomyaRun "brspace -f dbparam"
Select option 1 "Change parameter value" and change the parameters. After changing select option 3 to create a new init.ora.
If you change parameters that have the scope "spfile" oracle requires a restart. If you only change parameters with scope "both" you don't need a restart of oracle. This changes are affected on the fly.
To restart oracle:
connect / as sysdba
SQL> shutdown
SQL> startup
You don't need to stop SAP if you only change oracle parameters. SAP reconnects automatically if the database is up. -
Want to change image properties programmatically
want to change image properties programmatically like
adjust_to_fit,selection_rectangle,pane,show_pallete.
Reply as soon as possible.
[email protected]I understand.
In terms of for the initial Ecommerce switchover we mass updated the MMIMAGE field in partsmaster so that the assumed naming convention of the image files are ITEMCODE.jpg.
Your solution is good which covers the instance where the image file field is empty and then putting in a empty image field in there.
The other scenario is that the MMIMAGE field is filled put the physical .jpg file is missing in the file system. Is there a way to handle that.
I checked already the netpoint thumbnail handler .dll and browsed over the available member properties / methods but I don't think such a config exists.
Mike -
Recently,I start to pay attention to the function 'Kinect Fusion Explore Multi Static Cameras sample' In SDK 1.8.
Here ,I use two kinects ,but I have no idea how to change the parameters(x,y,z &dictance) in the red rectangle to make it work successfully.
By the way,I hava calibrated the two kinects' camera and get the related perameters.sorry,I can't add the image to my question...~~~~(>_<)~~~~
-
Change J2ee parameters on WAS 640-J2EE add in -config tool
I have started the config tool to change java paramters per SAP.
However I notice that config tool shows dispatcher and server and below that an instance (xxx-318782 for example) which has a dispatcher and server also.....
Why is this and which do I modify to change java parameters?
Alos where can I find the setting, it is somewhere under services directory?
Thanks
John RHi,
the dispatcher and server nodes that appear right below the root of the tree in the Config tool contain global properties (services and managers' properties). This means those properties are used globally instead of the default properties. For more info, refer to this page: http://help.sap.com/saphelp_nw04/helpdata/en/36/e71bbee9ab4677a744d4c4484b0bf4/frameset.htm
Next, the dispatcher and server you find under the instance xxx, are actually the elements that you've installed for your system. Changing a property on any of them applies locally, i.e. to the corresponding node (server or dispatcher).
To set java parameters, you need to click on the dispatcher or server (depending on which element's java props you need to modify). On the right side, under General tab you'll see the Java parameters field. Here is the relevant documentation: http://help.sap.com/saphelp_nw04/helpdata/en/39/7796e0a7be604ab63c2924045710a8/frameset.htm
Hope that helps! -
Hi,
I have a servlet and would like to change the request parameters before forwarding that request to another servlet.
But how can I change the parameters? I thought it would work with request.setAttributes, but the parameters are not being changed. How can I change the parameters then???Hi Joberc
1. Did you read javax.servlet.Filter API of Servlet 2.3.
It allows us to do some filtering in between and forward to another servlet
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/Filter.html
You can also search for code sample and see how it works.
2. As for your specific question and if possible, can we view your code to see
-- Paul. -
Is it possible to change the parameters order?
Or are they locked and only defined by the connector pane?Hi Darkxceed
My recommendation for doing a HAL i TestStand would be to use an object oriented approach.
Create a class hirachy of your instruments like the following inside of LabVIEW:
Then use Dynamic Dispatch to make TestStand choose the instrument of interest. There is an example of using Dynamic Dispatching in TestStand here:
TestStand Using LabVIEW OOP Truck Example
https://decibel.ni.com/content/docs/DOC-24098
This solution will offcourse require you to read up on creating applications using object oriented programming in LabVIEW. We at NI have a course that walks you through both the theory and practical implementation. It is called Object Oriented Programming in LabVIEW. If you have a SSP agreement, you should be able to find it as Self Paced Online Training as a part of your contract.
There is also a good introduction to OOP in LabVIEW and HAL here:
https://decibel.ni.com/content/docs/DOC-32506
(There is a video embedded in the PDF)
Best Regards
Anders Rohde | CLD | Platinum Applications Engineer | National Instruments Denmark -
How to change focus in programmatic way?
Hi,
1. how to change focus in programmatic way?
2. is there any way to define tab index?
With Regards,
Wai Phyo1). http://docs.oracle.com/cd/E16162_01/apirefs.1112/e17491/tagdoc/af_scrollComponentIntoViewBehavior.html
2). no -
ThSysInfo - How to change the parameters???
Hi all,
is it possible to change the parameters which are available with this system call...
We have changed the hostname in our system... but with this system call we always get the old hostname... Do we have to refresh a buffer or is it not possible to change these values...
CALL 'ThSysInfo'
ID 'OPCODE' FIELD OPCODE_MSGSERVER
ID 'MSOPCODE' FIELD MS_GET_HWID
ID 'HW_ID' FIELD HWID
ID 'ERRMSG' FIELD ERRMSG.
Any ideas?
regardspllz help me what is the solution for these
ThSysInfo - How to change the parameters???
CALL 'ThSysInfo'
ID 'OPCODE' FIELD OPCODE_GET_VIRT_HOSTDATA
ID 'PROTOCOL' FIELD PROTOCOL
ID 'VIRT_IDX' FIELD VIRT_IDX
ID 'HOST' FIELD HOSTNAME
ID 'PORT' FIELD PORT.
i want to change the hostname as by default through system it is taking some hostname but i want to change that hostname can u plzz guide me how to change that hostname as i am using these FM in my webdynpro method
pllzz hel me as soon as -
Hi All,
We are planning to implement the Password Policy for SAP users in our organization...
we want to change next parameters
Login/no_automatic_user_sapstar
Login/fails_to_session_end
Login/password_expiration_time
Login/min_password digit
Login/min_password_letters
Login/min_password_special
Login/min_password_diff
so I have some questions,
first of all this change will be applied in our productive system SAP CRM ABAP 7.0 with MSSQL
what will be the impact when this change will be applied?, I mean the policies is inmediatly or for example it will be reflect until one user ask to be reset or until the expiration time defined will be get,
what will happen with comunication users?, I have seen some documentation when mentiion that just communication users of certain type will be affected, I can't understand it,, someone has experience doing that?
so I'm worried about communication users because we have some importants users that communicate BPM(JAVA SAP) or ESB (JAVA IBM),
thank you..
AlfredAlfredo,
To expand a bit on the answer to your first question, about when it will take effect, the answer is it depends. It's true that the parameters don't take effect for the system until a restart, but as for when, after that, they impact the users depends on several factors. Users will not be required to change their password until the expiration time has passed, but chances are that many of your users, if they've had accounts longer than the expiration time, will already be past that expiration time. In that case, they will be asked to change their password with their next logons following the restart. The exceptions will be people who have recently changed their password already or who have new user accounts.
As for the other parameters mandating password complexity, by default they will be applied the next time the user changes their password (which, for many, will be right away, as just described), but if the current password is not yet expired, it will be allowed to stand even if it doesn't meet the complexity rules until it does expire. You can change this, however, with another parameter: login/password_compliance_current_policy. By default this parameter is inactive, but if you set it to 1, then users with passwords that don't meet the current complexity requirement will be forced to change right away, even if they are not expired.
With regard to your second question, about the impact of the new policy on your Communication users, here is the basic layout of impacts:
User Type
GUI Logon
Password Rules
Dialog
Yes
Yes
System
No
No
Communications
No
Yes*
Service
Yes
No
So yes, Communications users are subject to the password rules, but as Sunny was saying, generally the rules only impact interactive logons, and Communications users don't logon interactively (GUI Logon). Still, if you want to be sure, you can change their type to System, and they still will not be able to logon interactively, and they will not be subject to password expiration. Either way, they also will not be counted during license measurement.
Best regards,
Matt
Maybe you are looking for
-
SQL error not displayed. Instead wwv_flow.accept was not found
Hi, My Question: Why does the SQL error in this case not get propagated up the chain? BACKGOUND: Just spent a few hours trying to figure out why when trying to insert into a table using a wizard created page I was getting the error: The requested URL
-
I am a new iPad Air user. How do I get back to the home page with all the icons.
I Am a new user. How do I get back to the home page with all the icons.
-
I have to Loop through a ResultSet.I have to use previous method inside the loop in certain condition. Is previous and next method efficient to use.I want to know wether the ResultSet uses indexes or each time it gets the data from the Database. I wa
-
Hi! I hv both 1st ipad& ipad2. I hv some music in my 1st iPad, that is not transferred in my new ipad2 via iCloud. Can' t open iTunes stores.
-
How to resolve blank right channel
I'm using Audition CC on Mac. I have downloaded speech with all audio on left channel. How do I split left and right and create new file with same audio on both channels whether in stere or or mono?