How to check from Where a Program is Called in SAP ABAP?
In SAP subroutine message_append in program LATPCFM2 has been called for purchase order as well as delivery (create, change, display).
I want some custom code to be added in this subroutine by which I would know from where it is being called for "delivery creation".
Or any way to know the called place.
Hi Raju,
I want to add one more thing to your explanation, While enhancing the standard Program, it will be used in several Places for Different purpose. Instead of Checking from Where it is Called, Check with for what conditions the Custom Code Should get executed and the Required Values are present in the attribute. It will work better if we add Some IF conditions Before Our Custom Code otherwie it may lead to Dump.
EX: If SY-Tocde = 'VA01' or SY-Tocde = 'VA02' or SY-Tocde = 'VA03'.
Custome Code.
endif.
Similar Messages
-
Issue with driver program ZSAPM07DR(From where this Program is called)
Hi All,
We need to find out from where the driver program ZSAPM07DR(this is a customized program of SAPM07DR). It has the
form Z_DLYNOTE .
So how to know from which place the Driver program is called.
Please help .
Thanks and Regards
Channappa SajjanarHi,
It is me not totally clear what you want with this question.
I think you are asking this because you want to change the calling program in such a way that is using the new ZSAPM07DR instead of SAPM07DR.
For this you do not have to change a program. This can be done by making settings (a kind of customizing).
Your print will be made with a certain outputtype. (ithink 1 of WA01, Wa02,Wa03, wae1, wae2, wae3, wee1, wee2, wee3, wf01, wf02, wlb1, wlb2, wlb3) with apllicationtype ME.
The settings can be made with transaction NACE.
for your program> start transaction NACE
click on application ME
click on outputtype
doubleclick on the right outputtype
then you see a prgram, a starting routine, and sapscript or smartform name.
Here you change your settings to your program and your sapscript or smartform or adobe interactive forms.
and save.
these setting are stored in table TNAPR.
Hope this helps you. success.
Gr., Frank -
How can I check from where a user is signed in to Lync / force a log off?
Hi there,
in my support organization we have personalized accounts and one general account that is used for chat support. Now as Lync is delivering the instant messages on a first come - first serve basis, I would like to check
from where someone is signed into Lync in order to be able to ask the user on that machine to sign out /
force a sign-out.
I found the Deep Dive into the Lync 2013 client sign in process ( http://channel9.msdn.com/Events/Lync-Conference/Lync-Conference-2014/CLNT400-R ) , but I didn't find was I was looking for.
Can you please guide me towards finding a solution for that?
Thanks,
O 815Hi,
Base on my knowledge, there is no readymade method to find the location of the Lync client sign in.
You may need to find the information on database.
Best Regards,
Eason Huang
Eason Huang
TechNet Community Support -
How to check the current EHP stack level? in SAP
Dear All,
How to check the current EHP stack level? in SAP . i have checked forum before i am posting but still comfused .
same one said SAP_APPL , EA_Appl and SAP _HR is 60n if n=1.2.3.4. if n =1 is enhanced package 1 similarly 2,3,4 .
some one said SAP_BASIS 701,702,703,704 . according ehp1,2,3,4.
Pls check the details and confirm either is ehp1 or ehp4 .
Component version is simply shows SAP ECC 6.0 in system -> status.
Software Component - Release - SP level
SAP_ABA 701 0007
SAP_BASIS 701 0007
PI_BASIS 701 0007
ST-PI 2008_1_700 0003
SAP_BS_FND 701 0008
SAP_BW 701 0007
SAP_AP 700 0021
WEBCUIF 700 0008
SAP_APPL 604 0008
SAP_HR 604 0029
SAP_HRCAR 604 0029
SAP_HRCAT 604 0029
SAP_HRCAU 604 0029
SAP_HRCBE 604 0029
SAP_HRCBR 604 0029
SAP_HRCCA 604 0029
SAP_HRCCH 604 0029
SAP_HRCCL 604 0029
SAP_HRCCN 604 0029
SAP_HRCDE 604 0029
SAP_HRCDK 604 0029
SAP_HRCES 604 0029
SAP_HRCFI 604 0029
SAP_HRCFR 604 0029
SAP_HRCGB 604 0031
SAP_HRCHK 604 0029
SAP_HRCID 604 0029
SAP_HRCIE 604 0029
SAP_HRCIN 604 0029
SAP_HRCIT 604 0029
SAP_HRCJP 604 0029
SAP_HRCKR 604 0029
SAP_HRCMX 604 0029
SAP_HRCMY 604 0029
SAP_HRCNL 604 0029
SAP_HRCNO 604 0029
SAP_HRCNZ 604 0029
SAP_HRCPH 604 0029
SAP_HRCPT 604 0029
SAP_HRCRU 604 0029
SAP_HRCSE 604 0029
SAP_HRCSG 604 0029
SAP_HRCTH 604 0029
SAP_HRCTW 604 0029
SAP_HRCUN 604 0029
SAP_HRCUS 604 0029
SAP_HRCVE 604 0029
SAP_HRCZA 604 0029
SAP_HRGXX 604 0029
SAP_HRRXX 604 0029
EA-IPPE 400 0018
EA-APPL 604 0008
EA-DFPS 600 0018
EA-FINSERV 604 0007
EA-GLTRADE 604 0008
EA-HR 604 0029
EA-HRCAR 604 0029
EA-HRCAT 604 0029
EA-HRCAU 604 0029
EA-HRCBE 604 0029
EA-HRCBR 604 0029
EA-HRCCA 604 0029
EA-HRCCH 604 0029
EA-HRCCN 604 0029
EA-HRCDE 604 0029
EA-HRCDK 604 0029
EA-HRCES 604 0029
EA-HRCFI 604 0029
EA-HRCFR 604 0029
EA-HRCGB 604 0029
EA-HRCHK 604 0029
EA-HRCID 604 0029
EA-HRCIE 604 0029
EA-HRCIN 604 0029
EA-HRCIT 604 0029
EA-HRCJP 604 0029
EA-HRCKR 604 0029
EA-HRCMX 604 0029
EA-HRCMY 604 0029
EA-HRCNL 604 0029
EA-HRCNO 604 0029
EA-HRCNZ 604 0029
EA-HRCPH 604 0029
EA-HRCPT 604 0029
EA-HRCRU 604 0029
EA-HRCSE 604 0029
EA-HRCSG 604 0029
EA-HRCTH 604 0029
EA-HRCTW 604 0029
EA-HRCUN 604 0029
EA-HRCUS 604 0029
EA-HRCVE 604 0029
EA-HRCZA 604 0029
EA-HRGXX 604 0029
EA-HRRXX 604 0029
EA-PS 604 0007
EA-RETAIL 604 0007
FINBASIS 604 0008
ECC-DIMP 600 0018
ERECRUIT 604 0008
FI-CA 604 0008
FI-CAX 604 0007
INSURANCE 600 0018
IS-CWM 600 0018
IS-H 600 0024
IS-M 600 0018
IS-OIL 600 0018
IS-PS-CA 604 0007
IS-UT 600 0018
LSOFE 600 0018
SEM-BW 604 0008
ST-A/PI 01M_ECC600 0001
Regards
Edited by: satheesh0812 on Nov 17, 2011 7:57 AMHi Sateesh,
SAP_ABA 701 0007
SAP_BASIS 701 0007
PI_BASIS 701 0007
ST-PI 2008_1_700 0003
SAP_BS_FND 701 0008
SAP_BW 701 0007
SAP_AP 700 0021
WEBCUIF 700 0008
SAP_APPL 604 0008
Based on the component information provided by you, I can conclude that your system is ECC 6.0 EHP4.
EHP4 is derived from your component SAP_APPL 604.
In addition to this your EHP4 system has NW stack on NW 7.0 EHP1.
Hence your system is ECC 6.0 EHP4 with NW 7.0 EHP1.
Hope this answers your query.
Regards,
Deepak Kori -
Getting the logical system from where RFC is being called
Hi All,
How can we get the logical system name from where RFC is being called?
Regards,
AkshayHi Akshay,
If your company follows the SAP recommendations on naming [logical systems|http://help.sap.com/SAPHELP_NW70/helpdata/EN/da/5990df015b5b43a36f6ce7fa1ee8c0/content.htm] <b><SystemID>"CLNT"<Client></b> then you should get away with a simple call to RFC_GET_ATTRIBUTES (and even if they don't, the function module might possibly provide other clues required to build the logical system name).
There might be other ways, but I'm kind of suspecting that the logical system name of the calling system might not be part of the communication data (like other readily available data as IP address etc.). So if this solution doesn't work, it might be helpful to understand how the naming conventions for logical systems used by your company.
Cheers, harald -
From where can I download IDES on SAP Service Marketplace?
Hello,
From where can I download IDES on SAP Service Marketplace? Can you any one help me. I have got access to SAP service market place. If its not avilable there then from where can I download the lates IDES for mySAP2005. Thanks in advance.
Regards,
Farooq Shaik.Hi Raghav,
Believe it or not, it is easy to get the access to download but it might not be easy for your company due to legal reasons.
You can request authorization through your SAP account executive (your SAP sales person!). Download of software is part of the SAP license you have with SAP. You probably wil have to talk to your company's SAP contract contact before talking to SAP.
The reason for this is that there are some different legal issues about downloading software in different country (taxing and asset accounting can be different for physical and downloadable software).
Cheers,
Mike. -
How to check from which table data is picking by datasource 0CDCY_ACT_ATTR
Hi Experts,
Could you please help me in finding out of the table from which datasource 0CDCY_ACT_ATTR is extracting.
As per my knowledge is should be extract from tables(infotypes) HRP5135 - 5141.If i am wrong please correct me.
Issue : My extractor(0cdcy_ACT_ATTR) is bringing wrong ACT_TYPE (Eg :5010) where as in table HRP5141 for that particular OBJID it is 9180( different).
Please help me why my extractor is bringing ACT_TYPE 5010.
This standard datasource and using Function Module : RCF_BIW_GET_ACTIVITY, How can i check from which table it is picking the data
Thanks in Advanve
SreeHi Sree,
In RSA3 on the first screen, you have the option to start debugging by marking the debug check box, once you put all the selections, click on execute and it will go to debug mode, then keep on pressing F5. It will debug your code line by line, then you can check for all the select statements.
Or once the debugging is started you will have the option to put break point on all the select statements in one shot, you can get in touch with your ABAP team.
Regards,
Durgesh.
Edited by: Durgesh Gandewar on Jul 24, 2011 8:20 PM -
How to Check the report is Finished while calling a report from Forms 6i
Dear All,
I am Calling a report from oracle forms 6i, after runing report in " Run_Product(REPORTS,:fn_cntl.nb_report_name,ASYNCHRONOUS, RUNTIME, FILESYSTEM,pl_id, NULL);"
I need to copy the pdf to store it in another place once the report is generated.
My Problem is : that i want ot Check first the report has generated after " Run_Product(REPORTS,:fn_cntl.nb_report_name,ASYNCHRONOUS, RUNTIME, FILESYSTEM,pl_id, NULL);" is executed ? How to check the report is generated ot not?
As i tried to use the below procedure after "Run_Product(REPORTS,:fn_cntl.nb_report_name,ASYNCHRONOUS, RUNTIME, FILESYSTEM,pl_id, NULL);"" but his does not work... nothing happens
{code}
PROCEDURE FPC_COPY_REPORT (p_report_name varchar2) IS
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status varchar2(20);
lv_id varchar2(1000);
BEGIN
repid := find_report_object('AMTP_995.RDF');
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
if rep_status = 'FINISHED' then
message('Report Completed'); message('Report Completed');
else
message('Error when running report.'); message('Error when running report.');
end if;
END;
{code}
Any Helpactually My code is this:
declare
ln_alert number;
pl_id ParamList;
lv_report_name varchar2(10000);
lv_path varchar2 (100) := 'C:\';
lv_shared_path varchar2(1000);
lv_copy_file varchar2(10000);
cursor cr_dir_path IS
select v_dir_path
from md_directory
where v_dir_code ='SHR';
lv_file_name varchar2(1000);
BEGIN
open cr_dir_path;
fetch cr_dir_path into lv_shared_path;
close cr_dir_path;
lv_report_name := lv_path||:fn_cntl.nb_ref_no||'_M08600000_'||to_char(sysdate,'YYYYMMDD-HHmmss')||'.pdf';
if ffn_check_fields THEN
pl_id := Get_Parameter_List('LAI');
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;
pl_id := Create_Parameter_List('LAI');
if :fn_cntl.nb_report_name ='MMAT_REPORT'
then
if :fn_cntl.nb_report_desc ='EXPORT'
then
Add_Parameter(pl_id, 'PARAMFORM',TEXT_PARAMETER, 'NO');
Add_Parameter(pl_id, 'DESTYPE', TEXT_PARAMETER,'File');
Add_Parameter(pl_id, 'DESNAME', TEXT_PARAMETER, lv_report_name);
Add_Parameter(pl_id, 'DESFORMAT',TEXT_PARAMETER,'PDF');
Add_Parameter(pl_id, 'p_mat_no',TEXT_PARAMETER, :fn_cntl.nb_mat_no);
Add_Parameter(pl_id, 'p_ref_no', TEXT_PARAMETER, :fn_cntl.nb_ref_no);
Add_Parameter(pl_id, 'p_verified_by',TEXT_PARAMETER, user);
Run_Product(REPORTS,:fn_cntl.nb_report_name,ASYNCHRONOUS, RUNTIME, FILESYSTEM,pl_id, NULL);
DECLARE
repid REPORT_OBJECT; v_rep VARCHAR2(100); rep_status varchar2(20);BEGIN
/* REP_OBJ= REPORT OBJECT CREATED UNDER REPORT NODE AT FORM */
repid := find_report_object('MMAT_REPORT'); v_rep := RUN_REPORT_OBJECT(repid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
if rep_status = 'FINISHED' then
message('Report Completed'); message('Report Completed');
--copy_report_object_output(v_rep,'c:\local.pdf');
-- host('netscape c:\tlocal.pdf');
else message('Error when running report.');
message('Error when running report.');
end if;
END;
end if;
end if;
if :fn_cntl.nb_report_desc ='EXPORT'
then
error_handler('This report will be Storde in ' ||lv_report_name||' and '||lv_shared_path|| ' Location',3);
lv_copy_file :='copy '||' "'||lv_report_name||'" "'||lv_shared_path||'"';
host(lv_copy_file,no_screen);
error_handler('Report Has been Generated Sucessfully.',3);
end if;
end if;
END;I will try first the another solution you have replied perviously... and will let you no the results... thanks a lot... -
How to check from code in Excel Addin that Excel is embedded in Microsoft word
We've developed an Excel Addin in C# for Excel 2010 and it works perfectly OK. But one issue is reported very recently as below.
1. Microsoft word document is created with an embedded excel work sheet.
2. Save the document and close.
3. Open the word document and try to edit the work sheet there.
4. Following error comes.
"The program used to create this object is Excel. That program is either not installed on your computer or it is not responding.
To edit this object, install Excel or ensure that any dialog boxes in Excel are closed."
5. This is because, our Addin is initialized and one excel process is running.
6. If the Excel Addin is disabled, above work flow works correctly.
Please let me know how to determine from the Excel Addin that the excel worksheet is embedded in another applicatoin. Because I want to disable the Addin in those cases and enable it if the Excel is opened standalone. The Addin is developed in C#.Hi,
Since the error message, please try to install this Hotfix test if it works:
http://support.microsoft.com/kb/2596494
Note: Delete the Excel instance running in the background(Go to your task manager and delete it) before opening your Word document and edit your embedded Excel.
If the issue still exists, please see the article and try the solution which I copied here:
"The basic simple answer is to place a Marshal.ComReleaseObject(Wb) at the end (or better, in the Finally block) of your event handlers. This will properly allow Word and excel to handle the OLE communication by not having VSTO hang on to an instance
handle of the workbook, therefore causing the error.
And this is not carte blanche to start placing ComReleaseObject() all over your code. I have found VERY VERY few limited cases where using ComReleaseObject() in an add-in necessary. And this is one of them."
http://davecra.com/2012/10/09/vsto-and-comole/
Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
Regards,
George Zhao
TechNet Community Support -
How to know from where , the particular memory id is ecported
Hi,
In one program there is statement.
IMPORT from MEMORY ID 'Z123'.
How can i know where this memory id is exported .
Regards
Ramakrishna LHi
You can read about Memory ID from here
[Memory-ID|http://help.sap.com/saphelp_nw04/Helpdata/EN/fc/eb3bde358411d1829f0000e829fbfe/frameset.htm] -
T code to check from where data is loding to query
Hi,
I am running a query on infocube which is having aggregate as well, I would like to know thw T.code or where i can get to know from where the data is loaded to the query(i.e eighter data is loaded from cube or aggregate),
Appopriate answer will be rewarded.
Regards
manikanta
[email protected]Hi,
You can see the tables name in SM50,while the system is fetching the records.
You can start the traces in ST01,ST05 before you execute the query. Donot forget stop traces at the end.
In the aggregate maintenance, you can se the no of times the aggregate was hit. So chcek this counter, before and after you execute the query.
With Rgds,
Anil Kumar Sharma .P -
How to check the sales stock of an article in SAP Retail
Hi SAP Leaders,
I just want w how can i check the sales stock of an article in SAP retail.
I have to archive the sales stock of an article. IN WSE1 , it showed the article cannot b be archived as there are open sales stock. HOw can i check the sales stock of an article in SAP Retail and archive it finally.
Regards.
SSHi sumi,
pls check Material Stock ALM_ME_090_CUST_USER and * ACBAPI01 EXIT_SAPLACC4_001 Accounting: ... material master (Retail) * MGV00003 ... Enhancement for article master: IDoc ... Changes in the Workflow Parameters ... 41. PROACT Stock and sales data * ... EXIT_SAPLWPUE_105 Check.
Regards
Sridhar -
How to check whether the report is being called or not
Iam using srw.run_report.for calling another report. I have registered both the report in oracle apps11.0.3. When i run the master report in oracle apps I want to see whether the second report is called or not. How to check this.
Thanks.try to check it in C:\Reports6i\Bin
C:\Reports6i\Bin <-- this may varry depending on the location of your reports.
btw, are you generating a pdf file? -
How to connect from Oracle 9i database on windows to sap database (orcle 8)
Hi,
I really need expert advice from anyone..I wud like to connect my Oracle 9i database running on windows platforms to SAP database (oracle 8) running on Unix platform.
Is there any special code to establish the connectivity...or we can simply use the ORacle net services(tnsnames.ora) file to connect to the SAP database??
I wud really appreciate any expert comments on this.
Thank you
RatheeshHi Ratheesh
If you are able to create an ODBC connection from the Windows Oracle server to the SAP database then you can use Oracle Heterogeneous Services to query the SAP database from Oracle through a DB link. To configure Heterogeneous Services is quite easy. You put an entry into the SID_LIST_LISTENER part of the listener.ora file:
(sid_desc=
(sid_name=hsql)
(oracle_home=C:\oracle\ora92)
(program=hsodbc)
) Then create an entry in your tnsnames.ora file to connect to your new listener service:
apmacnew =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = tcp)(HOST = cntrra20-lab20)(PORT = 1527))
(CONNECT_DATA =
(Service_name = apmacnew)
(HS = ok)
)And lastly create a database link using the tnsnames entry. -
How to check whether a batch input session is completed in ABAP program
I have created a ABAP program to create a batch input session (reference to RSBDCSUB). After the creation of the batch input session, I kick it to start and read the execution log. However, sometimes I cannot read anything from the execution log as the execution of the batch input is a synchronized process to the execution of my program, i.e. at the time being that I try to read the log of a particular transaction, that transaction is being processing / haven't start processing.
How can I check whether a batch input session is completed in the program?
The code that corresponding to the triggering of batch input session:
SUBMIT (SUBREPORT)
USER MTAB-USERID
VIA JOB MTAB-GROUPID
NUMBER JNUMB
WITH QUEUE_ID EQ MTAB-QID
WITH MAPPE EQ MTAB-GROUPID
WITH MODUS EQ 'N'
WITH LOGALL EQ LMODUS
Or is there any method to wait here until the process is completed before further processing?Hi gundam,
1. Or is there any method to wait here until the process is completed before further processing?
There is no such direct method to wait.
2. Immediately after submitting in background,
we cannot wait
neither can we LOOP and go on detecting
whether the b/g process has completed or not !
3. To over come such problems,
we have to use another technique.
4. we have to submit another
job which will get triggered
on event SAP_END_OF_JOB
ie. when the original job will finish,
our new job will AUTOMATICALLY get triggered,
5. This new job / program
will do the FURTHER actions !
regards,
amit m.
Maybe you are looking for
-
The question says it all. Trying to load my RAW pictures from my Canon T4i using Photoshop 5.1. It says it does not recognize this version of RAW. Help? Is there an extension or Plug in? I remember it used to work until I did an update.
-
Disable sound on imac in target display mode
Have a question about disabling the sound. I have a MacBook Pro connected to my iMac by the thunderbolt cable. I enable the target display mode on iMac with a script for disabling some configurations on iMac ( including the bluetooth for mouse and ke
-
Using a old iMac as a Secondary Display
Can I connect a Late 2006 24-inch, iMac to a 27' Late 2012 iMac and use the 2006 iMac as a secondary Display
-
How to show the next available number to populate
I have a page which displays all of my columns. My second column are numbers. If the 3rd column is filled in, the data on all of the columns will be displayed including the 2nd column on this page. If the 3rd column is not filled in yet, only the nex
-
AIM IM The message "Hello" could not be delivered. The other person appears to be offline. The user is not accepting offline messages. How do I change this setting?