Text Variable Not Refreshed
Hello,
I created a data text variable user exit.
everyting works fine, but,
1) Selection options:
Year: 2010
Month: 1 to 11
The query and text variable return right values
Year 2010
Month: Jan to Nov
but, if i want to make new selection
2) Year : 2011
month : 1 to 11
the query results are fine, but, the variable text return its old : return:
year: 2010
month: Jan to nov
3) when I do it again
year: 2011
month: 1 to 11
The query and text variable return right values
Year 2011
Month: Jan to Nov
Why this happen? why they string doesnt work it 1rst..?
Thx
Reg
I assume , variable 'ZP_CALY2' , which you are reading is created on calyear/ month which stores data as '2011.001' for e.g.
and you are extracting year from the same and writing the same in a variable for calyear .
In that case correct the code as
WHEN 'ZP_AN2'.
LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZP_CALY2'.
zt_dt1 = loc_var_range-low +0(4).
l_s_range-low = zt_dt1.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDLOOP.
Otherwise you can try this option ,
You are entering year in the selection screen , so create a text variable with replacement path and give the replacement characteristic as fiscalyear info-object used in the report .also restrict fiscal year variable in the keyfigure . use this variable along with the keyfigure .
It will give you the correct year .
Similar Messages
-
Text Variable not showing headers in Formula
I have text variable in my report when I use in Formula its not working.Its a replacement path and if I used in normal col its showing header correctly.
Any ideas guru's
Thanks in Advance!
AndyAs I mentioned when I use in Formula to add up these text variables header is not showing.
EG: &ZP_FPTA& &ZP_FPTB& &ZP_IPVERS& this is in one col and there is another Variable like this I am adding up in Formula ,Addition is working but header is not showing correct
It shows as Tech name of variable only not picking up description from Variables..
hope this is clear..
Andy -
Text Variable not working correctly
In CS3 I could create a TEMPLATE (.indt) with the "creation date" text variable in it and when I opened it it would have the CURRENT DATE (the date the new file was generated from the template) . In CS4 it opens with the date the TEMPLATE was MADE and not the current date (the day the new file was generated). I need the template to open with the current date (the day the template was opened). I tried using the "modification date" variable which works the FIRST time but if I open it the next day the date changes. I need the date to remain the same as the creation date. Does this make sense? Why did Adobe change the behavior of this? Please help.
-John StreeterHi Rakesh,
Just curious what is the purpose of creating a hidden column as suggested? Anyway, I have created it but nothing changes.
Allow me to clarify my situation again.
I have three columns:
1. Actual This Year
Type: Selection
2. Actual Last Year
Type: Selection
3. % of Actual This Year / Actual Last Year
Type: Formula
Definition: (Actual This Year) %A (Actual Last Year)
All columns use &0T_FYEAR& as text replacement variable. As such, all title would have year text.
The first two columns have been restricted with Fiscal Year variable, 0P_FYEAR.
1. Actual This Year
0P_FYEAR
2. Actual Last Year
0P_FYEAR - 1
Upon executing the query, I got the first two columns displaying their titles right, but the third column does not.
For example, let's assume I entered 2008 for 0P_FYEAR variable, the columns would display the following titles:
1. 2008
2. 2007
3. &0T_FYEAR&
I need the third column to display current fiscal year i.e. 2008 but it does not.
Appreciate your help! -
Text Variables Not Appearing Correctly in InCopy
In working on a project I have discovered that the text variables do not properly appear in some of my InCopy assignments. I have tried deleting the assignments and recreating them, synchronizing the variables in the whole book, and checking in and out the assignments in InDesign. None of the approaches I have tried have resolved the issue. Hoping someone in the community may have run across this issue before and knows what I'm missing.
Correct Dates in InDesign Incorrect Dates in InCopyYou can start by running a variable report in Robohelp. Tools > Reports > Variables.
Make sure all your variables are accounted for in the Robohelp project. If not, reimport the files and let Robohelp rebuild everything.
Assuming that your variables are recognized by Robohelp, then in FrameMaker you can try this. Select the heading in question, and then click Heading 1 in your paragraph catalog. Next, while the heading is still highlighted, click Default Font in your character catalog. This should remove any additional character formatting on the variable itself.
Make sure you've mapped styles for paragraphs and character formats in Robohelp. Right-click the referenced FrameMaker book in Robohelp. Click Properties, and then select the Style Settings tab. Click Edit in the Style Mappings area. Select Character Styles in the Style Mapping Type box. You'll want to make sure you've get every FrameMaker style mapped to an acceptable Robohelp style.
That's all I can think of off the top of my head. Hope it helps point you in the right direction.
Jason -
Problem with text variable on 0CALMONTH2
Hello,
When I try to use a text variable based on 0CALMONT2, only 3 first caracters are displayed instead on the full text.
Example : for september the system display SEP.
How can I diplay all the text of the month ?
Thanks in advance for your help.
Best regards
NicolasNicolas,
Would you check the value being returned by the text variable (not the characteristic), it may be set to Key rather than Text.
So select the Change Variable option and see what the display setting is for your text variable.
Regards
Gill -
Hello. I would like to maintain a text variable, but I cannot find where I can bring it up for edit. Are text variables not maintainable? Thank you.
ErnieHi Ernie (Sorry didn't realise it was you ,
It is possible that this relates to auth, and that could be auth to maintain the RKF, or CKF, or variables...this would reside with auth object S_RS_COMP.
You can see here for details on how it works:
http://help.sap.com/saphelp_nw04/helpdata/en/80/1a68a7e07211d2acb80000e829fbfe/content.htm
Hope this helps... -
Text element not gettin refreshed in smart form
Hi
Text element does not get refreshed in the smart form preview.
I have a selection screen on which i have a few selection parameters and three application
toolbar buttons. "Save" , "Preview" and "Print". At the end of selection screen I have a
button "text" which when clicked takes me to the text element editor(FM 'TEXT_EDIT' )
I have to enter a project number on the selection screen, enter all other details and
then click on the "Text" button. I would then change /edit some text etc and come back
to sel screen. Now i click on preview , the smart form shows up and the text gets dispalyed
with the modified text.
I am passing the text name by appending "sometext" + project number to the TEXT_EDIT
and while eiditing and as a parameter to the smart form. In the smart form i have given the variable in the "include text".
Now Herez the problem.
I am still in selection screen and clik on the "text" button and it takes me to the
text editor. Now i add more lines, save and come back. Now i clik on preview
button and it displays the old text data.
When i come out of the transaction and renter , clik on the preview it displays data
correctly. Now if i repeat the steps
1.edit text button , add a few lines
2.preview button, shows data as entered in step 1.
3.edit text button, add few more lines
4.preview button .. the text displays is from step 1 and not 3.
I am not sure if this is lot of info for anybody to write an answer straight away but
if u need more info i can provide. I can do a read_text in the smart form but its toooooo
much of a pain for the data i need to display. million adjustments to be taken care of.
What could be the problem ? I have given all the basic settings like save parameter
in edit_text fm , checked all the print preview options in sdn.
Here are my questions
1. Why is the text element not getting refreshed.
2. After a form is displayed for preview , will it store anywhere in the buffer ? if yes
is there any method to clear it ?Hi,
The problem is not with text elements, it might be your size of window which you are using to display the text elements. Check your window size and modify that accordingly.
Cheers,
Bujji -
Using a Variable in SSIS - Error - "Command text was not set for the command object.".
Hi All,
I am using a OLE DB Source in my dataflow component and want to select SQL Query from the master table I have created variables v_Archivequery
String packageLevel (to store the query).
<Variable Name="V_Archivequery" DataType="String">
SELECT a.*, b.BBxKey as Archive_BBxKey, b.RowChecksum as Archive_RowChecksum
FROM dbo.ImportBBxFbcci a LEFT OUTER JOIN Archive.dbo.ArchiveBBxFbcci b
ON (SUBSTRING(a.Col001,1,4) + SUBSTRING(a.Col002,1,10)) = b.BBxKey
Where (b.LatestVersion = 1 OR b.LatestVersion IS NULL)
</Variable>
I am assigning this query to the v_Archivequery variable, "SELECT a.*, b.BBxKey as Archive_BBxKey, b.RowChecksum as Archive_RowChecksum
FROM dbo.ImportBBxFbcci a LEFT OUTER JOIN Archive.dbo.ArchiveBBxFbcci b
ON (SUBSTRING(a.Col001,1,4) + SUBSTRING(a.Col002,1,10)) = b.BBxKey
Where (b.LatestVersion = 1 OR b.LatestVersion IS NULL)"
Now in the OLE Db source, I have selected as Sql Command from Variable, and I am getting the variable, v_Archivequery .
But when I am generating the package and when running I am getting bewlo errror
Error at Data Flow Task [OLE DB Source [1]]: An OLE DB error has occurred. Error code: 0x80040E0C.
An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80040E0C Description: "Command text was not set for the command object.".
Can Someone guide me whr am going wrong?
Please let me know where am going wrong?
Thanks in advance.
Thankx & regards, Vipin jha MCPWhat happens if you hit Preview button in OLE DB Source Editor? Also you can use the same query by selecting SQL Command option and test.
Could you try set the Delay Validation = True at Package and re-run ?
If set the query in variable expression (not in value), then Set Evaluate As Expression = True.
-Vaibhav Chaudhari -
Text Variables are not being Displayed in the Output of the Query
Hi All ,
We have some column headings , which are populated through the Text Vaiables , But in the Query Ouptput only the tech names of the Text variables are being displayed . can anyone tell me why its happening like this . I want to debug the Query , please guide me in this regard
Thanks in Advance.. Pls reply me as soon as possibleHi Nagarjuna reddy,
Click on the properties of the infoobject enter the name of the description and next to that you can see the X/? buttion click on the this button and select the field/if the proper field is not there then create a field descriton and select. i hope this is works and correct me if i am wrong. for debuggin the query use a transaction code- RSRT.
regs,
Vachan -
Text variable is not displaying in the query result
Hi All
I am having problem here i have cteated a text variable on 0company with replacement, its not showing the name or key on the output when i run the qury it showing &ztxtvatc& so what might be the problem........pls can anybody tell me the solution for this and iam working on BI7.0, New version.
Thanks in advance
SrinivasHello ,
You can try this code, sorry if i am wrong,
DATA: l_value(10) TYPE c,
l_s_comp LIKE /BI0/TCOMPANY,
l_t_comp LIKE /BI0/TCOMPANY OCCURS 0.
WHEN 'ZTXTCOMP'
IF i_step = 2.
LOOP AT i_t_var_range INTO loc_var_range
WHERE vnam = ZCOMPANY'.
SELECT * FROM /BI0/TCOMPANY
INTO l_t_comp
WHERE /BI0/OICOMPANY = i_vnam.
LOOP AT l_t_comp INTO l_s_comp
CLEAR l_s_range.
l_s_range-low = l_s_comp-RSTXTMD.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE
END LOOP.
EXIT.
END LOOP.
END IF.
hope it helps,
assign points if useful -
Hello to All WebI Gurus,
We are on BO 4.0
We are building WebI report on top of Bex query using the BICS connection from IDT.
Our BW query is having some Text Variable with processing type "Replacement Path".
Also its having fiscal year period in filter with user input variable.
the text variables references Fiscal year period and are used in Key figure description,
hence whatever value the input variable will capture the description of Key figure changes accordingly/dynamically.
But when I try to use it in BO it throws me an error msg saying :
Unknown error occured in SL Services
I am Aware that text variable in this fashion were not supported in BO XI3.1
Used of Sap text variable with replacement path in Bo designer
So are Text variable Supported in BO 4.0 in this fashion.
Any response will be highly appreciable.
Thanks & Regards
NeerajHi,
Here's a great SDN article, which includes several slides covering u201CWhich BEx features are supported using BICS connectivityu201D : http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d056e1bc-2794-2e10-959e-8779c5623cc5
Pages 8 -> 12 cover these topics.
If your design choices are compliant (supported) then i'd avise opening a support case if this issue persist after checking again on Patch2.11 (release recently)
Regards,
H -
In the filter the value of text variable is not shown, only technical name.
Hi All,
We have some odd behavior of text variables in the filter screen of key-figures.
After entering values in the variable screen, the report is executed.
Within the report all text variables are filled, with the values entered in the variable screen.
I say all, because we use both sap standard variables &0T_FPER& as customer specific &ZFSCYR&.
When i want to change the key figures showned, i press the filter icon for key-figures (BW 3.5)
In the list shown: existing filtervalues, the textvariables of SAP standard are filled with the value entered in the variable screen. However the customer specific is shown with the technical name (&ZFSCYR&) and not the value.
Has anyone experience with this behavior or even better a solution to prevent this?
As allways, each usefull answer points assigned!
Regards,
RenéHi Rene,
If ur custom text variable is not getting populated then you need to check out the code that u have written in there in CMOD for this and ofcourse if ur using this text variable after report execution then it will definately be in i_step 2.
So best way is to debug your code and check that using code RSRT.
Thanks
Dipika -
Workbook is not filtering based on Exit Variable during refresh
Hi,
I have a workbook with a query embedded in it. While opening the workbook it is not refreshing the variable using the value from the user exit. While I am executing the query it is working properly.
In workbook "Refresh Workbook on Open" is selected.
Query is working with following exit code (both step 1 & 2)
WHEN 'ZEXTICK_DT_YD'. "Yesterday based on system date
IF i_step = 1.
l_date = sy-datum - 1.
l_s_range-low = l_date.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDIF.
We are in BI 7 and Support pack 15.
Thanks in advance
nishaHello,
I having a similar kind of issue with the exit, that doesnt work with a refresh but works perfectly as such. Did you figure out a way to make it work with refresh? If so, would appreciate if you share with us the solution. -
SSM 7.0 - Text variable error - Could not acces to Reports
Hi SSM experts,
We are implementing SSM 7.0 SP6 HF1.
After the implementation of a text variable in PAS in order to include it in a report we have lost the access to the reports and the entry and approval settings.
These are the main steps we followed:
1.- Data model created via Cube Builder
2.- Data loaded via Entry and Approval.
3.- With that model the Scorecard and a set of reports were working as expected.
4.- After that we created a text measure directly in PAS via the following command: CREATE yearly TEXT NONKPI50_ACT 'KPI text'.
4.- Due to this creation we have lost the access to the reports in SSM UI and to the Entry and Approval settings in SSM Admin.
Could anyone please advice us in order to solve the problem?
We have realized that if we delete in PAS the text variable created everything returns to the original situation and everything works ok.
Did we create the text variable ok? Is it possible to create text variables in a model created via Cube
Builder and loaded via Entry and Approval?
Thank you very much in advance.
Kind regards,
SantiagoRobert, Ricardo,
this text variable is just a variable to be used in a navigator report, not to be used in SC. Sorry if I was not clear.
Robert, I will deal this probelm with the customer message team but if anybody has came up with this problem in any project please let me know how to solve it.
Anyway I will check how CONSTANT TEXT works. I will appreciate if you would let me know the result of your checkings.
Thank you very much for your help.
Regards,
Santiago -
Text variables in query not taken over into univers
Dear all,
We are working with text variables in our SAP BI queries ( &ZVAR001& ) for example, which are translated to 01.2008 02.2008 etc at query execution time.
When we build the BO Univers on top of such query, the text variables are not dynamically filled, but BO takes the variable name as value...
We are using BI 7 & XI 3.1
Did anyone had similar experience and/or solutions ? This is quite an annoying lack.
Thanks in advance,
Stefaan.Hello Ingo
The most commonly used structure I have come across, is a structure where you have YTD, MTD last year etc. values.
As far as I can judge such structures or calculations are not very easily done in Webi (But I may be wrong here), hence the customer will want to use the structure. But it is quite tiresome to have to redo all headers of the structure.
But assuming I do the headers in Webi, I will need to obtain the value of the prompt answers. But so far I have not been able to get the value of a prompt answer using UserResponse() (when the prompt is auto-generated based on a BW variable). See also this thread:
Using UserResponse on BW originating prompts
Can you help out here?
/Thomas
Maybe you are looking for
-
Iam using a BDC for F-32 transaction and when I run in foregreound it runs good but when I run in back ground it gives out an error meesage ..The message number is NA-00344 saying that No batch input for screen SAPDF05X 3100.. ..Can anyone please tel
-
Problem in creating a Persistent Class
Hi All, I am working on Persistent Classes for the first time. I have tried to gain some info by going through some related threads and of course Thomas' Blog on Persistent Classes. My Problem: I have been trying to create a Persistent Class that tak
-
How can I unlock an A&T iPad cellular? Thank you for your assistance.
-
WM Stock Removal Strategy User Exit
Hi Experts, Requirement is to create TO from TR in multiples of MOQ We need to pick the quantity from the Source Bin only in mulitples of MOQ and leave the quanity which doesnt conform the MOQ in the bin itself. This process should continue for the n
-
Hello everyone, I'm developing an application (with Weblogic 11gR1PS1) which needs a single point of access to get tickets for making requests. The numbers are sequential and cannot be 2 tickets with the same number, so Concurrency is an issue. Based