Unable to run bapis for project status update and date update together

Hi Experts,
I have a requirement to update the dates and status of a project WBS at level 4. I am trying to do update the CJ02 Transaction using standard BAPI available. I need to do both Date update and status update in the same LOOP PASS   i am using the below mention bapi. when i am doing so i am getting an error Project 'A._____' has been currently processed by ID i.e. my id.
I have tried putting  a wait for 2 seconds in the code but its still not working. please find the order below in which i am calling the bapi.
Loop at itab.
if  date_changed = 'X'.
      CALL FUNCTION 'BAPI_PROJECT_MAINTAIN'
      READ TABLE it_error WITH KEY message_type = c_e.
      IF sy-subrc <> 0.
Commit
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
             EXPORTING
                  wait   = c_x
             IMPORTING
                  return = s_ret.
   endif.
endif.
if Status_change = 'X'.
      CALL FUNCTION 'BAPI_PS_INITIALIZATION' .
      CALL FUNCTION 'BAPI_BUS2054_SET_STATUS'
      READ TABLE t_result WITH KEY message_type = c_e.
      IF sy-subrc NE 0.
        CALL FUNCTION 'BAPI_PS_PRECOMMIT'
             TABLES
                  et_return = t_ret.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
             EXPORTING
                  wait   = c_x
             IMPORTING
                  return = s_ret.
     ENDIF.
endif.
    WAIT UP TO 4 SECONDS.
endloop.

Try to use
SET UPDATE TASK LOCAL.
before each BAPI call.
Did you try to debug through your code, leaving sufficient time between BAPI calls? If it does work like that, then the above statement might help.

