Bapi_goodsmvt_create bapi error

Hi friends,
                I developed a bapi for Post Goods Issue (PGI). The BAPI is throwing an error at the Movement Type. The error is ' Goods movement is not possible with mvmt type 601'.
This BAPI should be triggered in the background when VL01N transaction is run. Also please suggest me if we need any userexits / BADIs.  I went through badis. But of no use.
Thanks and Regards,
Murali Krishna .T

Hi Vinod,
               Thanks alot for your reply. I have used the BAPI    BAPI_OUTB_DELIVERY_CONFIRM_DEC. But when I run, it is not displaying any message from return table.
I have passed both the header and item details.
Thanks and Best regards,
Murali

Similar Messages

  • 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

  • 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

  • CR2008 BAPI Error

    Hi,
    i am working the fist time with Crystal Reports 2008 and i dont get data from SAP BW Queries. I can connect to the SAP-System and build a report on the Design screen. But on the Preview screen i get the message "BAPI Error #:0 Fehler beim Start des Parser: timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'". I dont know what to do.

    Hello Tim,
    Please post this query to the [Integration Kits - SAP |BusinessObjects Integration Kits;  forum:
    That forum is monitored by qualified technicians and you will get a faster response there.
    Also, all SAP queries remain in one place and thus can be easily searched in one place.
    Thanks a lot,
    Falk

  • Crystal Reports BAPI Error

    Hi,
    i am working the fist time with Crystal Reports 2008 and i dont get data from SAP BW Queries. I can connect to the SAP-System and build a report on the Design screen. But on the Preview screen i get the message "BAPI Error #:0 Fehler beim Start des Parser: timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'". I dont know what to do.

    I had move this thread to the right forum. Sorry..
    [CR2008 BAPI Error;

  • BAPI Error Message Handling

    Hi Group,
    I am using BAPI ,How to display the BAPI  Error Message (eg:BAPIRET1) which is returning by BAPI

    HI ,
    ITS SIMPLE TRY THIS CODE
    AWARD PTS
    DATA: gt_ret     TYPE TABLE OF bapiret2,
               ls_ret    TYPE bapiret2,
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
        EXPORTING
          salesdocument     = p_vbeln
          order_header_in   = gt_hdr
          order_header_inx  = gt_hdrx
        TABLES
          return            = gt_ret -
    >>>>.<b>IMPORTANT</b>
          order_item_in     = gt_itm
          order_item_inx    = gt_itmx
          schedule_lines    = gt_sched
          schedule_linesx   = gs_schedx
          order_text        = gs_stdtxt.
          PARTNERS          = gs_partner
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      LOOP AT gt_ret INTO ls_ret.
        WRITE:/ ls_ret-type.
        WRITE:/ ls_ret-message.
      ENDLOOP.

  • Passing BAPI  Error Messages to BDC  Session.

    Hi,
    Can any one drive the idea how to convert rather passing BAPI error messages into BDC session.
    regards.

    Naveen,
    I am sure you already have the logic of "If the call transaction is errored out you create a BDC session for the same data".
    Now, when your BAPI fails, irrespective of the error, you need to build the BDCDATA table and pass the data to the session. So, I don't you really need to know the errors and pass them to the BDC Session.
    Check the RETURN table of the BAPI, if it has got E / A / X error types then you can build the BDCDATA table and create the session.
    Regards.
    Ravi
    Note : Please mark the helpful answers and close the thread if the issue is resolved.

  • Bapi error in BAPI_GOODSMVT_CREATE

    HI friends ,
    i am using BAPI_GOODSMVT_CREATE for migo using movement type 101 . but it is always throughing
    same error  'Goods movement not possible with mvmt type 101' . i am unable to understand the actual cause of this error . what should i do shall we have to use any other bapi for this . plz help me regarding this .
    Thanks ,
    Amit Ranjan

    HI FRIEND ,
    thanks for your prompt reply .  i have used   goodsmvt_item-mvt_ind = 'B'  but the error is still there .
    i am sending u my whole program for better understanding .
    *& Report  ZBAP
    REPORT  ZBAP.
    parameters: xpost like sy-datum default sy-datum.
    data: begin of gmhead.
            include structure bapi2017_gm_head_01.
    data: end of gmhead.
    data: begin of gmcode.
            include structure bapi2017_gm_code.
    data: end of gmcode.
    data: begin of mthead.
            include structure bapi2017_gm_head_ret.
    data: end of mthead.
    data: begin of itab occurs 100.
            include structure bapi2017_gm_item_create.
    data: end of itab.
    data: begin of errmsg occurs 10.
            include structure bapiret2.
    data: end of errmsg.
    data: wmenge like iseg-menge,
          errflag.
    data: begin of pcitab occurs 100,
            ext_doc(10),           "External Document Number
            mvt_type(3),           "Movement Type
            doc_date(8),           "Document Date
            post_date(8),          "Posting Date
            plant(4),              "Plant
            material(18),          "Material Number
            qty(13),               "Quantity
            recv_loc(4),           "Receiving Location
            issue_loc(4),          "Issuing   Location
            pur_doc(10),           "Purchase Document No
            po_item(3),            "Purchase Document Item No
            del_no(10),            "Delivery Purchase Order Number
            del_item(3),           "Delivery Item
            prod_doc(10),          "Production Document No
            scrap_reason(10),      "Scrap Reason
            upd_sta(1),            "Update Status
          end of pcitab.
    call function 'WS_UPLOAD'
      exporting
        filename                      = 'c:\migo.txt'
        filetype                      = 'DAT'
    IMPORTING
      FILELENGTH                    =
      tables
        data_tab                      = pcitab
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_READ_ERROR               = 2
      NO_BATCH                      = 3
      GUI_REFUSE_FILETRANSFER       = 4
      INVALID_TYPE                  = 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.
      exit.
    endif.
    gmhead-pstng_date = sy-datum.
    gmhead-doc_date = sy-datum.
    gmhead-pr_uname = sy-uname.
    gmcode-gm_code = '01'.   "01 - MB01 - Goods Receipts for Purchase Order
    loop at pcitab.
      itab-move_type  = pcitab-mvt_type.
      itab-mvt_ind    = 'B'.
      itab-plant      = pcitab-plant.
      itab-material   = pcitab-material.
      itab-entry_qnt  = pcitab-qty.
      itab-move_stloc = pcitab-recv_loc.
      itab-stge_loc   = pcitab-issue_loc.
      itab-po_number  = pcitab-pur_doc.
      itab-po_item    = pcitab-po_item.
      concatenate pcitab-del_no pcitab-del_item into itab-item_text.
      itab-move_reas  = pcitab-scrap_reason.
    append itab.
    endloop.
    call function 'BAPI_GOODSMVT_CREATE'
      exporting
        goodsmvt_header             = gmhead
        goodsmvt_code               = '03'
      TESTRUN                     = ' '
    IMPORTING
        goodsmvt_headret            = mthead
      MATERIALDOCUMENT            =
      MATDOCUMENTYEAR             =
      tables
        goodsmvt_item               = itab
      GOODSMVT_SERIALNUMBER       =
        return                      = errmsg .
    clear errflag.
    loop at errmsg.
      if errmsg-type eq 'E'.
        write:/'Error in function', errmsg-message.
        errflag = 'X'.
      else.
        write:/ errmsg-message.
      endif.
    endloop.
    if errflag is initial.
      commit work and wait.
      if sy-subrc ne 0.
        write:/ 'Error in updating'.
        exit.
      else.
        write:/ mthead-mat_doc, mthead-doc_year.
      endif.
    endif.
    PLZ check it and telll me where is the fault .
    Thanks ,
    Amit Ranjan

  • Goods issue using bapi  BAPI_GOODSMVT_CREATE getting error E M7

    HI  consultants,
    While  posting goods issue using bapi BAPI_GOODSMVT_CREATE . Running the batch job(zprogram) to post the goods issue . The goods issue is been posted by passing  goods receipt data's.
    while processing 3 goods receipt , 2 works fine one goods receipt getting  E M 7 300 NO ITEMS ARE TRANSFERED error.
    when i  processing one by one all the 3 goods receipt is working fine and process sucessfully. While processing in bulk ,i am getting this issue.
    If anybody faces this same problem or knows the solution .Please post the answer.
    The way i am passing the parameter to bapi given bellow.
        WA_GOODSMVT_CODE-GM_CODE = C_03.
    *--populate header data
        WA_GOODSMVT_HEADER-DOC_DATE   = WA_MKPF-BLDAT.
        WA_GOODSMVT_HEADER-PSTNG_DATE = WA_MKPF-BUDAT.
    *--populate item data      
    *-- call the bapi for posting goods issue
                 IT_GOODSMVT_ITEM-NETWORK     = WA_RESBP-AUFNR.
                IT_GOODSMVT_ITEM-RESERV_NO   = WA_RESBP-RSNUM.
                IT_GOODSMVT_ITEM-RES_ITEM    = WA_RESBP-RSPOS.
                IT_GOODSMVT_ITEM-ACTIVITY    = WA_RESBP-VORNR.
                IT_GOODSMVT_ITEM-MOVE_TYPE   = C_281.
                IT_GOODSMVT_ITEM-ENTRY_QNT   = WA_RESBP-NET.
    *--get the item details
                  IT_GOODSMVT_ITEM-MATERIAL   = WA_MSEG-MATNR.
                  IT_GOODSMVT_ITEM-PLANT      = WA_MSEG-WERKS.
                  IT_GOODSMVT_ITEM-STGE_LOC   = WA_MSEG-LGORT.
                  IT_GOODSMVT_ITEM-ENTRY_UOM  = WA_MSEG-ERFME.
                  CALL FUNCTION 'CONVERSION_EXIT_ABPSP_OUTPUT'
                    EXPORTING
                      INPUT  = WA_MSEG-PS_PSP_PNR
                    IMPORTING
                      OUTPUT = WA_PSPHI_TEMP.
                  IT_GOODSMVT_ITEM-WBS_ELEM   = WA_PSPHI_TEMP.
                  APPEND IT_GOODSMVT_ITEM.  
                CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
                  EXPORTING
                    GOODSMVT_HEADER  = WA_GOODSMVT_HEADER
                    GOODSMVT_CODE    = WA_GOODSMVT_CODE
                  IMPORTING
                    MATERIALDOCUMENT = WA_MATERIALDOCUMENT
                  TABLES
                    GOODSMVT_ITEM    = IT_GOODSMVT_ITEM
                    RETURN           = IT_RETURN.
    With Regards,
    Ambrose Mohandoss.

    Problem solved.

  • BAPI error (BAPI_GOODSMVT_CREATE)

    Hi Experts,
    I'm using the above BAPI for GR transaction (SubCon PO with material BOM) but I'm getting this error:
    errmsg ID = LB
    errmsg number = 031
    errmsg message = "Of the required quantity of material 11000006, 6.000 BOT remain(s) open".
    If I used this BAPI to GR local and Foreign PO without BOM, it runs smoothly and no error at all.  I need to know if I'm missing any parameter

    Hi
    Check Note 110158 - New proposal logic for GR for SC scheduling agrment or the attachment document in SAP Note 205454 - Documentation on subcontracting. My suggestion is that you have to search help from a MM functional.
    Regards
    Eduardo

  • 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_goodsmvt_create: no error return, but no document created!

    Hi guys!
    I have i weired problem.
    I'm using the bapi_goodsmvt_create to create a goods receipt document for a standard order.
    The simulation works fine, no error or warning return, the bapi_goodsmvt_create  without simulation flag works fine, bapi_transaction_commit returns no error as well, BUT: the document was not created.
    Any idea about the problem?

    Commit the work ..
    This code might help u
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
        EXPORTING
          goodsmvt_header       = wa_header
          goodsmvt_code         = wa_gm_code
        IMPORTING
          goodsmvt_headret      = tbl_export
          materialdocument      = matdoc
          matdocumentyear       = year
        TABLES
          goodsmvt_item         = tbl_item
          goodsmvt_serialnumber = tbl_serial
          return                = return.
      WRITE AT 10 'STATUS OF BAPI UPLOAD' COLOR 2 INTENSIFIED ON .
      SKIP 2.
      LOOP AT return ASSIGNING <fs_return>.
        IF <fs_return>-type EQ 'E'.
          WRITE AT 10 'Error in function:' COLOR 6 INTENSIFIED OFF.
          WRITE AT 28 <fs_return>-message .
          SKIP 1.
          err_flag = 'X'.
        ELSE.
          WRITE AT 10 <fs_return>-message .
          SKIP 1.
        ENDIF.
      ENDLOOP.
      IF err_flag IS INITIAL.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
        IF sy-subrc NE 0.
          WRITE:/ 'Error in updating'.
          EXIT.
        ELSE.
          WRITE:/
    'Number of Material Document created through BAPI:',tbl_export-mat_doc.
          WRITE:/ 'Material Document Year':, tbl_export-doc_year.
        ENDIF.
      ENDIF.

  • BAPI_GOODSMVT_CREATE costcenter error

    Hi,
    I try to use BAPI_GOODSMVT_CREATE for goods movement of type 201.
    When I had to send COSTCENTER parameter with the BAPI, Iit started to give errors such like "Cost center xxxx/yyyy does not exist on dd.mm.yyyy." but I'm sure that cost center exists in this period. Probabily error is something else. So I think I have to send some other parameters to BAPI but I'm not sure which one. Here I my parameters :
    gmhead-pstng_date = sy-datum.
    gmhead-doc_date   = sy-datum.
    gmhead-pr_uname   = sy-uname.
    gmhead-ref_doc_no = DOC_ID.
    gmcode-gm_code  = GM_CODE.
    itab-mvt_ind    = ''.
    itab-plant      = '0001'.
    itab-material   = PART_NO.
    itab-entry_qnt  = AMOUNT.
    itab-entry_uom  = ''.
    itab-move_type  = MOVE_TYPE.
    itab-stge_loc   = STORAGE.
    itab-move_stloc = STORAGE_MOVE.
    itab-batch      = BATCH.
    itab-spec_stock = SPEC_STOCK.
    itab-vendor     = CONS.
    itab-costcenter = COSTCENTER.
    So do you have any idea what can be the error? Before I sent costcenter to the BAPI, everything was correct.
    Thanks...

    Unfortunately I have another problem now.
    When the SPEC_STOCK is "K", I give the vendor to the BAPI. But this time I get error
    "Account XXXXXXXXXX requires an assignment to a CO object"
    And again it is possible to make goods movement by MB1A transaction. And also it was possible to run BAPI before I give COSTCENTER parameter with special stock "K". So I think it has to be given a default value for some parameter. But I have no idea which one..
    Thanks...

  • BAPI_GOODSMVT_CREATE giving error  purchase order is locked by user

    I am calling multiple times BAPI_GOODSMVT_CREATE for same Purchase order to post goods receipt.
    first goods receipt created successfully but second one has given the error the Purchase order is lockecd by USER 'XXXX' .
    i am calling 'BAPI_TRANSACTION_COMMIT after each BAPI BAPI_GOODSMVT_CREATE.
    i tried with passing parameter WAIT = 'X' in 'BAPI_TRANSACTION_COMMIT. then also getting same error message.
    please any one tell me the solution

    Hi
    1. Check all the call is handled the release function(JCO.releaseClient(client)) for each call.
    2. And check in finally
    finally {
         try {
         if (client != null) {
           JCO.removeClientPool(SID);
           JCO.releaseClient(client);
         if(client.isAlive()){
              client.disconnect();
           JCO.releaseClient(client);                    }
         } catch (JCO.Exception ex) { }
    Kind Regards
    Mukesh

  • Can i release the stock by "BAPI_GOODSMVT_CREATE" bapi ?

    Dear Guru ,
    Currently , in our SAP  purchase goods receipt process , we will do the 103 movement GR and Blocked the stock in storage location firstly , and then we do the 105 movement to realse the GR Blocked .
    Base on this process , we try to use bapi to simplify the user operation .
    For 103 movement GR and Blocked , everything is okay . But for the 105 movement release operation , it always showed me :
    PU GR blocked stock exceeded by 20 PC : P913691030001 MSCC 5000
    Can you please take a look my abap program and guide me how to fix this problem ?
    Many thanks .
    Best Regards,
    Carlos
    Edited by: Carlos Zhang on Feb 3, 2010 4:30 AM
    Edited by: Carlos Zhang on Feb 3, 2010 4:31 AM

    DATA : i_goodsmvt_headret LIKE bapi2017_gm_head_ret OCCURS 0 WITH HEADER LINE.
    DATA : BEGIN OF I_GOODSMVT_ITEM OCCURS 0.
                 INCLUDE STRUCTURE BAPI2017_GM_ITEM_CREATE.
    DATA : END OF I_GOODSMVT_ITEM.
    DATA : BEGIN OF I_GOODSMVT_HEADER OCCURS 1.
                 INCLUDE STRUCTURE BAPI2017_GM_HEAD_01.
    DATA : END OF I_GOODSMVT_HEADER.
    DATA : BEGIN OF I_GOODSMVT_RETURN OCCURS 0.
                 INCLUDE STRUCTURE BAPIRET2.
    DATA : END OF I_GOODSMVT_RETURN.
    DATA : BEGIN OF I_GOODSMVT_RETURN_TOT OCCURS 0.
                 INCLUDE STRUCTURE BAPIRET2.
    DATA : END OF I_GOODSMVT_RETURN_TOT.
    i_goodsmvt_header-doc_date = sy-datum.
    i_goodsmvt_header-pstng_date = sy-datum.
    i_goodsmvt_header-pr_uname = sy-uname.
    i_goodsmvt_header-header_txt = '47000382' .
          APPEND i_goodsmvt_header.
    i_goodsmvt_item-vendor = '0000200661'. 
    i_goodsmvt_item-po_number = '4500006153'.
    i_goodsmvt_item-po_item = '00020'.
    i_goodsmvt_item-plant     = 'MSCC'.
    i_goodsmvt_item-stge_loc  = '5000'.
    i_goodsmvt_item-move_type = '105'.
    i_goodsmvt_item-material  = 'P913691030001'.
    i_goodsmvt_item-entry_qnt = '20'.
    i_goodsmvt_item-mvt_ind   = 'B'.
          APPEND i_goodsmvt_item.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'  
       EXPORTING
          goodsmvt_header  = i_goodsmvt_header
          goodsmvt_code    = '01'
          TESTRUN          = 'X'
       IMPORTING
          goodsmvt_headret = i_goodsmvt_headret
       TABLES
          goodsmvt_item    = i_goodsmvt_item
          return           = i_goodsmvt_return.
    IF i_goodsmvt_return[] IS INITIAL.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
       EXPORTING
          wait = 'X'.
    ELSE.
       READ TABLE i_goodsmvt_return WITH KEY type = 'E'. 
       WRITE : '105 error' , i_goodsmvt_return-message .
    ENDIF .
    Edited by: Carlos Zhang on Feb 3, 2010 4:35 AM
    Edited by: Carlos Zhang on Feb 3, 2010 4:37 AM

Maybe you are looking for

  • I have paid for a film and can play it without downloading it on my iPad but I cannot seem to do this with my MacBook Pro. How do I do this?

    Hello all, I am looking for assistance with this. I have iTunes 11.1.5. I want to play movies I have purchased from the iTunes Store without downloading them as my storage is limited. I seem able to do this on my iPhone and iPad but it does not seem

  • I can't install Oracle 10g Client in x86-64(Intel EM64T)

    Dear All, Recently, I tried to install the Oracle 10g client in Redhat Enterprise Linux 4.0 with x86-64 (Intel EM64T) platform. As I know,that is either Oracle 9i or Oracle 10g has been certified to Redhat AS 3.0 operating system. How can I install O

  • After upgrade to ios 8, some pictures in the album became blur?

    Hi, I'm using 5S, and after an upgrade to IOS8 (from 7.1 i think), i realised some of the photos that was previously in my photo rollbecomes blurry. I am very sure those original photos were not blur in the first place. I have tried re-starting the p

  • Activity Monitor no more working!

    Suddenly, I discovered today, starting Activity Monitor show me an alert panel with "the application closed unexpectedly", and bye bye. Also as admin user. What the he**? I have the last available version on my iMac PowerPC, no software update to dow

  • IPhoto 6 and FileVault

    My wife and I both use iPhoto 6 with FileVault. Editing files quickly eats up disk space and you have to log out to recover this space. I suspect (but don't know for sure) that there are temp files being created and deleted. Has anyone else seen this