Dynamic name for a tab in a tabstrip
Hello,
I have a tab strip with 10 tabs and all of them have the text Target 1 to 10. Depending on the information one of the tabs must display another text at runtime and I don´t know how.
I found here some posting where it is stated that I have to declare a variable in my programme with the same name as the tab and in PBO I can assign the new text. This unfortunately does not work. I declared the text as string when we´re talking about a pushbutton.
Can someone help ??
1) Tick the "output only" of all your tabstrip buttons
2) Declare the tabstrip button names as variables in your abap program (string or C, as you want) and fill them with the text you want
Similar Messages
-
Dynamic Name for Yellow Interface Table
Hi All,
Can anybody guide me how to use dynamic name for Yellow Interface Target Table.
Eg: T_SESSIONID.
I tried
1)Refreshing the SESSIONID in a Variable V1 and using T_#V1 directly
2) Refreshing the T_#V1 in a Variable V2 and using #V2
But its not creating properly.
Please guide.You want to create dynamic target table name right?
You can refresh a variable like #GET_SESSION
#GET_SESSION= SELECT <%=odiRef.getSession("SESS_NAME")%> FROM DUAL
My tmp table name like TMP_#GET_SESSION
then in your package refresh #GET_SESSION variable and you can use it.
I hope this can be helpful
Thanks -
Dynamic name for the physical table
Hi Guys,
How to setup dynamic names for the physical table? Where it is useful?*
Pls help me out on this.
thanksCheck this similar post which might be of help dynamic physical table source schema
Cheers,
KK -
How to change the text for the tabs of a tabstrip control dynamically
Hi Guys,
I am having two screens in a transaction.
1. 1st screen has material number as an input and submit push button
2. 2nd screen has two tabs in a tabstrip control.
I want to display material description and plant number as heading for the two tabs based on the material number entered by the user in the 1st screen. Means i want to change the text dynamically. Is there any possible way? If it is there please help me. Very urgent...
Thanks in advance
James.Hi,
If you set the "Output field" attribute for a pushbutton/tab, you can also set its text dynamically in the ABAP program. To do this, you must create a field in the ABAP program with the same name as the pushbutton/tab. You must then assign the required text to the field before the screen is displayed.
For example define a global field in your program called MATNUM(20) and use this as the name for the material number tab on the tabstrip. Then you can assign a text MATNUM = 'Material Number' and this will appear as the tab title. Don;t forget to set the "Output field" attribute on the tab.
Hope it helps -
How to give dynamic name for csv export files?
Hi,
how we can give dynamic file name for each csv export file? ex(&item_name.csv)
I am using apex 4.1 and IE 6,
thanks in advance
regards
ChandranPlease help me on this
I am using report template as a csv export..
when user click on download link on other page he will redirect to csv export temlate page and he is is directly get the open or save window
but dynamic title name is not working for only for this.
regards
Chandran -
File to mail scanario Dynamic name for e-mail attachments
Hi ,
I am using standard mail package for Dynamic name in the mail attachment.
Content_Disposition : = attachment
Content_Type = file name I am taking from DynamicConfiguration
Now I received mail , but file name have (abc.txt.dat) extension .dat but i want it same as send by sender file adapter(abc.txt)
Please suggest how to handle this.
Thanks
MohitHi,
my pretty solution
http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3202
Regards,
Michal Krawczyk -
Dynamic names for I$ ,C$ and E$ tables in ODI
Dear ODI Team,
We have a requirement where we are loading header data and then line data in our Package.ODI internally creates work tables to load data into target tables.If multiple sessions of the same interface is executed at the same time the I$table of the previous session affects the I$ table of the next session.Hence if session1 has completed loading then it is at the stage of dropping the I$ table.Hence the second session is erroring out.Kindly let me know if there is an option to create these work table names dynamically for each session
Thanks ,
AnandEven I an getting similar error trying to use Global variable for dynamic names of the work tables
Scripts Generated by the IKM :
create table XDO.#global."gv_test_dynameSSTST_AN"
ANY_NEW_ID NUMBER(22) NULL,
ANY_NEW_ATTRIB1 VARCHAR2(50) NULL,
ANY_CONC_ATTRIB2 VARCHAR2(150) NULL,
DECODE_CODE1 CHAR(5) NULL,
ANY_REF_CODE2 VARCHAR2(60) NULL,
ANY_DATE1 DATE NULL,
ANY_DATE2 DATE NULL,
IND_UPDATE char(1)
NOLOGGING
Getting the following error on execution :
911 : 42000 : java.sql.SQLException: ORA-00911: invalid character
java.sql.SQLException: ORA-00911: invalid character
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:633)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1086)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2984)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3057)
at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.i(e.java)
at com.sunopsis.dwg.cmd.g.y(g.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Thread.java:595) -
Custom dynamic names for outbound payment files in R12
I have asked this on a couple of forums, but somehow missed this one.
We are upgrading from 11i to R12 and require custom dynamic file names for the Payments output files (cheques, advices, efts). I see that you can create a custom prefix and extension through payment profiles, but the functionality is very limited (i.e. no date stamp). I am thinking that others must have come across this before, and am wondering how you have handled such a requirement. Is it possible to add custom steps to the seeded payment process? Can the payment process be run as part of a request set and then a custom step added which grabs the output file and renames it based on information obtained from the batch and the process profile. Our goal is a fully automated payment process where batches are scheduled, processed and files renamed and sent out to banks and a 3rd party printer with no user interventation.
Any advice/tips would be appreciated.
Thanks.
Tam.Hi Tam,
Could you please let me know if you got the solution as we have a similar requirement of renaming the output file as perthe business needs fro which we need custom program.
Thanks,
Manas -
Table name & field name for the tab Document in Marketing Planner
Anybody knows what is the table name and field name for the "Document" in Marketing Planner and Account Planner. In this tab we attach relevant Campaign or Coupon or reference advertisement document. I am not able to find out in which table and field it is storing.
like yogesh has suggested
you have to use the table RESB only to get the total qty by using the field BDMNG
or create the query using the same table and get total qty report.
use logical database RMM -
Dynamic names for class and variable
Hi Folks,
How do you make a new instance of a class with a dynamic name.
var dynamicname = new dynamicname()
i try something
var this["test"]:Class = new ["Test"]()
but offcourse its not this...
I need this couse i have a librairy with SWC fonts they are only reference.. I get the font name from a CSS file and after i need to make a instance of the SWC file so the font is embedded.
Thanks anyone who can help me!
Cheer, MichierlBtw Murphy its not working......
var fontRef = Class(getDefinitionByName("Arial"));
var font = new fontRef();
trace(font);
The varibable definition not defined.
I have 5 fonts as SWC Files set as reference lib in flex.
But i dont wann to load all fonts yet cosue that will make my movie 200kb ... so i copy the fontname of the stylesheet and then make a instance of that font class.
But how? With yours it need already a refrences to that class. -
Dynamic name for attachment in the Receiver Mail Communication Channel
Hi All,
I want to dynamically set the name of attachment in receiver mail Communication Channel.
Example: IN__9907211000004_4048454000005_20081211_01000000002643
The first two numbers 9907211000004 & 4048454000005 I want to read it from the message
20081211 this is the date and
And againg this number 01000000002643 is read from message.
What is the procedure to create Adapter Module? I am new to Adapter Module.
Any Ideas ideas?
Thank You,
MukhtarHi Michal,
I had a look to your blog and tried to modify according to my requirement.
Here is the code
import javax.ejb.CreateException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
import com.sap.aii.af.mp.module.*;
import com.sap.aii.af.ra.ms.api.*;
@ejbHome <{com.sap.aii.af.mp.module.ModuleHome}>
@ejbLocal <{com.sap.aii.af.mp.module.ModuleLocal}>
@ejbLocalHome <{com.sap.aii.af.mp.module.ModuleLocalHome}>
@ejbRemote <{com.sap.aii.af.mp.module.ModuleRemote}>
@stateless
public class SetAttachmentName implements SessionBean, Module{
private SessionContext myContext;
public void ejbRemove() {
public void ejbActivate() {
public void ejbPassivate() {
public void setSessionContext(SessionContext context) {
myContext = context;
public void ejbCreate() throws CreateException {
public ModuleData process(ModuleContext moduleContext, ModuleData inputModuleData)
throws ModuleException{
try {
Message msg = (Message) moduleData.getPrincipalData();
//creating parsable XML document
InputStream XIStreamData = null;
XMLPayload xmlpayload = msg.getDocument();
XIStreamData = xmlpayload.getInputStream();
DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
Document doc = docBuilder.parse(XIStreamData);
//finding the tag's name from the Modules tab in the Directory that will hold the attachment's name
String SenderIDTag = null;
SenderIDTag = moduleContext.getContextData("SenderIDTag");
//finding the content of the tag that will be used as the attachment's name (assuming it's the only tag with this name)
Element element = doc.getDocumentElement();
NodeList list = doc.getElementsByTagName(SenderIDTag);
mailFileName += "_" + list.item(0).getFirstChild().toString();
String anIDTag = null;
ReceiverIDTag = moduleContext.getContextData("ReceiverIDTag");
element = doc.getDocumentElement();
list = doc.getElementsByTagName(ReceiverIDTag);
mailFileName += "_" + list.item(0).getFirstChild().toString();
Date date= new Date(System.currentTimeMillis());
//Add date to the Message
SimpleDateFormat dateFormat= new SimpleDateFormat("yyyyMMdd");
mailFileName += "_" + dateFormat.format(date);
String BillNrTag = null;
BillNrTag = moduleContext.getContextData("BillNrTag");
element = doc.getDocumentElement();
list = doc.getElementsByTagName(BillNrTag);
mailFileName += "_" + list.item(0).getFirstChild().toString();
//creating the attachment
byte by[] = xmlpayload.getText().getBytes();
XMLPayload attachmentXML = msg.createXMLPayload();
attachmentXML.setName(mailFileName);
attachmentXML.setContentType("text/pdf");
attachmentXML.setContent(by);
//adding the message to the attachment
msg.addAttachment(attachmentXML);
inputModuleData.setPrincipalData(msg);
} catch (Exception e) {
throw new ModuleException(e);
return inputModuleData;
I hope this is right Adapter Module coe for my requirement.
Thank you in Advance,
Mukhtar -
Need help in Creating a dynamic name for a file.
I am working on FTP Put and I have a requirement where in I have to generate the file with dynamic content in its name.I dont need any time stamp.I need to create a variable for this?
Help in this regard would be highly appreciated.Take a look at File tmp = File.createTempFile("aaa", ".txt");
String name = tmp.getpath();This will create a File with a name like aaannn.txt where nnn is a system generated number guaranteed to exists only once. -
Hi,
I have a report query that print the emplyee report
I use BI publisher.
The report query name attribute is : employee.
This name is static, in other word for each employee i get the same name (employee.pdf).
But i want that the name of the report will be dynamic.
for example if i have to print the jhon report i get jhon.pdf
for david i get david.pdf
My question is: is it possible?
If yes how can I do that
Thanks,
AbdoHi,
Assuming that your link is just part of the page somewhere, then you could create a hidden page item that has the desired name in it (typically populated by a computation or process that runs Before Header). You should then be able to use:
f?p=&APP_ID.:0:&SESSION.:PRINT_REPORT=&P1_EMPLOYEENAME.Where P1_EMPLOYEENAME is the hidden page item name.
Andy -
Dynamic name for File through FTP Adapter
I am working on FTP Put and I have a requirement where in I have to generate the file with dynamic content in its name.I should actually embed a Purchase Order number in that file name follwed by a sequence number.I dont need any time stamp.Should I create a variable for this?
Help in this regard would be highly appreciated.Hi,
you have to enable the adapter specific parameter --> file name in both the sender and the receiver CC to get the input file name as output file name.
Refer this blog:
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
Also you need to use this udf
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String ourSourceFileName = conf.get(key);
return ourSourceFileName;
Also refer this blog:
/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
Regards,
Nithiyanandam -
I would like to be able to set a target CSV file who's name changes dynamically. Specifically, it would be something like "today's date" + loan_Transactions (02-01-2008loan_Transactions for instance). Any thoughts would be appreciated!! Not having much luck.
Thanks.
Brian BlackGreetings Post Originator,
This post is older than 60 days and there are no entries in the past 30 days. Based on the content discussed, it appears that you question has been answered. This message is being marked as answered and points are being assigned if available where possible.
Thank you for being an active participant in the SAP Forums,
Rob Siegele
Forum Moderator
SAP Americas
Maybe you are looking for
-
Tripple monitor hook up? WACOM!
So i have dual Dell displays and a Wacom graphics tablet. My goal was to be able to mirror one of the displays *or idealy be able to switch between the two* on my Cintiq. I have three ports and when all connected, the set up works fine. I can either
-
My program is turning against me! please help
Background: Last year, I was in Comp. Sci. 1 at my high school. I tried to make a humongous game that I only partially got finished for my final project. Now, a year later, after I forgot most of java, and all of what I had written, I am trying to im
-
Hi Experts, Can any one post few scenarios regarding Implementation of snow flake schema which can not be converted to star schema in BMM layer for better under standing about schemas. I searched my blogs but i did not found exact answer. Regards, Ra
-
Anyone tell me what are handling events in SDK?with Example
-
Wie kann ich RAW Dateien meiner Olympus OM-D mit Photoshop CS 3 öffnen?
wie kann ich RAW Dateien meiner Olympus OM-D mit Photoshop CS 3 öffnen?