Function module for getting periods for date range
Hi,
Can anybody tell me the function module which will return the periods along with the year, when we give a date range.
e.g
01011999 to 120112000
so it shoud return peroids between these date with year. Its possible thru programatically, but i m checking if there is any FM, so i can use FM.
Thanks,
Hi,
You can use function module which works exactly what you are expecting FIMA_DAYS_AND_MONTHS_AND_YEARS.
please reward points to useful answers.
Thanks,
Sriram Ponna.
Similar Messages
-
Function module to get PRT for the operation in Maintenance Order
Hi,
Please tell me the function module to get PRT document for the all operation in Maintenance Order? and also tell me the FM to get all details of those PRT Docs so that I can Print those documents.
Thanks.Hi,
Please tell me the function module to get PRT document for the all operation in Maintenance Order in TCode IW31/32/33? and also tell me the Function Module to get all details of those PRT Documents so that I can take Print out of those documents.
Thanks,
Jay. -
Function module to get PPM for given product and/or location
Hi,
I want to check whether any PPM is existing for given product, location.which function module i can use for the same.There is a BAPI that might help - BAPI_PPMSRVAPS_GETLIST which has product and location selection criteria.
Regards
Laurence -
Reg function module to get periods.
Hi,
can any one help me in giving the function module to get the number of months available in between the start date and end date
Regards.
venkatHi,
Use the below function modules.
HR_ECM_GET_NUMBER_OF_MONTHS
HR_GBSXP_GET_MONTHS
For the function module HR_GBSXP_GET_MONTHS Pass 'M'
for MODIFY_INTERVAL. -
BAPI or Function Module to get MSEG table data based on PO Number (EBELN)
Hi
1. Is there any BAPI / Function Module to get PO details based on Plant and PO date?
2. Is there any BAPI / Function Module to get Material document details(MSEG data) based on PO number?
Thanks
NarendraHi,
check the Bapis Givem below
BAPI_PO_GETITEMS
http://abap.wikiprog.com/wiki/BAPI_PO_GETDETAIL1
you will get the detail.
Regards -
Is there a Function module to get customer hierarchy data?
Howdy,
I'm writing a report where the user can, on the selection screen, enter a customer number or a hierarchy node and then the program has to get all the higher level nodes and and lower level nodes for the selected Sales area.
eg. for the following hierarchy:
A
->B
--|-> D
--|-> E
-> C
---|-> F
---|-> G
if node b was selected it would pull back:
KUNNR HKUNNR
A blank
B A
C A
D B
E B
F C
G C
Anyone know if there is a Function module that can do this?
ThanksHi Victoria,
even i was using the same FM "RSNDI_SHIE_STRUCTURE_GET3"
my code goes like this...
i am passing hierarchy name and node name...this is for cost element hierarchy.
please check the code and tell if i am missing anything.
o/p i am getting is all 0's.
report ztest5.
tables : ZREPCODMAP.
data: itab type standard table of ZREPCODMAP with header line.
TYPES: BEGIN OF STRUC,
RESULT type RSSH_S_NODEBYNAMEWOL,
ZREPCODMAP-REPDSELM,
END OF STRUC.
DATA: itab1 type standard table of struc with header line.
data: w_hiesel like RSNDI_S_HIESEL.
w_hiesel = '1000KES'.
*data: w_nodebyname type RSNDI_T_NODENM.
data: tab type standard table of RSNDI_S_HTAB with header line.
data: lsubrc type SY-SUBRC.
select * from ZREPCODMAP into table itab where PROFIT_CTR <> ' '.
loop at itab.
concatenate itab-CO_AREA itab-REPDSELM INTO itab1-RESULT.
*write: itab1.
break-point.
CALL FUNCTION 'RSNDI_SHIE_STRUCTURE_GET3'
EXPORTING
I_S_HIEKEY =
i_s_hiesel = w_hiesel
i_s_subtreesel = itab1-result
I_T_NODENAME =
I_NO_NODENM_TABLE = w_flag
IMPORTING
E_S_HIEDIR =
e_subrc = lsubrc
TABLES
E_T_HIEDIRT =
e_t_hierstruc = tab.
E_T_MHIERNODE =
E_T_THIERNODE =
E_T_HIERINTVL =
E_T_NODENAMES = tab.
E_T_NODEATTR =
E_T_LEVEL =
E_T_MESSAGE =
write: tab.
*write: lsubrc.
endloop.
Thanks & Regards,
Vijaya -
Function module to get the same date of the previous month
Hi
Can anybody tell me how to get the
same date of the previous month.
example if i am entering date as 30 may 2007
i want the date as 30 april 2007CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
EXPORTING
date = pa_end
days = '00'
months = '01'
signum = '-'
years = '00'
IMPORTING
calc_date = pa_end.
ENDIF.
nd try below FMs as well...
CCM_GO_BACK_MONTHS
HR_PT_ADD_MONTH_TO_DATE
RP_CALC_DATE_IN_INTERVAL
Hope it will solve your problem...
Reward points if useful..
Thanks & Regards
ilesh 24x7 -
Function Module to get Last date of previous year
Is there any function module to get the Last date of the previous year. e.g, if i give date as 03/02/2009 the output should be 31/12/2008.
pls use below 2 FM's
CALL FUNCTION 'MONTH_PLUS_DETERMINE'
EXPORTING
months = -1
olddate = curent_date
IMPORTING
newdate = w_prevdate.
CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
EXPORTING
day_in = w_prevdate
IMPORTING
last_day_of_month = w_lastdayprevmonth
EXCEPTIONS
day_in_no_date = 1
OTHERS = 2. -
Function Module to get BEGIN and END date of a month?
Hello everybody,
Is there any function module to get BEGIN and END date of a month
GIVEN EITHER THE CURRENT SYSTEM DATE or MONTH?
Regards,
Sanghamitra.A.hi
CALL FUNCTION 'PA03_PERIODDATES_GET'
EXPORTING
f_abkrs = p_abkrs1
IMPORTING
f_permo = wf_permo
f_current_begda = wf_begda
f_current_endda = wf_endda
CHANGING
f_current_period = wf_pabrp
f_current_year = wf_pabrj
EXCEPTIONS
pcr_does_not_exist = 1
abkrs_does_not_exist = 2
period_does_not_exist = 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.
this is the function module to get the first date and last date of a particular month
if u have any doubts ask
regads
karthik
reward points if useful -
Function module to get Pricing conditions of billing document
Hi All,
Please help me getting the pricing condition values for a billing document. I got values from KONV table against perticular Condition type. but i need to get the values against step number maintained in Conditions for my billing item. is there any function module to get all condition data maintained in document with totals and discounts aswell.
Please help me. if required i will give tou full details what i required.
Kumar.Hi Kumar,
Please check below mentioned Function Module for details:
RV_PRICE_PRINT_GET_BUFFER
RV_PRICE_PRINT_GET_MODE
RV_PRICE_PRINT_HEAD (Header)
RV_PRICE_PRINT_HEAD_BUFFER
RV_PRICE_PRINT_ITEM (Item)
RV_PRICE_PRINT_ITEM_BUFFER
RV_PRICE_PRINT_REFRESH
Regards,
Tutun -
Function Module to get Recipes
Please let me know if there is any Function Module to get Recipes for a given product.
Thanks in advance.hi,
Check
BAPI_CONTROL_RECIPE_GET_LIST Read control recipe list
BAPI_CONTROL_RECIPE_REQUEST Request and transfer control recipes
Regards,
Santosh -
Function module to get admin within personnel area
Hi,
are there any function module to get admin for certain personnel area?
i want to used it in workflow,
to make rule agents for employee within personnel number "A", this workflow will go to admin for personnel area "A"
thanksOK, here's the case.
in our company, we assign people to be the administrator.
each personnel area has administrator.
for example
- PERNER 34010-34050 are in personnel area 4700, with the administrator is user ABC
- PERNER 34051-34100 are in personnel area 4800, with the administrator is user EFG
so, when employee with personnel number 34010 create travel request, i want the workflow to send notification to admin/user ABC to either approve or reject the request.
how to do this?
thanks
Edited by: nzworld on Aug 10, 2010 4:30 AM -
Functional module for Getting Material classification data.
Please tell me Functional module for Getting Material classification data like class type , class, characteristics and characteristics values for material.
Dear,
FM:
CLAF_CLASSIFICATION_OF_OBJECTS
Table KLAH Class Header Data
- KSML Characteristics of a Class
Regards,
R.Brahmankar -
Function module to get the BOM details for a material-plant combination
hi
Is there any function module to get the BOM details such as
BOM Usage -STLAN
Alternative BOM -STLAL
Items -POSNR
Required Quantity-EMENG
Resulting Quantity-MENGE
Unit of measure -BMEIN
Base unit of measure-MEINS
for a given material-plant combination
if so please suggest me some FMs.................
Awaiting for ur reply..............try the below fm it may be useful for you
DATA : BEGIN OF I_BOM OCCURS 0.
INCLUDE STRUCTURE STPOX.
DATA : END OF I_BOM.
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
CAPID = 'PP01'
DATUV = SY-DATUM
MEHRS = 'X'
MTNRV = P_MATNR
WERKS = P_WERKS
TABLES
STB = I_BOM
EXCEPTIONS
ALT_NOT_FOUND = 1
CALL_INVALID = 2
MATERIAL_NOT_FOUND = 3
MISSING_AUTHORIZATION = 4
NO_BOM_FOUND = 5
NO_PLANT_DATA = 6
NO_SUITABLE_BOM_FOUND = 7
CONVERSION_ERROR = 8
OTHERS = 9.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
just befor use it check your application area.for my case it is PP01. you can find it in CS12 when you are exploding the bom the value you are giving in BOM application that is the value for CAPID.
Just go to se37 and checkout the fm it has lot of options here I am using the minimum things.
regards
shiba dutta -
Function Module/Document to change Reversal date for FI document.
Can anyone please provide me with the Function Module/Document to change Reversal date for FI document.
Hi Vikram,
Normally, you post a reversing document in the same period you posted the original document. The period of the original document must be open to post a reversing document. If the period is not open, you can overwrite the posting date field with a date in an open period, such as the current period.
Regards,
Manoj.
Maybe you are looking for
-
Creating an xml document from filenames of selected files
Hey guys, I am totally new to automator and applescript so please be kind! I have an xml/flash image portfolio website which has image galleries. Each gallery has an xml document which specifies a thumbnail and full size photo to be displayed in the
-
Is it feasible to transfer the entire Music library to either iDisk or, say, Dropbox? I've just ordered one of the new 11-in MB Airs and, because this is the computer I will have with me when travelling, I wish to use it for iPhone synchronisation. I
-
Macbook pro late 2008 graphics
Does the Macbook Pro late 2008 automatically switch to the Nividia 9600m( high performance) graphics chip when you plug in an external display? I thinking about buying a Macbook pro that the display freezes on startup and I think it might be the disp
-
How to optimize uptake of uploaded corpora?
When we upload corpora to MS Hub, segments are extracted, aligned, and filtered. We call "uptake" the proportion of segments that are used in the end, over the initial number of segments uploaded. In our experience, only about 70-75 % of segments a
-
Hi All, Please Let me know how to print ARE-1 document, Let me know what are the settings required Immediate Response will be Appreciated Regards, Abid.