Function Module to get a work center's capacity requirements (load) within a given period
Hi all experts,
Currently I’m doing a capacity summary report similar to CM01, but with a summarized capacity availability and loading for a period.
Selection Parameters: Work center range from and to, Period from and to
List Format: Work Center, Avail Capacity, Loaded Capacity, Free Capacity, Load %
I have found a standard function module (FM) to get work center's available capacity for a period, but still facing the challenge to find a FM to get a work center’s capacity requirements (load) in a period.
I have read through all the related threads from the web, and tested the recommended FMs, but still cannot get a right result.
Please help to provide some leads for a FM or the logic.
Best Regards
Philip
Hello Philip
The following function modules should be useful:
- CY_PRIMARY_SELECTION - Function module for selection of orders for the work center
- CY_SECONDARY_SELECTION - Check for additional criteria
- CR_CAPACITY_AVAILABLE_PERIODS - Reads the available capacity from work center
- HR_PERSON_READ_TIME_INFO - Reads the available capacity from person (modification)
- CY_GET_PART_CAPACITY - used only for the first period to read backlog
- CY_LOAD_DISTRIBUTION - Distribution key
Please observe that these are simple function modules, not BAPIs, That means, they were developed to be used on the SAP internal programs and they are not supported by SAP when used in custom programs.
BR
Caetano
Similar Messages
-
Function module to get the month name when start date and end date given
Hey Experts,
I am creating a employee bonus report. In this report each and every employee's month wise working days have to be calculated and displayed in the report. I need to find a function module which helps me split the given dates into that particular month. Please help me with the same.
Regards,
G. ShankarHi Shankar,
I think there are two Function Modules.
First One is 'HR_RU_MONTH_NAME_IN_GENITIVE' in this u need to pass month number and for that u have extract month number from date.
And Second One is 'ISP_GET_MONTH_NAME' in this u need to pass date or month number, it directly accepts date.
Check this two and let me know.
Cheers,
Parth Parikh -
ABAP - Function module to get the number of working days between 2 days
Hi gentlemen,
I have been asked to produce a report that gives the number of working days between 2 days, based on a calendar.
I didn't find anything...
Has any of you already written a function module to get this ?
A great thanks in advance.
Jacques LagrifHi ,
you can try this ,
when you require the number of working days between D1 and D2
Total No of Days will be
D2 - D1
No of holidays between D1 and D2 , use the FM HOLIDAY_GET
Pass the From date , to date , and the factory calendar to get the of Holidays
Total no of days - Number of Holidays will your Working days
Regards,
Sathya -
Function module for getting teh last working day of a month.
Hi GURUS,
this is criteria,please help me
if V_T001B- FRYE1 < month entered in selection screen
Then throw the error message
Else
Find the previous period and its last working day from the function module
(i..e Assume entered date as June 2 2009 then
Period 6 -1 = 5.
Pass the month 05 to function module then
Find last working day.
Keep it in a variable (V_LAST_PRD_WRKDAY)
Proceed further.
thanks in advance,
RajeevHi Rajeev,
You can use Function Module LAST_DAY_IN_PERIOD_GET.
Ex:
CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'
EXPORTING
i_gjahr = p_gjahr
i_periv = lwa_t009b-periv
i_poper = lwa_t009b-poper
IMPORTING
e_date = s_audat-high.
Regards,
Ravi K -
Function module to get the details (WTGBTR) from table COEP
Hi all,
I have to select the data from COEP table based on OBJNR, KSTAR and KOKRS.I want WTGBTR from COEP Table.
Right now Iam using select query.But i want to use function module.
Can any one please tell me is there any function module to get WTGBTR from COEP table.
Thanks.This'll work:
SELECT objnr bukrs wtgbtr
INTO CORRESPONDING FIELDS OF TABLE gt_coep
FROM coep
WHERE lednr = '00' "<========
and kokrs = '1000'
AND kstar IN ('0000810001' , '0000830001')
AND objnr IN s_objnr
AND bukrs IN s_bukrs.
Rob -
Any function module for getting fiscal year week numbers
can any one provide me function module for getting fiscal year week numbers ? if no function module please let me know work around.
Thanks!
Lakshmikandhhi,
Use FM <b>'DATE_GET_WEEK'</b>...
parameter D1 LIKE SCAL-DATE.
Data w like scal-week.
CALL FUNCTION <b>'DATE_GET_WEEK'</b>
EXPORTING
date = D1
IMPORTING
WEEK = W
EXCEPTIONS
DATE_INVALID = 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.
write W+4(2).
Regards,
Santosh -
Function Module to get the TIMESTAMP
Hi,
Is there any function module to get the TIMESTAMP as Outout , if i give input Time and Date.
Or,
If I go for the concatenate statement.. Do I need to concate the commas in to the target field?
Because,
I am not getting the proper result with this concatenate statement where I concatenated the YYYYMMDDHHMMSS in to the DECIMAL 15 Variable.
Thanks,
Naveen Inuganti.Hi use
IB_CONVERT_INTO_TIMESTAMP' or IB_CONVERT_FROM_TIMESTAMP'
Example:
* Declaring the work variables.......................
DATA :
timestamp like TZONREF-TSTAMPS,
time like sy-uzeit,
date like sy-datum.
* The following function module is used to convert the
* time and date into GMT timestamp
CALL FUNCTION 'IB_CONVERT_INTO_TIMESTAMP'
EXPORTING
i_datlo = sy-datum
i_timlo = sy-uzeit
I_TZONE = 'INDIA'
IMPORTING
E_TIMESTAMP = timestamp.
* The following function module is used to convert the
* above obtained timestamp to PST time zone date and time.
CALL FUNCTION 'IB_CONVERT_FROM_TIMESTAMP'
EXPORTING
i_timestamp = timestamp
I_TZONE = 'PST'
IMPORTING
E_DATLO = date
E_TIMLO = time.
write :/ 'Date and Time at PST zone is ',date, time. -
Function module to get the difference of dates ..
Hi ,
Can somebody pls help me with the function module to get the difference between two dates?
I need to find the difference value and delete records if >1.
Thanks in advance.
Regds,
Leeza.Leeza,
When I tested the FM in my Program, it is <b>working</b>!!!!!
Note that the Two Input Dates are to be in the format of <b>DATS</b> type (Eg: <b>vimimv-dmibeg</b>).
U can want the Day which u have specified in the parameter I_DATUM_BIS (eg: 20050101) to be included for
the calculation , then put X in the parameter I_KZ_INCL_BIS.
Sample Code :
report zkam01.
data:
<b>sav_nlaufz like rf60v-nlaufz,
date1 type vimimv-dmibeg,
date2 type vimimv-dmiend.</b>
date1 = '20050101'.
date2 = '20051001'.
call function 'MONTHS_BETWEEN_TWO_DATES'
exporting
i_datum_von = date1
i_datum_bis = date2
i_kz_incl_bis = 'X'
importing
e_monate = sav_nlaufz.
write:
date1,
/ date2,
/ sav_nlaufz.
Please allot points if the problem is solved.
Thanks
Kam
Message was edited by: Kam -
Function module for getting Vendor Address details
Hi,
Im new to this group,and new to ABAP
plz hep me out by solving ABAP Query...
i want to generate a report for getting Vendor Details
like Vendor address,Ph num and Email
input fields are Company code,country key and Account Group.
im Using Smart Forms for this..
but im not getting the Exact Function module to get All Required Details..
regards
Smithathanks for ur quick reply...
SELECT SINGLE LIFNR
FROM LFB1
INTO V_LIFNR
WHERE BUKRS EQ V_BUKRS.
CALL FUNCTION 'VENDOR_READ'
EXPORTING
i_bukrs = V_BUKRS
i_lifnr = V_LIFNR
EXCEPTIONS
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.
this is the code i have written...
but my problem is there no table in the Function module....
for Example...
CALL FUNCTION 'QPAX_PLMKB_READ_FROM_PLKO'
EXPORTING
i_plnty = 'Q'
i_plnnr = V_PLNNR
I_PLNAL = V_PLNAL
i_sttag = V_DATUV
TABLES
T_PLMKB_TAB = IT_TAB
i want the function modules with tables and proper input... -
Function module for getting the open qty
HI experts,
I have a PO quantity(EKPO_MENGE).against same PO and item item(EBELN and EBELP) if Goods receipt has happened (MSEG_ERFMG) then i need to calculate the open qty.and also by netting the open quantity if multiple GRs has done against the same PO and item.
Can you suggest any function module to get this open PO quantity.Hello,
Hope this link can help you.
[Po Open Quantity;
Thanks
Jayant -
Function Module to get the Screen
Hello All,
Can anybody provide me a Function Module to get the Screen by giving Program Name and Screen Number.
Thanks,Hello
check FM RS_IMPORT_DYNPRO
CALL FUNCTION 'RS_IMPORT_DYNPRO'
EXPORTING
dylang = pmlang
dyname = programname
dynumb = screen
IMPORTING
header = header
TABLES
ftab = ifields
pltab = iflowlogic.
or you have to create join b/w table reposrc and tadir .
Thanks
Anirudh -
Function module to get pernt by passinf objid and otype
Hi,
Help me to find any function module to get pernr by using objid and otype.or table name from which we can get pernr by passing objid and otype.
thanks,
satish.You are talking about on the OM side and obtain the perner via object P?
You can through a few method. One is using evaluation path. There is a function module called HR_STRUC_GET which allow you to pass evaluation path to get the result.
Using that, you could create a simple evaluation path from position (object s) to person (object p). The object ID of object P is your pernr.
Unless you have central person functionality, that might no longer be the case. -
Function module to get table description
Is there any function module to get table description on passing table name
Hi,
We need to use : 'G_RW_TABLE_DESCRIPTION_GET' function module.
we pass the table name and the language.
call function 'G_RW_TABLE_DESCRIPTION_GET'
exporting
rw_table = p_table
langu = sy-langu
importing
tab_text = l_tabtext
exceptions
others = 1.
thanx. -
Table or Function module to get Internal order planning and Cost element pl
Dear All,
Table or Function module to get Internal order planning and Cost element planning.
Internal order planning from T-code KO13.
Thanks in advance.
Regards,
Ravi
Edited by: Ravi Chandra on Sep 13, 2011 8:08 AMBPEJ, BPEG, BPEP
-
Function Module to get pernr number based on first name and last name
Hi All,
What is the Function Module to get pernr number based on first name and last name.
Could you please help me.
T@R.
Vidyahi Vidya,
you can get perner from PA0002 based on firs name and last name.
use select query and get perner.
Maybe you are looking for
-
New Image Size and Resolution in CC
Hi there. Ok, maybe i'm missing something, but how do i reduce the ppi's of a given image in the Photoshop CC? Changing it in the image size, in the Resolution field, it acomplish nothing. It logs an entry in the History panel, but nothing changes in
-
Asset Legacy data transfer reconciliation with GL
We have recently merged a deactivated company code with our operating company and transferred all Finance processes, open items,master data etc. We transferred assets using Legacy Data Transfer AB91 (we did not use intercompany asset transfer ABT1N).
-
Sync encountered an error while syncing: Unknown error.
Bookmarks vanished on multiple computers. Error message on all platforms: Sync encountered an error while syncing: Unknown error. Android device seems unaffected. Attempts to re-sync good data from android device have no effect. I filed a bug report
-
Hi everyone, I have a button inside a movie clip. The link available on this button should go to a different scene available on the main timeline. Using the target path feature available on the Action Panel, the following piece of code was generated:
-
Create Object Link Field Mandatory
Hi, I want to create Object Links Field mandatory for some document type in CV01N. so user can not upload file without linking file to any Object Links (WBS / Network Activity). If this possible kindly let me know the steps. Regards