Similar Messages

  • Unable to run payroll for two employees who rejoined the company.

    Dear Community,
    We are unable to run payroll for two employees who  have rejoined the company.
    Any guidance would be appreciated.
    Thanks in advance.

    Hi,
    Can you check payroll status of the mentioned employees in PA30. (IT0003)
    See whether employee number has been locked for payroll or there are dates in the fields for retroactive calculation etc.
    Regards;
    Okan

  • Function Module or BAPI for Sales price calculation and Pricing worklist

    Hi Retail experts,
    We frequently change purchase conditions, but not that frequently for cases like perishables, so sales price calculations needs to be done each time. This means pricing worklist generation and release is done often and then sales price recalculation is done each time article wise and for various organization level.
    We have 15000 articles for which purcahse conditions changes, it is impossible to generate and release pricing worklist and do sales price calculation for each article
    So solution may be to find a FM/BAPI for the following transactions and automate them.
    Do you know FM/BAPI for VKP5/VKBP or VKP6, WVN0, WVN1 transactions.
    Regards
    Bob

    HI Madhu,
             Thanks for the reply,
    I am looking for BAPI or FM which will check all pricing condition types( like MRP of the Material(table A304), discounts(A800,A802,A803,A804) for that customer and Tax) and give me the value(KONP-KBETR).
    I can only pass Customer, material, quantity etc.. so that BAPI or FM has do all standred checks/ validation and give the
    KONP-KBETR for all condition types like MRP, discounts, Tax. we are developing the custom program for sales order creation so we require the all this before saving the sales order.
    Regards,
    Nagesh
    Edited by: nageshdb4u on Mar 5, 2011 12:05 PM

  • NEED BAPI FOR  SALES CONTRACT CREATION AND EXTRACTION FOR Trans- PA41& PA43

    Hi All,
    I need the BAPI for T-code PA41 and PA43 for sales contract.
    i would like to extract all the contract details for Contract data contains Table VEDA. And need to create contract.
    Any body please help me out...
    Please give me code if any one have how to do mapping ..
    Thank you,
    Vishnu.

    Hi Vichu,
    Please search on SCN.
    Regards
    Abhii

  • BAPI for Transaction Codes FMV1 and FMZ1

    hi,
    is there any bapi for transaction codes FMV1 and FMZ1?!
    please advice!
    thanks JE

    HI,
    For FMZ1
    use this
    FMFR_CREATE_FROM_DATA
    FMFR_CHANGE_FROM_DATA
    FMFR_CHANGE_COMPLETION_FLAG
    Regards
    Hiren K.Chitalia

  • Bapi for Project User Status Profile

    Hi,
    Is there any bapi that contains the field "Status Profile (STSMA) of the Project? I only can find the WBS status...
    Thanks in advance.
    LM

    Hi,
    Thanks for your reply.
    But this function is to get the status... The problem is when creating a project by BAPI, the "user status profile" field (STSMA) is not available to fill. In this case, it happens if we have 2 schemes for projects, the bapi only puts the first that appears and I want the 2nd one to be fullfilled.
    How can we create a projet by bapi and have this field?
    Thanks in advance,
    LM

  • FM \ BAPI for complaint status.

    Hi Frinds,
    Kindly suggest me FM \ BAPI to update the complaint status..
    Regards,
    Narendra Goyal

    Dear Narendra,
    You can use FMs CRM_STATUS_MAINTAIN_OW and BAPI_TRANSACTION_COMMIT in order to update the status. Below is the sample code:
    wa_status-ref_guid = v_guid.
    wa_status-ref_kind = 'A'.
    wa_status-status = 'XXXXX'.            "Status to be Set
    wa_status-user_stat_proc = 'Z****'.  " Status Profile
    wa_status-activate = 'X'.
    INSERT wa_status INTO TABLE t_status.
    wa_input_field-ref_guid = lv_guid.      " GUID of the Complaint for which status has to be set
    wa_input_field-ref_kind  = 'A'.
    wa_input_field-objectname  = 'STATUS'.
    wa_input_field_names-fieldname = 'ACTIVATE'.
    INSERT wa_input_field_names INTO TABLE wa_input_field-field_names.
    INSERT wa_input_field_names INTO TABLE t_input_field_names_tab.
    INSERT wa_input_field  INTO TABLE  t_input_field.
    CALL FUNCTION 'CRM_STATUS_MAINTAIN_OW'
    EXPORTING
       it_status_com              = t_status
       iv_check_only              = true
      CHANGING
        ct_input_field_names       = t_input_field_names_tab
    EXCEPTIONS
       not_allowed                = 1
       error_occurred             = 2
       warning_occurred           = 3
       OTHERS                     = 4 .
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ELSE.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    ENDIF.

  • Searching for a Project status = CLSD and open purchase orders?

    Hi,
    I am searching for a project status (Project Builder CJ20N) which allowed my to set a CLSD or a simillar status for settlement with open purchase orders.
    This staus should allowed to process with open orders BUT  not allowed to add new orders after setting this status.
    Have somebody any idee? Or it is impossible?
    Tahnk you in advanced for your Help.
    Regards Baldy

    Hi TV-kid,
    while I was waiting for an answer I got to the same conclusion, so what you offers me is quite tempting actually.
    I got a look to your website and it seems convincing. Still though, your case studies are in other business area, It's only a mater of good knowledge of File Maker.
    I did download the test-drive last version of File Maker plus their samll Business Solution. I did read most of the documentation and the learning process would be too long to construct ourself a good crossed-data base.
    I'd like to get in contact with you to look for a possible colaboration. to get private, I'd liketo do it through your contact link in your website .
    To whom shall I write?
    Thanks
    Cheers
    Cheers

  • BAPI for Purchase Order Confirmation and update EKES table

    Hi all,
    I have a requirement to update the PO confirmation soon after successful creation of PO in an IDOC.
    I have used BAPI_PO_CHANGE function module which didnt serve the purpose as it cannot update confirmations.
    I tried using ME_CONFIRMATION_UPDATE where I was able to add a confirmation entry in EKES table but that is not being reflected in ME23N transaction when I display the PO.
    Please help me out on this.
    Thanks & Regards
    Pavan

    NB: Never use a standard update FM (check attributes of ME_CONFIRMATION_UPDATE) its often only a SQL statement collector without any check, logging of changes or database consistency, if you perform a where-used you should find it is never called alone but with a bunch of other update FM after checks and other update preparation.
    Get back to the BAPI and table parameter POCONFIRMATION, also use BAPI_PO_GETDETAIL1 to get current data for the call of BAPI_PO_CHANGE.
    Regards,
    Raymond
    PS: If it is not in 197958 - BAPIs for purchase orders: Missing functions, you should be able to do it

  • Bapi for Delivery Status

    Hi Experts!
    Can anyone tell me the BAPI to Display the Delivery Status
    for a particuler sales order no or document no.
    Thank U...

    hi,
    BAPI_DELIVERYFREE_PROXY_CREATE Proxy BAPI für Upload einer kostenlosen Nachlieferug SFA-Kontext: Anle
                                                                                    LE_SHP_DB_DELIVERY_BUFFER      Object Buffer Delivery w/Database Access                             
    BAPI_DELIVERY_GETLIST          BAPI for Reading Delivery Data                                                                               
    OIU_DELIVERY_NETWORK           Object Buffer Delivery w/Database Access                             
    BAPI_DELIVERY_NETWORK_CHANGE   Delivery Network BAPI for Changes                                    
    BAPI_DELIVERY_NETWORK_CREATE   BAPI for creating a delivery network                                 
    BAPI_DELIVERY_NETWORK_READ     Display delivery network details                                                                               
    BAPI_INB_DELIVERY_CHANGE                                                                            
    BAPI_INB_DELIVERY_CONFIRM_DEC  BAPI for Inbound Delivery Verification from a Decentralized System   
    BAPI_INB_DELIVERY_SAVEREPLICA  BAPI Function Module for Replication of Inbound Deliveries           
    BAPI_OUTB_DELIVERY_CHANGE                                                                           
    BAPI_OUTB_DELIVERY_CONFIRM_DEC BAPI for Outbound Delivery Confirmation from a Decentralized System  
    BAPI_OUTB_DELIVERY_CREATENOREF Generates Delivery Without Reference                                 
    BAPI_OUTB_DELIVERY_CREATE_SLS  Generates Delivery for Customer Order                                
    BAPI_OUTB_DELIVERY_CREATE_STO  Generates Delivery for Stock Transport Order                         
    BAPI_OUTB_DELIVERY_SAVEREPLICA BAPI Function Module for Replication of Outbound Deliveries          
    BAPI_OUTB_DELIVERY_SPLIT_DEC   BAPI for Subsequent Outbound-Delivery Split from a Decentralized Syste
    and for "Shipment
    BAPI_SHIPMENT_CHANGE           Change Shipment                                                      
    BAPI_SHIPMENT_COST_ESTIMATE    Calculate Shipment Costs of Different Forwarding Agents for Shipment 
    BAPI_SHIPMENT_CREATE           Create Shipment

  • Bapi for customer master update

    hi everybody....
    can anyone tell me the bapi structure for table KNVV and KNVI.
    My requirement is to update the fields below using bapi...
    KUNNR     VKORG     VTWEG     SPART     BZIRK     VKBUR     VKGRP     KDGRP     KONDA     KALKS     PLTYP     VWERK     ZTERM     KNVI-TAXKD
    i need just the BAPI structure for the tables KNVV and KNVI and the function module that will change the datas in the table...
    Can anyone help me out....
    Thnx
    regds

    Look at the following BAPIs :
    <b>BAPI_CUSTOMER_CHANGEFROMDATA</b> alias Customer.ChangeFromData
    PI_ADDRESS     LIKE     BAPIKNA101                               Customer address to be changed
    PI_SALESORG     LIKE     BAPIKNA102-SALESORG                               Sales organization
    PI_DISTR_CHAN     LIKE     BAPIKNA102-DISTR_CHAN                               Distribution channel
    PI_DIVISION     LIKE     BAPIKNA102-DIVISION                               Division
    CUSTOMERNO     LIKE     BAPIKNA103-CUSTOMER                               Customer number of the customer to be changed
    <b>BAPI_CUSTOMER_CHANGEFROMDATA1</b> alias Customer.ChangeFromData1
    PI_PERSONALDATA     LIKE BAPIKNA101_1                          Customer personal data           
    PI_PERSONALDATAX    LIKE BAPIKNA101_1X                         X Customer Personal Data Struc   
    PI_OPT_PERSONALDATA LIKE BAPIKNA105                            Optional customer personal dat   
    PI_OPT_PERSONALDATAXLIKE BAPIKNA105X                           X Optional Customer Personal D   
    PI_COMPANYDATA      LIKE BAPIKNA106                            Customer company data            
    PI_COMPANYDATAX     LIKE BAPIKNA106X                           X Customer Company Data Struct   
    PI_OPT_COMPANYDATA  LIKE BAPIKNA105                            Optional customer company data   
    PI_OPT_COMPANYDATAX LIKE BAPIKNA105X                           X Optional Customer Company Da   
    PI_SALESORG         LIKE BAPIKNA102-SALE                       Sales organization               
    PI_DISTR_CHAN       LIKE BAPIKNA102-DIST                       Distribution channel             
    PI_DIVISION         LIKE BAPIKNA102-DIVI                       Division                         
    CUSTOMERNO          LIKE BAPIKNA103-CUST                       Customer Number of the Customer  
    Regards
    PS: These BAPI are obsolete.

  • Which tables to use for Project Status Report in CR2008 accessing R/3 data?

    I am working on a Project Status Report on a WBS in Crystal Report 2008 that is accessing data from a R/3 system level that will provide me the following fields:
    1) Purchased Hours
    2) Billed Hours
    3) Non-Billed Hours
    4) Credit Memo
    5) Remaining Hours
    The report will be displayed at the WBS level (grouped at WBS level) but will also list the different activities under each WBS.
    Can anyone help me identify which tables and fields I need to be working with? This is how the report will look like:
    CustID     ProjectID     PlantID      WBS#     Activity#      PurchasedHours     BilledHours    Non-BilledHours     CreditMemos    RemainingHours
    Please help.
    Regards.
    -Rohit
    Edited by: RohitBora on Feb 2, 2012 5:59 AM

    If you are using Business One then please post to that forum. CR 2008 is an OEM build for B1 so they support it in that forum.
    Don

  • Unable to run FIMPostInstallScriptsForDataWarehouse for FIM Reporting

    Hi Everyone,
    I am configuring FIM Reporting in which initially I installed scsm 2012 r2 which was not supported and after the uninstallation I installed scsm 2012 sp1,after the installation of scsm management server 2012 sp1 and dataware house when I am running the "FIMPostInstallScriptsForDataWarehouse"
    script it says the following error message in the first screen and when I am trying to install the snappins then it says me to delete this existing files in the second screen.
    My question is how and where should go I go and delete that exisiting snappins so that the script can run. please find the below screen shots
    +

    Hi,
    Can you check payroll status of the mentioned employees in PA30. (IT0003)
    See whether employee number has been locked for payroll or there are dates in the fields for retroactive calculation etc.
    Regards;
    Okan

  • BAPI for Project Definition Creation

    Hi ,
    I have a requirement to auto create projects by uploading from excel template. Some custom fields also need to be populated. Is anybody aware of any BAPI(and how to populate custom fileds) for the same.
    Thanks,
    Harveen.

    Hi
    Transaction BAPI or http://ifr.sap.com
    BAPI_PROJECTDEF_CREATE for project def
    Rgd
    Frédéric

  • Unable to run Office applications after auto update

    My PC has just had a Windows update which took several hours to complete and I am now unable to run any MS Office applications - help anyone!

    Hi, Both Windows and Office are products from Microsoft. Please try:    http://support.hp.com/au-en/document/c03933792 or    https://support.microsoft.com/en-us/gp/windows-update-issues/en-us Good luck.

