BAPI Error for BAPI_PO_Create1

hi all,
i am supposed to create PO s for all the invoices in a Ztable.so i chose BAPI_po_create1.I am passing all the values but it throws some exception tht it was intercepted by some superior class.
it says FAILURE Exception.
Please help.
Thanks a lot,
Santosh Kotra.

Hi,
have a look at the sample program:-
*& Report  ZBAPI_CREATE_PO                                             *
*& Program demonstrates the BAPI call to create Purchase Order         *
*& Minimum required parameters are used are as per the current         *
*& system configuration                                                *
REPORT  ZBAPI_CREATE_PO                         .
*DATA DECLARATION
CONSTANTS : C_X VALUE 'X'.
*Structures to hold PO header data
DATA : HEADER LIKE  BAPIMEPOHEADER   ,
       HEADERX LIKE  BAPIMEPOHEADERX .
*Internal Tables to hold PO ITEM DATA
DATA : ITEM   LIKE BAPIMEPOITEM  OCCURS 0 WITH HEADER LINE,
       ITEMX  LIKE BAPIMEPOITEMX OCCURS 0 WITH HEADER LINE,
*Internal table to hold messages from BAPI call
       RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
data : w_header(40) value 'PO Header'.
data : ws_langu like sy-langu.
*text-001 = 'PO Header' - define as text element
selection-screen begin of block b1 with frame title text-001.
parameters : company like header-comp_code  default '2700'      ,
             doctyp  like HEADER-DOC_TYPE   default 'NB'        ,
             cdate   like HEADER-CREAT_DATE default sy-datum    ,
             vendor  like HEADER-VENDOR     default '0010000023',
             pur_org like HEADER-PURCH_ORG  default '2700'      ,
             pur_grp like HEADER-PUR_GROUP  default '001'       .
selection-screen end of block b1.
selection-screen begin of block b2 with frame title text-002.
parameters : item_num like ITEM-PO_ITEM  default '00001',
             material like ITEM-MATERIAL default 'CRANE'   ,
             plant    like ITEM-PLANT    default '2700' ,
             quantity like ITEM-QUANTITY default 100.
selection-screen end of block b2.
START-OF-SELECTION.
*DATA POPULATION
ws_langu = sy-langu.   "Language variable
*POPULATE HEADER DATA FOR PO
HEADER-COMP_CODE  = company    .
HEADER-DOC_TYPE   = doctyp     .
HEADER-CREAT_DATE = cdate      .
HEADER-VENDOR     = vendor     .
HEADER-LANGU      = ws_langu   .
HEADER-PURCH_ORG  = pur_org    .
HEADER-PUR_GROUP  = pur_grp    .
*POPULATE HEADER FLAG.
HEADERX-comp_code  = c_x.
HEADERX-doc_type   = c_x.
HEADERX-creat_date = c_x.
HEADERX-vendor     = c_x.
HEADERX-langu      = c_x.
HEADERX-purch_org  = c_x.
HEADERX-pur_group  = c_x.
HEADERX-doc_date   = c_x.
*POPULATE ITEM DATA.
ITEM-PO_ITEM  = item_num.
ITEM-MATERIAL = material.
ITEM-PLANT    = plant.
ITEM-QUANTITY = quantity.
APPEND ITEM.
*POPULATE ITEM FLAG TABLE
ITEMX-PO_ITEM    = item_num.
ITEMX-MATERIAL   = C_X.
ITEMX-PLANT      = C_X .
ITEMX-STGE_LOC   = C_X .
ITEMX-QUANTITY   = C_X .
ITEMX-TAX_CODE   = C_X .
ITEMX-ITEM_CAT   = C_X .
ITEMX-ACCTASSCAT = C_X .
APPEND ITEMX.
*BAPI CALL
CALL FUNCTION 'BAPI_PO_CREATE1'
  EXPORTING
    POHEADER                     = HEADER
    POHEADERX                    = HEADERX
*   POADDRVENDOR                 =
*   TESTRUN                      =
* IMPORTING
*   EXPPURCHASEORDER             =
*   EXPHEADER                    =
*   EXPPOEXPIMPHEADER            =
TABLES
   RETURN                       = RETURN
   POITEM                       = ITEM
   POITEMX                      = ITEMX.
