Tables person assignment to work centers
Hi Folks,
do you know which tables are behind the assignment of logistics work Center to HR work center and personell ID?
Thanks,
Enno
Hi Enno,
Please check Table AFRP0.
1.) You can maintain the Person Responsible for the your machines, if you have dedicated one person for one machine. & you can check the same in table "CRHD-VERAN" (Person Responsible) & "CRHD-ARBPL"(Work Center)
Person Responsible is of 3 characters but in the text of this you can maintain the Personnel number.
2.) you can develop a Z-Report with help of your Abapers (if you are personnel are doing the CO11N transaction i.e. production confirmation)
a) you can input the AFRU-PERNR (Personnel Number) & Picks the AFRU-ARBID (Object ID)
b) Pass AFRU-ARBID (Object ID) in Table "CRHD" & Picks the "CRHD-ARBPL" (Work Center)
c) this way you can link the personnel number with the work center.
Regards,
Krishnendu.
Similar Messages
-
HR assignment for work centers using IR02
Hello everybody,
Need some technical help from all regarding issue mentioned below:
I need to do HR assignments to work centers.
Is there any function module available which does HR assignments to work centers.
There's one which I found : COI2_WORKCENTER_HR_ASSIGNMENT, but I'm not able to understand the parameters we need to pass on to this FM.
Please help me if anybody has used this FM.
Also alternatively if any other FM is available plz. let me know.
Help will be highly appreciated.
Regards,
KavitaHi kavita,
plz check the FM "COI2_PERSON_RANKING".it uses the FM "COI2_WORKCENTER_HR_ASSIGNMENT" inside it..check the same.
Regards,
Nagaraj -
Table name for work centers with production or planned orders
dear gurus,
can you please help me on what table names have the work centers with planned or production orderFor production Order
1.AUFNR ---> AFKO ---> AFKO-PLAF
2.AFKO-PLAF --> AFVC -
> for respective VORNR get AFVC-ARBID
3.AFVC-ARBID --> pass as OBJID into ---> CRHD --->ARBPL (Work Center)
For planned orders
1.PLNUM ---> PLAF ---> PLAF-BEDID
2.PLAF-BEDID -
> KBKO ---> PLAF-PLNNR, PLAF-PLNAL
3.PLAF-PLNNR, PLAF-PLNAL -
> PLPO -
> for corresponding VORNR (Operation number) get ARBID pass as OBJID ---> CRHD --> ARBPL (Work Center).
Regards
soundar
Edited by: Soundar on May 29, 2008 9:18 AM -
Defining CS Work Centers - HR module is not in scope.
Hi Guys,
My client is not using HR module so Technician's personal number assignment to work center is not possible.
So what I have suggested as a work around solution is to create work center with the Technicians Name in the work center description field itself so they know by work center's description which technician is being assigned to a service order.
Say for example Work Center = ZPTech1 = Allan Miller. What do you guy's think of this solution?
Another issue is the client have one service department and this department provides different types of services. For example Inhouse repair, Onsite Service etc.
So they have teams of technicians. One team for Inhouse Repair and another team of technicians for Onsite services. However, there are cases where the technician who belongs to Inhouse repair can also sometimes perform onsite service.
So, since HR module is not in scope and technician's personnel numbers cannot be used to assign to work centers... hence my suggestion was to create work centers as technicians using their names in description field.
However, the problem comes when defining hierarchy.
Say If I create one main work center ZServ = Service Department
Then under ZPServ, if I create two team work centers as Team1 (for Inhouse Repair Team) and Team2 (Onsite Service Team). Then I assign 3 technician work centers viz., TechA, TechB and TechC to team work center Team1 and work centers TechD, TechE and TechF to Team work center Team2 using heirarchy relationship. I think so far it will be fine.
However, say TechA works both in Inhouse repairs and also in Onsite Service. Then I need to assign this technician under both team work centers Team1 and Team2 right? But as far as I know, you cannot have two superior work centers for a particular work center.
So, in this case, what is the best solution?
Instead of creating team workcenters as Team1 and Team2, shall I just create one main work center for Service Department as ZServ then create individual workcenters for each technician? without having a heirarchy structure?
Or say for example if Team1 has cost center 1000 and team2 has cost center 2000, then shall I create two workcenters for the same technician TechA with description as TechA-1000 and TechA-2000. (Then if I have two different workcenters for same technician, with his name and costcenter in the description field then i can assign each workcenter under team1 and team2.
Sorry for the lengthy message... However, I needed to explain the scenario and limitations properly in order to give you a full picture so as to get correct and best suggestions and advice.
Thank you very much for your time and I would really appreciate your inputs.
Best regards,
ARHi Suresh,
Answer to first part of your question is: Yes, we are considering employees as vendors and configuring it under Employees (ZEMP) Vendor Account Group.
As you have suggested about Internal Order for employees, somebody else had suggested me with the same.
But I was not convinced why I should go ahead and define internal order for each employees under the Internal Order Type: Employees.
Now could you help me in understanding as to why Internal Orders for each employee, I mean could you tell me the logic behind this, so that I would be in a position to answer if someone asks me.
If there is anymore information / documentation, could you plz forward the same to my mail id, which is: [email protected]
Thank you for your time in replying.
Regards
Sandhya kiran. -
Person assignment with workforce planning
Dear All,
I plan activity for one day 8 hours & assigned person to activity in CMP2 & distribute work for same day & for same hours,
when i assign same person with diffrent activity with diffrent project with in CMP2 system not showing any message with same person is assigned same day with diffrent project.
How same person can work two project with same time,
Kindly share yours experiance.
Regards
GajjenHi,
I tested with without person assignment in work center, yes you can assign any person to any project if have capacity but when we distribute work in workforce planning by assignment of person with day & time then same person how can assign to other activity ,because his working hours are fixed,if working time is 8.5 hours & person assign for 8 HR to activity then same person should not work to another activity more than 0.5 hrs,system should not allow.
May i know Standard SAP allow it or not?
Regards
Gajjen -
HR posistion updated when person assigned to a work centre.
Hello
in SAP Plant Maintenance (PM), we are assigning persons to work centers.
Some times a strange thing happen when we assign a person to a work center.
The position for the person is updated with a wrong value in HR master data.
We are not given any position in PM, and definitely do not want to update HR master data from PM.
Anyone experienced something like this?
Best regards
Tom SagaHello
I have now tried to do the same in our test system. And for the particular user I get an error message when doing this.
The screen for "Copy Organizational Assigment" pop up.
And SAP try to fill in the Work centre ID as Position.
ut with error message:
Entry in outbound table not found
Message no. E0400
Diagnosis
No partner profile (outbound parameter) could be found using the following key:
PXCCLNT100/LS//HRMD_A///
This refers to the key fields in table EDP13:
RCVPRN Partner number
RCVPRT Partner type
RCVPFC Partner function
MESTYP Logical message
MESTYP Message code
MESCOD Message function
TEST Test indicator
Procedure
Please check the EDI partner profiles.
We do not understand this. And it only happend with this user, and with all work centres we try to add him to.
Best regards
Tom -
How to have Dynamic Columns based on Work centers in CRHD table?
i need to create dynamic internal table......based on the number of entries(work centers ) in CRHD table....this is number of work centers...like how many manufac unit....How to have the work center names at heading and how to fill values at rows...as the number of workcenters may differ dynamic.....how to fill the values...for a dynamic internal table
Hi Meena,
For Dynamic display ,go through it
REPORT yusmm_text1 NO STANDARD PAGE HEADING
LINE-SIZE 199.
T A B L E S
TABLES: MARA,
MAKT,
THEAD.
GLOBAL TYPE-POOLS
TYPE-POOLS : SLIS.
GLOBAL TYPES
TYPES : BEGIN OF TP_FINAL,
MATNR TYPE MARA-MATNR,
BEGRU TYPE MARA-BEGRU,
MTART TYPE MARA-MTART,
MAKTX TYPE MAKT-MAKTX,
SPRAS TYPE MAKT-SPRAS,
LTXT(2000) TYPE C ,
SRNO TYPE N ,
END OF TP_FINAL.
TYPES : BEGIN OF TP_T002,
SPRAS TYPE T002-SPRAS,
LAISO TYPE T002-LAISO,
SRNO TYPE N ,
END OF TP_T002.
TYPES : BEGIN OF TP_MARA_MAKT,
MATNR TYPE MARA-MATNR,
BEGRU TYPE MARA-BEGRU,
MTART TYPE MARA-MTART,
SPRAS TYPE MAKT-SPRAS,
MAKTX TYPE MAKT-MAKTX,
END OF TP_MARA_MAKT.
Types: BEGIN OF tp_matnr,
matnr TYPE mara-matnr,
END OF tp_matnr.
GLOBAL ELEMENTARY VARIABLES
DATA : gv_date TYPE sy-datum.
DATA : gv_repid TYPE sy-repid.
DATA : g_var1(10) TYPE C.
DATA : gv_index TYPE sy-tabix.
DATA: gv_strg TYPE string,
gv_strg1(2000) TYPE C.
DATA : gv_lang TYPE sy-langu.
DATA : g_v(3) TYPE N .
DATA : gv_lines(3) TYPE N .
DATA : gv_var(3) TYPE N .
DATA : gv_var1(3) TYPE N.
DATA: gv_str TYPE STRING.
DATA: gv_str1 TYPE STRING.
DATA : gv_li TYPE I,
gv_lit TYPE I,
gv_lin TYPE I.
DATA: g_var11(3) TYPE N,
gv_li1(3) TYPE N,
g_var2(3) TYPE N.
DATA : gv_i1 TYPE I.
DATA : gv_i TYPE I.
DATA: gl_lenght TYPE I.
GLOBAL STRUCTURES
DATA: T_NEWTABLE TYPE REF TO DATA,
T_NEWLINE TYPE REF TO DATA,
T_FLDCAT1 TYPE SLIS_T_FIELDCAT_ALV,
T_FLDCAT TYPE LVC_T_FCAT,
WA_IT_FLDCAT TYPE LVC_S_FCAT,
WA_IT_FLDCAT1 TYPE SLIS_FIELDCAT_ALV,
WA_COLNO(2) TYPE N,
WA_FLNAME(5) TYPE C,
L_LT TYPE SLIS_LAYOUT_ALV.
GLOBAL INTERNAL TABLES (WITH INCLUDE STRUCTURE)
DATA : IG_MARA_MAKT TYPE STANDARD TABLE OF TP_MARA_MAKT,
WG_MARA_MAKT TYPE TP_MARA_MAKT.
DATA : IG_T002 TYPE STANDARD TABLE OF TP_T002,
WG_T002 TYPE TP_T002.
DATA : IG_FINAL TYPE STANDARD TABLE OF TP_FINAL,
WG_FINAL TYPE TP_FINAL.
data : IG_MATNR TYPE STANDARD TABLE OF TP_MATNR WITH HEADER LINE,
WG_MATNR TYPE TP_MATNR.
DATA:BEGIN OF IG_THEAD OCCURS 0.
INCLUDE STRUCTURE THEAD .
DATA: END OF IG_THEAD.
DATA:BEGIN OF IG_TLINE OCCURS 0.
INCLUDE STRUCTURE TLINE .
DATA:END OF IG_TLINE.
FIELD-SYMBOLS
FIELD-SYMBOLS: <T_DYNTABLE> TYPE STANDARD TABLE,"Dynamic internal
"tablename
<FS_DYNTABLE>, "Field symbol to create work area
<FS_FLDVAL> TYPE ANY. " Field symbol to assign values
COMPULSORY
FIELD-SYMBOLS: <FS_DATA> TYPE REF TO DATA,
<FS_DATA1> TYPE REF TO DATA,
<FS_2> TYPE STANDARD TABLE,
<FS_22> TYPE STANDARD TABLE,
<FS_1>,
<FS_11>,
<F>,
<FA>,
<LWA_LINE_WA>,
<LWA_LINE_WA1>.
------- Create Dyn Table From FC
DATA: LT_DATA TYPE REF TO DATA,
LT_DATA1 TYPE REF TO DATA,
LWA_LINE TYPE REF TO DATA,
LWA_LINE1 TYPE REF TO DATA,
LI_FIELD_CAT TYPE LVC_T_FCAT,
LWA_FIELD_CAT TYPE LVC_S_FCAT.
PARAMETERS & SELECT-OPTIONS
SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS : S_SPRAS FOR MAKT-SPRAS NO INTERVALS DEFAULT 'EN'
OBLIGATORY ,
S_MATNR FOR MARA-MATNR,
S_MTART FOR MARA-MTART.
PARAMETERS: GP_SIZE TYPE I DEFAULT '200'.
SELECTION-SCREEN : END OF BLOCK B1.
INITIALIZATION
INITIALIZATION.
gv_repid = sy-repid.
gv_date = sy-datum.
AT SELECTION-SCREEN
AT SELECTION-SCREEN.
IF GP_SIZE < 0.
MESSAGE E002(00).
ENDIF.
IF GP_SIZE > 50000.
MESSAGE W130(26) WITH TEXT-004.
SET CURSOR FIELD 'gp_size'.
ENDIF.
START-OF-SELECTION
START-OF-SELECTION.
PERFORM FIELDCAT.
PERFORM LAYOUT.
PERFORM DATA_FETCH.
PERFORM READ_DATA_TO_FINAL.
SORT ig_final BY matnr spras.
gv_lin = gv_li.
gv_li = gv_li - 2.
LOOP AT ig_final INTO wg_final.
ASSIGN COMPONENT 1 OF STRUCTURE <LWA_LINE_WA1> TO <FA>.
<FA> = 'Material Number'.
ASSIGN COMPONENT 2 OF STRUCTURE <LWA_LINE_WA1> TO <FA>.
<FA> = 'Authorization Group'.
g_VAR11 = wg_final-srno + 2.
gv_li1 = gv_li1 + 2.
MOVE : g_var11 TO gv_i1.
ASSIGN COMPONENT g_var11 OF STRUCTURE <LWA_LINE_WA1> TO <FA>.
<FA> = 'MatDesc'.
g_var2 = g_var11 + gv_lines.
ASSIGN COMPONENT g_var2 OF STRUCTURE <LWA_LINE_WA1> TO <FA>.
<FA> = 'BasicData'.
APPEND <LWA_LINE_WA1> TO <FS_22>.
EXIT.
ENDLOOP.
LOOP AT ig_final INTO wg_final.
AT NEW matnr.
gv_index = sy-tabix.
ASSIGN COMPONENT 1 OF STRUCTURE <LWA_LINE_WA> TO <F>.
<F> = wg_final-matnr.
ENDAT.
AT NEW MATNR.
GV_INDEX = SY-TABIX.
ASSIGN COMPONENT 1 OF STRUCTURE <LWA_LINE_WA1> TO <FA>.
<FA> = wg_final-matnr.
ENDAT.
ASSIGN COMPONENT 2 OF STRUCTURE <LWA_LINE_WA> TO <F>.
<F> = wg_final-begru.
ASSIGN COMPONENT 2 OF STRUCTURE <LWA_LINE_WA1> TO <FA>.
<FA> = wg_final-begru.
gv_var = wg_final-srno + 2.
gv_li = gv_li + 2.
MOVE : gv_var TO gv_i.
ASSIGN COMPONENT gv_var OF STRUCTURE <LWA_LINE_WA> TO <F>.
<F> = wg_final-maktx.
ASSIGN COMPONENT gv_var OF STRUCTURE <LWA_LINE_WA1> TO <FA>.
<FA> = wg_final-maktx.
gv_var1 = gv_var + gv_lines .
ASSIGN COMPONENT gv_var1 OF STRUCTURE <LWA_LINE_WA> TO <F>.
<F> = wg_final-ltxt.
ASSIGN COMPONENT gv_var1 OF STRUCTURE <LWA_LINE_WA1> TO <FA>.
<FA> = wg_final-ltxt.
AT END OF matnr.
APPEND <LWA_LINE_WA> TO <FS_2>.
CLEAR <LWA_LINE_WA>.
ENDAT.
AT END OF matnr.
APPEND <LWA_LINE_WA1> TO <FS_22>.
CLEAR <LWA_LINE_WA1>.
ENDAT.
ENDLOOP.
PERFORM display..
*& Form data_fetch
text
--> p1 text
<-- p2 text
FORM DATA_FETCH .
SELECT matnr
from mara up to gp_size rows
appending corresponding fields of table ig_matnr
where matnr in s_matnr
and mtart in s_mtart.
loop at ig_matnr.
SELECT MARA~MATNR
MARA~BEGRU
MARA~MTART
MAKT~SPRAS
MAKT~MAKTX FROM MARA INNER JOIN MAKT
ON MARAMATNR = MAKTMATNR
appending corresponding fields of TABLE ig_mara_makt UP TO GP_SIZE
ROWS
WHERE makt~spras IN s_spras
AND mara~matnr IN s_matnr
AND mara~mtart IN s_mtart
AND mara~matnr EQ ig_matnr-matnr.
endloop.
IF sy-subrc = 0.
SORT ig_mara_makt.
ENDIF.
ENDFORM. " data_fetch
*& Form read_data_to_final
text
--> p1 text
<-- p2 text
FORM READ_DATA_TO_FINAL .
LOOP AT ig_mara_makt INTO wg_mara_makt .
wg_final-MATNR = wg_mara_makt-MATNR.
wg_final-BEGRU = wg_mara_makt-BEGRU.
wg_final-MTART = wg_mara_makt-MTART.
wg_final-SPRAS = wg_mara_makt-SPRAS.
wg_final-MAKTX = wg_mara_makt-MAKTX.
READ TABLE ig_t002 INTO wg_t002 WITH KEY spras = wg_final-spras.
IF sy-subrc = 0.
wg_final-srno = wg_t002-srno.
ENDIF.
CLEAR ig_thead[].
ig_thead-TDOBJECT = 'MATERIAL'.
ig_thead-TDNAME = wg_final-matnr.
ig_thead-TDID = 'GRUN'.
ig_thead-TDSPRAS = wg_final-spras.
CALL FUNCTION 'TEXT_READ'
EXPORTING
I_HEADER = IG_THEAD
I_READONLY = 'X'
IMPORTING
E_HEADER = IG_THEAD
TABLES
T_LINES = IG_TLINE[]
EXCEPTIONS
NOTFOUND = 1.
IF sy-subrc EQ 0.
LOOP AT ig_tline.
gv_strg = ig_tline-tdline.
IF gv_strg1 <> ' '.
CONCATENATE gv_strg1 ';' gv_strg INTO gv_strg1.
ELSE.
gv_strg1 = gv_strg.
ENDIF.
ENDLOOP.
wg_final-ltxt = gv_strg1.
APPEND wg_final TO ig_final.
CLEAR wg_final.
gv_strg1 = ' '.
ELSE.
APPEND wg_final TO ig_final.
ENDIF.
ENDLOOP.
ENDFORM. " read_data_to_final
" read_data_to_final
*& Form layout
text
--> p1 text
<-- p2 text
FORM LAYOUT .
CLEAR L_LT.
L_LT-ZEBRA = 'X'.
L_LT-COLWIDTH_OPTIMIZE = 'X'.
L_LT-WINDOW_TITLEBAR = 'MATERIAL DETAILS'.
ENDFORM. " layout
*& Form fieldcat
text
--> p1 text
<-- p2 text
FORM FIELDCAT .
SELECT SPRAS
LAISO FROM t002 INTO CORRESPONDING FIELDS OF TABLE ig_t002
WHERE spras IN s_spras.
DESCRIBE TABLE ig_t002 LINES gv_lines.
LOOP AT ig_t002 INTO wg_t002.
g_v = g_v + 1.
Wg_t002-srno = g_v.
MODIFY ig_t002 FROM wg_t002 TRANSPORTING SRNO.
ENDLOOP.
LOOP AT ig_t002 INTO wg_t002.
CLEAR WA_IT_FLDCAT.
MOVE SY-INDEX TO WA_COLNO.
CONCATENATE 'MD-' wg_t002-LAISO
WA_COLNO
INTO WA_FLNAME.
WA_IT_FLDCAT-FIELDNAME = WA_FLNAME.
WA_IT_FLDCAT-DATATYPE = 'CHAR'.
WA_IT_FLDCAT-SELTEXT = WA_FLNAME.
WA_IT_FLDCAT-INTLEN = 250.
WA_IT_FLDCAT-TABNAME = '<FS_2>'.
APPEND WA_IT_FLDCAT TO T_FLDCAT.
CLEAR wg_t002.
ENDLOOP.
LOOP AT ig_t002 INTO wg_t002.
CLEAR WA_IT_FLDCAT.
MOVE SY-INDEX TO WA_COLNO.
CONCATENATE 'BD-' wg_t002-LAISO
WA_COLNO
INTO WA_FLNAME.
WA_IT_FLDCAT-FIELDNAME = WA_FLNAME.
WA_IT_FLDCAT-DATATYPE = 'CHAR'.
WA_IT_FLDCAT-SELTEXT = WA_FLNAME.
WA_IT_FLDCAT-INTLEN = 250.
WA_IT_FLDCAT-TABNAME = '<FS_2>'.
APPEND WA_IT_FLDCAT TO T_FLDCAT.
CLEAR wg_t002.
ENDLOOP.
MOVE 'MATNR' TO WA_FLNAME.
WA_IT_FLDCAT-FIELDNAME = WA_FLNAME.
WA_IT_FLDCAT-DATATYPE = 'CHAR'.
WA_IT_FLDCAT-SELTEXT = 'Material No'.
WA_IT_FLDCAT-INTLEN = 18.
WA_IT_FLDCAT-TABNAME = '<FS_2>'.
INSERT WA_IT_FLDCAT INTO T_FLDCAT INDEX 1.
MOVE 'BEGRU' TO WA_FLNAME.
WA_IT_FLDCAT-FIELDNAME = WA_FLNAME.
WA_IT_FLDCAT-DATATYPE = 'CHAR'.
WA_IT_FLDCAT-SELTEXT = 'Authorization Group'.
WA_IT_FLDCAT-INTLEN = 4.
WA_IT_FLDCAT-TABNAME = '<FS_2>'.
INSERT WA_IT_FLDCAT INTO T_FLDCAT INDEX 2.
DESCRIBE TABLE T_FLDCAT LINES gv_li.
ASSIGN LT_DATA TO <FS_DATA>.
Creating the Dynamic Internal Table
CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
EXPORTING
IT_FIELDCATALOG = T_FLDCAT " Fieldcatalogue
IMPORTING
EP_TABLE = <FS_DATA> " Dynamic Internal Table
EXCEPTIONS
GENERATE_SUBPOOL_DIR_FULL = 1
OTHERS = 2.
Assign Dyn Table To Field Sumbol
ASSIGN <FS_DATA>->* TO <FS_1>.
Assigning the Internal Table TYPE ANY to Standard internal Table
ASSIGN <FS_1> TO <FS_2>.
Creating a Workarea
CREATE DATA LWA_LINE LIKE LINE OF <FS_2> .
Assigning the Content to the workares as a Pointer
ASSIGN LWA_LINE->* TO <LWA_LINE_WA>.
LOOP AT T_FLDCAT INTO WA_IT_FLDCAT.
WA_IT_FLDCAT1-FIELDNAME = WA_IT_FLDCAT-FIELDNAME.
WA_IT_FLDCAT1-TABNAME = WA_IT_FLDCAT-TABNAME.
WA_IT_FLDCAT1-SELTEXT_L = WA_IT_FLDCAT-SELTEXT.
WA_IT_FLDCAT1-REF_TABNAME = 'MARC'.
APPEND WA_IT_FLDCAT1 TO T_FLDCAT1.
CLEAR : WA_IT_FLDCAT,WA_IT_FLDCAT1.
ENDLOOP.
ASSIGN LT_DATA1 TO <FS_DATA1>.
CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
EXPORTING
IT_FIELDCATALOG = T_FLDCAT " Fieldcatalogue
IMPORTING
EP_TABLE = <FS_DATA1> " Dynamic Internal table
EXCEPTIONS
GENERATE_SUBPOOL_DIR_FULL = 1
OTHERS = 2.
Assign Dyn Table To Field Sumbol
ASSIGN <FS_DATA1>->* TO <FS_11>.
Assigning the Internal Table TYPE ANY to Standard internal Table
ASSIGN <FS_11> TO <FS_22>.
Creating a Workarea
CREATE DATA LWA_LINE1 LIKE LINE OF <FS_22> .
Assigning the Content to the workares as a Pointer
ASSIGN LWA_LINE1->* TO <LWA_LINE_WA1>.
ENDFORM. " fieldcat
*& Form show
text
--> p1 text
<-- p2 text
FORM Display .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = GV_REPID
I_CALLBACK_PF_STATUS_SET = 'PF_STATUS_SET'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
IS_LAYOUT = L_LT
IT_FIELDCAT = T_FLDCAT1[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
I_HTML_HEIGHT_TOP = 0
I_HTML_HEIGHT_END = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
IR_SALV_FULLSCREEN_ADAPTER =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = <FS_2>
EXCEPTIONS
PROGRAM_ERROR = 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.
ENDFORM. " display
FORM PF_STATUS_SET USING RS_EXTAB TYPE SLIS_T_EXTAB.
SET PF-STATUS 'DISPLAY' .
ENDFORM. "PF_STATUS_SET
*& Form Name: user_command *
*& Form Desc: For Handling USER_COMMAND *
FORM USER_COMMAND USING IF_UCOMM TYPE SY-UCOMM
IS_SELFIELD TYPE SLIS_SELFIELD.
CASE IF_UCOMM.
WHEN 'DOWNLOAD'.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = ' '
DIAGNOSE_OBJECT = ' '
TEXT_QUESTION = 'Data download to excel'
TEXT_BUTTON_1 = 'Ja'(001)
ICON_BUTTON_1 = ' '
TEXT_BUTTON_2 = 'Nein'(002)
ICON_BUTTON_2 = ' '
DEFAULT_BUTTON = '1'
DISPLAY_CANCEL_BUTTON = 'X'
USERDEFINED_F1_HELP = ' '
START_COLUMN = 25
START_ROW = 6
POPUP_TYPE =
IMPORTING
ANSWER =
TABLES
PARAMETER =
EXCEPTIONS
TEXT_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 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
FILENAME = 'C:\Material-Text.xls'
FILETYPE = 'ASC'
APPEND = ' '
WRITE_FIELD_SEPARATOR = 'X'
HEADER = '00'
TRUNC_TRAILING_BLANKS = 'X'
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = 'X'
IMPORTING
FILELENGTH = GL_LENGHT
TABLES
DATA_TAB = <FS_22>
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF GL_LENGHT NE 0.
MESSAGE S398(00) WITH 'DATA downloaded to EXCEL'.
ENDIF.
ENDCASE.
ENDFORM. "user_command
Thanks
Ankur SHarma -
Person assigned to a work center
Hi,
We are using work force planning to assign resources to activities. We have some problem with one of the work centres. When we click on the person dropdown box in the personal assignment tab then we would expect to see the individuals that are in the work centre associated with the activity. We can see six persons from project builder and when we checked work center master data we could see only four persons.
When checked thoroughly, the data at work centre master data is picked from HRP1001 and its showing only 4 persons. At the project level, the data is picked from the same table but initially fetches with work centre as input and then capacity ID as input. Finally it combines the data (6 Persons) and show from CJ20n and its different from the work centre data.
is this the standard behavior or we missing something
Regards,
LaxminarsimhaI think you have assigned two person at capacity category level for that WC.
Open your WC in CJR3 --> Click on capacity header icon -->on new screen click on HRMS link button ( check no of person assigned here it should be two )
With Regards
Nitin P. -
Hi all,
Im looking for table which shows the relationship of person assignment to wbs.
when we assign through edit....wbs...Project teamfor WBS.
Is their any report or table.
RegardsHello
The list is available in HRP1001 table. You can retrieve the employee number from there and collect the First name and Last names from PA0002 table.
Regards
Renjith
Chandra - the above has been copied from the message Ahmed has suggested.
Virendra -
I downloaded a ringtone on my phone and i can't find it. I did it 2 times also because I wasn't sure if it worked. When the person assigned to the song called it didn't work
Many ways to eject:
-dragging and dropping the icon for the CD into your trashcan
- Restart the computer and after the chime press and hold down the left mouse button until the disc ejects.
- Press the Eject button on your keyboard.
- Click on the Eject button in the menubar.
- Press COMMAND-E.
- Open the Terminal application in your Appl/Utilities folder. copy & paste the following:
/usr/bin/drutil eject
If this fails then try this:
- Boot the computer into single-user mode (hold down command - s through the boot process.) At the prompt copy & paste:
/usr/bin/drutil eject
Restart the computer enter reboot at the prompt or shutdown
- restart hold down trackpad button -
Assigning work centers to cost center
Hi, In a Z-report we found that one work center is assigned to more than one cost center. Pls advice how to ensure that particular work center is assigned to one cc only? pls advice.
Hi,
At any given point in time, you can assign one work center to one Cost center only..
The situation may so arise that, the Cost center walidity may be limited and we may be forced to change the Cost center afterwards in the work center..
Check with the Table: CRCO
Check the Cost center validity in the T.code: KS03.
Regards,
Siva -
Hello PS-, and hopefully HR-specialists
I have to setup a complex capacity/resource-planning scenario. And I hope I can get some answers from this forum.
As I'm responsible for groups of persons which belong to more than one plant, I have to setup one work center for every plant. As I want to manage every single person of such groups I have to assign the person, setup in a mini-HR-master data, to the according work center. So far so good.
Here my to requests.
1. As I have to manage external resources too, I want to setup them also in the system. So I create a master data for such resources. But they can't be plant specific, as I have to assign them to projects of different plants. How can I setup such a scenario?
1.1 - and if I want to plan them as a work center, how can I make the project controlling? As I have to create a purchase order once we assigned them to a activity. And how does it work once we have them assigned but not created a PO yet? (How would the hour rate be calculated?)
2. Does exist a possibility in SAP to have an overview of all these work centers (for internal persons and every plant; hopefully one WC for external persons) on a person level?
Many thanks for every answer
JimHi Jimson,
Since you have mentioned external resource i assume that the resource is not on the payrolls of your organization. In this case firstly you may have to maintain an HR master for this resource so that you will be able to assign him to work centers etc. in your organization. Once this is done you can then assign this resource to any work center.
So this external resource has always to invoice to one plant?
Not necessary. Depends which plant is utilising his services. I would suggest you to refer Resource Related Billing. There are scenarios in Resource related billing wherein you can use the services of external resources, resources form other companies etc and bill them accordingly.
And how will I be able to post the hours to the project of the external resources? With CAT2?
Yes. If you wish to use timesheet to capture the efforts of the external resources you have to use CAT2. Again for this you need to have certain things in place from the HR perspective. Discuss with your HR consultant regarding this.
All in all i would suggest you to try and use Resource Related Billing to meet this requirement. I recently did a project wherein i used Resource related billing to manage external resources.
Regards,
Gokul -
How can I use capacity splits in Machines "001" using PS work centers ?
Hello Experts
I want to manage capacity splits for machines in PS using work centers.
I create work center CNR1 "Capacity Category 001 <Machine>", maintain the capacity header and maintain the rest of the work center as usual.
If I create a pooled capacity CR11, I can only assign one pooled capacity for a work center. however I added 3 individual capacities in the capacity header.
when I create an internal activity and assign the work center, work, activity type and number of individual capacities, I go to "Personnel Assignment" tab. I find the capacity category "001" Machine, and the fields down there are capacities not persons.
I try to open the possible values for the field "Capacity" and no values found.
Even the pooled capacity I assigned does not appear in F4.
How can I assign multiple capacities to a work center so that I can choose between them in the capacity split tab "Person assignment" in an internal activity in PS???
FYI: everything else in the internal activity is working perfectly fine, even personnel assignment. But we haven't activated personnel availability management in HR module.
Please help
Regards
A.KholyHi Ahmed,
You can achieve this by using creating individual capacity for category type.
Steps:-
1.Go to Cr02 define capacity category 001 .
2.Now double click on capacity category it will open its header details.
3.Now assign individual capacity this will appear in project. as shown
5.In project u can assign same in capacity.
Reward if helpfull.
Thanks
Suraj Prakash -
Materials / work centers associated with routing
Hi,
I need to develop a report on materials and work centers that are associated with a routing. How can I obtain the required information? Could someone please tell me if there is a table that I can pick the data up from using ABAP or query.
Also, are there any standard reports for displaying what materials / work centers are assigned to routing? Thanks.
Regards
Edited by: Khan Awkhan on Nov 23, 2008 8:05 PMHi Ashik,
Thanks for right input. If I had posted this thread I would have given full points to you.....
What kind of user are you Khan.... You should give points to Ahok and close the thread that will increase one good no. is resolved threads of SDN....... Else bring your problems that will be answered by PP experts.... I'm damn sure about it.....
Anyways thanks to you too as you at least posted this thread so that I got solution from it though it is indirect,,,,,,
Best Regards,
Abu Arbab -
Hi All,
I am having few queries with the above subject.
My customer is asking that he will assign persons(from HR) to the work centers. and based on the assignments done he want some functionality like
1. At the time of operation confirmation through CO11N in the person field only assigned persons(in Work center) should be available
2. At the time of capacity availability check system should check the person attached to work center only. e. g. suppose two persons for 8 hrs are assigned to work center then if order need 18 labor hours, in this case system should tell that capacity is not available. and then if third person added to Work center master then it will tell capacity is available.
Now my question is :
Whether above requirements are possible? if yes then please please tell me how to do?\
Millions of thanks in advance.Hi Jigar B patel,
Well Work center is the main integration part for both PP and HR OK.
As your requirement is to maintain the responsible person for the work center follow the path:
1) SPRO -
> PRODUCTION -
> BASIC DATA -
> WORK CENTER -
> GENERAL DATA -
> DETERMINE PERSON
RESPONSIBLE.
2) GO TO THE PARTICULAR WORK CENTER YOU ARE USING THROUGH T-CODE CR02 OR CR03 OK.
THEN GO TO THE TAB CAPACITIES TAB DOWN THERE ARE PUSH BUTTONS THE VERY FIRST ONE IS CAPACITY BUTTON
PRESS IT -
> YOU WILL GO TO CAPACITY HEADER SCREEN -
> ON THE TOP YOU CAN FIND PUSH BUTTON CALLED
AVAILABLE CAPACITY PROFILE -
> ON THE TOP OF THE YOU CAN SEE A GRAPHIC PRESS IT THERE YOU CAN GET AN
IDEA OK.
I hope it helps you.
Regards,
Madhu.G
Maybe you are looking for
-
Is it possible to retrieve the data from maintainance view?
Hi experts, Am facing one problem. Is it possible to retrieve the data from Maintainance View ,If yes how? IF it is not possible then Y? While am trying to retrieve data from maintainance view it's showing message like "it is not a database view or t
-
Hi All, Im following this help doc to build an application to consume a webservice. http://help.sap.com/saphelp_nw04/helpdata/en/81/12703e5da3e946e10000000a114084/frameset.htm What I want to understand is the following : In point no 7. What configura
-
Iphone 4s not charging or recognized by itunes
HI, I have a Iphone 4s Last week in noticed my ringer is sounding different and the ringer volume is on low and will not go up + or down -.. i wanted to do a back up and factory reset but itune did not recognized it. so i just did a reset on the phon
-
What happens to versions data when files are deleted ?
When working on a document with an application using autosave, I understand modifications are regularly saved together with the actual state of the file. When such file is dulicated, history and the different versions are not duplicated. My question
-
Does anyone know how I can solve this. My cat managed to move iphoto tab to the middle of the screen and now I cannot open it and get this message. You cannot open the application iphoto because it may be damaged or incomplete Any help appreciated