Payslip messages on IT0128

Hi
I'm currently using an ABAP report to generate leave forfeiture messages per employee. The generated messages must then be written to IT0128 to display on the employees payslip.
I can't use the ST text through "SO10" cause each message is unique per employee.
Does any one have an ABAP solution for me to wright the generated messages to IT0128, or at least which tables are used to store the text from the text area in IT0128 and which steps I must follow to store the message?
Thanks
Chris

There are two types of messages, I used "General notifications" in the past for IT0128 "Notifications"  . You have to create text via t-code SO10 for ID = HR_G. You can upload the text for each EE for IT0128 and later on access it in any application.
Good luck
Saquib
FYI - we used to give messages on pay slips .

Similar Messages

  • HR form: Add functionality to add comments to payslip via IT0128

    Hi,
    I am very new to the HR forms. Not having any experience of any transaction or table etc.
    My requirement is: I need to add functionality to add messages to payslip via IT0128 to a HR form having specific group.(Add comment to payslip)
    Can you please give me the steps to be followed to fulfill this requirement?

    Hi Ankit,
    You have so many threads on same question.before you raise a forum question do enough R & D
    some threads for you.......
    https://forums.sdn.sap.com/click.jspa?searchID=21696631&messageID=6879933
    https://forums.sdn.sap.com/click.jspa?searchID=21696631&messageID=6627148
    https://forums.sdn.sap.com/click.jspa?searchID=21696631&messageID=6546304
    Kindly go through the below steps for Inserting Logo in SmartForm :
    1) In Smart Forms Editor, In left pane, right Click any Page (say Page1) and select Create -> Window, Give it a name and Description (Say Window1)
    2) Right Click on Window (Window 1) and select Create -> Graphics, Give it a name and description
    3) In general Attributes, Select Name, get search help (F4) , you will find a list of pictures
    4) Select any picture and set its Resolution in DPI
    5) Press F9 to open Smart Forms Builder, Select window (Window1) and In Output options window set, size and position of the Logo
    6) Set any other parameters if required, save and activate.
    7) If there is only 1 Window in the forms, set it as Main Window in general attributes.
    8) User TCode SE78 to upload new pictures and logos.
    I hope it helps you!!!
    Thanks
    Cheera

  • Data not getting populated in Payslip in ESS Portal

    Hi All
    I am tryig to display Payslip in Portal. Have done all the necessary configuration in Benefits and payments->Salary statement->HRFOR/ EDTIN features.
    Correct Payslip form is visible but data is not getting populated in the payslip.
    Have tested the Payslip in PC00_M40_CEDT transaction with the variant i have set for HRFOR/EDTIN features and Payslip data is displayed correctly.
    Have checked for PZ11_PDF transaction but i get a message saying it cannot be accessed through Easy access.
    Can anyone pls let me know what might be the reason for data not getting populated in Payslip in Portal?
    what is role of PZ11_PDF transaction in Payslip display in Portal?
    Regards
    Asha

    Hello,
    Do one thing for executing the PZ11_PDF trsaction please follow following steps.
    1. Once you log in SAP system with same User - Id which you r using on Portal .
    Once log in PUT "/N" in the command box . Then put the trasaction "PZ11_PDF" and execute it will
    Call the salary statement .
    Or
    Once you log in SAP system put the trasction "/nsbwp" then give the trasaction "PZ11_PDF" it will
    call the salary statement ..
    give inputs once you done
    .....The issue with  Authorisations please check it ...
         Add this object in ESS role "S_SERVICE' ...
        and this object in ESS role "P_PERNR" ---infotype 0008
    Edited by: Vivek D Jadhav on Jun 15, 2009 11:49 AM

  • Data not getting populated in ESS Payslip in portal

    Hi All
    I am tryig to display Payslip in Portal. Have done all the necessary configuration in Benefits and payments->Salary statement->HRFOR/ EDTIN features.
    Correct Payslip form is visible but data is not getting populated in the payslip.
    Have tested the Payslip in PC00_M40_CEDT transaction with the variant i have set for HRFOR/EDTIN features and Payslip data is displayed correctly.
    Have checked for PZ11_PDF transaction but i get a message saying it cannot be accessed through Easy access.
    Can anyone pls let me know what might be the reason for data not getting populated in Payslip in Portal?
    what is role of PZ11_PDF transaction in Payslip display in Portal?
    Regards
    Asha

    Asha,
    Maintain Feature EDPDF which determines the SMARTFORM being used to make the payslip available for employees. This is more of a HR related issue and I believe if you post this in the ESS or HR Forum you would be able to resolve this issue.
    Good Luck!
    Sandeep Tudumu

  • Payroll's Error message: Posting balance is not cleared (period 02 / 2014 a)

    Dear Experts,
    I am new to SAP HR. And would like get help for this issue
    After EHP 6 upgarde, when process the payroll, system prompt this error message: Posting balance is not cleared (period 02 / 2014 a).
    Checked the RT and it showed that the tax employee deduction was RM90.93. But when it comes to payslip display the tax amount showed different figure of RM90.94 which might be the cause for “posting balance is not cleared” message

    Hi,
    ChecK Manoj Shakya's response in the thread.
    Posting to FI-err :3G103, posting balance is not cleared
    Cheers,
    Manoj.

  • Convert payslip to PDF format  , for e-mailing to employees

    HI with respect to my previous post 'Salary slip delivery thru email'
    I have been able to send the email out in the html format. I want the employee to recieve the mail in the PDF format. I would like your assistance on this.
    Here is the code.
    tables: PV000,
    T549Q,
    PA0001,
    V_T514D,
    HRPY_RGDIR,
    PA0002,
    PA0105.
    data: begin of ITAB occurs 0,
    MTEXT(25) type C,
    PERNR like PA0001-PERNR,
    ABKRS like PA0001-ABKRS,
    ENAME like PA0001-ENAME,
    USRID_LONG like PA0105-USRID_LONG,
    end of ITAB.
    data: W_BEGDA like HRPY_RGDIR-FPBEG,
          W_ENDDA like HRPY_RGDIR-FPEND.
    data: RETURN like BAPIRETURN1 occurs 0 with header line.
    data: P_INFO like PC407,
    P_FORM like PC408 occurs 0 with header line,
    P_P_FORM like PC408 occurs 0 with header line.
    data: P_IDX type I,
    MY_MONTH type T549Q-PABRP,
    STR_MY_MONTH(2) type C,
    MY_YEAR type T549Q-PABRJ,
    STR_MY_YEAR(4) type C.
    data: W_CMONTH(10) type C.
    data: TAB_LINES type I,
    ATT_TYPE like SOODK-OBJTP.
    data: begin of P_INDEX occurs 0,
    INDEX type I,
    end of P_INDEX.
    constants:
    begin of F__LTYPE, "type of line
    CMD like PC408-LTYPE value '/:', "command
    TXT like PC408-LTYPE value 's', "textline
    end of F__LTYPE.
    constants:
    begin of F__CMD, "commands
    NEWPAGE like PC408-LINDA value '<NEW-PAGE>',
    end of F__CMD.
    data: P_LIST like ABAPLIST occurs 1 with header line.
    data: OBJBIN like SOLISTI1 occurs 10 with header line,
    DOCDATA like SODOCCHGI1,
    OBJTXT like SOLISTI1 occurs 10 with header line,
    OBJPACK like SOPCKLSTI1 occurs 1 with header line,
    RECLIST like SOMLRECI1 occurs 1 with header line,
    OBJHEAD like SOLISTI1 occurs 1 with header line.
    INITIALIZATION *
    initialization.
    OBJBIN = ' | '.
    append OBJBIN.
    OBJPACK-HEAD_START = 1.
    SELECTION SCREEN *
    selection-screen begin of block BL1.
    parameters: S_ABKRS like PV000-ABKRS obligatory default 'ZA'.
    parameters: S_PERMO like T549Q-PABRP obligatory default '02'.
    parameters: S_PABRP like T549Q-PABRP obligatory.
    parameters: S_PABRJ like T549Q-PABRJ obligatory.
    select-options: S_PERNR for PA0001-PERNR.
    select-options: S_ORGEH for PA0001-ORGEH.
    parameters: PAY_VAR like BAPI7004-PAYSLIP_VARIANT default
    'ESS_PAYSLIPS' obligatory.
    selection-screen end of block BL1.
    AT SELECTION-SCREEN *
    at selection-screen.
    if SY-UCOMM ='ONLI'.
    if S_PABRP > 24 or S_PABRP < 1.
    message E999(YHR) with 'Improper Payroll Period'.
    endif.
    if S_PABRP > 9.
    MY_MONTH = S_PABRP - 10 + 1.
    STR_MY_MONTH = MY_MONTH.
    MY_YEAR = S_PABRJ + 1.
    STR_MY_YEAR = MY_YEAR.
    else.
    MY_MONTH = S_PABRP + 3.
    STR_MY_MONTH = MY_MONTH.
    MY_YEAR = S_PABRJ.
    STR_MY_YEAR = MY_YEAR.
    endif.
    modified by Coul
    if S_PERMO NE '2'.
    message E999(YHR) with 'Improper Payroll Period Parameters'.
    endif.
    MY_YEAR = S_PABRJ.
    STR_MY_YEAR = MY_YEAR.
    shift STR_MY_MONTH left deleting leading SPACE.
    shift STR_MY_MONTH right deleting trailing SPACE.
    translate STR_MY_MONTH using ' 0'.
    get payrol period first and last dates _ added by Coul
    SELECT SINGLE *
    FROM T549Q
    WHERE PERMO = S_PERMO "Period param.; 02 = semi-monthly
    AND PABRJ = S_PABRJ "Payroll period year
    AND PABRP = S_PABRP. "Payroll period no.
    W_BEGDA = T549Q-BEGDA.
    W_ENDDA = T549Q-ENDDA.
    concatenate STR_MY_YEAR STR_MY_MONTH '01' into W_BEGDA.
    call function 'HR_HCP_GET_LAST_DAY_OF_MONTH'
    exporting
    IM_DATE = W_BEGDA
    importing
    EX_DATE_IS_MONTHEND =
    EX_LAST_DAY_OF_MONTH = W_ENDDA.
    select PA0001PERNR PA0001ABKRS PA0001~ENAME
    into corresponding fields of table ITAB
    from PA0001
    join PA0000
    on PA0000PERNR eq PA0001PERNR
    join HRPY_RGDIR
    on PA0001PERNR eq HRPY_RGDIRPERNR
    where PA0001~PERNR in S_PERNR
    where PA0001~ORGEH in S_ORGEH
    and PA0001~ABKRS eq S_ABKRS
    and PA0000~STAT2 eq '3'
    and PA0001~ENDDA ge '99991231'
    and PA0001~PLANS ne '99999999'
    group by PA0001PERNR PA0001ABKRS PA0001~ENAME.
    if SY-SUBRC <> 0.
    message E999(YHR) with 'No record(s) found.'.
    endif.
    endif. "SY-UCOMM ='ONLI'
    START-OF-SELECTION *
    start-of-selection.
    write : / 'Payroll Area : ',S_ABKRS.
    write : / 'Payroll Period/Year : ',STR_MY_MONTH,'-',STR_MY_YEAR.
    write : / 'System Date : ', SY-DATUM.
    write : / 'System Time : ', SY-UZEIT.
    write : / 'User Name : ', SY-UNAME.
    write : / SY-ULINE.
    sort ITAB by PERNR.
    loop at ITAB.
    clear : P_INFO, P_P_FORM, P_FORM, P_INDEX, P_LIST, OBJBIN,
    DOCDATA, OBJTXT, OBJPACK, RECLIST, TAB_LINES.
    refresh : P_P_FORM, P_FORM, P_INDEX, P_LIST, OBJBIN,
    OBJTXT, OBJPACK, RECLIST.
    select single *
    from HRPY_RGDIR
    where PERNR eq ITAB-PERNR
    and FPBEG ge W_BEGDA
    and FPEND le W_ENDDA
    and SRTZA eq 'A'.
    if SY-SUBRC = 0.
    call function 'GET_PAYSLIP'
    exporting
    EMPLOYEE_NUMBER = ITAB-PERNR
    SEQUENCE_NUMBER = HRPY_RGDIR-SEQNR
    PAYSLIP_VARIANT = PAY_VAR
    importing
    RETURN = RETURN
    P_INFO = P_INFO
    tables
    P_FORM = P_FORM.
    check RETURN is initial.
    loop at P_FORM
    where LINDA eq F__CMD-NEWPAGE
    and LTYPE eq F__LTYPE-CMD.
    P_INDEX-INDEX = SY-TABIX.
    append P_INDEX.
    endloop.
    P_IDX = 1.
    refresh P_P_FORM.
    append lines of P_FORM from P_IDX to P_INDEX-INDEX
    to P_P_FORM.
    P_IDX = P_INDEX-INDEX.
    export P_P_FORM to memory id '%%_P_FORM_%%'.
    export P_INFO to memory id '%%_P_INFO_%%'.
    submit RPCEDT_LIST_TO_MEMORY exporting list
    to memory and return.
    call function 'LIST_FROM_MEMORY'
    tables
    LISTOBJECT = P_LIST.
    call function 'TABLE_COMPRESS'
    IMPORTING
    COMPRESSED_SIZE =
    tables
    IN = P_LIST
    OUT = OBJBIN
    exceptions
    others = 1.
    OBJHEAD = 'Objhead'.
    append OBJHEAD.
    preparing subject
    concatenate W_ENDDA(6)
    ' Payslip-' ITAB-ENAME0(28) '(' ITAB-PERNR4(4) ')'
    into DOCDATA-OBJ_DESCR.
    DOCDATA-OBJ_NAME = 'Pay Slip'.
    DOCDATA-OBJ_LANGU = SY-LANGU.
    OBJTXT = 'Pay Slip.'.
    append OBJTXT.
    OBJTXT = DOCDATA-OBJ_DESCR.
    append OBJTXT.
    OBJTXT = 'Have a nice day.'.
    append OBJTXT.
    Write Packing List (Main)
    3 has been fixed because OBJTXT has fix three lines
    read table OBJTXT index 3.
    DOCDATA-DOC_SIZE = ( 3 - 1 ) * 255 + strlen( OBJTXT ).
    clear OBJPACK-TRANSF_BIN.
    OBJPACK-HEAD_START = 1.
    OBJPACK-HEAD_NUM = 0.
    OBJPACK-BODY_START = 1.
    OBJPACK-BODY_NUM = 3.
    OBJPACK-DOC_TYPE = 'RAW'.
    append OBJPACK.
    Create Message Attachment
    Write Packing List (Attachment)
    ATT_TYPE = 'ALI'.
    describe table OBJBIN lines TAB_LINES.
    read table OBJBIN index TAB_LINES.
    OBJPACK-DOC_SIZE =
    ( TAB_LINES - 1 ) * 255 + strlen( OBJBIN ).
    OBJPACK-TRANSF_BIN = 'X'.
    OBJPACK-HEAD_START = 1.
    OBJPACK-HEAD_NUM = 0.
    OBJPACK-BODY_START = 1.
    OBJPACK-BODY_NUM = TAB_LINES.
    OBJPACK-DOC_TYPE = ATT_TYPE.
    OBJPACK-OBJ_NAME = 'ATTACHMENT'.
    OBJPACK-OBJ_DESCR = 'Payslip'.
    append OBJPACK.
    Create receiver list
    refresh RECLIST.
    clear RECLIST.
    select single *
    from PA0105
    where PERNR eq ITAB-PERNR
    and SUBTY eq 'MAIL'
    and SUBTY eq '0001'
    and USRID ne ''
    and PA0105~ENDDA ge '99991231'.
    if SY-SUBRC = 0.
    RECLIST-RECEIVER = PA0105-USRID.
    translate RECLIST-RECEIVER to lower case.
    ITAB-USRID_LONG = RECLIST-RECEIVER.
    RECLIST-REC_TYPE = 'U'.
    append RECLIST.
    Send the document
    call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    exporting
    DOCUMENT_DATA = DOCDATA
    PUT_IN_OUTBOX = 'X'
    PUT_IN_OUTBOX = ''
    COMMIT_WORK = 'X'
    IMPORTING
    SENT_TO_ALL =
    NEW_OBJECT_ID =
    tables
    PACKING_LIST = OBJPACK
    OBJECT_HEADER = OBJHEAD
    CONTENTS_BIN = OBJBIN
    CONTENTS_TXT = OBJTXT
    CONTENTS_HEX =
    OBJECT_PARA =
    OBJECT_PARB =
    RECEIVERS = RECLIST
    exceptions
    TOO_MANY_RECEIVERS = 1
    DOCUMENT_NOT_SENT = 2
    DOCUMENT_TYPE_NOT_EXIST = 3
    OPERATION_NO_AUTHORIZATION = 4
    PARAMETER_ERROR = 5
    X_ERROR = 6
    ENQUEUE_ERROR = 7
    others = 8.
    if SY-SUBRC <> 0.
    ITAB-MTEXT = 'Message Not Sent to : '.
    else.
    ITAB-MTEXT = 'Message Sent to : '.
    endif.
    else.
    ITAB-MTEXT = 'Message Not Sent to : '.
    endif.
    else. "SY-SUBRC Not = 0 HRPY_RGDIR
    ITAB-MTEXT = 'Payroll data not found : '.
    endif. " end of SY-SUBRC = 0. HRPY_RGDIR
    modify ITAB.
    endloop. "end loop at ITAB
    sort ITAB by MTEXT PERNR.
    loop at ITAB.
    at new MTEXT.
    uline.
    write : / ITAB-MTEXT color 4 intensified on.
    write : / 'Emp. Code' color 2 intensified on,
    12 'Emp. Name' color 2 intensified on,
    54 'Email ID' color 2 intensified on.
    endat.
    write : / ITAB-PERNR, 12 ITAB-ENAME, 54 ITAB-USRID_LONG.
    endloop.

    hi,
       You can send the list output to spool.
    print-on ...
    PERFORM REPORT_OUTPUT.
    print-off.
    From there, you can convert that to pdf.
    fm CONVERT_ABAPSPOOLJOB_2_PDF
    Getting that pdf conversion done, you can send thE same to mail..
    fm SO_NEW_DOCUMENT_ATT_SEND_API1
    Regards,
    Sailaja.

  • How to send a payslip of the emp in the email body in R12

    Hi All,
    Would like to know how can we send the payslip of an employee in the email.
    How can one do the above mentioned function in Oracle Payroll in R12.
    Please note that the payslip amounts should be in the email body and not as an attachment.
    thanx,
    Chetan

    Open the workflow process you are using.
    Open the notification.
    In the notification you will see there will be a message given
    Open the message and in that there will different parts of message like Subject, Body as text and HTML.
    See the HTML body you can find the there must be some attributes defined there. Create you own attribute say a URL (which is OA Page, a function in Apps)
    and test.
    e.g in OTL Workflows for Employees (HXCEMP) workflow, there is a message template "Inline Timecard Approval" in which a URL attribute is used.
    I think some workflow experts can help you more.
    HTH

  • Need to customize the text displayed while sending payslip as pdf in mails

    Gurus ,
       monthly we will run a report which will send the payslip as pdf to the employees . Now we need to edit the text that is getting displayed in the mail while we attaching the payslip as pdf and send .
    how to achieve this

    Hi Sarvan
    Go to messages >> communication method , change the field Cover Page Text with ur po number and send. This is a manual process which you will have to do it for each po.
    Now if you want to automate this then you can ask ur abaper to write a small program which will copy the po number to this field. 
    Table Name       NAST
    Field Name       TDCOVTITLE
    Regards
    Rajesh
    Do reward if useful.

  • Sending  Payslip as PDF

    Dear all,
    I developed the Report program which will send  payslip as PDF attachement to all employees.i am able to receive the mail along with Payslip as PDF Format.
    but i am unable to open  the PDF format.its showing  error message as
    "Adobe reader could not open the PDF file because it is either not a supported file or because the file has been damaged (for example it was sent as an email attachment and was not correctly decoded"
    Can any one help regarding this issue
    Thanks in advance.
    Sudheer

    Dear Companions,
    I would like to contribute on this subject which will be helpful to our SDN Society.
    I have developed the program to send the standard remuneration statement thru eMail to the employees in PDF. Its working very fine and employees are very delighted owing to this facility. The code snapshot of sending mail form is as per below.
    FORM send_email .
      DATA : g_totrec(4) TYPE n,
             g_ctr(4) TYPE n,
             v_prc TYPE string.
      DESCRIBE TABLE itab[] LINES g_totrec.
      LOOP AT itab.
        g_ctr = g_ctr + 1.
        CONCATENATE g_totrec ' - ' g_ctr ' : Emp. ' itab-pernr  INTO v_prc.
        CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
          EXPORTING
            percentage = 100
            text       = v_prc.
        itab-ctr = 1.
        MODIFY itab TRANSPORTING ctr.
        IF p_ind = 'X'.
          IF itab-usrid_long IS INITIAL.
            itab-mtext = 'eMail-ID Not Found'.
            MODIFY itab TRANSPORTING mtext.
            CLEAR:itab.
            CONTINUE.
          ENDIF.
        ENDIF.
        CLEAR:v_pdf_size,x_payslip,i_return.
        CALL FUNCTION 'BAPI_GET_PAYSLIP_PDF'
          EXPORTING
            employeenumber = itab-pernr
            sequencenumber = itab-seqnr
            payslipvariant = pay_var
          IMPORTING
            return         = i_return
            payslip        = x_payslip
            pdf_fsize      = v_pdf_size.
        IF sy-subrc NE 0.
          itab-mtext = 'Payslip not Generated.'.
          MODIFY itab TRANSPORTING mtext.
          CLEAR:itab.
          CONTINUE.
        ENDIF.
        IF p_save = 'X'.
          CLEAR:data_tab.
          CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
            EXPORTING
              buffer     = x_payslip
            TABLES
              binary_tab = data_tab[].
          CLEAR:fullpath,w_outlen.
          CONCATENATE 'C:\SAP\' itab-pernr '.PDF' INTO fullpath.
          DESCRIBE TABLE objhex LINES w_outlen.
          CALL FUNCTION 'GUI_DOWNLOAD'
            EXPORTING
              bin_filesize                  = w_outlen
              filename                      = fullpath
              filetype                      = 'BIN'
              APPEND                        = ' '
              CODEPAGE                      = ' '
              NO_BYTEORDER_MARK             = ' '
             IMPORTING
               FILELENGTH                    = c
            TABLES
              data_tab                      = data_tab[]
              FORMAT_TAB                    =
            EXCEPTIONS
              file_write_error              = 1
              no_batch                      = 2
              gui_refuse_filetransfer       = 3
              invalid_type                  = 4
              no_authority                  = 5
              unknown_error                 = 6.
          IF sy-subrc = 0.
            itab-mtext = 'ePayslip Saved.'.
          ELSE.
            itab-mtext = 'ePayslip Not Saved.'.
          ENDIF.
          MODIFY itab TRANSPORTING mtext.
          CLEAR:itab,docdata,objpack,objtxt,objtxt[],objhex,objhex[],objhex1,objhex[],objpack,objpack[].
          WAIT UP TO 5 SECONDS.
          CONTINUE.
        ENDIF.
    Convert OTF to PDF
        CLEAR:x,x1,y,z,w_outlen,tab_lines,objhex1.
        x = v_pdf_size / 255.
        z = v_pdf_size - 255.
        DO x TIMES.
          IF x1 > z .
            EXIT.
          ENDIF.
          objhex1-line = x_payslip+x1(255).
          APPEND objhex1 TO objhex.
          x1 = x1 + 255.
        ENDDO.
        y = v_pdf_size - x1 .
        objhex1-line = x_payslip+x1(y).
        APPEND objhex1 TO objhex.
    preparing subject
        CONCATENATE w_endda(6) '-Payslip-(' itab-pernr+0(8) ')- ' itab-atext ' ' itab-ename+0(35) '.' INTO docdata-obj_descr RESPECTING BLANKS.
        docdata-obj_name = 'Pay Slip'.
        docdata-obj_langu = sy-langu.
        CONDENSE itab-atext.
        CONDENSE itab-ename.
        CONCATENATE ' Dear ' itab-atext ' ' itab-ename '.' INTO objtxt RESPECTING BLANKS.
         objtxt = 'Pay Slip.'.
        APPEND objtxt.
        CLEAR:objtxt.
        APPEND objtxt.
         objtxt = docdata-obj_descr.
        objtxt = 'Please find enclosed herewith your Payslip in PDF format.'.
        APPEND objtxt.
        CLEAR:objtxt.
        APPEND objtxt.
        objtxt = 'Have a nice day.'.
        APPEND objtxt.
        CLEAR:tab_lines.
        DESCRIBE TABLE objtxt LINES tab_lines.
        READ TABLE objtxt INDEX tab_lines TRANSPORTING ALL FIELDS.
    Write Packing List (Main)
        docdata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
        CLEAR objpack-transf_bin.
        objpack-head_start = 1.
        objpack-head_num   = 0.
        objpack-body_start = 1.
        objpack-body_num   = tab_lines.
        objpack-doc_type   = 'RAW'.
        APPEND objpack.
    pack to pdf.
        CLEAR:w_outlen.
        DESCRIBE TABLE objhex LINES w_outlen.
        objpack-transf_bin = 'X'.
        objpack-head_start = 1.
        objpack-head_num   = 1.
        objpack-body_start = 1.
        objpack-body_num   = w_outlen.
        objpack-doc_type   = 'PDF'.
        objpack-obj_name   = 'ATTACHMENT'.
        objpack-doc_size   = v_pdf_size.
        CONCATENATE itab-pernr '.PDF' INTO objpack-obj_descr.
           objpack-obj_descr  = 'payslip.pdf'.
        APPEND objpack.
    Create receiver list
        REFRESH reclist.
        CLEAR reclist.
        IF p_adm = 'X'.
          reclist-receiver = admailid.
          TRANSLATE reclist-receiver TO LOWER CASE.
          itab-usrid_long = reclist-receiver.
          reclist-rec_type = 'U'.
          APPEND reclist.
        ELSEIF p_ind = 'X'.
          reclist-receiver = itab-usrid_long.
          TRANSLATE reclist-receiver TO LOWER CASE.
          itab-usrid_long = reclist-receiver.
          reclist-rec_type = 'U'.
          APPEND reclist.
        ENDIF.
    Send the document
        CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
          EXPORTING
            document_data              = docdata
            put_in_outbox              = ''
            commit_work                = 'X'
          TABLES
            packing_list               = objpack
            contents_txt               = objtxt
            contents_hex               = objhex
            receivers                  = reclist
          EXCEPTIONS
            too_many_receivers         = 1
            document_not_sent          = 2
            document_type_not_exist    = 3
            operation_no_authorization = 4
            parameter_error            = 5
            x_error                    = 6
            enqueue_error              = 7
            OTHERS                     = 8.
        IF sy-subrc NE 0.
          itab-mtext = 'eMail Not Sent.'.
        ELSE.
          itab-mtext = 'eMail Sent.'.
        ENDIF.
        MODIFY itab TRANSPORTING mtext.
        WAIT UP TO 5 SECONDS.
        SUBMIT rsconn01 WITH mode = 'INT' AND RETURN. "This causes all the objects in SOST to be released.
        CLEAR:itab,docdata,objpack,objpack[],objtxt,objtxt[],objhex,objhex[].
      ENDLOOP. "end loop at ITAB
    ENDFORM.                    " SEND_EMAIL
    Regards,
    R R Suthar

  • Payslip is not visible in oracle apps hrms

    Hi All,
    I'm using 11i, my payslip option for one of the user she gets an error message stating
    "You cannot continue this action beacause the select person is terminated or susspended assigment".
    Why its throws error?
    Pls help on this issue.
    --Naren                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi Guru,
    I have another doubt,
    What is basic navigation to run the payslip(UK Resp)?
    --Naren                                                                                                                                                                                                       

  • To add new feilds in HR payslip

    I want to add leave details of previous month in standard  HR payslip.
    please can any one help me out giving steps to do it
    Moderator Message: Please put some effort from your end first.
    Edited by: kishan P on Oct 6, 2010 5:45 PM

    hi,
    In hrforms transaction code select the country grouping as 40 and copy the standard payslip to zpayslip and double click on that form there you will find the smartforms name just double click it wil takes to smartforms just change the logic there and come back and activate the hrforms and try ro execute it there only by double click on driver program and pass some pernr and check the payslip.
    Regards,
    Thiru

  • Hr-abap payroll (payslip problem)

    Hi,
    I am modifying the payslip.
    Here in input screen we r using plant option.
    my problem is if the person shifts from one plant to another plant then the payslip of that person must be latest plant payslip.
    but if the end user takes payslip of the persons according to plant wise then that particular persons payslip is comming in both the plants.
    I am using the following FM.
    CALL FUNCTION 'LAST_DAY_OF_MONTHS'
        EXPORTING
          DAY_IN            = W_BEGDA
        IMPORTING
          LAST_DAY_OF_MONTH = W_ENDDA.
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    is there any function module like a person joining the middle of the month
    for example:
    he joins on 15 th of the month and it has to calculate the last day ofthe month.

    Hi
    Eg:
    parameters: s_date type sy-datum,
                      e_date type sy-datum.
      s_date = sy-datum.
      call function 'RP_LAST_DAY_OF_MONTHS'
           exporting
                day_in            = s_date
           importing
                last_day_of_month = e_date.
    write : e_date.
    Regards
    Raj

  • HR ABAP payslip --tcode PC00_M08_HRF( h99_hrforms_call)--ECC5.0

    Hello Friends,
    I am working on tcode PC00_M08_HRF  and this is caling a zform (Zpayslip_form).
    Now the client has a requirement that they want to validate a field in (infotype  655) ,ie. one check box
    If the checkbox is ticked the payslip shoudl not generate for that person.
    How can achieve this and where exactly write a code for this....as I am working in ECC 5.0 there is no enhancement points.
    The main problem is with the persons,persons only get in the printprogram(which is generated by system automatcilly)
    of a form.
    PC00_M08_HRF>PC00_M99_HRF_CALL01>H99_HRFORMS_CALL_HELP>hrforms_call->/1PYXXFO/zform
    I am able to get the person in the print program of a form in this 1PYXXFO/zform but thisis automatically generated one from system.
    Please suggest me where excatly have to do validation for a person using it 655 .
    Thank you
    Best regards
    Trupthi

    Moderator message - Cross post locked
    Rob

  • HR Form Editor - how to display text on payslip

    Hi Experts,
    I have an issue in HR Form Editor ( TCode PE51).
    In the earnings window of a payslip I have a wage type 2041(Ticket Fare Payment). At the time of evaluation if there is a value for this wage type then some text message has to be displayed for such a employee.
    Can anybody please guide me for the proper solution.
    I have created text module for the text to be appeared and placed it as a single field.
    Any help appreciated.
    Thanks & Regards,
    Aisha.

    Try Exploring BADI ADDR_PRINTFORM_SHORT. This is the only place wherein we can think to write some custom code for Remnuneration statement.
    The other way is the do the Customer Enhancement for transaction PC00_M16_CEDT. Also try searching SAP Notes I think there are couple which can be of help.
    Regards
    Shital

  • IE warning when viewing payslip iView in Portal

    Hi there,
    Several years ago, we developed a simple ESS solution in our portal. We have 3 pages - 1 for viewing payslips, 1 for address data, and 1 for bank details. Each of these is an iView that simply runs a transaction in our backend ERP system.
    When a user clicks to display the address or bank details, the SAP GUI for HTML screen for these transactions appears - no problem. However, when we click to view the payslip, we are presented with an Internet Explorer message "this page contains both secure and nonsecure items" If we click the OK button, the SAP GUI for HTML screen appears as normal.
    I'm assuming that there must be something particular with the payslip transaction that causes this error to appear. The iview for all these screens are set up the same, but its only this 1 iview which gives the error. The transaction being called by the iview is PZ11_PDF.
    Our Portal and our ERP system are both NW7.0 SPS18, and both are enabled for https. Both systems have SSL certificates through an external certificate authority. Users are verified between the systems using Tickets.
    Can anyone provide a solution, or any insight, into this problem?
    Thanks,
    Michael.

    Hi Nick,
    In our Portal, we have our ABAP system configured to use SSL. ie. The ITS Hostname has the https port defined in it, and the ITS Protocol is https. Is this the only configuration that needs to occur on the portal?
    In our ABAP system, we have an active https port defined - we can see this through transaction SMICM.
    Upon further investigation, it appears at though it may be similar to the errors described at...
    https://wiki.sdn.sap.com/wiki/display/JSTSG/%28JSTSG%29%28Web%29Problems-P156
    https://wiki.sdn.sap.com/wiki/display/BSP/Thispagecontainsbothsecureandnonsecure+items
    I conclude this because if I click "No" on the "do you want to display both secure and nonsecure items" popup, i can see the standard IE 404 page tries to be displayed in the main iframe before it is covered by the "correct" iframe content for this transaction. On the 404 page, the images are not being displayed.
    Does anyone know any way to correct this, so that the iframe doesn't show a 404 error before it displays the correct content. This is a standard SAP transaction, so i'm not too keen on hacking it apart if there is a better way to do it.
    Thanks,
    Michael

Maybe you are looking for