PDF - container variables in a script
Hello.
Please tell me how I can refer to the variable container PDF if they are not on the screen.
For Example:
I imported from the interface in the container table IT_TAB with fields:
FIELD01
FIELD02
FIELD03
COLOR_LINE
In the form of PDF displays a table IT_TAB with fields:
FIELD01
FIELD02
FIELD03
That is a technical field COLOR_LINE.
For example I want to change the color of rows in the table, depending on the value of the field COLOR_LINE. I write the following script:
data.#subform[1].IT_TAB.DATA::ready:layout - (JavaScript, client)
DATA.fillColor = DATA.COLOR_LINE;
But the variable is not defined COLOR_LINE. How can I get the value from the field COLOR_LINE?
Hi, Andrey!
It's difficult to guess the reason of the error without seeing your form. If it's possible for you can you show it?
If not, I would suggest the following:
1) ensure that there are no errors in another scripts with "Check script syntax" option. I usually do a simple test by clicking "Preview PDF" tab. If there are script errors, you'll get a popup notification about it.
2) does the script actually executes? As a test you can change the value of some header field inside the script.
3) do a simple test to see whether you get the value of the technical column - like $.FIELD01 = $.COLOR_LINE.
4) check the format of the colour you use. In Adobe's examples it's like "102,179,255". Maybe something's wrong with the cell type and the value you pass in the program gets corrupted?
There is a number of ways you can shoot your leg with Adobe forms. Those points to check is just what came to my mind at once
Similar Messages
-
HOW TO CREATE A VARIABLE IN SAP SCRIPT
HI ALL,
CAN ANYONE TELL ME HOW TO CREATE A VARIABLE IN SAP SCRIPT.
THANK YOU,
BYE
TAKE CARE.Hi Ravi,
You can use like this
A text in the editor contains the following DEFINE commands:
/: DEFINE &mysymbol& = 'xxx xxx xxxxx xxxx'
&mysymbol&
/: DEFINE &mysymbol& = 'yyyyy yyy yyyy'
/ &mysymbol&
The printed text appears -
Displaying variable in sap-script
Hi folks,
I need to pass a variable to an existing sap-script. But that window is not calling form the print program. It just called dynamically, which contains current date and time. In that window i need to pass the variabe. But the value to the variabel is coming from the print program. How can i pass this variable to the script now...pls help me.
Thanks,
Shyam.Hi
Create the window and pass these system symbols
&date&
&time&.
Regards,
Sravanthi -
Error while assigning Payload to container variable, Activate SXI_Cache
Hi experts,
I have a BPM-Szenario. There is a ContainerOperation where I want to fill a Container Variable with a Payload variable. Unfourtunately I get an error in TA sxi_cache: "The value of expression "&.....&" cannot serve as the source of an Assignment.
My question is, is it really unpossible to do this?
By the way: After them my bpm in sxi_cache is blocked. Also if i delete the container operation it is a lot of luck to activate my bpm.
My actions to activate the BPM are:
IR - F7 = all is ok
ID - Delete IP and Create the IP new
SLD-Cache - Activate in IR and ID
SXI_Cache - Delta and Full Cache Refresh
TA SWWL - There are no error work items
All actions do have no influence to the sxi_cache.
Are there any ideas from the experts?
Best
MathiasHello Mathias,
How do you assign the container varaible? Are you sure, that your XPath-expression is correct? Is your target container a simple typed container?
Best regards
Joachim -
How to SIMPLY use the %DIMENSION_TO_SET% variables into logic scripts
hello,
I'm using a prompt of type "COPYMOVE" or "COPYMOVEINPUT". In this type of prompt, there are 2 columns of dimension members list, one for defining the "source zone" and one for defining the "target zone" of logics.
The left colum of the prompt (for source zone) feeds the variables %DIMENSION_SET% : %ACCOUNT_SET%, %ENTITY_SET%, %CATEGORY_SET%, etc...and these variables can be used in the logic scripts in *XDIM_MEMBERSET instructions for example.
The right colum of the prompt feeds the variables %DIMENSION_TO_SET% : %ACCOUNT_TO_SET%, %ENTITY_TO_SET%, %CATEGORY_TO_SET%, etc...and I don't know how to SIMPLY use these variables in the logic scripts.
I've found a tricky way to do that but I meet 2 problems :
- it is complicated
- the multi-info instruction (BEGININFO/ENDINFO) seems to be bugged as blank lines are added all the time in the code and sometimes I have to wait for minutes when I try to modifiy the package code through BPC for excel eData/modify package menu.
So the question is how to SIMPLY get the %DIMENSION_TO_SET% variables into logic scripts and use them ? Thanks, R.
Here is the tricky package code I use at this time (I build one function for each %DIMENSION_TO_SET% variable and I pass these functions to the logic) :
PROMPT(COPYMOVE,,,,"ACCDETAIL,ACCOUNT,CATEGORY,DATASRC,ENTITY,TIME,YEARS")
TASK(Execute formulas,USER,WS-WW\PlauchuR)
TASK(Execute formulas,APPSET,US)
TASK(Execute formulas,APP,SV)
TASK(Execute formulas,SELECTION,D:\BPC\Data\WebFolders\US\SV\PrivatePublications\PlauchuR\TempFiles\FROM_1561_.TMP)
TASK(Execute formulas,TOSELECTION,D:\BPC\Data\WebFolders\US\SV\PrivatePublications\PlauchuR\TempFiles\TO_1561_.TMP)
BEGININFO(%FSS%)
*FUNCTION TARGETACCDETAIL=%ACCDETAIL_TO_SET%
*FUNCTION TARGETACCOUNT=%ACCOUNT_TO_SET%
*FUNCTION TARGETCATEGORY=%CATEGORY_TO_SET%
*FUNCTION TARGETDATASRC=%DATASRC_TO_SET%
*FUNCTION TARGETENTITY=%ENTITY_TO_SET%
*FUNCTION TARGETTIME=%TIME_TO_SET%
*FUNCTION TARGETYEARS=%YEARS_TO_SET%
ENDINFO
TASK(Execute formulas,FORMULASCRIPT,%FSS%)
TASK(Execute formulas,LOGICFILE,D:\BPC\Data\WebFolders\US\SV
..\AdminApp\SV\_TEST.Lgf)
TASK(Execute formulas,RUNMODE,1)
TASK(Execute formulas,LOGICMODE,1)
Edited by: ALEXANDRE BEDIER on Jun 16, 2010 3:15 PMhello,
finally I've discovered that there is no need of BEGININFO instruction.
One can pass several functions to a logic with one FORMULASCRIPT task. The functions definitions have to be separated by instructions. See below :
PROMPT(COPYMOVEINPUT,%FTARGETS%,,"select source and target zone for category and datasource.","ACCDETAIL,ACCOUNT,CATEGORY,DATASRC,ENTITY,TIME,YEARS")
TASK(Execute formulas,FORMULASCRIPT,*FUNCTION TACCDETAIL=%ACCDETAIL_TO_SET% *FUNCTION TACCOUNT=%ACCOUNT_TO_SET% *FUNCTION TCATEGORY=%CATEGORY_TO_SET% *FUNCTION TDATASRC=%DATASRC_TO_SET% *FUNCTION TENTITY=%ENTITY_TO_SET% *FUNCTION TTIME=%TIME_TO_SET% *FUNCTION TYEARS=%YEARS_TO_SET%)
TASK(Execute formulas,USER,%USER%)
TASK(Execute formulas,APPSET,%APPSET%)
TASK(Execute formulas,APP,%APP%)
TASK(Execute formulas,SELECTION,%SELECTIONFILE%)
TASK(Execute formulas,LOGICFILE,%APPPATH%\..\AdminApp\%APP%\_TEST.LGF)
TASK(Execute formulas,RUNMODE,1)
TASK(Execute formulas,LOGICMODE,1)
Then one will be able to use the functions TACCDETAIL, TCATEGORY, TACCOUNT,... in the logic script.
Edited by: ALEXANDRE BEDIER on Jun 24, 2010 10:31 AM
Edited by: ALEXANDRE BEDIER on Jun 24, 2010 10:33 AM -
There is an issue we are currently experienceing with Adobe Acrobat 9 (updated to the latest version) where ALL BROWSERS (Internet Explorer, Firefox, Chrome and Safari) on each of two different systems (a MacBook Pro with Mac OSX Leopard and a Sony Vaio Laptop with Windows Vista) where the application will freeze up and crash the browser when we view a .pdf file from a url if the .pdf file iteself contains form fields.
At first I though it may have been specific to Mac OSX and this MacBook we were trying to view the document on, but the same issue is now occuring with a new Sony Vaio laptop (running Windows Vista) as well.
It seems like it is able to open .pdf documents containing form fields when they are stored locally, but when trying to access them via a url, the program will freeze up. Sometimes it will eventually work if you had previously opened a .pdf prior to opening it via the url link and sometimes it doesn't. And it seems to only be related to .pdfs containing fillable form fields (others open fine when accessing them by a url)
Obviously it's become quite irratating and I'm hopeing I can find some insight on this support forum as to what may be causing this issue.
Previous versions of Acrobat (installed on the MacBook) opened this very same .pdf file (url) fine before upgrading to version 9.
Any help is greatly appreciated. Thanks!From: Ankit_Jain [email protected]
Sent: Monday, February 27, 2012 8:58 AM
To: TAGold
Subject: Adobe Reader X internal error when opening PDF that worked with 9
Re: Adobe Reader X internal error when opening PDF that worked with 9
created by Ankit_Jain <http://forums.adobe.com/people/Ankit_Jain> in Adobe Reader - View the full discussion <http://forums.adobe.com/message/4232243#4232243 -
Please help me in following problem:
I can collect succesfully one JScrollPane into a Container variable allComponents and then show this Container in application window. However, I would like to collect several JScrollPanes into this same Container variable but it does not work. Should I use some kind of add command?
I tried something like
allComponents.add(jspane);
but I got error code "variable allComponents might not have been initialized" allthough I have tried my best to initialize it.
Thanks for your kind help!
Snippets from my program:
class SwingApplication implements ActionListener
public Container createComponents()
Container allComponents;
jspane = new JScrollPane(panel);
jspane2 = new JScrollPane(cards);
allComponents = jspane; // THIS WORKS BUT I WOULD LIKE TO COLLECT BOTH jspane AND jspane2 WITH ADD COMMAND
return allComponents;
class DragImage
{ public static void main(String[] args)
JFrame frame = new JFrame("SwingApplication");
SwingApplication app = new SwingApplication();
Container contents = app.createComponents();
frame.getContentPane().add(contents, BorderLayout.CENTER);
Message was edited by:
wonderful123THanks for your interest!!
Perhaps I give the whole source code
The problem lies in the following place:
allComponents = jspane;
return allComponents;
I would like to use some kind of command
allComponents.add(jspane);
but it does not seem to work. I get the error "variable allComponents might not be initialized".
The program should print images in two rows. With my current knowledge i can only print one row of images.
Thanks!
import java.awt.*;
import java.awt.event.*;
import java.awt.datatransfer.*;
import javax.swing.*;
class SwingApplication implements ActionListener
// extends JScrollPane
private JScrollPane jspane;
private JScrollPane jspane_n;
private JPanel panel;
private JLabel label;
private Icon icon;
private JPanel panel2;
private JLabel label2;
private Icon icon2;
private JPanel panel_n;
private JLabel label_n;
private Icon icon_n;
private JTextField testText;
private int k;
private static String labelPrefix = "Testing: ";
private int numClicks = 0;
final JLabel label_testing = new JLabel(labelPrefix + "nothing");
JPanel cards; //a panel that uses CardLayout
final String BUTTONPANEL = "JPanel with JButtons";
final String TEXTPANEL = "JPanel with JTextField";
public Container createComponents()
Container allComponents;
icon = new ImageIcon("kirjain_a.gif");
label = new JLabel();
label.setIcon(icon);
icon2 = new ImageIcon("kirjain_b.gif");
label2 = new JLabel();
label2.setIcon(icon2);
icon_n = new ImageIcon("numero_1.gif");
label_n = new JLabel();
label_n.setIcon(icon_n);
label.setTransferHandler(new ImageSelection());
label2.setTransferHandler(new ImageSelection());
label_n.setTransferHandler(new ImageSelection());
MouseListener mouseListener = new MouseAdapter() {
public void mousePressed(MouseEvent e) {
JComponent sourceEvent = (JComponent)e.getSource();
// Object sourceEvent = whatHappened.getSource();
if (sourceEvent == label)
{ numClicks++;
label_testing.setText(labelPrefix + numClicks);
if (sourceEvent == label2)
numClicks--;
label_testing.setText(labelPrefix + numClicks);
JComponent comp = (JComponent)e.getSource();
TransferHandler handler = comp.getTransferHandler();
handler.exportAsDrag(comp, e, TransferHandler.COPY);
label.addMouseListener(mouseListener);
label2.addMouseListener(mouseListener);
label_n.addMouseListener(mouseListener);
panel = new JPanel();
// panel.setLayout(new GridLayout(1,3));
panel.add(label);
panel.add(label2);
panel_n = new JPanel();
panel_n.add(label_n);
//Create the panel that contains the "cards".
cards = new JPanel(new CardLayout());
cards.add(panel_n, BUTTONPANEL);
cards.add(panel_n, TEXTPANEL);
panel.add(label_testing);
jspane = new JScrollPane(panel);
jspane_n = new JScrollPane(cards);
// jspane.setLayout(new GridLayout(3,2));
// jspane.getViewport().add(panel);
// jspane_n.getViewport().add(cards);
// allComponents.add(panel, BorderLayout.PAGE_START);
// allComponents.add(cards, BorderLayout.CENTER);
// allComponents.add(jspane);
// allComponents.add(jspane_n);
allComponents = jspane;
return allComponents;
// label.addActionListener(this);
// k=0;
public void actionPerformed(ActionEvent whatHappened)
{ Object sourceEvent = whatHappened.getSource();
if (sourceEvent == label)
{ numClicks++;
label_testing.setText(labelPrefix + numClicks);
// repaint();
} // end class OwnPanel
class CloserClass extends WindowAdapter
{ public void windowClosing(WindowEvent e)
{ System.exit(0);
class DragImage
{ public static void main(String[] args)
JFrame frame = new JFrame("SwingApplication");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
SwingApplication app = new SwingApplication();
Container contents = app.createComponents();
frame.getContentPane().add(contents, BorderLayout.CENTER);
//Display the window.
// addWindowListener(new CloserClass());
frame.pack();
frame.setVisible(true);
} // end class DragImage -
Unable to execute the substitution variable in calc scripts in essbase 11.1
Unable to execute the substitution variable in calc scripts in essbase 11.1.3
FIX(&CURRVERSION,COLA)
Unit=units*Listprice;
dataexport "file" "," "E:\NEW.TXT";
ENDFIX
Error: 1200471 Error parsing formula for FIX STATEMENT (line 1): expression expected before [)]
This is error it throws when executing the calculation script
I wonder whether its a problem with substitution variable i want to know wat went wrong inside the fix statement
I have created substitution variable use maxl
Installed the essbase in custom manner and standlone mode nt register with the shared services ,
Is this problem with the custom installation of essbase
Regards
shennaIf you remove the substitution variable and replace it with the actual value (whatever that is), does the code work? That will tell you if the issue is around the substitution variable or not.
John -- First you race Glenn, then you race me -- and you always win. :)
Regards,
Cameron Lackpour -
Intenal table as container variable in the alert category
Hi
Is it possible to create internal table as Container Variable in the alert category. If it is possible how can we pass the data to this internal table in the Run time to the funtion module SALRT_CREATE_API.I have tried this to pass the data to the container parameter
it_container ,but i was unable to achive it .If anyone has come across this please guide me .
Thanks and Regards,
VenkatYou can use the Forms "From Clause Query" as the datasource for the data block. Then you can change the QUERY_DATA_SOURCE_NAME using set_block_property, so you can use any SQL statement you like. Of course you must name/alias the columns in a consistent manner so that the number of database items on the block matches those being queried.
-
Using Standard Container Variables in Email Alerts from BPM
Dear All
While creating alert categories from ALRTCATDEF we have a Long Text Tab where we can use Container Variables like SXMS_MSG_GUID ,SXMS_RULE_NAME, SXMS_ERROR_CAT , SXMS_ERROR_CODE etc create the mail contents. We can also display the message passed by the BPM by using the variable
ALERTDYNAMIC_SHORTTEXT , ALERTDYNAMIC_LONGTEXT .
In my case when I call the alert category from the BPM , the message passed by the BPM is displayed through the ALERTDYNAMIC_LONGTEXT in the alert inbox , but I am not able to utilize the other container variables (like SXMS_MSG_GUID ,SXMS_RULE_NAME, SXMS_ERROR_CAT ) for displaying the messageid ,error category etc. Using these variables for alerts invoked from BPM results in Blank Values for all the container variables.
If the alert is not invoked from BPM these variables are getting populated.
My question is is there a way by which we can utilize these variables for Alerts thrown from BPM.
regards
Nilesh .hi check the below links for reference:
http://help.sap.com/saphelp_nw04/helpdata/en/d0/d4b54020c6792ae10000000a155106/content.htm
http://rant03.ranffm.de:50000/rwb_mdt/detailsservlet?objectName=name=is.00.rant03,type=XIIntegrationServer&rwb=true&XIDomain=domain.00.rant03&archive=false&selectMessage=%SXMS_MSG_GUID%
note:reward points if solution found helpfull.....
regards
chandrakanth.k -
XPATH Predicate for container variable of simple type in BPM
Hi Experts,
I have read various threads and blogs with this topic and as I couldn't get a clear view, hence I am raising it here. In my BPM, I am collecting idocs by means of a finite loop. I have used a receive step, container step(to append the idocs) and another container(to increment the counter_variable) in a loop. I want to run the loop for the condition: counter_variable<=3 whereas 'counter_variable' is a container variable of 'simple XSD type(XSD: integer)'.
All the blogs and threads have demonstrated like how to use the EX operator with container variable of type 'Abstract interface'. But how can i incorporate the above scenario for a container variable of simple xsd type ? Please share your ideas.
Regards,
Laawanyaso this is what you need to do,
1. in your loop have a container operation that will increment your simple integer variable each time a message come in.
2. for your loop the condition will be, left operand (simple integer variable) /= (not equal) 3 (Constant)
Ref: SAP BASIS (SWCV) -> http://sap.com/xi/XI/System/Patterns -> Integration Process -> BpmPatternCollectPayload
the only difference here will be the loop condition to be altered as i have mentioned above. -
Accessing container variable of BPM in Message Mapping function
Hi,
I have a scenario in BPM where i have a container variable that is used as a loop counter.I want to access that counter defined , every time when i go around the loop and perform certain actions based on that counter. so how can i access that variable in my message Mapping function.Hi Sudharshan,
check these links, hope they give you the required information (i think there is some problem with SDN site, check these links after a while)
Re: How to use Container Variable across Maps
Container object in Message Mapping
Copy value of container (abstract interface) to an other container
Regards
Vishnu -
Container variables in User decision Step in BPM
Hello,
I am using User decision Step in BPM.
When i use only text in "Title for Display" the BPM is activated successfully and Status in SXI_CACHE also shows 0.
If I use container variables in "Title for Display" the BPM is activated successfully but status in SXI_CACHE shows 99.
It shows the below error
"Problem updating an integration process with object ID 073AF2C620F43E839B2903344DEE29BB. Symbol 'CE/KO' expected at position 1 in expression ''
Please suggest.
Thanks,
ShabariHi Shabari, did you follow the steps for declaration of variables as in [SAP help for user decisions|http://help.sap.com/saphelp_nwpi71/helpdata/en/42/c2a19fb4511d65e10000000a1553f6/content.htm]? How did you define your variable?
Maybe discussion [in this thread|BPM activation Error in SXI_cache; can help, it is unanswered though.
Regards, Martin -
BPM and own container variables and their usage in transform
Hi folks,
I have a question about the usage of own container variables within the transform step of a BPM.
I want to know whether I can get the actual content of such a container variable within the mapping being done in the transform step.
I have been looking into this forum upon related topic(s) but somehow they all seemed to go about being able to get standard values like messageID etc within the transform step and NOT about getting your own variables ... It is clear that getting those standard variables will not work directly ( not without actually getting them into an XML payload before entering the BPM) ...
So basically I want to define global BPM variables, populate them with some content during BPM execution and then at some point reference those container variables in the mapping ( prob via java code ) in a transform step ... Is that supported ?
Regards,
StevenHi,
>>>So basically I want to define global BPM variables, populate them with some content during BPM execution and then at some point reference those container variables in the mapping ( prob via java code ) in a transform step ... Is that supported ?
no, this is not possible
you can only compare those varabiels with some of your message tags (in a loop step for example)
Regards,
michal -
Is it possible to create create user defined variables in report script?
You can't use an Essbase report script to set a substitution variable.
You can set it in EAS or use MaxL (or Esscmd) to do so.
See: http://download.oracle.com/docs/cd/E12825_01/epm.111/esb_techref/maxl_variable.htm
MaxL/Esscmd can be used to set a substitution variable and run a report script that references the variable.
Regards,
Cameron Lackpour
Maybe you are looking for
-
How to change the name of the Mac I connect to in the drop-down window.
Using my brand new MacBook, in the drop down menu when I connect to my iMac, it shows up as my name ( which is Derek Walton's Computer) ...... How can I change the name that shows up here? I have tried all areas that iI can think of and altered my na
-
Upon reboot iTunes will stop working. It will return with an error that "Quicktime was not found." I will uninstall and remove Quicktime and iTunes from my computer, clean out the registry, and then reinstall iTunes 9. It will work but the next time
-
Hi All, We have a BI 3.5 System.We use the Maestro Background Job utility to fire background jobs in the SAP system including the process chain. Of late, we have been experiencing problems wherein the process chain is not triggered automatically from
-
Hi all could anyone tell me what is error code 8058. Regards.
-
heyyall, am trying to use the spool command to save a file from an output but i get the message: SPOOL save.lis SP2-0606: Cannot create SPOOL file save.lis am using sql-plus 10.2.0.1.0 ?