Cost Center Master Data for HR
Function: K_HR_COSTCENTER_GETDETAIL
2010년 5월 26일 수요일
2010년 5월 19일 수요일
Infotype Sort Order
https://forums.sdn.sap.com/thread.jspa?threadID=1326336
==============================================================
My boss has saved my ass - she's sorted it.
The way to solve this problem is as follows:-
1) Using transaction SE80 Copy screen 3000 of module pool MP007100 and make it screen 3008.
2) Next go to the IMG section
Personnel Management ---> Personnel Administration ---> Customizing User Interfaces --->
Change Screen Modifications.
Press the "Position" button and enter "MP007100" in the module and green tick.
If an entry for screen 3000 for MP007100 doesn't exist you may need to create it but make sure for that entry in the ALternative Screen you enter 3008.
This basically tells the system to use screen 3008 rather than the default 3000 screen supplied by SAP for MP007100.
3) Next a new value range entry was created for domain SRTPS - Accessed via table T582A using SE12 or using SE12 select the Domain radio button and enter in SRTPS.
Fix Value Short Description
======= =============
4 In desc. order by 'To' data, in asc. order by subtype
4) Finally the program FP50PE00 is modified as follows:-
FORM GET_NEXT_INFOTYP USING GNT_KEY GNT_NUMBER GNT_PS
...original code
CASE SIN-OPTION.
WHEN SPACE.
SORT PSINDEX BY PERNR SUBTY OBJPS SEQNR SPRPS ASCENDING
BEGDA DESCENDING ENDDA DESCENDING.
WHEN '1'.
SORT PSINDEX BY BEGDA DESCENDING
PERNR SUBTY OBJPS SEQNR ASCENDING.
WHEN '2'.
SORT PSINDEX.
WHEN '3'. "QNUK073087
SORT PSINDEX BY BEGDA ASCENDING "QNUK073087
PERNR SUBTY OBJPS SPRPS SEQNR ASCENDING. " -"-
*{ INSERT UDVK902820 1
* SL 11/05/09: this is an interruption to the infotype display control
* determined by T582A. Going to add a new sort
WHEN '4'.
SORT PSINDEX BY ENDDA DESCENDING
PERNR SUBTY OBJPS SEQNR ASCENDING.
*} INSERT
ENDCASE.
* ... original code
ENDFORM.
Similar changes are also done to
FORM SELECT_INFOTYP USING SIN_PERNR SIN_INFTY SIN_SUBTY SIN_OBJID
SIN_BEGDA SIN_ENDDA
SIN_OPTION SIN_COUNT.
FORM SELECT_INFOTYPE USING SEI_PERNR SEI_INFTY SEI_SUBTY SEI_OBJID
SEI_BEGDA SEI_ENDDA
SEI_OPERA SEI_OPTION
SEI_COUNT.
==============================================================
My boss has saved my ass - she's sorted it.
The way to solve this problem is as follows:-
1) Using transaction SE80 Copy screen 3000 of module pool MP007100 and make it screen 3008.
2) Next go to the IMG section
Personnel Management ---> Personnel Administration ---> Customizing User Interfaces --->
Change Screen Modifications.
Press the "Position" button and enter "MP007100" in the module and green tick.
If an entry for screen 3000 for MP007100 doesn't exist you may need to create it but make sure for that entry in the ALternative Screen you enter 3008.
This basically tells the system to use screen 3008 rather than the default 3000 screen supplied by SAP for MP007100.
3) Next a new value range entry was created for domain SRTPS - Accessed via table T582A using SE12 or using SE12 select the Domain radio button and enter in SRTPS.
Fix Value Short Description
======= =============
4 In desc. order by 'To' data, in asc. order by subtype
4) Finally the program FP50PE00 is modified as follows:-
FORM GET_NEXT_INFOTYP USING GNT_KEY GNT_NUMBER GNT_PS
...original code
CASE SIN-OPTION.
WHEN SPACE.
SORT PSINDEX BY PERNR SUBTY OBJPS SEQNR SPRPS ASCENDING
BEGDA DESCENDING ENDDA DESCENDING.
WHEN '1'.
SORT PSINDEX BY BEGDA DESCENDING
PERNR SUBTY OBJPS SEQNR ASCENDING.
WHEN '2'.
SORT PSINDEX.
WHEN '3'. "QNUK073087
SORT PSINDEX BY BEGDA ASCENDING "QNUK073087
PERNR SUBTY OBJPS SPRPS SEQNR ASCENDING. " -"-
*{ INSERT UDVK902820 1
* SL 11/05/09: this is an interruption to the infotype display control
* determined by T582A. Going to add a new sort
WHEN '4'.
SORT PSINDEX BY ENDDA DESCENDING
PERNR SUBTY OBJPS SEQNR ASCENDING.
*} INSERT
ENDCASE.
* ... original code
ENDFORM.
Similar changes are also done to
FORM SELECT_INFOTYP USING SIN_PERNR SIN_INFTY SIN_SUBTY SIN_OBJID
SIN_BEGDA SIN_ENDDA
SIN_OPTION SIN_COUNT.
FORM SELECT_INFOTYPE USING SEI_PERNR SEI_INFTY SEI_SUBTY SEI_OBJID
SEI_BEGDA SEI_ENDDA
SEI_OPERA SEI_OPTION
SEI_COUNT.
2010년 5월 6일 목요일
CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
http://forums.sdn.sap.com/thread.jspa?messageID=8457849#8457849
The CONTENT_BIN parameter is the binary PDF data.
I have something like the code below. The GS_JOB_OUTPUT_INFO-OTFDATA comes from the SmartForm function module.
DATA: ls_otf TYPE itcoo,
ls_pdf TYPE solisti1.
* convert OTF data to PDF
LOOP AT gs_job_output_info-otfdata INTO ls_otf.
CONCATENATE ls_otf-tdprintcom ls_otf-tdprintpar
INTO ls_pdf.
APPEND ls_pdf TO lt_content_txt.
ENDLOOP.
CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
EXPORTING
format_src = 'OTF'
format_dst = 'PDF'
CHANGING
transfer_bin = lv_transfer_bin
content_txt = lt_content_txt
content_bin = lt_content_bin
objhead = lt_objhead
len = lv_len
EXCEPTIONS
err_conv_failed = 1
OTHERS = 2.
=====================================================
Re: Convert Sapscript to PDF
Posted: Nov 16, 2005 4:24 AM in response to: Laura Portal Reply
Hi,
Are you sure that you used those things which I mentioned?
* Setting the options
w_options-tdcopies = 1 ."Number of copies
w_options-tdnoprev = c_x."No print preview
w_options-tdgetotf = c_x."Return of OTF table
w_options-tddest = c_locl."Spool: Output device
* Opening the form
CALL FUNCTION 'OPEN_FORM'
EXPORTING
form = c_form
device = c_printer
language = sy-langu
OPTIONS = w_options
IMPORTING
RESULT = w_res.
=====================================================
Re: Convert Sapscript to PDF
Posted: Nov 15, 2005 1:04 PM in response to: Laura Portal Reply
Have a look at these FM also
CONVERT_OTFSPOOLJOB_2_PDF ==== converts a OTF spool to PDF (i.e. Sapscript document)
SX_OBJECT_CONVERT_OTF_PDF ==== Conversion From OTF to PDF (SAPScript conversion)
The CONTENT_BIN parameter is the binary PDF data.
I have something like the code below. The GS_JOB_OUTPUT_INFO-OTFDATA comes from the SmartForm function module.
DATA: ls_otf TYPE itcoo,
ls_pdf TYPE solisti1.
* convert OTF data to PDF
LOOP AT gs_job_output_info-otfdata INTO ls_otf.
CONCATENATE ls_otf-tdprintcom ls_otf-tdprintpar
INTO ls_pdf.
APPEND ls_pdf TO lt_content_txt.
ENDLOOP.
CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
EXPORTING
format_src = 'OTF'
format_dst = 'PDF'
CHANGING
transfer_bin = lv_transfer_bin
content_txt = lt_content_txt
content_bin = lt_content_bin
objhead = lt_objhead
len = lv_len
EXCEPTIONS
err_conv_failed = 1
OTHERS = 2.
=====================================================
Re: Convert Sapscript to PDF
Posted: Nov 16, 2005 4:24 AM in response to: Laura Portal Reply
Hi,
Are you sure that you used those things which I mentioned?
* Setting the options
w_options-tdcopies = 1 ."Number of copies
w_options-tdnoprev = c_x."No print preview
w_options-tdgetotf = c_x."Return of OTF table
w_options-tddest = c_locl."Spool: Output device
* Opening the form
CALL FUNCTION 'OPEN_FORM'
EXPORTING
form = c_form
device = c_printer
language = sy-langu
OPTIONS = w_options
IMPORTING
RESULT = w_res.
=====================================================
Re: Convert Sapscript to PDF
Posted: Nov 15, 2005 1:04 PM in response to: Laura Portal Reply
Have a look at these FM also
CONVERT_OTFSPOOLJOB_2_PDF ==== converts a OTF spool to PDF (i.e. Sapscript document)
SX_OBJECT_CONVERT_OTF_PDF ==== Conversion From OTF to PDF (SAPScript conversion)
피드 구독하기:
글 (Atom)