How to determine main program name?
Hello Forums,
I am working on a customer exit that is called by a function module and I would like to have a condition in my include that states
if program_name = SAPLV56K .
do logic in here.
Endif.
is it possible to determine the program name?
thanks
Hi,
Do following step,
1 declare global Variable of type sy-repid. eg data g_repid like sy-repid.
2 assign program name to variable at Initialization stmt.
INITIALIZATION
g_repid = sy-repid.
3 Use this variable.
other wise use sy-cprog.
Difference between sy-repid and sy-cprog
Sy-repid --- It contains the name of current program.
Sy-cprog---Contains the name of calling program.
Thanks & Regards,
ShreeMohan
Similar Messages
-
Hi,
I have a include program RV64A811. i need the main program. But if used where used list its saying there is no related prgram.
So how to find, plz help this
MohanaSAPLV61A is the main program name.
Your Include is a Routine. What you can do is .. goto your report and click the 'Display Object List' button
(CtrlShiftF5) and it will show the main function group in which your include has been defined.
<b>Reward Points if useful</b>
Regards,
Abhishek
Message was edited by:
Abhishek Jolly -
How to rename a program name in ABAP.
Hi all,
How to rename a program name in ABAP. Please help me out in this.
Thanks & Best Regards,
Vishnuhi vishnu,
goto se38--> press Ctrl+F6
it will give one small screen source program and target program.
in target program type ur pgm name
reward if its useful. -
How to find the program name of the smart form?
How to find the program name of the smart form if output type is not known?
thanks in advance...How to find the program name of the smart form if output type is not known?
thanks in advance...
T-code SE16
Enter table name: TNAPR -> Press enter key
Enter smartform name in input field(SFORM): Z_your_smartform_name
Execute
you can find program name under the column PGNAM/Program name.
Regards
sudheer -
How to find the program name of the created sap query ?
how to find the program name of the created sap query ?
Hi avinash,
Try in this way..
Go to SE16 and then go to table TSTC.
in that give program name as <b>*followed by your query name</b>
(for example *TESTQUERY)
and run , that will give progname======queryname.
this way you can find program name.
vijay -
How to determine the Cluster name ?
Grid version : 11.2.0.3 on Solaris 10
When we start installing Grid Infrastructure, we specify a Cluster Name.
Question1.
How can I determine the cluster name of a 11.2 RAC Cluster ? We maintain a DB inventory. For each cluster , we want to specify the Cluster name.Hence we require the cluster name .
Question2.
The cluster name is of no functional importance. Right ? I don't remember using Cluster Name in any commands (srvctl, crsctl,...)To determine the cluster name,[oracle@iron1 ~]$ olsnodes -c
ironcluster
[oracle@iron1 ~]$I wouldn't say it has much technical significance, though it is used as a default in a few other names.
John Watson
Oracle Certified Master DBA
http://skillbuilders.com -
How to fetch Print program name of a SAP script?
Hi abapers,
Could you please tell me how to fetch the name of a script's print program with the help of the script's name?
I have tried with table TNAPR and T-code NACE,it didnt help.
Is there any function module that returns the print program's name.
Please reply.
Thanks,
Suchi.hi ,
GOTO SE71 Txn
Enter standard script name.
Click on Display.
"in menu bar
"form------>Check--->text ----->press enter
Now you can view the standard print program name
Thanks & Regards -
How to get the program name from transformation id.
Dear Folks,
Could you kindly share to me how to make it please .. ? :-).
As we know that every update rules/transfer rules has it's own program.
Do you know how to find the program for particular update/transfer rules .. ? If i'm not mistaken there is particular comprising about this information.
Could you share to me what table is that and how to find it .. ?
Tks a lot ..
Regards,
Niel.Hi Sumit,
Tks a lot for your quick response, why i can't fetch the data from that table... ?
What i did is like this ..
1. tcode rsa1.
2. expand the tree for info-provider.
3. ctrl+c, in tech. names for update rules.
4. Open rstran table, and input for that tech. id.
5. Execute it.
But no data i get.
Does this happen only for business content ? Or Could I fetch the data even this is for customized object ..
Still need your guidance.
Btw, i'm now running BI 7
Regards,
Niel. -
How to find out program name to the corresponding output type of invoice..
hi ALL,
I want to findout program name to my output type.
For one invoice functional peoples are configured. Here i know the outtype. But i don't know the program name .
Can any body please tell me how to find out the program name for the output type..?Hi,
Goto NACE t-code
Select Billing (V3)
Press 'Output Types' Button
In the next screen select the corresponding output type you want.
Then press 'Processing Routines' in the left pane. You can see the program name
Cheers,
Kothand -
How to determine the RDT name generated by sdo_geor.init()?
I've done the following in a stored procedure:
insert into ... values(sdo_geor.init()) returning newcol into gr;
Now, before I do anything with gr, I have to create the rdt whose name was generated by sdo_geor.init. How do I get that name? There doesn't seem to be a sdo_geor.get* procedure or function for returning this.
What I'm trying to do is implement this example of using sdo_geor.copy, but without specifying an rdt in sdo_geor.init():
DECLARE
gr1 sdo_georaster;
gr2 sdo_georaster;
BEGIN
INSERT INTO georaster_table VALUES (11, sdo_geor.init('RDT_11', 1))
RETURNING georaster INTO gr2;
SELECT georaster INTO gr1 from georaster_table WHERE georid=1;
sdo_geor.copy(gr1, gr2);
UPDATE georaster_table SET georaster=gr2 WHERE georid=11;
COMMIT;
END;
Alternatively, is there a way to generate a unique RDT name myself so that I can specify it in the call to sdo_geor.init?
Many thanks,
MikeMike,
the RDT table name is in the georaster object (gr) you just created. It's an attribute of sdo_georaster object, i.e., gr.RASTERDATATABLE in your case.
generally, automatically generating the RDT name thru sdo_geor.init is not recommended because that would generate an RDT for each GeoRaster object. An RDT table should be used to contain the raster blocks of many smaller GeoRaster objects while you devote a single RDT table for a huge GeoRaster object (an image with a size over tens of GB to many terabytes for example). Even though the RDT tables are internal to GeoRaster, the creation of the RDT table is done by users, which is intentional, so that you can fully leverage the configuration and tuning power of oracle database (for example, if ASM is not used, RDT tables may be created on different tablespaces so that the raster blocks are distributed to different disks to improve performance).
to generate unique RDT names, you can leverage the SEQUENCE object to create sequence numbers and then attach them to a special table name you picked up.
Regards,
Jeffrey -
How to find the program name for LSMW
hi experts,
i have created a LSMW for uploading data in HR.i hope there will be a ABAP progarm automatically generated from it .where i can find the program name .
i have succesfully completed all the 14 stepas and data is uploading comfortably .
thanx in adavancehi,
just do liek this to know abt the program name,
select system at the menu in your lsmw,
select status ,
in popup u'll get the proram name and all other related details.
reward points if useful,
regards,
seshu. -
How to find abap program name for web ui reports
Hi,
I need to know the abap program name which is developed and configured for
web ui.In our project web ui application crm version 7.0.there reports links are available
with label of business names.
I assume that there will be SPRO configuration for these reports.
Can anyone provide assistant on this to me.
Regards
VirenHi,
Which reports you are referring to? Are you referring to BI reports? If so then i suppose they are triggerred in BI and transferred to CRM.
Regards,
BJ -
How to find driver program name of Smart Form
Hello
I am in stiuation, where I know the smart form name in which I need to do the changes but I don't know the driver program name. Is there ant way to find the driver program name? Is the smart form and it's driver program name is maintained in any table?
Please let me know if any one is having any idea.
Thanks & Regards.
Chetansing ChauhanHi,
Check this links:
driver program name
Driver program for smart form
Regards
Adil -
How to get main class name in running program?
How can I get classname, which main method is executed? Of course in running program?
Please help,
ChrisSomething like (not tested this)StackTraceElement[] foo = new Throwable().getStackTrace();
String whichClass = foo[foo.length-1].getClassName(); -
How to determine the schema name from stored function or procedure
Hi all
I need to find the way to determine the name of shema in which the given stored procedure residing. This SP is created with AUTHID CURRENT_USER what means that expression like SYS_CONTEXT('USERENV','CURRENT_USER') or SYS_CONTEXT('USERENV','CURRENT_SCHEMA') will be return the name of user or schema of user which calls given SP.
can somebody help me?What is the problem you are trying to solve?
Presumably, when you're creating a stored procedure, you know what schema owns it. So it's pretty trivial to simply create a local variable L_OWNER in your procedure, assign it the value of the schema owner, and then use that owner. Most people don't really need to figure out at runtime what they already knew at compile time.
Barring that, you could inspect the data dictionary as user130038 suggested. That requires that you know the name of the procedure (which would likely also have to be a local variable that is initialized to a hard-coded value. And if there are multiple users that own procedures with the same name, it may not be reliable.
Inspecting the call stack is the most reliable and dynamic approach. But it is also the most costly in terms or runtime performance and in terms of code complexity.
Justin
Maybe you are looking for
-
Strange memory behaviour using the System.Collections.Hashtable in object reference
Dear all, Recently I came across a strange memory behaviour when comparing the system.collections.hashtable versus de scripting.dictionary object and thought to analyse it a bit in depth. First I thought I incorrectly destroyed references to the cla
-
Does a Time Capsule enable Mac Mini to go wireless?
Does a Mac Mini no longer need hard wiring to the internet once Time Capsule is installed?
-
OK, here's the problem. I produced my first 40 minute long presentation of still pictures, mixed with six short movie clips. There is a soundtrack running in sync with the pictures, going to mute when the movies run. I finished the presentation and c
-
How to make the pic showed on ipod 5th while playing mp3
can anyone teach me the way as captioned, very appreciate your help.
-
Is there a way of individualy deleting default Library items in Encore CS3? (those installed as additional content)