Dynamic Perform naming......
Hi I have a small doubt,
my requirement is to call a form by using perform.
performs names are like doit1,doit2,doit3.....
we dont know which to call initally and we have to cal them dynamically based on selection criteria.
is it posiible to cal them like
perform doit(number to put dynamically: like concatenating to doit) .
pls help it out, i wil be thankful...........
Sure.
PERFORM (l_s_rule-z-zrulecrit)
IN PROGRAM
(sy-repid)
USING....
Similar Messages
-
Dynamic Performance View question
So, Oracle maintains dynamic performance tables. Views are created off of them, and then public synonyms are created off of those views and they begin with V$. Very good. But something doesn't make sense to me.
V$DATAFILE is a synonym that references a view named V_$DATAFILE:
SQL> select dbms_metadata.get_ddl('SYNONYM', 'V$DATAFILE', 'PUBLIC') from dual;
DBMS_METADATA.GET_DDL('SYNONYM','V$DATAFILE','PUBLIC')
CREATE OR REPLACE PUBLIC SYNONYM "V$DATAFILE" FOR "SYS"."V_$DATAFILE"
SQL> select object_type from dba_objects where object_name='V_$DATAFILE';
OBJECT_TYPE
VIEW
But the definition of the view references the.... synonym itself?
SQL> select dbms_metadata.get_ddl('VIEW', 'V_$DATAFILE', 'SYS') from dual;
DBMS_METADATA.GET_DDL('VIEW','V_$DATAFILE','SYS')
CREATE OR REPLACE FORCE VIEW "SYS"."V_$DATAFILE" ("FILE#", "CREATION_CHANGE#",
"CREATION_TIME", "TS#", "RFILE#", "STATUS", "ENABLED", "CHECKPOINT_CHANGE#", "C
HECKPOINT_TIME", "UNRECOVERABLE_CHANGE#", "UNRECOVERABLE_TIME", "LAST_CHANGE#",
"LAST_TIME", "OFFLINE_CHANGE#", "ONLINE_CHANGE#", "ONLINE_TIME", "BYTES", "BLOCK
S", "CREATE_BYTES", "BLOCK_SIZE", "NAME", "PLUGGED_IN", "BLOCK1_OFFSET", "AUX_NA
ME", "FIRST_NONLOGGED_SCN", "FIRST_NONLOGGED_TIME", "FOREIGN_DBID", "FOREIGN_CRE
ATION_CHANGE#", "FOREIGN_CREATION_TIME", "PLUGGED_READONLY", "PLUGIN_CHANGE#", "
PLUGIN_RESETLOGS_CHANGE#", "PLUGIN_RESETLOGS_TIME") AS
select "FILE#","CREATION_CHANGE#","CREATION_TIME","TS#","RFILE#","STATUS","ENA
BLED","CHECKPOINT_CHANGE#","CHECKPOINT_TIME","UNRECOVERABLE_CHANGE#","UNRECOVERA
BLE_TIME","LAST_CHANGE#","LAST_TIME","OFFLINE_CHANGE#","ONLINE_CHANGE#","ONLINE_
TIME","BYTES","BLOCKS","CREATE_BYTES","BLOCK_SIZE","NAME","PLUGGED_IN","BLOCK1_O
FFSET","AUX_NAME","FIRST_NONLOGGED_SCN","FIRST_NONLOGGED_TIME","FOREIGN_DBID","F
OREIGN_CREATION_CHANGE#","FOREIGN_CREATION_TIME","PLUGGED_READONLY","PLUGIN_CHAN
GE#","PLUGIN_RESETLOGS_CHANGE#","PLUGIN_RESETLOGS_TIME" from v$datafile
So the view definition references a synonym, and the synonym references the same view... seems circular. Is this Oracle Corp's way of telling me to bugger off? I just wanted to look up the name of the dynamic performance table out of curiosity.DBjanitor_old wrote:
So, Oracle maintains dynamic performance tables. Views are created off of them, and then public synonyms are created off of those views and they begin with V$. Very good. But something doesn't make sense to me.
The synonyms is owned by PUBLIC, not by SYS - so when SYS references v$XXX they access the underlying object, when anyone else references v$XXX they access the synomym, which points to the view owned by SYS, and the view accesses the underlying object owned by SYS.
The point of this is that SYS is the only schema allowed to use the code that interprets the dynamic performance views properly, so any end user that wants to access them has to go through an object owned by sys, which then accesses them with the privileges of sys (i.e. the equivalent of authid owner). The apparent loop in the chain simply means that SYS, SYSTEM, DBSNMP etc. can all use the same queries to access the dynamic performance views, but only one of them is accessing the special code directly.
See what happens if you try to grant access to the raw objects to non-SYS schemas (logged on as SYS)
SQL> grant select on v$session to test_user;
grant select on v$session to test_user
ERROR at line 1:
ORA-02030: can only select from fixed tables/viewsReagrds
Jonathan Lewis -
Dynamic file naming with File/FTP adapter
Hi all,
I have a requirement for writing files with names of the files based on a customer ID.... a dynamic name based on a value retrieved from the customer DB.
I have already tried using the dynamic file naming suggestion in the bpel dev guide, it does not work. I followed the instructions, the process fails to compile and throws "part" and "undefined variables" errors etc.
Has anyone succesfully used file/ftp adapter to write files with dynamic file names (using a varibale), not %SEQ% or %datetime% formats?
Thanks,
HasanYou can create a header variable that will allow you to set the outbound file name inside the process. This variable is a message type. From the type chooser select:
Message Types
Partner Links
Outbound Partner Link
Outbound wsdl
Message Types
Imported WSDL
fileAdapterOutboundHeader.wsdl
OutboundHeader_msg
This variable will have a part filename.
Set this part to whatever you wish your file to be named.
Select the invoke to your outbound file/ftp partnerlink. Move to the adapters tab and select the header variable you created as the Input Header Variable. -
Dynamic file naming at Receiver
Hello Friends,
How to handle the dynamic file naming in XI at receiver side as file naming convention sequence to be incremented for every 1 hour...
my Client expecting to handle at mapping...How to do this...
Could any one give me the program if we need to do it in java...
and pls also give another approach if any
Setup dynamically ,>>naming convention sequence to be incremented for every 1 hour
You can set the file construction mode as "Add counter" in the receiver file adapter
Thanx
Aamir
Edited by: Aamir Suhail on Aug 15, 2008 7:57 AM -
Dynamic file naming for two or more files in same mappin
Hello,
I am working with Dynamic file naming on receiver files...
Here two files are coming as output files...
I am using JAva UDF to handle the two file name....
But one one file is formed and another is missing as its 505 file aleady existing error is coming in Receivr Communication channel monitoring...
How to name different dynamic names for the two differenet filesHi Sunil,
Go thru this blog:
The specified item was not found.
Use this Variable Substitution method as an alternative option:
http://help.sap.com/saphelp_nw2004s/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
SAP NetWeaver XI: Variable Substitution with Adapter-Specific Message Attributes via DynamicConfigurationBean
OR
The specified item was not found.
Regards,
Vinod. -
Dear all,
I wanted to create a dynamic perform. Here I will show u an example
PERFORM get_correct_umlaut TABLES lt_bkpf.
PERFORM get_correct_umlaut TABLES lt_bseg.
PERFORM get_correct_umlaut TABLES lt_vbak.
form get_correct_umlaut TABLES pt_any_table TYPE ANY TABLE.
endform. " get_correct_umlaut
I have a syntax error. What is the right way to define a dynamic PERFORM like this???Hi,
According to what you wrote, I suppose you want to achieve only quasi-dynamic procedure, since you are differentiating the type with case in your Form..
Thus, I think that following approach will satisfy your requirements:
DATA: it_mseg TYPE TABLE OF mseg,
it_mkpf TYPE TABLE OF mkpf.
SELECT *
FROM mseg
INTO TABLE it_mseg
UP TO 100 ROWS.
SELECT *
FROM mkpf
INTO TABLE it_mkpf
UP TO 90 ROWS.
PERFORM do_sth TABLES it_mseg.
PERFORM do_sth TABLES it_mkpf.
*& Form DO_STH
FORM do_sth TABLES local_itab TYPE table.
DATA: r_type TYPE REF TO cl_abap_structdescr,
type_name TYPE string.
FIELD-SYMBOLS: <mseg> TYPE mseg,
<mkpf> TYPE mkpf.
r_type ?= cl_abap_typedescr=>describe_by_data( local_itab ).
CALL METHOD r_type->get_relative_name
RECEIVING p_relative_name = type_name.
CASE type_name.
WHEN 'MKPF'.
LOOP AT local_itab ASSIGNING <mkpf>.
IF <mkpf>-budat EQ '20090101'. "just an example
* some calculations...
ENDIF.
ENDLOOP.
WHEN 'MSEG'.
LOOP AT local_itab ASSIGNING <mseg>.
IF <mseg>-menge GT '1000'. "just an example
* some calculations...
ENDIF.
ENDLOOP.
WHEN OTHERS.
* skip
ENDCASE.
ENDFORM. " DO_STH
Regards,
MC
Edited by: Marcin Cudo on Apr 21, 2010 12:43 PM -
Dynamic variables' naming from SendAndLoad
Hello,
Been chasing my tail for almost 2days now, I'm having
problems on how to load dynamically named variables and place it on
dynamically named movieclips. I'm loading variables from php/mysql
query thru sendAndLoad (no problem with that). The loaded variables
are names of swf files that i'm trying to load on dynamically
numbered movieclips. The problem is it just wont load. I've
searched the net for similar codes, but with no luck. I'm guessing
that my error is in getting the exact variable name to load.
Heylp...No problems, you're welcome.
I think the eval should do the same thing as what I had. I
can't remember, I don't tend to use eval in flash - don't really
know why. I think loadMovie also accepts a string argument (which I
assume it 'evals') for a target in which case it may also work
without the eval and just with ,"_root.my_movieclip" + i; (didn't
try it so don't know for sure).
Good luck with it. -
"Dynamic" performance instances in a monitor
'm trying to create a monitor in SCOM on the performance counter "BizTalk Msgbox Host Queue Length".
I use the BizTalk Server 2013 management pack. As i don't want to make a monitor for each "Host" instance (A lot of work with 30+ BizTalk producation servers), i target the monitor to the "BizTalk Host" class which comes with the MP.
When I select the performance counter and select a host instance manually it selects: "HostInstance:BizTalkDB:BizTalkServer" Example:
"process:biztalkmsgboxdb:BiztalkServer01" as the instance.
Will it work to use a dynamic target class type as the instance something like this? "$Target/Property[Type="BizTalk!Microsoft.BizTalk.Server.2013.BizTalkHost"]/Name$:BizTalkMsgBoxDb:$$Target/Host/Host/Property[Type="MicrosoftWindowsLibrary6172210!Microsoft.Windows.Computer"]/NetbiosComputerName$"
I've tried alot of combinations with the class type, but does't seem to work. Thanks in advance!Hi,
It seems like that you have posted a similar thread here:
https://social.technet.microsoft.com/Forums/en-US/9d56c423-723c-4fa9-b440-2c93d369744a/monitor-biztalk-host-queue-length-and-suspended-msgs-wscom?foru
Hope Sophia's reply can be helpful.
Regards,
Yan Li
Regards, Yan Li -
Error in User defined function for dynamic file naming
Hi,
While creating User Defined function with this following code for dynamic fieldname
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;
which options should i select for cache Value, Context, Queue
for Augument , what name shd i mention.
Regards,
VarunHi Varun,
I guess I have answered a similar question just a few minutes before on very similar post from you. Just pasting the same here .................
Are you trying to access the ASMA values from the SOAP header of the XI message for the source file name?
First of all you need to Set the Sender File Adapter for Set ASMA and then file name. So it will work fine when you actually run the scenario end to end.
But in the mapping tool when you test the mapping - there is not message header updated with the actual source filename - and whenever you try to read the FileName attribute in the message header from the UDF - it cannot find the object and returns a NullPointerException.
I would suuggest for your mapping tool testing to be successful, have a check in the java code for null values,
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);
If (ourSourceFileName != null)
Return ourSourceFileName;
Return "NoFileName.txt";
Let us know if this works.
Regards,
Suddha -
Dynamic file naming when downlaoding the file to target directory
Dear friend,
My requirement is in the Adapter type File, File Name has to be dynamically generated. (i.e., each time the file name will be different according to the input name from the IDoc field). Can someone help me in this regard ???
Thanks in advance,
Jose AugastineHi,
The dynamic filename generation concept is as follows.
In your filename field. just give a variable with % symbols. (eg: %file% ).
Now, under the option Variable Name Substitution, you can give how the value has to be created.
It can be your interface name, sender service name, etc or it can be some value dynamically from your payload.
For the former, your give
message:interface_name ,etc
and for the payload part you give,
Payload: "your element root which u wanna acecss"
Just check this link out,
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
And read the contents under variable substitution and it will help you understand the concepts better.
If you have any clarifications, do get back,
Regards,
Bhavesh -
Problem: using Dynamic file naming in adapter
Hi
Wat i m doing is using dynamic file configuration as given in this link
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14 and trying to get file name and content of the file.
I m getting file name in dynamic configuration in SXMB_MONI but payload is empty.Actually i have to pass this payload to BPM.Subodh,
I understand that using the filename you would like to do the validations, but, am not able to get the entire flow, inclduing your BPM flow.
If you give us the entire interface flow, it would be helpful to understand the problem better.
Just a quick note : Try to do the mapping that gets the filename outside the BPM if you do not get this inside the BPM.
Have not tried this, but I have seen a few posts which found that the dynamic parametrs were not accesible inside the BPM.
Regards,
Bhavesh -
Dynamic Variable Naming for Sound Object
Is it possible to dynamically name a variable? I'd like to
create a new Sound Object on the fly, so that I can use the
Sound.load() method multiple times. I would simply like to create
and name the variable and add a number to the end of the name
(i.e.; var "audio_1":Sound). I'm sure that this is possible.
However, I can't seem to get it figured out.This code worked great! However, how can I set a global
variable equal to the newly created Sound Object so that it is
available globally via a reuseable reference?
Here's an example of how I attempted to do this. Please note:
audioObject is a global variable that I am trying to use to
reference the new Sound Object in various places.
audioObjectCount is a global variable that I am using to set
or get the next number to use when dynamically creating the next
new Sound Object -
Dynamic File naming in Mail attachment
Hi experts,
I am doing a Mail to File scenario, in which at the sender side I have a mail with File attachments.We are using IMAP protocol and picking up from a URL.At the receiver end we have to provide a file which is the attachment from the incoming mail.
With the help of the module I have separated the body and the attachment and the file is created with the static name I provided in the File adapter
My requirement is to dynamically name the file based on the customer name.I am not configured the design part, as no mapping of the interfaces are required.
For some reason,I am not able to open the mail bodyin sxmb_moni,but can see the attached file.
Thanks,
Tusharthere is no standard way.
you will have to write a module to get this in place.
other ways are;
XI Mail Adapter: An approach for sending emails with attachment with help of Java mapping - /people/stefan.grube/blog/2007/04/17/xi-mail-adapter-an-approach-for-sending-emails-with-attachment-with-help-of-java-mapping
Dynamic name in the mail attachment - pseudo "variable substitution" :
/people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution -
Issue with Dynamic file Naming
Hello Experts,
I am doing a scenario where in for one incoming field we are using dynamic configuratiion UDF for getting the filename.Now I am able to get the filename correctly.Now the issue is for the result output file I do not need this field . For Ex : The incoming field has some value say ABC_XYZ which I use and then concatenate it with time and date stamp in the UDF and then send it to the output.
Now at the result I dont need this field ABC_XYZ. The aim was to use it to generate only the file name with ABC_XYZ_date_time.
Please guide on the same as to how this field can be eliminated.Is it possible to do so in content conversion in file adapter using some Ignore thing. Please guide. Hope I have cleared my doubt.Hi Amit,
You can create another segment with in the target message type and remove that in content conversion. You can use this blog as reference:
/people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12
Else you can use shabarish weblog and can come up with the filename in your mapping and store it in FileName and then put in your receiver comm. channel as FileName which should take care of your issue.
Regards,
---Satish -
Good day,
I have an SSIS package that uses .csv as a destination. The package is scheduled to run automatically. I would like to dynamically name the files by appending a date stamp. eg.
fileX_20140903_001
fileX_20140903_002
fileX_20140903_003
etc.
I have managed to add a date stamp. I have problems appending the values incrementally as the package runs. For example, for the first run of the day, append 001, for the second run of the same day, append 002, for the third run of the same day, append
003 and so on.
Please kindly assistHi,
Assuming you are setting DateTime stamp from Expression something like
"C:\\FolderName\\FileName" + (DT_STR,4,1252) DatePart("yyyy",getdate()) +
Right("0" + (DT_STR,4,1252) DatePart("m",getdate()),2) +
Right("0" + (DT_STR,4,1252) DatePart("d",getdate()),2)
Try using variable which will take care of file count.
In Expression Builder increment variable value by 1
@[User::FileCounter] = @[User::FileCounter]+1
and append it to your existing Expression like as below
"C:\\FolderName\\FileName" + (DT_STR,4,1252) DatePart("yyyy",getdate()) +
Right("0" + (DT_STR,4,1252) DatePart("m",getdate()),2) +
Right("0" + (DT_STR,4,1252) DatePart("d",getdate()),2) + "_"+ @[User::FileCounter]
Regards,
Maybe you are looking for
-
Message mapping with attachments?
Hi there, I want to read in two flat files and process them afterwards in the XI (message mapping and such). I know that it is possible via BPM (as discussed here, for example: Combining Input Files ). But I'm told to do it via the file adapter's "Sp
-
Hi I waana develop an alv report(OOPS) using 3 different tables. I waana know since i have to output fields from 3 different tables depending upon selection criteria. So can any body tell me how to use field catalog or field catalog merge using clas
-
Inserting Multiple Records in Transparent Table
Hi Friends, I am New to ABAP and Previously i was in Web Dynpro Java.... I am doing an scenario Travel Request. The Problem i am facing i this scenario is inserting the data in the table. I have to maintain a custom table in which Travel request No (
-
When company says they are going to replace the customer iphone Does it actually mean that the are going to replace it. And if they replaces iphone than what company do with that Used and damaged iphone
-
I need to do the following sort: SORT it_header BY lifnr xblnr belnr ASCENDING. Only I also want it sorted by CHECF descending. Basically, I need it to be ascending except I want all records, with a blank CHECF, last (within it's own vendor, lifnr,