Bapi for Open Projects Cost in PS

HI,
I need a bapi or funcation module for Open Projects Cost in PS .
thanks.

Hi,
Refer this :
http://www.sapbapi.com/bapi-list/

Similar Messages

  • BAPI for Open production orders

    Hi All,
    Any BAPI for open production orders?.... Using BAPI i want to upload open production orders informatiomations.... Please help
    Thanks & Regards
    Santhosh

    Hi,
       Please check the following BAPI,
    Goto BAPI tcode, select hierarchical tab
      Production orders,ProductionOrder ,ProdOrdConfirmation , RCVPRORDCF and check the BAPIs

  • Bapi for open PO

    Hi!
    Can anyone let me know where to find the bapi for open po and how to use it in my report program.
    Thanks in advance.
    Note: Mr Anji Reddy vangala has answered me for which iam very much thankful to him, but i need to know about the concerned bapi.
    Regards,
    Parwez.

    Hi,
    Refer the sample code below which creats PO using BAPI_PO_CREATE1.
    Hope this helps your querry.
    *& Report  YDM_PO_CREATE                                               *
    REPORT  ydm_po_create.
    *-- Input File Declaration
    TYPES: BEGIN OF ty_input_file,
           column1 TYPE char50,
           column2 TYPE char50,
           column3 TYPE char50,
           column4 TYPE char50,
           column5 TYPE char50,
           column6 TYPE char50,
           column7 TYPE char50,
           column8 TYPE char50,
           column9 TYPE char50,
           column10 TYPE char50,
           column11 TYPE char50,
           column12 TYPE char50,
           column13 TYPE char50,
           column14 TYPE char50,
           column15 TYPE char50,
           column16 TYPE char50,
           column17 TYPE char50,
           column18 TYPE char50,
    END OF ty_input_file.
    DATA: i_input_file  TYPE STANDARD TABLE OF ty_input_file,
          wa_input_file TYPE ty_input_file.
    CONSTANTS: c_path     TYPE char20 VALUE 'C:\',
               c_mask     TYPE char9  VALUE ',*.*,*.*.',
               c_mode     TYPE char1  VALUE 'O',
               c_filetype TYPE char10 VALUE 'ASC',
               c_x        TYPE char01 VALUE 'X'.
    PARAMETERS : p_fname   LIKE rlgrap-filename.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fname.
    *-- Browse Presentation Server
      PERFORM f4_presentation_file.
    START-OF-SELECTION..
    *-- Read presentation server file
      PERFORM f1003_upload_file.
      IF NOT i_input_file[] IS INITIAL.
        PERFORM split_data.
      ENDIF.
    *&                  Form  f4_presentation_file
    *&                F4 Help for presentation server
    FORM f4_presentation_file .
      CALL FUNCTION 'WS_FILENAME_GET'
        EXPORTING
          def_path         = c_path
          mask             = c_mask
          mode             = c_mode
          title            = text-001
        IMPORTING
          filename         = p_fname
        EXCEPTIONS
          inv_winsys       = 1
          no_batch         = 2
          selection_cancel = 3
          selection_error  = 4
          OTHERS           = 5.
      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.                    " f4_presentation_file
    *&                      Form  f1003_upload_file
    *&                         Upload File
    FORM f1003_upload_file .
      DATA: lcl_filename TYPE string.
      lcl_filename = p_fname.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = lcl_filename
          filetype                = c_filetype
          has_field_separator     = c_x
        TABLES
          data_tab                = i_input_file
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          OTHERS                  = 17.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        EXIT.
      ENDIF.
    ENDFORM.                    " f1003_upload_file
    *&      Form  split_data
          Collect data for creating Purchase Order
    FORM split_data .
      DATA: i_poitem        TYPE STANDARD TABLE OF bapimepoitem,
            i_poitemx       TYPE STANDARD TABLE OF bapimepoitemx,
            i_poitem_sch    TYPE STANDARD TABLE OF bapimeposchedule,
            i_poitem_schx   TYPE STANDARD TABLE OF bapimeposchedulx,
            i_acct_***      TYPE STANDARD TABLE OF bapimepoaccount,
            i_acct_assx     TYPE STANDARD TABLE OF bapimepoaccountx,
            i_services      TYPE STANDARD TABLE OF bapiesllc ,
            i_srvacc        TYPE STANDARD TABLE OF bapiesklc,
            i_return        TYPE STANDARD TABLE OF bapiret2,
            wa_header       TYPE bapimepoheader,
            wa_headerx      TYPE bapimepoheaderx,
            wa_poitem       TYPE bapimepoitem,
            wa_poitemx      TYPE bapimepoitemx,
            wa_poitem_sch   TYPE bapimeposchedule,
            wa_poitem_schx  TYPE bapimeposchedulx,
            wa_acct_***     TYPE bapimepoaccount,
            wa_acct_assx    TYPE bapimepoaccountx,
            wa_services     TYPE bapiesllc,
            wa_srvacc       TYPE bapiesklc,
            wa_return       TYPE bapiret2,
            ws_po           TYPE bapimepoheader-po_number.
      break gbpra8.
      wa_services-pckg_no = 10.
      wa_services-line_no = 1.
      wa_services-outl_no = '0'.
      wa_services-outl_ind = c_x.
      wa_services-subpckg_no = 20.
      APPEND wa_services TO i_services.
      wa_srvacc-pckg_no = 10.
      wa_srvacc-line_no = 1.
      wa_srvacc-serno_line = 01.
      wa_srvacc-serial_no = 01.
      wa_srvacc-percentage = 100.
      APPEND wa_srvacc TO i_srvacc.
      LOOP AT i_input_file INTO wa_input_file.
        IF wa_input_file-column2 EQ 'HD'.
          wa_header-doc_type = wa_input_file-column3.
          wa_header-creat_date = sy-datum.
          wa_header-created_by = sy-uname.
          wa_header-vendor = wa_input_file-column4.
          PERFORM conversion_output USING wa_header-vendor
                                    CHANGING wa_header-vendor.
          wa_header-comp_code = 'DE03'.
          wa_header-purch_org = 'DE03'.
          wa_header-pur_group = 'DE1'.
          wa_header-vper_start = wa_input_file-column9.
          wa_header-vper_end = wa_input_file-column10.
          wa_headerx-comp_code = c_x.
          wa_headerx-doc_type = c_x.
          wa_headerx-creat_date = c_x.
          wa_headerx-created_by = c_x.
          wa_headerx-vendor = c_x.
          wa_headerx-purch_org = c_x.
          wa_headerx-pur_group = c_x.
          wa_headerx-vper_start = c_x.
          wa_headerx-vper_end = c_x.
        ENDIF.
        IF wa_input_file-column2 EQ 'IT'.
          wa_poitem-po_item = wa_input_file-column3.
          wa_poitem-short_text = wa_input_file-column6.
          wa_poitem-plant = wa_input_file-column8.
          wa_poitem-quantity = '1'.
          wa_poitem-tax_code = 'V0'.
          wa_poitem-item_cat = 'D'.
          wa_poitem-acctasscat = 'K'.
          wa_poitem-matl_group = wa_input_file-column7.
          wa_poitem-pckg_no = '10'.
          APPEND wa_poitem TO i_poitem .
          wa_poitemx-po_item = wa_input_file-column3.
          wa_poitemx-po_itemx = c_x.
          wa_poitemx-short_text = c_x.
          wa_poitemx-plant = c_x.
          wa_poitemx-quantity = c_x.
          wa_poitemx-tax_code = c_x.
          wa_poitemx-item_cat = c_x.
          wa_poitemx-acctasscat = c_x.
          wa_poitemx-matl_group = c_x.
          wa_poitemx-pckg_no = c_x.
          APPEND wa_poitemx TO i_poitemx.
          wa_poitem_sch-po_item = wa_input_file-column3.
          wa_poitem_sch-delivery_date = sy-datum.
          APPEND wa_poitem_sch TO i_poitem_sch.
          wa_poitem_schx-po_item = wa_input_file-column3.
          wa_poitem_schx-po_itemx = c_x.
          wa_poitem_schx-delivery_date = c_x.
          APPEND wa_poitem_schx TO i_poitem_schx.
          wa_acct_***-po_item = 10.
          wa_acct_***-serial_no = 01.
          wa_acct_***-gl_account = '0006360100'.
          wa_acct_***-co_area  = '1000'.
          wa_acct_***-costcenter = 'KC010000'.
          APPEND wa_acct_*** TO i_acct_***.
          wa_acct_***-po_item = 10.
          wa_acct_***-serial_no = 02.
          wa_acct_***-gl_account = '0006360100'.
          wa_acct_***-co_area  = '1000'.
          wa_acct_***-costcenter = 'KC010000'.
          APPEND wa_acct_*** TO i_acct_***.
          wa_acct_assx-po_item = 10.
          wa_acct_assx-serial_no = 01.
          wa_acct_assx-po_itemx = c_x.
          wa_acct_assx-serial_nox = c_x.
          wa_acct_assx-gl_account = c_x.
          wa_acct_assx-co_area  = c_x.
          wa_acct_assx-costcenter = c_x.
          APPEND wa_acct_assx TO i_acct_assx.
          wa_acct_assx-po_item = 10.
          wa_acct_assx-serial_no = 02.
          wa_acct_assx-po_itemx = c_x.
          wa_acct_assx-serial_nox = c_x.
          wa_acct_assx-gl_account = c_x.
          wa_acct_assx-co_area  = c_x.
          wa_acct_assx-costcenter = c_x.
          APPEND wa_acct_assx TO i_acct_assx.
          wa_services-pckg_no = 20.
          wa_services-line_no = 2.
          wa_services-service = wa_input_file-column9.
          wa_services-quantity = '100'.
          wa_services-gr_price = '100'.
          wa_services-userf1_txt = wa_input_file-column13.
          APPEND wa_services TO i_services.
          wa_srvacc-pckg_no = 20.
          wa_srvacc-line_no = 1.
          wa_srvacc-serno_line = 02.
          wa_srvacc-serial_no = 02.
          wa_srvacc-percentage = 100.
          APPEND wa_srvacc TO i_srvacc.
        ENDIF.
      ENDLOOP.
      CALL FUNCTION 'BAPI_PO_CREATE1'
        EXPORTING
          poheader                     = wa_header
          poheaderx                    = wa_headerx
      POADDRVENDOR                 =
      TESTRUN                      =
      MEMORY_UNCOMPLETE            =
      MEMORY_COMPLETE              =
      POEXPIMPHEADER               =
      POEXPIMPHEADERX              =
      VERSIONS                     =
      NO_MESSAGING                 =
      NO_MESSAGE_REQ               =
      NO_AUTHORITY                 =
      NO_PRICE_FROM_PO             =
       IMPORTING
         exppurchaseorder             = ws_po
      EXPHEADER                    =
      EXPPOEXPIMPHEADER            =
       TABLES
         return                       = i_return
         poitem                       = i_poitem
         poitemx                      = i_poitemx
      POADDRDELIVERY               =
         poschedule                   = i_poitem_sch
         poschedulex                  = i_poitem_schx
         poaccount                    = i_acct_***
      POACCOUNTPROFITSEGMENT       =
         poaccountx                   = i_acct_assx
      POCONDHEADER                 =
      POCONDHEADERX                =
      POCOND                       =
      POCONDX                      =
      POLIMITS                     =
      POCONTRACTLIMITS             =
         poservices                   = i_services
         posrvaccessvalues            = i_srvacc
      POSERVICESTEXT               =
      EXTENSIONIN                  =
      EXTENSIONOUT                 =
      POEXPIMPITEM                 =
      POEXPIMPITEMX                =
      POTEXTHEADER                 =
      POTEXTITEM                   =
      ALLVERSIONS                  =
      POPARTNER                    =
      break gbpra8.
      LOOP AT i_return INTO wa_return.
      ENDLOOP.
    ENDFORM.                    " split_data
    *&      Form  conversion_output
          Conversion exit input
    FORM conversion_output  USING    p_ip
                            CHANGING p_op.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = p_ip
        IMPORTING
          output = p_op.
    ENDFORM.                    " conversion_output
    <b>Reward points if this helps.
    Manish</b>

  • Function modules or BAPI for posting plan costs for WBS Element

    Hi all,
    Does anyone know, whether there exists a function module or BAPI for posting plan costs to a WBS Element? K_COSTS_PLAN_PS does not work, because RKP1 is not allowed.
    Greetings

    check
    BAPI_COSTACTPLN_POSTACTINPUT   Activity Input Planning: Posting                
    BAPI_COSTACTPLN_POSTACTOUTPUT  Activity/Price Planning: Posting                
    BAPI_COSTACTPLN_POSTKEYFIGURE  Stat. Key Figure Planning: Postings             
    BAPI_COSTACTPLN_POSTPRIMCOST   Primary Cost Planning: Postings                 
    BAPI_PDTRANSCO_POSTPRIMCOST    Transfer of Planning Data: Post Primary Costs   
    K40C                           CO Actual Postings, Manual                      
    BAPI_ACC_PRIMARY_COSTS_POST    Accounting: Post Primary Costs                  
    BAPI_COPAACTUALS_POSTCOSTDATA  BAPI Operating Concern: Post Costing-Based Actua
    BAPI_PRIM_COST_CHECK_AND_POST  Primary Costs: Formal Parameter Check           
    S@meer

  • Function modules or BAPI for deleting plan costs on a cost center

    Hi all,
    I search for a function module or bapi to delete plan costs / activity on a cost center.
    At the moment I update the planning with 0, but that cause a mass of needles entries on the cost centers.
    For check and posting I use the function group 6026 - BAPI_COSTACTPLN_* ,
    but there is no function for deleting.
    Has anyone an idea?
    Thx for help - points as reward !

    check
    BAPI_COSTACTPLN_POSTACTINPUT   Activity Input Planning: Posting                
    BAPI_COSTACTPLN_POSTACTOUTPUT  Activity/Price Planning: Posting                
    BAPI_COSTACTPLN_POSTKEYFIGURE  Stat. Key Figure Planning: Postings             
    BAPI_COSTACTPLN_POSTPRIMCOST   Primary Cost Planning: Postings                 
    BAPI_PDTRANSCO_POSTPRIMCOST    Transfer of Planning Data: Post Primary Costs   
    K40C                           CO Actual Postings, Manual                      
    BAPI_ACC_PRIMARY_COSTS_POST    Accounting: Post Primary Costs                  
    BAPI_COPAACTUALS_POSTCOSTDATA  BAPI Operating Concern: Post Costing-Based Actua
    BAPI_PRIM_COST_CHECK_AND_POST  Primary Costs: Formal Parameter Check           
    S@meer

  • How do I set a default directory location for opening projects?

    Hi there.
    Using Windows 7. 
    What I mean is when I click on Open Project I want it to always go to the same location, namely C:\Users\Julian\Desktop\Documents\Adobe\Premiere Pro\6.0\Projects
    Each time I try to open a Project it seems to always go to some other random directory in My Docs.
    I've looked for this in Preferences but cannot locate it.
    Any ideas?

    I just tested the Open Project function, and it appears to default to the location of the last project you had opened.
    That said, I don't recommend saving project, or anything associated with your project, on the C: drive.
    Adobe recommends a dedicated drive for video editing, and I've always saved my projects and all associated media on that separate drive. Not a big fan of the "My Documents" folders. Sure you can access them from the desktop, to a degree, but when in the Windows Explorer, stuff is buried too many folder down for my tastes. Makes it difficult to locate files later on.
    I have a drive V: for video and will create a New Folder there when starting a new project. The Project gets saved there, as well as an video, audio, graphics, etc., and I do create sub-folders to organize those assets as inside the main folder.
    Thanks
    Jeff Pulera
    Safe Harbor Computers

  • Webservices for 11i Project Costing

    Hi,
    Does anyone know if there are webservices interfaces for the Oracle Application (Project costing module in specific)?
    We would like to integrate this into the weblogic J2EE server.
    Thanks.

    Hi,
    1. Costing for the Quotation: For you I recommend to go for the Easy cost planning option.
    Please go through the following link:
    http://help.sap.com/saphelp_47x200/helpdata/en/86/98853478616434e10000009b38f83b/frameset.htm
    2. For the workforce planning: you can carry out in SAP via capacity planning and if you wish to do it outside SAP then only the cost can be captured for the labour cost via activities in Project System.
    Please see the link below:
    http://help.sap.com/saphelp_47x200/helpdata/en/ed/b7853488601e33e10000009b38f83b/frameset.htm
    For the configuration purpose:
    http://help.sap.com/saphelp_46c/helpdata/en/3d/72369adc56d11195100060b03c6b76/frameset.htm
    Reward points if found useful.
    Revert back for any other questions.
    Thanks!

  • BAPI for Open Sales Order

    Experts,
    I need a BAPI for list of Sales order against which the invoice has not been generated.  I need to pass date and bapi shall return list of sales order that are not invoiced.
    Thanks
    Harsh

    Hi Frederic
    Sure it does.
    Actually I want to send data from SAP to some .net application. I thought using BAPI would make the job easier.
    Anyways thanks.
    Regards
    Harsh

  • BAPI for open bal for GL?

    Can anyone know the std SAP function module/BAPI that is being able to leverage for calculating the Open Balance of a GL Account?
    Thanks in advance
    Kumar

    hi kumar
    For period wise balances we have the following two BAPI functions. Check whether you can reuse the code written in these BAPI's.
    BAPI_GL_GETGLACCPERIODBALANCES
    BAPI_GL_ACC_GETPERIODBALANCES
    Also look at program RFBUSU00.
    Regards
    naveen

  • BAPI for Moving average cost

    Dear Experts,
    I need a bapi to get the moving average cost for a material. in addition i need another bapi  to get the material availability in all plants something like mmbe.
    please help me.

    Hi Ebrahime,
    You can have a look at MARA, MARC, MARD and MBEW..
    MBEW-VERPR ==> Moving Average Price
    MBEW-LBKUM ==> Total Stock
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7
    ilesh Nandaniya

  • How to create custom BAPI for a project on Agentry?

    As I am very new to BAPI creation, I would like to get some helpful pdf documents or links for creating custom BAPIs, which would fetch data for an Agentry Project to be build.
    Tags edited by: Michael Appleby

    Rajkamal,
    I would recommend you work through the following tutorial on how to build an Agentry application from scratch.  It covers creating a BAPI to retrieve data from the SAP backend to Agentry.
    Part 1 - http://scn.sap.com/docs/DOC-47550
    Part 2 - http://scn.sap.com/docs/DOC-47651
    --Bill

  • Is there any BAPI for closing projects through CJ20 transaction?

    Hello Experts,
    Is there any BAPI available for the CJ20 transaction to try close a project? I have been trying to locate one but haven't came across anyone. Please do let me know if in case any of you happen to know about 1 such BAPI.
    Regards,
    Uday

    Hi,
    A project definition can be changed using the BAPI "BAPI_BUS2001_CHANGE". To do this, the project definition (PROJECT_DEFINITION) and the new values must be entered in the structure "I_PROJECT_DEFINITION". In the structure "I_PROJECT_DEFINITION_UPD", the fields that are to be changed must be marked with 'x'. The other fields remain unchanged. Before the project definition is changed, the following is checked:
    Is another project already being processed in the LUW ?
    Can the project be locked?
    Is the changed data still consistent (do the company code and controlling area match?)
    If all checks are successful, the project definition is changed in the document tables.
    for example:
    CALL FUNCTION 'BAPI_BUS2001_CHANGE'
      EXPORTING
        I_PROJECT_DEFINITION           =
        I_PROJECT_DEFINITION_UPD       =
    " TABLES
    "   ET_RETURN                      =
    "   EXTENSIONIN                    =
    "   EXTENSIONOUT                   =
    Thanks,
    Dhruv Kumar Malhotra

  • BAPI for modifying project status

    Hello all,
    I have found a function :STATUS_TEXT_EDIT to get the status of a project, but now I want to modify the status of the project. Does anybody know if there is a BAPI to do this?
    Thank you very much.
    Reyes

    Hi Reyes!
    I think that there's no any BAPI to change the Status of the Project or WBS element.
    But you can do the next steps for any <b>OBJNR</b> (Project/WBS):
    1. Set a breakpoint in program LBSVAF12 in the form STATUS_UPDATE. Then go to change the status user/system of the project/WBS using transaction CJ02. Make you updations and save. You should reach your breakpoint.
    2. The function module <b>'STATUS_UPDATE'</b> is triggered using internal table "<u>jest_updt</u>". Copy the records of this table carefully. It is updating the standard table JEST (select the corresponding fields in your program).
    3. Using the function module 'STATUS_OBJECT_READ' with the OBJNR you can obtaing the fields <u>OBTYP</u> and <u>STSMA</u>.
    4. Then you're ready to built your ABAP program to automatize the status updation. Append the corresponding records in  the internal table " jest_update" and just function <b>'STATUS_UPDATE' IN UPDATE TASK</b> with your internal table. Then COMMIT WORK AND WAIT. The status is now changed like manually in step 1.
    5. To make it perfect you should maintain the correct change numbers (<u>CHGNR</u>) in the <b>JEST</b> table.
    Best regards and see you in Madrid next time!
    Roger

  • Bapi for getting activity cost

    hi experts,
    is there a bapi that can get network or activity costs,need your help,please
    best regards
    zlf
    Moderator message: please search for available answers before asking.
    Edited by: Thomas Zloch on Nov 6, 2010 9:44 AM

    Hi Ebrahime,
    You can have a look at MARA, MARC, MARD and MBEW..
    MBEW-VERPR ==> Moving Average Price
    MBEW-LBKUM ==> Total Stock
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7
    ilesh Nandaniya

  • BAPI for Getting Project Profiles in Project System

    hi,
         Can any 1 tell me the BAPI to invoke to get project profiles from project system.
    Thanks,
    Debashish Sarkar

    see if this thread is of any help
    Re: File Inputfield - ABAP functions to store files?

Maybe you are looking for