Need HR BAPI to change PA0001 table

HI all,
I want to update ZEMP_STATUS, ZREPORT_TO and ZLEVEL_OF_RESP fields of table pa0001. CAn anyone suggest me,which BAPI will help me to update the table.
Thank you.
Swati.

Hi swai,
1. this is the full coding.
2. just copy paste in new program.
3. U can change the pernr and amount values as per requirement.
4.
Report abc.
Data
DATA : P0001 LIKE P0001.
DATA : RETURN LIKE BAPIRETURN1.
DATA : KEY LIKE BAPIPAKEY.
DATA : RETURNE LIKE BAPIRETURN1 .
Values (Change as per Requirement)
P0015-PERNR = '1'.
P0015-BEGDA = '2061101'.
P0015-ENDDA = '2061101'.
*----- First Enqu
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
NUMBER = p0001-pernr
IMPORTING
RETURN = RETURNE.
Update
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = '001'
NUMBER = P0001-PERNR
SUBTYPE = P0001-SUBTY
OBJECTID = P0001-OBJPS
LOCKINDICATOR = P0001-SPRPS
VALIDITYEND = P0001-ENDDA
VALIDITYBEGIN = P0001-BEGDA
RECORDNUMBER = P0001-SEQNR
RECORD = P0001
OPERATION = 'INS'
TCLAS = 'A'
DIALOG_MODE = '0'
IMPORTING
RETURN = RETURN
KEY = KEY.
IF RETURN IS NOT INITIAL.
WRITE :/ 'Error Occurred'.
ENDIF.
Dequeue
CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
EXPORTING
NUMBER = P0001-PERNR
regards,
amit m.

