How to read include names of modules in a function group
Dear All,
I'd like to read programatically the include names of all function modules within one function group, with given function group's name.
Does anybody know a module or class providing this functionality?
Best regards
Wolfgang
Message was edited by: Ralf Wolfgang Geithner
You can do a select from TFDIR table.
DATA PANME LIKE TFDIR-PNAME.
DATA INCLUDE_NAME LIKE TFDIR-PNAME.
PNAME(4) = 'SAPL',
PNAME+4 = <FUGR_NAME>.
SELECT * FROM TFDIR WHERE PNAME EQ PNAME.
CONCATENATE 'L' <FUGR_NAME> 'U' TFDIR-INCLUDE
INTO INCLUDE_NAME.
ENDSELECT.
INCLUDE_NAME will conatin the include name of Function Module.
Cheers
Similar Messages
-
How to pass column name at run time in function.
how to pass column name at run time in function as parameter.
thank in advance
pramod patelHello,
Using dynamic sql you can pass column name to function. well I am not getting what you really want to do ? Please write in more detail. By the way I am providing one example here. see it uses dynamic sql.
Create or replace function fun_updtest (p_columnname_varchar2 in varchar2,
p_value_number in number)
return number is
v_stmt varchar2(500);
begin
v_stmt := 'update emp
set '||p_columnname_varchar2||' = '||to_char(p_value_number)||'
where empno = 7369';
execute immediate v_stmt;
return 0;
commit;
end;
call to this function can be like this..
declare
v_number number;
begin
v_number := fun_updtest('SAL',5000);
end;
Adinath Kamode -
Function modules in a function group
Hi
hoe many function modules can a function group contain and can we create a function module with out import parameters.1. There isn't any limit.
But whenever you use a FM in your program, system will allocate memory for all the data definition maintained in the TOP include. So, put only relevent FM's in the FG and create another FG, if it has a different purpose.
2. Yes we can create
Regards,
Naimesh Patel -
Option to mass migrate function modules in a function group to new SAP box
Hi All,
We have a requirement wherein we have to move all the existing function modules to a new SAP box.
I heard that there is an option to download all function modules in a function group to text files and upload them to a new system at once without much progamming.
Please let me know if anyone knows how to do this.
Thank you,
VasuHi Vasu,
why don't you just use CTS?
Create a transport that contains the objects you want to move. Then. assuming the target system is not in the same CTS landscape, move the files to the transport directory of the target system. Then in STSM goto the Import Queue and select Extras->Other Requests-Add to add your transport to the queue. Then import it as normal.
Cheers
Graham Robbo -
How to Read file name which we are dealing with ODI File tool
Hi,
We are using ODi10g version and we have requirement to move file from one place to another place. We are using ODIFileMove utility but we also want to read file name.
Any help.
Thanks in Advance.You can accomplish this with a fairly simple Jython script. Use the os.listdir(<directory>) command to get the name of files in a given directory.
You can then (still in the Jython script) loop through the files and move them to a desired location (bypassing the OdiFileMove tool) OR use the Jython script to write the file names to a SQL table. Then, use an ODI procedure to loop through the newly inserted records and store the file name in an ODI variable that you can then use in your OdiFileMove tool etc.
I often refer to this blog entry from Gurcan Orhan as a starting point for this kind of task: Loading multiple files with ODI | Gurcan Orhan&#039;s Oracle Data Integrator Blog -
How can I include a parsys inside a javascript function.
I am using radio button provided by CQ5.4.
I am writing a javascript function which checks whether a radio button is being clicked or not..
If the radio button is being clicked an alert window is opening ..this means that function is being called when radio button is being clicked.
but when I try to include parsys instead of alert window, when the radio button is being clicked..the parsys is not appearing..
Can u please help me that how should i write the "<cq:include>" for parsys inside the javascript function so that it starts appearing on click of the radio button.
THANKS
ASHWANIAshwani,
I would recommend detecting the WCMMode and always showing the parsys if the page is displaying in edit or design mode:
http://dev.day.com/docs/en/cq/current/javadoc/com/day/cq/wcm/api/WCMMode.html
Unless there is a really good reason to hide the section from authors, it's generally confusing to authors to hide a section. Additionally, hiding a parsys in JavaScript can cause strange artifacts as the drag and drop section of the parsys won't be hidden with the content of the parsys.
-Dan -
Copying function module from one function group to another
What is the efficient way to copy a module from one group to other so that all its subroutines and any dependencies with in the FM can also be copied?
Hello,
Tcode:SE37
Menu: FunctionModule->OtherFunctions->Copy in that there are different option give a new name of the function group this should work
regards
suresh nair -
Function module not in Function group after transport
We have a function group ZPCAD with three function modules in it. I added two function modules. When they were transported, the function group in the target client did not show the function modules
I found the program in SE80 Repository info System. when I opened the Module got a message about funtion group being damaged.
Since then, we have:
transported the modules again. that did not help
transported the Function group, that did not help
Transport all function modules (old and new), that did not help.
I went to SE37, opened the module and pressed Control, Shift, F5. The function group ZPCAD was opened indicating the module is part of the group. However, the new function modules still were not listed in the group.
Any advice would be appreciated.
ScottSome time function modules will not be displayed in function group in target systems.
Goto SE80
Select the function group from the list box and search for the function group.
Right click on the functio group and select "Other Functions" and "Rebuild Object List" from the sub menu of "Other Functions".
After doing all these, function modules will be displayed in function group.
Regards,
Siva. -
How to read the name of a PDF file? - function module
Hi,
I have <b>some individual pdf documents in my desktop</b>.I need to <b>bulk-upload it to the content server and document related information to the SAP-DB</b>.
Need your guidance.
Regards,
John.try this code it will convert file to PDF file
REPORT ZWARUN_CONVERSION_PDF .
***********Tables***************
TABLES:VBRK.
***********Data Declaration***************
DATA: LV_NUMBYTES TYPE I,
LV_SPOOLNO TYPE TSP01-RQIDENT.
DATA:C_LAYOUT LIKE PRI_PARAMS-PAART VALUE 'X_65_132', "Layout
C_X TYPE C VALUE 'X'.
DATA: NUMBYTES TYPE I,
CANCEL.
***************Internal table of Pdf************
DATA: IT_PDF LIKE TLINE OCCURS 10 WITH HEADER LINE.
DATA:BEGIN OF IT_VBRK OCCURS 2,
FKART LIKE VBRK-FKART,
FKTYP LIKE VBRK-FKTYP,
VBTYP LIKE VBRK-VBTYP,
END OF IT_VBRK.
SELECTION-SCREEN BEGIN OF BLOCK BLK WITH FRAME.
SELECT-OPTIONS: S_BUKRS FOR VBRK-BUKRS,
S_GJAHR FOR VBRK-GJAHR.
SELECTION-SCREEN END OF BLOCK BLK .
PARAMETERS:
spoolno like tsp01-rqident,
DOWNLOAD AS CHECKBOX DEFAULT 'X',
P_FILE LIKE RLGRAP-FILENAME DEFAULT 'C:\warun1.pdf'.
START-OF-SELECTION.
SELECT FKART
FKTYP
VBTYP
INTO TABLE IT_VBRK
FROM VBRK
WHERE BUKRS IN S_BUKRS
AND GJAHR IN S_GJAHR.
END-OF-SELECTION.
DATA: LK_PARAMS TYPE PRI_PARAMS,
LV_VALID.
if not p_mailid is initial.
All the parameters passed are constants, so exceptions
doesn't get raised
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
IMMEDIATELY = ' '
LAYOUT = C_LAYOUT "'X_65_132'
NO_DIALOG = C_X
IMPORTING
OUT_PARAMETERS = LK_PARAMS
VALID = LV_VALID.
IF LV_VALID <> SPACE .
NEW-PAGE PRINT ON PARAMETERS LK_PARAMS NO DIALOG.
*--To display the final report
PERFORM PRINT_REPORT.
NEW-PAGE PRINT OFF.
*---To convert the download to PDF
PERFORM CONV_TO_PDF_DOWNLOAD.
PERFORM DOWNLOAD.
ENDIF.
endif.
*--To display the final report
PERFORM PRINT_REPORT.
*& Form print_report
FORM PRINT_REPORT .
*write:/ 'I will do it' color 4.
write:/ 'Yes' color 4.
write:/ 'we will do it' color 4.
write:/ 'lets talk abt changing life style' color 4.
write:/'By warun'.
LOOP AT IT_VBRK.
WRITE:/ IT_VBRK-FKART,IT_VBRK-FKTYP,IT_VBRK-VBTYP.
ENDLOOP.
ENDFORM. " print_report
*& Form conv_to_pdf_download
FORM CONV_TO_PDF_DOWNLOAD .
CLEAR IT_VBRK.
WAIT UP TO 2 SECONDS.
LV_SPOOLNO = SY-SPONO.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
SRC_SPOOLID = LV_SPOOLNO
NO_DIALOG = ''
DST_DEVICE =
PDF_DESTINATION =
IMPORTING
PDF_BYTECOUNT = LV_NUMBYTES
PDF_SPOOLID = pdfspoolid
LIST_PAGECOUNT =
BTC_JOBNAME = jobname
BTC_JOBCOUNT = jobcount
TABLES
PDF = IT_PDF.
ENDFORM. " conv_to_pdf_download
*& Form download
FORM DOWNLOAD .
download PDF file ***********
CHECK DOWNLOAD = 'X'.
CALL FUNCTION 'DOWNLOAD'
EXPORTING
BIN_FILESIZE = LV_NUMBYTES
FILENAME = P_FILE
FILETYPE = 'BIN'
IMPORTING
ACT_FILENAME = P_FILE
FILESIZE = LV_NUMBYTES
CANCEL = CANCEL
TABLES
DATA_TAB = IT_PDF.
IF CANCEL = SPACE.
WRITE: / LV_NUMBYTES, P_FILE.
ENDIF.
ENDFORM. " download -
How to read the "Name" field from document library in workflow?
Hi,
The task I'm trying to accomplish looks pertty simple: I need to read a value of the item's "Name" field inside the workflow. I try to do it using LookupSPListItem and GetDynamicValueProperties activities. I can get value of the "Title"
field, also I created custom field and can read it too.
But the "Name" field always comes empty.
I guess I need to use some tricky syntax or this field has some different "internal name"?
The workflow is designed in VS 2013.Thank you. Looks correct, since when I enter this path (FileLeafRef) into GetDynamicValueProperties
and change Entity Type to list of documents it changes to Name
automatically.
But somehow it doesn't work too. (:
I also tried LinkFilenameNoMenu and LinkFilename
- same result.
EDIT: Solved. :)
Looks like FileLeafRef is not loaded by default by LookupSPListItem, so you have to pass this property name via
Properties collection. The bad news is that in this case other properties won't be loaded if you didn't add them to this collection.
Anyway, it works. :) -
How to read the name of .csv file from a particular folder using Oracle.
Gurus,
I have a folder called 'data_dir' in Oracle Server and it contains 10 different .csv files and the name of the each file is being suffixed by date and time(24 hrs format).
First i need to read all the file names then i have to process those files by UTL_FILE to load the data into a relational table.
Is there any mechanism is available in Oracle to read the file names?
(In this case all the 10 different csv file names)
If so, then please help me accomplish this.
Thanks in advance.
Regards,
Venugopal.KIs there any mechanism is available in Oracle to read the file names?Sounds to me like you need to use External Tables (*not* utl_file).
http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/et_concepts.htm -
How to read file name in JavaMapping (not in MessageMapping)
Hi,
We all know that we can read a filename using dynamic configuration code in Message Mapping.
Now my question is how to acheive the same in pure Java Mapping.
Plz dont give me answers for Dynamic Configuration in MessageMapping.
Thanks,
Avis.import java.io.InputStream;
import java.io.OutputStream;
import java.util.Map;
import java.util.HashMap;
import com.sap.aii.mapping.api. AbstractTrace;
import com.sap.aii.mapping.api.StreamTransformation;
import com.sap.aii.mapping.api.StreamTransformationConstants;
import com.sap.aii.mapping.api.DynamicConfigurationKey;
import com.sap.aii.mapping.api.DynamicConfiguration;
public class JavaMapping implements StreamTransformation {
private Map param = null;
private AbstractTrace trace = null;
public void setParameter (Map param) {
this.param = param;
if (param == null) {
this.param = new HashMap();
public void execute(InputStream in, OutputStream out) {
try {
trace = (AbstractTrace)param.get(
StreamTransformationConstants.MAPPING_TRACE );
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);
trace.addInfo(ourSourceFileName); -
How to change the name of Customer Tab strip .
hi
For Tcode ME21N ME22N and ME23N I have added a screen exit to PO header tabstip .The name that is appearing is "Custumer data " as tab stip text , i want ot change this tab strip name. can u please suggest me how to do it.
Below are the details.
function group:MEGUI
screen :1102
Reagrds
AvikHi Avin,
you must have created a project in CMOD for this enhancement.
Go to the same project in CMOD.
Select Componenets radio button on cmod and go inside.
you will find Menu exit option on the coponenet screen.
double click on function code like +Co1( in prod order) and enter function text as your desired name instead of customer data. save the same and activate the project.
it should make required chnages. -
How to get alias name of stored certificate from iKey token 2032
Hi All,
Below is my code woks well to use the same keypair for both encrypt/decryprt-SunPKCS#11 in SDK1.5. In my code i hard coded alias name of certificate, kindly tell me how to read alias name of certificate from iKey token 2032??
import java.io.*;
import java.util.*;
import java.lang.*;
import java.sql.*;
import java.text.*;
import java.math.*;
import java.security.*;
import java.security.cert.*;
import java.security.interfaces.*;
import javax.crypto.interfaces.*;
import javax.net.ssl.*;
import javax.crypto.*;
import javax.crypto.spec.DESKeySpec;
import java.security.KeyStore.*;
public class Encrypt
public Encrypt(){}
public void loginToken() {
Provider p = new sun.security.pkcs11.SunPKCS11(MQConfig.getvalue("SecurityPropertyPath"));
String myAlias = "349eefd1-845b-4ba4-9f88-06e9f5cb82f6";
/** to view alias name
keytool -list -v -keystore NONE -storetype PKCS11 -storepass PASSWORD
Security.addProvider(p);
KeyStore ks = null;
PrivateKey privKey = null;
PublicKey pubKey = null;
try{
String password = General.ReadFiles(MQConfig.getvalue("logFilePath"),"Simple");
password = password.trim();
char pin[] = password.toCharArray();
ks = KeyStore.getInstance("pkcs11");
ks.load(null,pin);
java.security.cert.Certificate cert = ks.getCertificate(myAlias);
Key key = ks.getKey(myAlias, pin);
if(PrivateKey.class.isInstance(key)) {
privKey = (PrivateKey)key;
pubKey = cert.getPublicKey();
FileInputStream in = new FileInputStream("C:\\ReportDBBE.properties");
FileOutputStream out = new FileOutputStream("C:\\ReportDBAE.properties");
Cipher cp=Cipher.getInstance("RSA/ECB/PKCS1Padding", p);
cp.init(cp.ENCRYPT_MODE,pubKey);
CipherOutputStream cout=new CipherOutputStream(out,cp);
byte[] input=new byte[8];
int byteread=in.read(input);
while(byteread!=-1){
cout.write(input,0,byteread);
byteread=in.read(input);
cout.flush();
in.close();
cout.close();
catch(NoSuchAlgorithmException nsae)
System.out.println("No Such Algorithm Exception " + nsae.getMessage());
catch(NoSuchPaddingException nspe)
System.out.println("No Such Padding Exception " + nspe.getMessage());
catch(InvalidKeyException ike)
System.out.println("Invalid Key Exception " + ike.getMessage());
ike.printStackTrace();
catch(IllegalStateException ise)
System.out.println("Illegal State Exception " + ise.getMessage());
catch(KeyStoreException kse)
System.out.println("Key Store Exception " + kse.getMessage());
catch(CertificateException ce)
System.out.println("Certificate Exception " + ce.getMessage());
catch(IOException ioe)
System.out.println("IO Exception " + ioe.getMessage());
catch(UnrecoverableKeyException unrke)
System.out.println("Unrecoverable Key Exception " + unrke.getMessage());
public static void main (String args[]) throws Exception {
try{
Encrypt tl = new Encrypt();
tl.loginToken();
}catch(Exception e){
e.printStackTrace();
Your help is very much appreciated!!!!Hi All,
Now i managed to get alias name.
char pin[] = password.toCharArray();
ks = KeyStore.getInstance("pkcs11");
ks.load(null,pin);
Enumeration ea = ks.aliases();
while(ea.hasMoreElements()) {
myAlias = (String)ea.nextElement();
} -
How to Read DLL Function arguments in VC
HI,
I have a CVI dll, "modelsupport2.dll"
i need to access the parameters of one of its function "LoadModelPluginTypesAndConfigurations". Can anyone please suggest me how to read the parameters of the above dll function in VC++.
The function parameters are,
LoadModelPluginTypesAndConfigurations(CAObjHandle engine, int thread, const char *categoryName, const char *configurationName, BOOL loadAddons, BOOL loadPluginTypesFirst, CAObjHandle mergedConfiguration, char* asdd);
where, engine is nothing but Testand Engine.
here, mainly looking for reading the CAObjHandle variables.The board I use is PCI 6221. I'm afread the multithread cannot work...
Maybe you are looking for
-
Running a perl shell command through a java program on linux platform
i'm trying to execute the following command in a java program "perl xxx.pl" using the runtime.getruntime method here is the piece of code String[] cmd={"perl","-c","AraMorph.pl",""}; Process p = Runtime.getRuntime().exec(cmd,null,new File("/home/ahme
-
How to add a simple drop shadow to video clip
Ok, so perhaps I'm just looking in all the wrong places, or perhaps it was an oversight in the initial release of FCP X....but for the life of me, I cannot find where to add a simple drop shadow (in this case, for actual video footage. I haven't loo
-
MBP and HDTV aspect ratio compatibility
Hi, I have recently bought and HDTV with a 16:9 aspect ratio (768 vertical pixels). When I connect my MBP using the DVI to VGA convertor it stretches the image because the MBP only outputs in 16:10 ratio resolutions. Is this a known limitation or am
-
After I installed the OS and configured a DNS zone, I decided to delete the zone and rename the domain and the host. What is strange is that when I run Terminal the prompt shows the old name of the server. I changed the name by using hostname while l
-
I can't open the lock on my system preferences
Hi i'm in my system preferences and the lock doesn't want to unlock making me kind of stuck. can anyone help me?