How to change the variable value format in Ip workbooks
Dear Experts,
How to add zeros to a vaiable value before passing to a planning function in BEx analyzer?
eg: 'ZPRCTR_VAR1' (For Infoobject 0PROFIT_CTR)
User enters value 20 for 'ZPRCTR_VAR1' , but the system know only '0000000020'. I wrote a user exit like this, but nothing happens and I get variable value 20 is incorrect, planning function cannot execute. Please advice .
DATA ZDIVISION TYPE /BI0/OIPROFIT_CTR.
DATA ZDIVISION1 TYPE /BI0/OIPROFIT_CTR.
WHEN 'ZPRCTR_VAR1'.
IF i_step = 2.
LOOP AT i_t_var_range INTO loc_var_range
WHERE vnam = 'ZPRCTR_VAR1'.
zdivision = loc_var_range-low.
MOVE l_s_range-low to zdivision.
ENDLOOP.
ENDIF.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = zdivision
IMPORTING
OUTPUT = zdivision1.
CLEAR l_s_range.
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
MOVE zdivision1 TO l_s_range-low.
APPEND l_s_range TO e_t_range.
Thanks,
Gnana
Hi Gnana,
you can use de "area value" option when define a button with planning function and variables for passing values to function. These values are in excell cells so you can modify it as you want.
So imagine that your planning function has only one variable, the command sequence looks like
CMD 1 EXECUTE_PLANNING_FU
PLANNING_FUNCION_NAME 1 YOUR_FUNCTION
DATA_PROVIDER_FILTER 1 DATA_PROVIDER_1
VAR_NAME_1 1 YOUR_VARIABLE
and now you delete row with VAR_VALUE_1 and in result area you use for example
$A$1:$C$1
Now, cell A1 = VAR_VALUE_1
cell B1 = 1
cell C1 = Reference to another cell with your variable value (text item). You can use any excell function for fill 0's
And now, when you execute planning function you're passing cell C1 as value of your variable.
Hope it helps.
Enrique
Edited by: Enrique Delgado on Jun 3, 2008 7:00 PM
Similar Messages
-
How to change the variable value in fox formula?
Hi All,
Please help me achieve this scenario,
in the variable selection screen , i wil give some i/p like, calyear(0calyear) = 2008.
In planing function using FOX formula, i must be able change the variable value to 2009.
Will it be possible to achieve this, can we change a variable value using FOX formula, if possible
please let me knw how to achieve this.
Thanks n Regards,
Priya.Hi Priyadarshini,
i dont know what is your requirement exactly.If you can give a better explanation of ur requirement we can help you. But to answer your question yes we can get new values for the variable in the planning function.
for this you need to couple the planning function together with the planning filter in a planning sequence. This planning filter should have the variable that you wanted to change. In the WAD when you want to call this planning sequence there is an option to call variable screen. If you enable this, it will pop up the variable screen to get this value again.
Guess this was helpful.
Regards.
Shafi. -
How to change the variable value for the SCript in debugging
I have a variable &KNA1-NAME4&
i want to change the value of this variable in debugging mode
can any one please tell me how to do in step by steb mode.Hi Ravi,
In script u can't change the value in debigging. Open ur print program(If u don't know check TNAPR table).
Search for the element name where u r printing this variable. U can see some thing like
CALL FUNCTIOn 'WRITE_FORM'
element = ur element name.
Keep break point here and when u issue output control stops here. Now change the value as we does in normal reports.
Thanks,
Vinod. -
How to change the variable value at run time in logical column in RPD
for e.g..
i have used a session variable in logical column in rpd in case statement. now in dashboard prompt i am using that variable to store data which user is passing but the data captured is not getting reflected in the logical column.
its been always populated with the default value passed through the initilization block..resolved myself
-
How to change the profile value in the pl/sql code without making change in the database
How to change the profile value in the pl/sql code without making change in the database.
I have program ,where if the profiles 'printer and nunber of copies ' are set at the user level, by default when the report completes the O/p will be sent to the printer mentioned in the set-up. but what user wants is
if these Profiles are set for the user running this program automatic printing should not be done. -
How to clear the variable value in session store?
I'll try to build form for search. There are LOV and
search button on form. When user don't select anything then push
search button, I'd like the report to show query everything. I
mean the report will show like condition where id like '%'.
And I send variable between form to report by using session
store.
I select nothing in LOV but value that return by LOV is
not null. It's in stead of old value of LOV.
Please tell me.. How to clear the variable value in
session store? I'd like to set it to null. If you have greater
way to do like this, please tell me.
Thank you.Please suggest on this..
Thanks. -
How to change the Unitprice value from 2 decimals to 3 decimals in script
Hi Gurus,
how to change the Unitprice value from two decimals to three decimals for each item level for PO in script.
Please provide some possible solutions.
Thanks,
V.V.Hi,
Check the options available like
&VAR(.2)& this will print 2 decimals
&VAR(.3)& this will print 3 decimals
need to change the value for how many decimals you need
Thanks & Regards
Sarves Sombhatla -
How to show the variable values in key format in the information tab
Dear all
in the information tab of the query, we can see all the filters and the variable value. But we can only see the infoobject <b>text</b> of this variable, how can we do if the user needs to see the <b>key</b> of this variable?I've referred to the Web API, and find a way to display some specified variable, but since this is the standard webtemplate and we need to show all the possbible variable used in the query. Anybody has better solution?
<object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="GET_ITEM"/>
<param name="NAME" value="StaticFilter"/>
<param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS"/>
<param name="DATA_PROVIDER" value="DP"/>
<param name="CAPTION" value="SAP_BW_TEXT?program=SAPLRRSV&key=722"/>
<param name="GENERATE_LINKS" value=""/>
<param name="WIDTH" value="330"/>
<param name="ELEMENT_TYPE_100" value="VARIABLE_KEY" />
<param name="ELEMENT_NAME_100" value="0P_WBSO"/>
<param name="ELEMENT_TYPE_101" value="VARIABLE_KEY" />
<param name="ELEMENT_NAME_101" value="0P_PRJ"/>
ITEM: FILTERS
</object> -
How to pass the variable value to reports as a parameter
hi
i have facing a problem that i want to pass the value of a variable that i had calculate in a procedure like
SELECT nvl(BASIC_PAY,0) INTO v_basic FROM EMP WHERE EMP_ID=P_EMP_ID;
so i want to send the variable value v_basic as a parameter through form to report...and simlarly other variables values which i have calculate in procedure....
need ur help to solve this problem
thanks in advanceit's the exact posting from your last post. Please don't duplicate the postings, so that we can help you in one thread and not so many different threads
-
How to change the characteristic value in a item of sales order by FM?
Hi experts,
I guess the FM BAPI_SALESORDER_CHANGE can implement my requirement. But I have made many testing program, that's all failed. I don't know which part is not correct. So could you give a very simple sample to me? Just change the characteristic value in a item of sales order, not do any change for other parts. Thanks in advanced.
RegradsHi Birendra,
Thanks for you explain. I follow your guide to wirte abap program. But related characteristic value still not changed in SO main screen. could you give me some suggestion? Thanks a lot!
type-pools: IBCO2,
IBXX.
data: l_CUOBJ type CUOBJ_VA,
l_ibase type IBCO2_IBASE_REC,
l_CONFIGURATION type IBCO2_INSTANCE_TAB2,
w_CONFIGURATION type IBCO2_INSTANCE_REC2,
l_ROOT_OBJECT type IBXX_BUSINESS_OBJECT.
data: t_IBCO2_VALUE_TAB type IBCO2_VALUE_TAB,
w_IBCO2_VALUE_REC type IBCO2_VALUE_REC.
select single CUOBJ
into l_CUOBJ
from VBAP
where VBELN = '0020030609'
and POSNR = '000020'.
CALL FUNCTION 'CUCB_GET_CONFIGURATION'
EXPORTING
INSTANCE = l_CUOBJ
IS_BUSINESS_OBJECT =
IV_MOMENT =
IV_WITH_DB_INSTANCE =
IMPORTING
IBASE = l_ibase
CONFIGURATION = l_CONFIGURATION
EO_CBASE_REF =
EXCEPTIONS
INVALID_INPUT = 1
INVALID_INSTANCE = 2
INSTANCE_IS_A_CLASSIFICATION = 3
OTHERS = 4
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
loop at l_CONFIGURATION into w_CONFIGURATION.
l_ROOT_OBJECT = w_CONFIGURATION-OWNER.
t_IBCO2_VALUE_TAB[] = w_CONFIGURATION-values[].
read table w_CONFIGURATION-values into w_IBCO2_VALUE_REC with key ATINN = '0000000222'.
w_IBCO2_VALUE_REC-ATWRT = 'TMP'.
modify w_CONFIGURATION-values from w_IBCO2_VALUE_REC index sy-tabix.
modify l_CONFIGURATION from w_CONFIGURATION index 1.
clear: w_CONFIGURATION.
endloop.
CALL FUNCTION 'CUCB_SET_CONFIGURATION'
EXPORTING
ROOT_INSTANCE = l_CUOBJ
IS_CBASE_HEADER =
CHANGING
CONFIGURATION = l_CONFIGURATION
EXCEPTIONS
INVALID_INPUT = 1
INVALID_INSTANCE = 2
INSTANCE_IS_A_CLASSIFICATION = 3
OTHERS = 4
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'CUCB_CONFIGURATION_TO_DB'
EXPORTING
ROOT_INSTANCE = l_CUOBJ
ROOT_OBJECT = l_ROOT_OBJECT
FORCE_NEW_INSTANCE =
IV_WITHOUT_COMMIT_UPDATE = ' '
IV_MATERIAL =
IV_LOCATION =
IV_TECHS =
IMPORTING
NEW_INSTANCE =
TABLES
EXP_NEW_NESTED_CUOBJS =
EXCEPTIONS
INVALID_INSTANCE = 1
INVALID_ROOT_INSTANCE = 2
NO_CHANGES = 3
ALREADY_REGISTERED_FOR_UPDATE = 4
INSTANCE_IS_A_CLASSIFICATION = 5
OTHERS = 6
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
How to change the column value upto 68000 rows
Hi,
I want to change the column value.
I have table called RefDoc
Select distinct r.int_ref from refdoc r where r.int_ref like '\\dxb%'
Int_Re__f
\\dxb\Sample\BFE B777\2008\PO2025225.tif
\\dxb\Sample\RO\SFR\26-01-2009j\RO2022098.pdf
\\dxb\Sample\RO\SFR\26-01-2009j\RO2040831.pdf
\\dxb\Sample\BFE B777\2008\PO2025253.tif
\\dxb\Sample\RO\UM INV\26-01-2009\RO2018358.pdf
up to 68000 rows
I want to change to \\AUH instead of \\dxb.
I want the table like
Int_Re__f
\\AUH\Sample\BFE B777\2008\PO2025225.tif
\\AUH\Sample\RO\SFR\26-01-2009j\RO2022098.pdf
\\AUH\Sample\RO\SFR\26-01-2009j\RO2040831.pdf
\\AUH\Sample\BFE B777\2008\PO2025253.tif
\\AUH\Sample\RO\UM INV\26-01-2009\RO2018358.pdf
Thanks
Niharuser REPLACE function and change it
UPDATE refdoc
SET int_ref = REPLACE(int_ref, '\\dxb\', '\\AUH\')
WHERE int_ref like '\\dxb\%' -
How to change the initial value of the list.
Hi,
I have to change the initial value of the list.In the 'When-new-block instance' trigger, i wrote the following:
set_item_property(list_id,initial_value,
'2000');
But when I run the form, it says this property is not recognised.
I need to change the initial value.
Please help me out.
Thanks
Viji.Do you mean the default value ?
Set_item_property('list_item_name', default_value,2000); -
How to change the suggest value in ME11uFF1F
in ME11,when i creat a purchase info record, i need to change the suggest value of field u201CVendor Mat. No.u201D according the material NO. which i input in the initial screen.
I have found the user exit in ME11,but they are not helpful.
anyone can give me some advice or resolution?
thanks.I have program ,where if the profiles 'printer and nunber of copies ' are set at the user level, by default when the report completes the O/p will be sent to the printer mentioned in the set-up. but what user wants is
if these Profiles are set for the user running this program automatic printing should not be done. -
How to change the automatic character format in Message Editor?
Hi experts,
We use PI 7.31, AAE adapter in our scenario. When we use the message monitor in Adapter Engine, we choose one message and open it in Message editor, we can see the message payload with AUTO Character Format: Windows-1252.
The problem is we have some CN characters and they cannot display in correct formats.
So, is there any way to change the AUTO Character format?
The other question is, can we see the message after mapping in java message monitor?
Thanks.
KevinHi,
The Quantity field which is used in sales order has a standard Data Type:QUAN
with Decimal Places:3 so u cant change the settings in standard data element CRMT_SCHEDLIN_QUAN
If u want the quantity field without decimals then u need to create a Z data element.
Regards,
PePe -
How to change the date time format in jsp
Hello Sir,
I am trying to convert the date from one format into another format.
In SQLServer one fields type as datetime.
when i tried to display it in jsp with String variable it shown like below,
2006-08-16 09:11:23.0
how to format this value as
Wed, Aug 16, 2006 09:11 AM
my code is
java.text.SimpleDateFormat fmt= new java.text.SimpleDateFormat("EEE, MMM d, yyyy K:mm a ");
fmt.format(string value fetch from dtabase field);
Plz provide me the solution asap. very urgent request.
Regards
venki.Hello Sir,
I am trying to convert the date from one format into
another format.
In SQLServer one fields type as datetime.
when i tried to display it in jsp with String
variable it shown like below,
2006-08-16 09:11:23.0
how to format this value as
Wed, Aug 16, 2006 09:11 AM
my code is
java.text.SimpleDateFormat fmt= new
java.text.SimpleDateFormat("EEE, MMM d, yyyy K:mm a
fmt.format(string value fetch from dtabase field);
Plz provide me the solution asap. very urgent
request.
Regards
venki.Have a look in to the below code
import java.text.SimpleDateFormat;
import java.util.Date;
public class DateFormatTest
public static void main( String[] cmdArgs )
throws Exception
SimpleDateFormat sdfInput =
new SimpleDateFormat( "yyyy-MM-dd" );
SimpleDateFormat sdfOutput =
new SimpleDateFormat ( "EEE, d MMM yyyy hh:mm aaa" ); //Change the patterns in to what ever u need
String textDate = "2001-01-04";
Date date = sdfInput.parse( textDate );
System.out.println( sdfOutput.format( date ) );
i will suggest u to look in to the API doc you will come to know lot many things.
Maybe you are looking for
-
Since upgrading to IOS 7 the photographs I take on my iPhone 4S do not transfer to the cloud. Sometimes one or two of them transfer but then none for weeks. I have deleted photos from the cloud in case it is full but to no affect. I use my iPhone in
-
How to insert new schedule line in Sales order using BAPI
Hi All, I am using the below code to add a new line in the schedules line of a existing sales order.But i am not getting the extra line after running the report. Kindly guide me in how to achieve this. thanks and regards shilpa REPORT Z_VA32_EDI1. d
-
I work at the Buddhist Church of San Francisco. When others trying to find our website search in Modzilla: "Buddhist Church of San Francisco" They are taken to a link that looks like our home page bcsfweb.org. When they click on the link, they are ta
-
Enchancing the field in But000 and in BAPIBUS1006_CENTRAL_PERSON Structure
Hi All, Please help me to resolve the issue. I have a requiremtent in E-rec, during external candidate creation, I have to include 3 fields along with personal data (Nationality, marital status and Total years of experience). In BUT000, there is
-
Acrobat X Version 10 - Print Dialog.
Hi, we upgraded from version 9 to 10 and since, when go to print a pdf, the print dialog box comes up with default printer selected as normal but when click on printer dropdown list, the order that other printers are in makes no sense. They are not