Maybe you are looking for

  • USB external mass storage devices doesn't work.

    Hey guys, I couldn't find any answer to my problem so I hope you can help me... I have USB Seagate external USB drive which was working perfectly with my mac until I installed VMware. The thing is that since first time I installed XP on VMware and un

  • HP recovery could not restore computer error code 0xe0ef000e

    I bought a nice Solid State drive.  Unfortunately it is not possible to upgrade my system to new hard drive.  It fails every time with HP recovery could not restore computer error code 0xe0ef000e.  This is after removing everything...  graphics card,

  • How to import the photos from the Photos tab in the Photos app in iOS 7?

    I use iPhone 4 with iOS 7. I have done the following steps: Connected my iPhone to my Mac. Opened iPhoto. Clicked on my iPhone in the left sidebar. Clicked the blue button, offering to import X photos. I chose to delete the photos from my iPhone, whe

  • ITunes merges unrelated songs into one album?

    Hey all, I've tried repeatedly to fix this problem and haven't had any luck. I recently added an album to iTunes (11.4) and the following things happened: 1) Under "albums" view, each song from the album had its own separate entry in albums (same alb

  • Help required on PD(PMS)

    Hello Friends, Can someone let me know regarding the PD for PMS What all the infotypes required and documentation of PD(PMS) General Config doc with training PPT