Function module to find get the Fiscal period using date
Hi Experts,
I am need of getting fiscal period and year from the given date. Is there any function module exists. Please advise.
Thanks in advance,
Viven
DATA: I_FYV1 LIKE T009-PERIV.
CALL FUNCTION 'CCODE_GET_FISCAL_YEAR_VARIANT'
EXPORTING
COMPANY_CODE = i_billno-bukrs
COMPANY_CODE = S_BUKRS-LOW
IMPORTING
FISCAL_YEAR_VARIANT = I_FYV1
EXCEPTIONS
COMPANY_CODE_NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'ME_DETERMINE_GJAHR'
EXPORTING
I_BSTYP =
I_BEDAT = P_DATE
I_PERIV = I_FYV1
IMPORTING
E_H_MONAT =
E_H_GJAHR = GJAHR1
E_H_DATUM =
Similar Messages
-
Function Module to find out the release value in contract
Dear All,
I have to upload the contract with new accoutn assignment without changing the existing contract. For that i have to download all the existing contract data with value.
In that case i have some issues regarding the value.
For example : In the system old contract is created with value 1000 and the released value as 500.
In that case i have to uload the new contract with all the details of existing contract with value of 500 (1000-500=500).
How can i get the value (500) and from which table.Is there any functional module to find out the release value in contract.
Thanks and regads,
PM
Edited by: PM on Jan 21, 2010 8:40 AM
Edited by: PM on Jan 22, 2010 9:48 AMHi
You need to link the table VBFA and VBAK.
For a contract you can check all the subsequent document (which you can filter whether you want to see Order / delivery / Billing) in VBFA and then from there pick the subsequent document no. and then from VBAK you can pick the Net value of these subsequent documents, and so you will have both the values (value of Contract and value in subsequent document) and you can determine the balance value.
Regards
Amitesh Anand -
Function module to find out the changed values from tables
What is the standard function module to find out the changed values (the old & new values) from tables in SAP ?
Hi Harish,
Please elaborate your requirement...
Please have a look on CDHDR AND CDPOS tables... it contains changed data... but all chages are not being tracked using it..
Try Below FMs as well..
For Header Level...
CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
EXPORTING
date_of_change = cdhdr-udate
objectclass = cdhdr-objectclas
objectid = cdhdr-objectid
time_of_change = cdhdr-utime
username = cdhdr-username
TABLES
i_cdhdr = icdhdr
EXCEPTIONS
no_position_found = 1
OTHERS = 2.
For Item Level
CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
EXPORTING
changenumber = icdhdr-changenr
IMPORTING
header = cdhdr
TABLES
editpos = icdshw
EXCEPTIONS
no_position_found = 1
OTHERS = 2.
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
ilesh Nandaniya -
Function module to read all the views of material data
Dear all ,
Is there any function module to read all the views of material data ?
Like we have MATERIAL_MAINTAIN_DARK for updating all the views of material data , I need a function module to read all the views of material master.
Thanks & Regards
ShivanandHello,
Check these BAPI'S
<b>BAPI_MATERIAL_DISPLAY Display Material
BAPI_MATERIAL_GET_DETAIL Determine Details for a Material</b>
Regards,
Vasanth -
Function module to find number of table entries in Data base table
Hi All
I have the urgent requirement to find out the number of table entries in a table using the function Module.
if u know the Function Module name please let me know
Thanks & Regards
Rajmohan.GYou can calculate the total number of records like this.
TABLES : ztable.
DATA cnt type I.
Select count( * ) into cnt FROM ztable.
Regards,
Santosh -
Function module to find no of days between two dates
hi everybody i want a function module to find no of days between two dates
Function module /SDF/CMO_DATETIME_DIFFERENCE
Uppercase/Lowercase
Runtime: 59,629 Microseconds
Import parameters Value
DATE1 01.01.2007
TIME1 00:00:00
DATE2 31.12.2007
TIME2 00:00:00
Export parameters Value
DATEDIFF 364 TIMEDIFF 0
EARLIEST 1 -
Function Module to find difference of Fiscal Year period
Hi,
I have a requirement wherein a user enters 2 variables for Start and End Fiscal year period and I need to calculate the difference ( ie: I need to calculate the number of periods ).
I also need to pass the Fisc Year variant 'K4' as the Input parameter.
Any standard function module for it?
Rgds
ShyamDATA: I_FYV1 LIKE T009-PERIV.
CALL FUNCTION 'CCODE_GET_FISCAL_YEAR_VARIANT'
EXPORTING
COMPANY_CODE = i_billno-bukrs
COMPANY_CODE = S_BUKRS-LOW
IMPORTING
FISCAL_YEAR_VARIANT = I_FYV1
EXCEPTIONS
COMPANY_CODE_NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'ME_DETERMINE_GJAHR'
EXPORTING
I_BSTYP =
I_BEDAT = P_DATE
I_PERIV = I_FYV1
IMPORTING
E_H_MONAT =
E_H_GJAHR = GJAHR1
E_H_DATUM = -
Function Module for finding all the users in an org unit?
Hi,
is there a function module or a table by which we can find all the users within a purchasing group of purchasing organisatiopn unit.
Looking for a quick response.
Regards,
NehaPlease use the function module BBP_OM_STRUC_GET_USER_FROM_ORG. You have to pass the Org Ids in the parameter START_OBJECTS. Then USER_TAB will give you all the users.
Note:
OTYPE = 'O'.
OBJID = <Org Id say 50002323>.
Regards
Kathirvel
Edited by: Kathirvel Balakrishnan on Sep 24, 2008 2:25 PM -
Function module to find if a posting period is open or closed
HI
can anyone let me know if there is a funciton module to findout if a posting period is open or closed?
Appreciate your help and will reward helpful answers..
ThanksHi,
Check these Function module
CKML_F_POSTING_PERIODS_GET
CK_F_DET_POSTING_PERIOD_KALA
JV_POSTING_DATE_FROM_PERIOD
G_POSTING_DATE_OF_PERIOD_GET
HR_HCP_GET_POSTING_PERIODS
Regards
Arun -
Using function module BBP_PD_SC_GETLIST to get list of carts for a plant
Hi all,
Im using the function module BBP_PD_SC_GETLIST to get the list of shopping carts created for a particular plant.Im passing the plant details like Business Partner Number,Business Partner GUID and Partner func. in the table I_PARTNERS of the FM.Im not passing any other data to the FM.However im not getting any entries in the o/p parameter.
Can anyone suggest what am I doing wrong?
Thanks.Hi,
From table BBP_PDBEI you can get the shopping carts belong to perticular plant.
Thanks
prasad.s -
Function module to find the fiscal periods
Hi Guys,
Please let me know if any of you are aware a function module which determines the fiscal periods between two dates.
(Begin and end dates.)
Thanks.Hi Sai,
From your post, I understood that you want to find how many periods are there between two dates, right.
I am not sure whether there is a direct function module for this.
But you can try this.
Use the FM DATE_TO_PERIOD_CONVERT to get the Fiscal Year and Period from a date. You have to input the date and Fiscal variant.
Using this you can determine the Fiscal year and Period for both the dates.
Then you can find the difference of these two Fiscal Periods.
This thread will be helpful for you to find the Difference of two fiscal periods
Urgent : Difference of two fiscal period
Hope this helps,
Regards,
Hari. -
Function module to get the posting period based on date
Hi to all,
Is there any function module to get the posting period based on date?
Regards,
Nageshhi,
CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET'
EXPORTING
I_GJAHR = GV_GJHAR
I_PERIV = GC_24
I_POPER = GV_POPER
IMPORTING
E_DATE = S_FKDAT-LOW
EXCEPTIONS
INPUT_FALSE = 1
T009_NOTFOUND = 2
T009B_NOTFOUND = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'
EXPORTING
I_GJAHR = GV_GJHAR
I_PERIV = GC_24
I_POPER = GV_POPER
IMPORTING
E_DATE = S_FKDAT-HIGH
EXCEPTIONS
INPUT_FALSE = 1
T009_NOTFOUND = 2
T009B_NOTFOUND = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ags. -
Function module reqd for fiscal period using current date
Hi,
Is there any function module which gives fiscal period using current date.
Thnaks,
MaheedharHi Maheedhar,
Try the code below.
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
Regards,
Amit. -
Function Module to find out detail of open period of Finance (FI)
Hi All,
I have a query that I want to know the existing function module to find out
FI period detail thatis detail of opened period in FI.
Regards,
RishiHi Rishi
Go to transaction SE37 and you can see the list of FM.
Thanks
Ashok
Assign points for useful answer -
Function module to find the path of application server
Hi can any one say me what is the function module to find the path of the application server
Hi ,
What i understand from ur question is that u need path for application server from the presentation layer i.e user screen.
u can achive the path this way
parameter: file type filename-fileintern.
when user presses F4 here, it will show the directories and path in the AL11.
I didnt find any FM which will get the path of Al11.
revrt back if any issues,
Regards,
Naveen
Maybe you are looking for
-
Using iCloud with my iPod touch
I can't update the operating system on my iPod touch so that I can use iCloud. It appears to keep downloading the new version to iTunes on my desktop computer but never seems to transfer to iPod. Can anyone help with that?
-
Issue with hyperion financial reporting studio
hi friends, I am using hyperion 9.3.1 .I am able to open financial management studio as an admin user but when i drag and drop a grid in a report it gives an error stating it is unable to fetch the list of data sources from the database repository.I
-
Has anyone else been getting "Happy Christmas" on their iPhone?
I just looked at my iPhone and it just said Happy Christmas on it? This was not a text message though?? i pressed dismiss at the bottom of the screen and it just went back to the home screen. this is the 2nd time happy christmas has appeared on the p
-
Very high "Control File" IOStat -- Reads: Data = 70G
What could cause the IOStat value for "Control File -- Reads: Data" to be very high relative to the IOStat value "Data File" for example? In looking at one AWR report I see a value of 70G for "Control File -- Reads: Data" while the "Data File -- Read
-
HALP!!! iTunes won't start after 9.1 update
Hi I was prompted to install the iTunes/Quicktime update on March 30th and - without thinking did so. The update seemed to go well with no errors. On April2nd, I went to start iTunes and it refused with Windows indicating files were missing. After he