Similar Messages

  • Need a BAPI to Change the WBS in CJ20n

    Hi All,
    Can anyone provied me a BAPI to change a WBS in CJ20n. Actually there a check box named "Account assignment" in the WBS screen of CJ20N, the checkbox is Tickmarked. I need to Untcik this checkbox.
    A quick response will be appreciated.
    Regards
    Abhii

    Hello,
    Check the BAPI - BAPI_PROJECT_MAINTAIN, in the tables parameter there is a component I_WBS_ELEMENT_TABLE which has a structure BAPI_WBS_ELEMENT. It has a component WBS_ACCOUNT_ASSIGNMENT_ELEMENT which represents Indicator: Account assignment element. Setting and resetting this may help in solving your issue.
    P.S. Check the documentation of this BAPI for further assistance.
    Thanks and Regards,
    Sachin

  • Need a bapi for change component in CO02

    hi!
    i need to change  mass old material in production order(CO02) .
    so i need a bapi or FM to do it but i can't find it!
    thank you very much!

    Hi,
    Looks like we might not have the one...and you might need to go with BDC.....Check in Txn BAPI also.
    Refer:
    http://abaplog.wordpress.com/2007/10/10/navigating-component-screen-of-co02-with-bdc/
    http://abaplog.wordpress.com/2007/10/10/navigating-component-screen-of-co02-with-bdc/

  • Need Fm/BAPI to change Actual GR date(WADAT_IST_LA) in inbound delivery

    Hi ,
    Need a function module/BAPi to change the Actual Goods Receipt date for inbound delivery . Any suggestion would be appreciated . Have tried with WS_DELIVERY_UPDATE and BAPI_INB_DELIVERY_CHANGE . Am I missing something here ?
    Regds,
    Sanjeev

    Hello Sanjeev,
    Need a function module/BAPi to change the Actual Goods Receipt
    date for inbound delivery . Any suggestion would be appreciated .
    Have tried with WS_DELIVERY_UPDATE and BAPI_INB_DELIVERY_CHANGE .
    Am I missing something here ?
    I am not a ABAP expert but may be upon calling BAPI_TRANSACTION_COMMIT, try using UPDATE command to insert the Actual GR date. Please explore around this pointer and post an update on this thread.
    Regards,
    Sarthak

  • Need to delete or change default table of contents

    The default table of contents created when I imported a
    FrameMaker book is empty. I reimported the book (using a different
    option) and created a new TOC. I want to use this one in my
    project. Some questions:
    1. Can I change the default TOC to be the new (non-empty)
    one? If so, how? (Can you refer me to a topic in the RoboHelp
    Documentation?)
    2. Can I delete the default TOC? If so, how? (Can you refer
    me to a topic in the RoboHelp Documentation?)
    3. If the answers to the above questions is "no," can I just
    ignore the default (empty) one & use the new (nonempty) one
    when I generate? If so, how? (Can you refer me to a topic in the
    RoboHelp Documentation?)

    However, I thought that the blank TOC was created before I
    learned the "correct" way to import FrameMaker documents: by
    reference. So I can't say what would have happened if I had
    imported the book by reference initially. Nonetheless, I have the
    same result - a blank default TOC that I can't remove (as Peter
    points out).

  • OCCI example needed to register for change in table notification

    Hi could anyone give a simple example on how to get informed in C++ if a row had been inserted in a specific table .. I know this is possible through Registration to tables via callbacks.. Any ideas or links would be appreciated...

    Thanks Anon.
    From my previous topics U would have guessed the problem I am facing. I have to pass an array of unsigned shorts terminted by 0 from Forms to a Windows DLL( created in VC++ ). How can I create such a structure. For eg. the contents of array at subsequent locations in VC++ appear as (Memory contents as Seen while debugging ): pszUnicode is an array of 4 unsigned shorts. Each unsigned short is of 4 bytes.
    pszUnicode[0] -> 2350
    pszUnicode[1] -> 2375
    pszUnicode[2] -> 2306
    pszUnicode[3] -> 0
    Now Anon, how can a TABLE structure help me for it.
    Thanks,
    Ritesh
    null

  • BAPI to change the posting data of invoice document

    Hello All,
          I need a BAPI to change the posting date of the invoice document (Type : RE, Generated from MIRA transaction). Do let me know if you can across a BAPI to do it.
    Thanks,
    Siva.

    BAPI_INCOMINGINVOICE_CHANGE

  • Changes in tables

    Hi all,
    I need to notify a non-SAP system of every change made in some customizing and master data SAP tables. The system must be notified on-line as soon as the change is saved (without XI). Any ideas?
    Thanks

    Yes its possbile. For standard check if there is any Change Document Object Defined. For Custom you will have to define the Change document thru SCDO Tcode.
    Once the change documents are generated You need to create the change pointer tables thru BD52 transaction, again for Custom table you will have to write change pointers manually by Using Change pointer function modules like CHANGE_POINTERS_CREATE, Then schedule the RBDMIDOC to create the IDOC from change pointers.
    Refer [this|https://help.sap.com/saphelp_nwmobile71/helpdata/en/2a/fa018f493111d182b70000e829fbfe/content.htm] for more information.
    There are significant efforts achiving it all.
    Regards
    Shital

  • Need suggestion to get data from change log table of ODS.

    Hello,
    There is a case where i am loading opportunity header data from header ODS and opportunity item data from item ODS in the opportunity cube.
    Status (1= OPEN, 2= WON ETC) of the opportunity are available only in header ODS and not in item ODS.
    While loading data from header ODS to cube, I am loading it directly but while loading data from item ODS to cube i am using active data table of header ODS as a lookup in the update rule from item ODS to cube. I am selecting status from the active data table of header ODS while loading data from item ODS to cube.
    Since active data table will have only after image records, there is some data mismatch in the report as i am selecting data from active data table of header ODS while loading data from item ODS to cube.
    I need to select data from Change log in order to get before image also instead of active data table in order to overcome this issue. Is there any way by which i can do selection from Change log instead of active data table as change logs are generated at run time.
    Please let me know if you have any suggestions.
    Regards,
    Sanjay Chaurasia.

    Hi,
    You can use the changelog table of the DSO.
    Right click manage the Header DSO, go to the contents tab and click Change Log table. There you can see the technical name of the Change Log table.
    In the update rule Routine, give the tech name of Change log table instead of Active table name.
    Hope it helps.
    Krishna

  • BAPI for changing delivery date and delivery time fields in LIKP table

    Hi All,
         Is there any BAPI or function module to change the delivery date and delivery time in LIKP table ?
    Please tell me experts if exists.
    Thank you,
    Raghu.

    try these:
    BAPI/FM to update LIKP and VTTK tables
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bapi-for-changing-sales-headertable-likp-662800

  • Error in bapi while  changing  and add items in transparant table

    data : t_poitems type standard table of bapimepoitem,
           t_poitemx type standard table of bapimepoitemx,
           w_poitems type bapimepoitem,
           w_poitemx type bapimepoitemx,
           t_return type standard table of bapiret2,
           w_return type bapiret2.
    loop at t_modify_detail into w_modify_detail-ebeln.       * populating changing data
    *--&modifying fields
    w_poitems-po_item = w_modify_detail-ebelp.
    w_poitems-material = w_modify_detail-matnr.
            append w_poitems to t_poitems.
    w_poitemx-po_item = w_modify_detail-ebelp.
    w_poitemx-po_itemx = 'X'.
    w_poitems-material = 'X'.
            append w_poitemx to t_poitemx.
    endloop.
          call function 'BAPI_PO_CHANGE'
            exporting
              purchaseorder                =  w_header-ebeln
            POHEADER                     =
            POHEADERX                    =
            POADDRV
           tables
             return                        =     t_return
              poitem                       =    t_poitems
             poitemx                      =     t_poitemx
            POADDRDELIVERY               =      
    call function 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT  
    ERROR IS:
    giving error : cl_po_item_handle_mm.................cp
    function in which error showing: mepo docitem_get

    Check this sample code
    http://www.sap-img.com/abap/sample-abap-code-on-bapi-po-change.htm
    BAPI PO CHANGE with MENGE
    Hope it helps to identify your requirement and fix accordingly.
    ashish

  • Need a bapi or table for GL Report

    Hi experts,
    I need a bapi or table for generating report period balance for GL accounts. i found one bapi BAPI_GL_GETGLACCPERIODBALANCES which is closer to my requirement. But i want to get the balances for cost center and particular material. As Cost center and product ranges are in my selection fields.
    Can anyone tell me table or BAPI?

    SAP standard infoset query provides a report STDCOST for this.
    May be this will suit your requirement. It will give material wise costing.
    hope this helps.
    reward if helpful.

  • Need  F.M or BAPI to update the table IFLOT---URGENT

    HI ALL,
    i need  F.M or BAPI to update the table IFLOT
    its urgent ........................

    use the function module
    EXIT_SAPLITO0_001/2
    www.jt77.com/plant-maintenance/quality-management-11667.html - 11k -
    reward if useful

  • Need to get a list of PSA tables and change log tables existing in a PC

    Is there a standars table to look up all active DSOs and the change log tables associated to those DSOs?
    and also Data sources and the PSA tables associated to that DS.
    I need to get a list of PSA tables and change log tables existing in a processchain(whioch deletes the data in them time to time)how do I do this in a quicker way?
    Thanks in advance

    Hi Ramya
    Check  RSTSODS table with filter of  User App   CHANGELOG ---> For change log tables

  • Need to create a Change document for tracking Purpose on standard table

    Hi Experts,
    I am updating a field in standard table so need to create a change document for tracking the changes being done on the field.
    I created the change Document with transaction SCDO but I am stuck at point - How to call that in the report program to enable the change document.
    Please advice.
    Thanks!!

    Hi
    U can assign your transaction to Z-report like this:
    PARAMETERS: TAB1 RADIOBUTTON GROUP R1 DEFAULT 'X',
                TAB2 RADIOBUTTON GROUP R1,
                TAB3 RADIOBUTTON GROUP R1.
    DATA: TABNAME TYPE TABNAME.
    START-OF-SELECTION.
      CASE 'X'.
        WHEN TAB1. TABNAME = 'BSID'.
        WHEN TAB2. TABNAME = 'BSAD'.
        WHEN TAB3. TABNAME = 'BKPF'.
      ENDCASE.
      CALL FUNCTION 'RS_TABLE_LIST_CREATE'
        EXPORTING
          TABLE_NAME               = TABNAME
    *   ACTION                   = 'ANZE'
    *   WITHOUT_SUBMIT           = ' '
    *   GENERATION_FORCED        =
    *   NEW_SEL                  =
    *   NO_STRUCTURE_CHECK       = ' '
    *   DATA_EXIT                = ' '
    * IMPORTING
    *   PROGNAME                 =
    * TABLES
    *   SELTAB                   =
       EXCEPTIONS
         TABLE_IS_STRUCTURE       = 1
         TABLE_NOT_EXISTS         = 2
         DB_NOT_EXISTS            = 3
         NO_PERMISSION            = 4
         NO_CHANGE_ALLOWED        = 5
         OTHERS                   = 6
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.

Maybe you are looking for

  • PC Build (Many thanks to Harm's articles)

    Hello all. For the past months I've been reading a lot about Hardware for building a new system. Actually it all started a few months back while reading Harm's excellent guide:A PC buying guide for NLE (mainly Intel)I also read  To RAID or not to RAI

  • Inbound delivery

    Dear experts, Once the ME21K created and Inbound delivery is created with respect to Purchase order. ---Is there any provision that there should not be any changes like increasing the quantity in purchase order once inbound delivery is created. in me

  • Lockdown Quicktime Preferences (QT version 7.6.2 bld 1324)

    Hi, I'm new to Quicktime. I hope that you can help me with this issue. I'm trying to lock down the quicktime player preferences so taht regular users cannot change the original configuration. How can that be accomplished on Vista? Thanks Much appreci

  • How would I go from my macbook out monitor to 3 compisite cables out?

    basically I want to feed my macbook pro monitor feed out to a 3 way composite cable. Whats the best method. most composite cables I see are for vga not dvi. Should I use the dvi vga adapter and then connect a VGA composite to it, or is there an easie

  • Basic 3D effects and New Mac Pro

    Hi We are running Premiere CC on the New Mac Pro. We use a lot of Basic3D effects in our editing in Premiere. After we changed our machine to new Mac Pro (black), whenever I try to render the Basic 3D section or export the video that has the Basic 3D