How to check the current open period
Hello ABAP Gurus,
Could you help on how to check the current open period...
Sample would be
current date = may 1, 2009 but period for may is not yet open
so open would be april period
Thanks in advance....
Edited by: nanz ruiz on May 27, 2009 3:34 AM
Hi,
Check the fieldas FRYE2,FRPE2,TOYE2,TOPE2 of table T001B for a given varient.
Regards
Vishnu Gupta
Similar Messages
-
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 -
How can i get the month and year of the current open Periode?
At the beginning of each month the booking period for the new month was not open,but i need to book material automatically with the last day of the old month. The booking period will change at the first working day between 13 and 17 a clock. when the booking period was changed i have to book with the current date.
How can i do this ??
Regards
RalfHi Ralf,
here's a complete example:
DATA: last LIKE sy-datum, "ultimo of last month
gjahr LIKE t001b-frye1,
buper LIKE t001b-frpe1.
last = sy-datum - sy-datum+6(2) .
PERFORM check_period.
IF sy-subrc <> 0.
ADD 1 TO last . "-> next month
PERFORM check_period.
IF sy-subrc <> 0.
MESSAGE a001(00) WITH 'no open fi period'.
ENDIF.
ENDIF.
*formatting for germany
CONCATENATE last+6(2) last+4(2) last(4) INTO bbkpf-budat.
WRITE: / bbkpf-budat.
FORM check_period.
MOVE last(4) TO gjahr.
MOVE last+4(2) TO buper.
CALL FUNCTION 'FI_PERIOD_CHECK'
EXPORTING
i_bukrs = bbkpf-bukrs
i_gjahr = gjahr
i_koart = '+'
i_monat = buper
EXCEPTIONS
error_period = 1
error_period_acc = 2
OTHERS = 3.
ENDFORM. " check_period
regards <a href="https://www.sdn.sap.com:443/irj/servlet/prt/porta
l/prtroot/com.sap.sdn.businesscard.SDNBusinessCard?u=i
Wo3ssHlIihvCrADIEGqaw%3D%3D">Andreas</a>
Message was edited by: Andreas Mann -
How to check the current time with a Stored time in string format
Hi All
I would like to compare the system time with an existing time values which is allready there in String format..
i mean i would like to check if the SysTime is inbetween 6:30 and 14:00
I accomplished this in Oracle ..
Select 'Y' from dual where to_date(to_char(sysdate,'HH24:MI '),'HH24:MI') between to_date('06:30','HH24:MI') and to_date('14:00','HH24:MI')
But instead of checking the DB each and every time , the perfomance would be better if we can do this in our java code..
Could some one provide me with a code to accomplish the above scenario..
Thanks in advance..,.,import java.util.Calendar;
Calendar rightNow = Calendar.getInstance(); // gets the current date and time to millisec
Calendar earlyTime = Calendar.getInstance().set(Calendar.HOUR_OF_DAY, 6).set(Calendar.MINUTE, 30);
Calendar lateTime = Calendar.getInstance().set(Calendar.HOUR_OF_DAY, 8).set(Calendar.MINUTE, 0);
if (rightNow.compareTo(earlyTime)> 0 && rightNow.compareTo(lateTime) < 0){
// do something
}Try this. -
How to check the current networks on receiver with SHAREit?
1. Launch SHAREit and click Receive; 2. The page will change to "Waiting to receive", and click the "Friends cannot find you?" button; 3. The "Current networks" will pop up, as follows: .lan .EjrpN-........etc.
For the most part, sender can find receiver automatically. Under narrow cases, sender may need to join the same network as receiver.
-
How to get the last day of the current open fiscal period?
hi folks,
I have to display the last date of the current open fiscal period in the selection screen. Its just a display only.
if there is any function module vailable for getting that period, kindly suggest me?
thanks in advance,
cheers,
Adi.hi,
CALL FUNCTION '/BEV3/CHPERIOD_DETERMINE'
EXPORTING
date = sy-datum
version = c_version
IMPORTING
period = l_period
year = l_fiscal_year
EXCEPTIONS
period_in_not_valid = 1
period_not_assigned = 2
version_undefined = 3
OTHERS = 4.
If not use GM_GET_FISCAL_YEAR
CALL FUNCTION 'GET_CURRENT_YEAR'
EXPORTING
BUKRS = '1000' " Company Code
DATE = SY-DATUM " Date to find fiscal year for
IMPORTING
CURRM = w_currm " Current Fiscal Month
CURRY = w_curry " Current Fiscal Year
PREVM = w_prevm " Previous Fiscal Month
PREVY = w_prevy. " Previous Fiscal Year
Rgds
Anver -
How to change the current period in material master
hi everybody,
as i have installed sap 4.7 ides version on my home pc for practice , but hwenver i am creating the new material master in the system , i observe that in accounting1 tab the current period is 12 2002 , how should i change the current posting period so that i can start the transaction in current uear 2009 and then later i can work in 2010 ....
i have tried the transaction mmrv, mmpv, mmpi through some resources but i didnt know how to do the settings in the system in IMG (SPRO) kindly help me through , i have wasted lot of time in this..
i hope MM team will help me out of this...
AMIT BATHLAHi,
Check in OMSY Transaction that, Which current month and year is having your comapny code.
and go to T.Code MMPV
enter Next Month of that cureent period and Year
and Execute. You find the message that your current period has changed.
Do the same process month by month till reaches to current period and year.
Let me know if you have further queries.
Padma. -
How can I set up new sites to open in new pages and not over the top of the current open page?
how can I set up new sites to open in new pages and not over the top of the current open page?
Middle-click ''(press down mouse scroll wheel)'' <br />
or <br />
{Ctrl + Click} <br />
or <br />
Right-click and use '''''Open in a New Tab''''' -
How can I check the current cost and budget in SAP?
Dear experts,
How can I check the current cost and budget in SAP for the PR approval?
Table:COEP, COBK, COSS COSP can not find below information:Tender_budget,Working_budget,reconciliation,Additional,Adjustment,variation
Best regards,
MerryDear expert,
I need below information:Project_id,Cost_code,Nature_code,Section_code,Work_type,Work_code,Cost_type,Suffix,item_desc,Tender_budget,Working_budget,reconciliation,Additional,Adjustment,variation
Can you tell me which table and filed can find them?
Many thanks.
best regards,
Merry -
How to list all currently open Excel files with ActiveX?
Hello all!
I would like to program with ActiveX a way to retrieve a list (array of strings) of the filenames of the currently opened Excel files in windows. However, I am fairly new to the ActiveX/Excel business in LV and after hours looking at the "millions" of objects in the property nodes I give up and hope some kind soul here can help me. I couldn't find any information in this forum regarding the same issue, although some were close
I am using LV 7.1 without the Report Generation Toolkit.
Thanks!
/GoranHi KC,
thanks for your reply. I have in fact been able to find the desired things in the ActiveX properties/methods for Excel in LabView. It took me some looong work going through the functions which I suspected to be the ones. Anyway, I post a little jpeg here of the code if someone ever needs the same functionality. What it does is that it checks how many Excel workbooks are open and controls if each of them matches the searched Excel filename, if one does, it is closed.
Enjoy
/Goran
Attachments:
List open excel sheets and close open ones.jpg 104 KB -
Posting of Time Entries cancelled in the current accounting period
Dear All,
We are using Cross Application Time Sheet transaction codes for Entering Employee wise labour times using CAT2 transaction code for Networks under Projects and Orders under customer service for entering labour times. My question is how to do cancellation of time entries in the current accounting period for the actual time entries done in the previous quarter, as presently system is posting the cancelled date as the date when it was originally posted through CAT5 and CAT9.
regards,
rajaraman.The CADE transaction code is to delete the timesheet transaction. SAP cautions us not to use this
transaction in productive system as it directly updates the related tables and also when i checked the
same in PRD Client system asks for System Administrator rights which are generally not available to consultants other than the Basis team.
I just want to know how to cancel the already posted transaction in the current accounting period?
thanks for quick response and help.
regards,
rajaraman. -
How to check the verity version in our PeopleSoft Installation?
How to check the verity version in our PeopleSoft Installation? I am not sure if the verity is installed or not and also if installed what is the version?
yes. it says the version is 5.0.1
Is there any difference in installation or configuration when the app and web server are in same machine and when the app and web server are installed in different servers?
============================================
D:\fs840\webserv\peoplesoft>mkvdk
mkvdk - Verity, Inc. Version 5.0.1 (_nti40, Jul 23 2004)
Usage: mkvdk [<option>...] <filespec>...
Where <option> can be a VDK switch, or any of:
-about Show the collection's about resources
-autodel Delete bulk insert file when no longer needed
-backup <dir> Specify collection backup location
-bulk Submit bulk insert file(s)
-charmap <name> Specify the character map to VDK
-collection <path> Specify the collection (required)
-create Create the collection
-credentials <user> Specify user[:passwd][:domain][:mailbox]
-datapath <path> Specify VDK datapath
-datefmt <fmt> Specify date format to VDK
-debug Enable debugging output
-delete Delete documents
-description <desc> Set the collection's description
-diskcache <num> Set VDK's disk cache size (kbytes)
-extract Extract field values from text
-help Print this usage information
-insert Insert documents (default)
-locale <locale> Specify the locale to VDK
-logfile <file> Save output in a log file
-loglevel <num> Set the VDK output level for the log
-mailboxes This option is depracated. Use the credentials option inste
ad
-maxfiles <num> Set VDK's maximum number of open files
-maxmemory <num> Set VDK's maximum memory usage (kbytes)
-mode <mode> Set the indexing mode
-modify Modify fields using field/value pairs from a bulkfile
-nohousekeep Disable housekeeping
-noindex Disable indexing
-nolock Turns off locking (dangerous)
-nooptimize Disable optimizations
-nosave Don't save collection work list
-noservice Prevents servicing of submitted work
-nosubmit Don't submit work to VDK
-numdocs <num> Number of documents to insert from bulk insert file(s)
-numpages <num> Synonym for diskcache for backward compatibility
-offset <num> Specify offset into bulk insert file(s)
-online Flag for online Bulk Modify
-optimize <spec> Optimize the collection
-outlevel <num> Set the VDK output level
-persist Service the collection forever
-purge Remove all documents from collection
-purgeback Purge in the background
-purgewait <secs> Specify delay before purge
-quiet Suppress all non-error messages
-repair Repair the collection
-servlev <spec> Advanced option for overriding service level
-sleeptime <secs> Interval between service calls for persist
-style <dir> Specify style directory for create
-submit Synonym for noservice for backward compatibility
-synch Perform work synchronously
-topicset <path> Specify VDK topic set
-update Update documents
-vdkhome <path> Specify VDK home
-verbose Output more information
-words Build word assist list
-wordindex Build word assist index
The <spec> for -optimize is a hyphenated string of:
maxmerge Perform maximal merging of partitions
squeeze Recover space from deleted documents
vdbopt Build optimized VDB's
spanword Create word list spanning all partitions
ngramindex Create ngram index into spanning word list
maxclean Really clean (not for read-write)
readonly Make the collection read-only
tuneup Fully optimize for read-write use
publish Fully optimize for read-only use
The <spec> for -servlev is a hyphenated string of:
search Enable search and retrieval
insert Enable adding and updating documents
optimize Enable opportunistic collection optimization
assist Enable building of word list
housekeep Enable housekeeping of unneeded files
delete Enable document deletion
backup Enable backup
purge Enable background purging
repair Enable collection repair
dataprep Same as search-index-optimize-assist-housekeep
index Same as insert-delete
Error: must specify collection
mkvdk done
D:\fs840\webserv\peoplesoft> -
How to check the format (PAL or NTSC) of a DVD?
I wonder if someone can tell me how to check the format (PAL or NTSC) of DVD’s that I receive from my friends around the world. Many of them have no marking as to the format... Is there some software that can do this?
Hello Peace Freak,
have a look at myDVDedit (http://www.mydvdedit.com). It's actually designed to do postproduction on a DVD, but will also display a lot of info, such as TV standard, 16:9 vs. 4:3, etc.
Insert your DVD, then launch myDVDedit and open the VIDEO_TS folder contained in your DVD. Click the IFO tab to find the information you're looking for.
hope this helps
mish -
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 get the current logical system?
Dear Abapers:
I can't find the logical system value from the table SYST, pls tell me how to get the current logical system name, Thanks!Hi,
Check with the table T000, the Logical system field name is LOGSYS.
Regards
Thiru
Maybe you are looking for
-
Itunes not working for windows 8.1 it shows that installation package could not be opened
last night I have updated my windows 8 to 8.1.When I started to installed Itunes 11.1.5.5 it says that 'The installation package could not be opened.Verify that the package exists and that you can access it,or contact the application vendor to verify
-
we use PI/XI to transfer payment behavior to FSCM credit management, in sxmb_moni XML message, inbound message/SOAP header/trace, we can find user name and timestamp, but I would like to know in xml message, where can I find the document number, amo
-
Updating projects with activities linked to other projects.
Im kind of new at this. I am working on a project with several contracts. i am thinking of setting up each contract as a separate project in an EPS and linking the milestones in all the projects to create a master schedule. On a weekly basis i reciev
-
Gantt Chart Component demo - download
Hi, Is this possible to download demo application presented in The Gantt Chart Component (http://www.oracle.com/technology/products/jdev/viewlets/11/index.html). In our team we plan to start SCRUM methodology and we would like to write similar applic
-
Standard Bapi for Create Materials
Hi all I need to know how is the bapi standard that i need to use for create, modify materials. We need to execute this bapi from XI system... I want to know the name of bapi and how to use it!! BR