*Confirm the document creation by calling database COMMIT
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
   WAIT          = 'X'
* IMPORTING
*   RETURN        =
end-of-selection.
*Output the messages returned from BAPI call
LOOP AT RETURN.
WRITE / RETURN-MESSAGE.
ENDLOOP.
Regards
Sudheer

Similar Messages

  • BAPI error for mvmt types 201 and 202

    Hi all,
      I'm using a bapi BAPI_GOODSMVT_CREATE for the movement type 201 and 202 with the gm_code = '03' for the transaction mb11- Goods movement. But it returns an error u201D Account 400000 requires an assignment to a CO object u201D...I'm unable to resolve this one....I have attached the code below. Please help me in fixing this issue...
    if sy-subrc = 0.
      loop at it_mchb into wa_mchb.
        if wa_mchb-clabs gt 0.
          clear wa_header.
          wa_header-pstng_date = sy-datum.          " fill header data
          wa_header-doc_date   = sy-datum.
          wa_code-gm_code      = '03'.              "fill code data
          clear wa_item.
          wa_item-material     = wa_mchb-matnr.     " fillitem data
          wa_item-plant        = wa_mchb-werks.
          wa_item-stge_loc     = wa_mchb-lgort.
          wa_item-batch        = wa_mchb-charg.
          wa_item-entry_qnt    = wa_mchb-clabs.
          wa_item-move_type    = '201'.
                       wa_item-entry_uom    = wa_mchb-meins.
          append wa_item to it_item.
        elseif wa_mchb-clabs lt 0.
          clear wa_header.
          wa_header-pstng_date = sy-datum.          " fill header data
          wa_header-doc_date   = sy-datum.
          wa_code-gm_code      = '03'.              "fill code data
          clear wa_item.
          wa_item-material     = wa_mchb-matnr.     " fillitem data
          wa_item-plant        = wa_mchb-werks.
          wa_item-stge_loc     = wa_mchb-lgort.
          wa_item-batch        = wa_mchb-charg.
          wa_item-entry_qnt    = wa_mchb-clabs.
          wa_item-move_type    = '202'.
                       wa_item-entry_uom    = wa_mchb-meins.
          append wa_item to it_item.
        endif.
      endloop.
      clear lv_lin.
      describe table it_item lines lv_lin.
      if lv_lin = 0.
        write : / 'No records found'.
      endif.
      call function 'BAPI_GOODSMVT_CREATE'
        exporting
          goodsmvt_header  = wa_header
          goodsmvt_code    = wa_code
        importing
          materialdocument = lv_matdoc
        tables
          goodsmvt_item    = it_item
          return           = it_return.
      if it_return is initial.        " if record created successfully
        call function 'BAPI_TRANSACTION_COMMIT'. " commit work
        write : / lv_matdoc, 'IS CREATED SUCCESSFULLY' color 5.
        loop at it_item into wa_item.
          write : / 'Mat :', wa_item-material,'bat :', wa_item-batch.
        endloop.
      else.                           " if record is not created successfylly
        loop at it_return into wa_return.
          write : / wa_return-message color 6.
        endloop.
        uline.
      endif.
    else.
      write : / 'No Records found' color 7.
    endif. " gt_s035 is not initial
    Edited by: Arunmozhi_06 on May 30, 2011 12:48 PM

    Hi,
       Did you passing the leading 0's in the cost center field?
    and check the below coding..
    * Structures for BAPI
      data: gm_header  type bapi2017_gm_head_01.
      data: gm_code    type bapi2017_gm_code.
      data: gm_headret type bapi2017_gm_head_ret.
      data: gm_item    type table of
                       bapi2017_gm_item_create with header line.
      data: gm_return  type bapiret2 occurs 0.
      data: gm_retmtd  type bapi2017_gm_head_ret-mat_doc.
      clear: gm_return, gm_retmtd. refresh gm_return.
      perform show_status using 'Scrapping(551) Material'.
    * Setup BAPI header data.
      gm_header-pstng_date = sy-datum.
      gm_header-doc_date   = sy-datum.
      gm_code-gm_code      = '06'.                              " MB11
    * Write 551 movement to table
      clear gm_item.
      move '551'        to gm_item-move_type     .
      move xresb-matnr  to gm_item-material.
      move p_bdmng      to gm_item-entry_qnt.
      move xresb-meins  to gm_item-entry_uom.
      move xresb-werks  to gm_item-plant.
      move xresb-lgort  to gm_item-stge_loc.
      move p_grund      to gm_item-move_reas.
    * Determine cost center per plant
      case xresb-werks.
        when '0004'.
          move '0000041430' to gm_item-costcenter."pass leading zero's in the cost center field
        when '0006'.
          move '0000041630' to gm_item-costcenter.
        when '0007'.
          move '0000041731' to gm_item-costcenter.
        when '0008'.
          move '0000041830' to gm_item-costcenter.
      endcase.
      append gm_item.
    * Call goods movement BAPI
      call function 'BAPI_GOODSMVT_CREATE'
           EXPORTING
                goodsmvt_header  = gm_header
                goodsmvt_code    = gm_code
           IMPORTING
                goodsmvt_headret = gm_headret
                materialdocument = gm_retmtd
           TABLES
                goodsmvt_item    = gm_item
                return           = gm_return.
    Maybe there is some config missing for your cost center, or maybe something missing in your code. check above.
    Regards,
    Dhina,..
    Edited by: Dhina DMD on May 31, 2011 8:02 AM

  • BAPI Error for Vendor Invoice

    Hi Experts
             I am developing a BAPI to post the Vendor Invoice, I am not clear the parameters to be passed. Anyhow i have filled some parameters and am getting the following error, Can anyone suggest me about the error.
    Error :
    Enter a reference to a valid goods receipt (line 000010)
    Coding :
    data:it_head like bapi_incinv_create_header,
    it_item like bapi_incinv_create_item occurs 0 with header line,
    it_acct like bapi_incinv_create_account occurs 0 with header line,
    it_gl like bapi_incinv_create_gl_account occurs 0 with header line,
    it_mat like bapi_incinv_create_material occurs 0 with header line,
    it_ven like bapi_incinv_create_vendorsplit occurs 0 with header line,
    it_ret like bapiret2 occurs 0 with header line.
    data: inv_doc like bapi_incinv_fld-inv_doc_no,
    fisc_yr like bapi_incinv_fld-fisc_year.
    data: zinvdoc(50) type c, zfiscyr(30) type c.
    clear it_head.
    move 'x' to it_head-invoice_ind.
    move '1000' to it_head-comp_code.
    move sy-datum to it_head-doc_date .
    move sy-datum to it_head-pstng_date .
    move '27-61725' to it_head-ref_doc_no .
    move '200' to it_head-gross_amount .
    move 'inr' to it_head-currency .
    move '27-61725' to it_head-item_text .
    move '1WEAVIN20' to it_head-diff_inv .
    move 're' to it_head-doc_type .
    move sy-datum to it_head-bline_date.
    move '2' to it_head-pmtmthsupl.
    move 'a' to it_head-pmnt_block.
    move 'z' to it_head-pymt_meth.
    move '0001' to it_head-pmnttrms.
    clear it_item.
    it_item-ref_doc = '123'.
    it_item-REF_DOC_YEAR = '2008'.
    it_item-REF_DOC_IT = '10'.
    it_item-po_number = '4511007408'.
    it_item-po_item = '10'.
    it_item-invoice_doc_item = '00010'. " ( i don't know what this is for so i gave this no.)
    it_item-item_amount
    it_item-po_unit
    it_item-freight_ve
    append it_item.
    break pp01.
    call function 'BAPI_INCOMINGINVOICE_CREATE'
    exporting
    headerdata = it_head
    addressdata
    importing
    invoicedocnumber = inv_doc
    fiscalyear = fisc_yr
    tables
    itemdata = it_item
    accountingdata
    glaccountdata
    materialdata
    taxdata
    withtaxdata
    vendoritemsplitdata
    return = it_ret.
    Thanks in advance.
    Regards
    Rajaram

    Hi,
    You have to fill the header and item check out 1,2 point in your code...
    Fill in the item details
          CNT = CNT + 1.
    1.      ITEMDATA-INVOICE_DOC_ITEM = CNT.
          ITEMDATA-PO_NUMBER = WA_EKPO-EBELN.
          ITEMDATA-PO_ITEM = WA_EKPO-EBELP.
          ITEMDATA-TAX_CODE = <XX>.
          ITEMDATA-ITEM_AMOUNT = WA_EKPO-NETWR.
          ITEMDATA-QUANTITY = WA_EKPO-MENGE.
          ITEMDATA-PO_UNIT = WA_EKPO-MEINS.
          APPEND ITEMDATA.
          CLEAR ITEMDATA.
    Header Info
    2.    HEADERDATA-INVOICE_IND = 'X'.
        HEADERDATA-DOC_DATE = EKKO-BEDAT.
        HEADERDATA-BLINE_DATE = EKKO-BEDAT.
        HEADERDATA-PSTNG_DATE = SY-DATUM.
        HEADERDATA-COMP_CODE = EKKO-BUKRS.
        HEADERDATA-CURRENCY = EKKO-WAERS.
       HEADERDATA-GROSS_AMOUNT
        HEADERDATA-CALC_TAX_IND = ' '.
        HEADERDATA-PMNTTRMS = EKKO-ZTERM.
    Regadrs,
    Prabhu Rajesh

  • Bapi error for fb01  transaction

    hai friends
    iam using      *bapi_acc_document_post  *
    for posting amount inplace fb01 .
    this bapi is called in module program .
    is it write bapi for this
    or
    else can i use any other bapi for this
    if it right bapi
    how can pass the parameeters to this
    what are the maditary fields in this bapi
    hoe can i pass this values to this bapi.
    pls tell me friends
    thanks
    with regards
    srikanth vipparla

    hai friend
    its ok
    but iam not fiending the documentation for this function module
    so pls helpme the maditari parameters in this function module .
    and iam using 4.6b  .
    or just post me the documentation pls .
    thanks
    ssrikanth vipparla

  • Error in BAPI RETURN for Service Contract

    Hi,
      I get an error in the BAPI Return for the Uploading the Service Contracts by LSMW. The Error Message is E BS No status object is available for &.Also want to know can we upload multiple line of header text for a Contract by this BAPI. If so then how would I do this , as the BAPI structure BAPISDTEXT has textline upto 132 characters. And I am take only one file in LSMW where the header & details come alongwith text. Or could also tell me the file structure of for the data upload. The legacy system sends multiple text in the header for a Contract.For Eg.
    Header1 Detail1 Text1
    HEader1 Detail2 Text2
    Header1 Detail3 Text3
    So I would need this text1TEXT2text3 in the Header Text of the Contracts. Or do I need the change the file structure. Many thanks for your time and help.

    Thanks Nablan, I could do that for multiple header coming in file. But I have a question for you on BAdI ALM_ME_006_GOODSMVT. I have implemented this BAdI , and this BAdI is called by a function Module ALM_MEREP_006_CREATE. When I test this FM giving the Material , Orderid and Movement type entries, this BAdI is triggered when giving a breakpoint. I've given this code for changing the movement type to 961. Cause the stanadrd scenario does not maintain Movement type 961 in Mobile Asset Management. The Movement type 961 for unplanned Materials comes to SAP and changes to 261 as maiantained by TCOKO table. To bypass this & retain the movement type 961 in SAP I'm using this BAdI. Currently this is what I'm doing and am stuck in the method interface how do I call the method.
    method IF_EX_ALM_ME_006_GOODSMVT~CREATE .
    break-point.
    *DATA : i_ce_goodsmovement TYPE REFERENCE
              ALM_ME_CUSTOMER_ENHANCEMENT.
    DATA : lr_badi_goods_movement TYPE REF TO if_ex_alm_me_006_goodsmvt.
    DATA : ls_user_data TYPE ALM_ME_USER_DATA-USERID.
    *DATA : goods_movement TYPE ALM_ME_MATERIAL_MOVEMENT.
    CALL METHOD lr_badi_goods_movement->create
      EXPORTING
           ce_goodsmovement = ce_goodsmovement
      IMPORTING
           user_data        = ls_user_data
           custom_user_data = ls_ce_user_data
           goods_movement   = goods_movement
      changing
           return           = return[].
    CALL FUNCTION 'ALM_ME_COMMIT_OR_ROLLBACK'
           TABLES
                return = return.
    endmethod.
    Please help me to get the data in this method. How do I call this.

  • Error Handling for BAPI MB_COUNT_POST_WITHOUT_INV_DOC for MI10 Transaction

    Hi,
    Can any one suggest me, how to handle the errors for the BAPI MB_COUNT_POST_WITHOUT_INV_DOC, because this bapi does not have any return table for errors handling? And also suggest any other BAPI which fits for MI10 transaction.
    <removed by moderator>
    Thanks&Regards,
    Damuan.
    Edited by: Thomas Zloch on Feb 2, 2012

    Hi Dear,
    Your answer is very helpful, thanks..!!
    But when  i am testing with the EIKPF structure, neither error is populating in EIKPF  nor the records are  posting in MI10. Could you please guess what would be the problem?
    Below are the fields that i am passing through this BAPI
    1)Document date 2)count date 3)plant 4)storage location 5)item number 6)material code 7) entry quantity
    Thanks&Regards,
    Damuan.

  • BAPI:BAPI_TRLSRVAPS_SAVEMULTI2 for TLane creation is giving error

    Hi Gurus,
    I am executing BAPI:BAPI_TRLSRVAPS_SAVEMULTI2 for TLane creation. when i am passing required values like , location from , Location to, model, version, lot size , etc.
    After executing the BAPI is returning that ''Entry was not processed because there is no changing parameter available''. Can any one experienced this before. As i am creating a new TLane, why this error should come???

    Hi ,
    Best way to check the parameter list is ,use the bapi BAPI_TRLSRVAPS_GETLIST (SCM 4.0) or similar available in 5.0 to read the existing transportation lanes successfully created in system.Check all the parameters and update similar parameters for BAPI_TRLSRVAPS_SAVEMULTI2.
    Ofcourse then you can come to exact parameters functionally important to you by trial and error.
    Otherwise you can use the APO loader tool to create the transportation lanes.Although SAP discourages to use it in the production system , for testing it is fine.Please check the FAQ note 551972.
    Regards,
    Nikhil Nalgirkar

  • Database Connection Error:BAPI Error #0

    I have a problem when I preview a report in Crystal Reports 2008 using BW MDX Query I had recieved the following messages:
    1.Failed to retrieve data from database
    and then when I click ok
    2.Database Connection Error:BAPI Error #0
    Error occurred  when starting the parser:timeout during allocate / CPIC-CALL'ThSAPCMRCV'
    I copied the query of crystal report and I execute it inside the transaction of mdxtest
    SELECT  NON EMPTY EXCEPT([0CALMONTH].MEMBERS, {[0CALMONTH].[All]}) ON ROWS FROM [USD_SD_C0/RPT_1] SAP VARIABLES [!V000001] INCLUDING [0CALMONTH].[200401]
    I found the debugger had stopped in the line Break when I click on F8
    I recieve the following error
    Error occurred when starting the parser: timeout
    during allocate / CPIC-CALL: 'ThSAPCMRCV'
    Please anybody can help me

    Dear Ingo
    I had read this note
    I applied the following:
    1.I didn't found the lrfc32.dll in the windows/system32 in my BW server so I asked my basis administrator to upgrade the kernel
    2.after this step I didn't find it again so I had copied the file from the new kernel and copied it to system32 and sysWow
    3.I register successfuly the lrfc32.dll using the commanf regsvr c:/windows/system32/lfrc32.dll
    (note: this step didn't succeed until I had installed SAP GUI in BW server because as I observed that there is a need for C++ compiler which is installed by default when you install GUI)
    after all of this I cannot run any crystal report based on any BW query
    So Please anyboday can help

  • Need BAPI Name for updation of Subcontracting scheduling line agreement

    Hi All,
            Can anybody please tell me BAPI Name for updation of Subcontracting scheduling line agreement from EKET table?
    Note: BAPI_PO_CHANGE is not useful for me.
    Thanks and Regards,
    Atul.

    Hi Muralidhara,
    Can you please give some more details for this BAPI..
    I tried using it , but getting an error "No instance of object type PurchSchedAgreement has been created. External reference:"
    and "Enter G/L Account" (Infact I did specify G/L account in account assignment table)
    with regards,
    Kirti

  • Crystal reports and SAP BI--------BAPI error when executing the report

    Hi All,
    I am getting a problem accessing the data from the SAP BI system into the crystal reports.I created a report in CR2008 on a query built in SAP BI.When I execute this query,I am getting the following error.
    Database Connection Error:'BAPI Error #:0
    Error Occured when starting the parser:timeout during allocate / CPIC-CALL:'ThSAPCMRCV"
    CAN ANYBODY HELP ME OUT Please.
    Thanks,
    Kumar
    Edited by: Madan Koka on Dec 15, 2008 5:47 PM

    Hi,
    I have the same problem. I can create report in Crystal Reports on a query but can`t get data from BW.
    Thx in advance for help
    Jacek

  • SUP 2.2.5 + Offline BAPI Error Handling

    Dear All,
    Following is my Offline Transaction scenario where I require help.
    Use Case:
    MBO created on a Z BAPI that is Creating a GR (Goods Receipt) in SAP ERP. BAPI output contains Error Return Table as well that helps us in finding any error that is thrown from SAP.
    Successful Scenario:
    We create one GR in offline mode and call create() and submitPending() method of the MBO. When connected again and SYNC, it successfully CREATE the GR if there is no Error and I will get a new Document Number. Also, it returns error in Error Return Table if there is any error. We get it by calling the findAll() method on the MBO.
    Problem Scenario:
    We create two or more GRs in offline Mode and call create() and submitPending(). Now Sybase Unwired Platform has two pending Items. When connected again and SYNC, it only returns the LAST successful OR unsuccessful GR record in the findAll(). We lost the other items statuses. We might get the successful items from GR_LIST MBO but any pending items that has ERROR will be lost.
    Is there any way in SUP that I can individually Sync pending items OR get the status of all Pending items after Sync?
    Is this a default behavior of SUP that it flushes all the pending Items at once and ONLY returns the last item status in the Original MBO?
    Looking forward for a quick and favorable response.

    The MBO operations output is is not supported in SUP. Given below discussions gives more information , SUP operations cant get return / output parameter for HWC ?
    How to create SUP native application
    An alternative solution that I can give you:
    Create an MBO using the BAPI used for operation, do not create an operation.
    Keep the input and output of MBO/BAPI as tables (stuctures).
    Call synchronize("sync_grp"); whenever you want to do operation, hence the operation RFC will be called. Make sure you are keeping this MBO in a separate sync group. Pass the input of the operation to the table using personalization keys. ie create PK of table/structure type and fill PK before sync from  mobile.
    Before making a sync call check whether device has internet connectivity. If there is no connectivity store the user entered values locally in device (ex. in SQLite). Keep a button to sync pending operations when the device comes online by the user.
    If the device is online do the sync. After successful sync make a findall query to get the output of operations. Since the output is a table all operations output messages can be found. In the BAPI output table keep a column for success/failure, based on that operation results can be identified.
    Midhun VP

  • BAPI's for PA30- InfoType 7

    Hi ,
    I would like to know if there are BAPI's for the Tx-pa30 infotype7.
    likewise if u have for the InfoTypes2,6,9,21 as well ..it would be of great help .
    Thnks,
    Nazeer

    Hi nazeer,
    We can use the standard FM HR_INFOTYPE_OPERATION
    for allmost all infotypes.
    (If u want to RFC Enabled, u can
    Create your own Z FM, with the same parameters,
    and use this FM inside it)
    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 : P0015 LIKE P0015.
    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'.
    P0015-LGART = '3075'.
    P0015-PREAS = '01'.
    P0015-WAERS = 'INR'.
    P0015-BETRG = '2500'.
    *----- First Enqu
    CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
    EXPORTING
    NUMBER = p0015-pernr
    IMPORTING
    RETURN = RETURNE.
    Update
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
    EXPORTING
    INFTY = '0015'
    NUMBER = P0015-PERNR
    SUBTYPE = P0015-SUBTY
    OBJECTID = P0015-OBJPS
    LOCKINDICATOR = P0015-SPRPS
    VALIDITYEND = P0015-ENDDA
    VALIDITYBEGIN = P0015-BEGDA
    RECORDNUMBER = P0015-SEQNR
    RECORD = P0015
    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 = P0015-PERNR
    regards,
    amit m.

  • I want bapi process for bap_goodsmvt_create  function module

    hai this is siva
    i want bapi process for bap_goodsmvt_create  function module,

    Hi ALL,
    I am new to ABAP.
    I have created function module ZMM5 , no syntax error is there.
    but while activating i am getting error,
    PROGRAM SAPLZSKG REPORT / PROGRAM STATEMENT MISSING, OR PROGRAM TYPE IS I ( INCLUDE).
    I WANT TO CHECK THE SYNTAX FOR UNICODE.
    i am not able to check the syntax as i tried by giving FM name, FG name and include name.
    can you please help me.
    Thanks in advance.
    best regards,
    zubera

  • BAPI/RFC FOR MB52

    PLS PROVIDE BAPI/RFC FOR MB52.
    OR
    PLS PROVIDE BAPI/RFC TO READ MARD-LABST.
    PLS HELP I AM NEW TO SAP.
    I tried
    BAPI_MATERIAL_AVAILABILITY
    but it wont provied al stock for some material it provided error
    EAG024No checking group is maintained for product 000000002000181306, plant JGE1 in matl master.
    my requiremts is
    material/plant/sloc/batch/fr_stk kid of table
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Feb 14, 2011 5:23 PM

    Hi Gautam,
    Check the bapi  BAPI_MATERIAL_STOCK_REQ_LIST. it contains various parameters like MATERIAL
    PLANT,MRP_AREA,0PLAN_SCENARIO,SELECTION_RULE,DISPLAY_FILTER,PERIOD_INDICATOR,GET_ITEM_DETAILS
    GET_IND_LINES,GET_TOTAL_LINES,IGNORE_BUFFER,MATERIAL_EVG
    Read the documentation of this Bapi . If you wont get all parameters what you require better to go for a Zbapi. Please tell if require more help on this
    Regards,
    Madhu.

  • Business Partner - Error for validity periods of addresses R11244

    We are using ECC transaction BP, and we are facing the error "Error for validity periods of addresses" when we tried to change a business Partner.
    Error for validity periods of addresses
    Message no. R11244

    Check the following notes:-
    1)  Note 882726 - SAP BP: Error message R11 244 (BP Transaction + BAPIs)
    2)  Note 1380576 - ECC BP to CRM BP address repln fails due to validity periods
    thanks
    G. Lakshmipathi

Maybe you are looking for

  • Create link in detailled level navigation after creating BSP iview

    Hi All, I have created few bsp iview in portal. After assigning these iview to role, a create link is unnecessary visible in detailled navigation. I would like to hide it. I have tried to play with iview properties but no luck please advice. Regards

  • Critical error while opening the personal data in portal

    Dear friends In the portal after  clicking on the  personal data tab i am getting the following error . A critical error has occured processing of the service has to be terminated .Unsaved data has been lost. Please contact your system administrator

  • Actions aren't working correctly in Photoshop CC 2014

    Hey guys, I hope someone can shed some light on this. I have several actions for Photoshop, that have been working fine in CC 2014. But today when I tried to use one, it would load up fine, though the end result would look wrong. I got 2 friends at w

  • Upgrade of PI_BASIS 2005_1_620/16 in 4.7 to ECC 6.0 Upgrade

    We are currently upgrading our Enterprise 4.7x200 system to ECC 6.0 using the SR3 upgrade CD's. In the BIND_PATCH phase the system is reporting: WARNING: PI_BASIS - selected package level is 15, equivalence level is 16 We have previously implemented

  • Download iPhoto to lightroom? when masters folder is huge?

    https://helpx.adobe.com/lightroom/help/import-iphoto.html  Here are the directions.... but I'm lost at step one. Background.... CC new subscriber. Mac up to date. 1st time ever to use lightroom & photoshop. Trying for over 12 hours. Ready to throw it