Doubt in bapi_goodsmvt_create?

hi experts,
i am Creating a GOODS RECEIPT using BAPI w.r.t PO.
my problem is for an order 12 qun is there but iam passing all parameters to BAPI
but i have created 4 times GOODS RECEIPT for each time 2 qun .Now when iam trying to create for remaining 4 qun at a time Now error is like this
<b>6000004139 N M7 022 PL Stock in transit exceeded by 2 NO : 105720036000400 2011 F100 M</b>
i check for other po also if i give quantity more then 2 it is showing like this error message
regards,
satheesh.

sir,
i checked it taking more than 2 also.
  but quantity which is at purchase order is not possible to create GR for all quntity
but if u go to transaction MB01 check quantity then it is showing some value ie correct value what value po consists minus wat quantity we created GR.
i will send my code also check plzzz.
report  zstock_in_transit_gr no standard page heading.
Data Section
*TABLES
tables: mkpf .                      " Material Document
Internal Tables
data: begin of i_po_gr occurs 0,
       doc_date(8),
        post_date(8),
        werks(4),
        lgort(4),
        matnr(18),
        ebeln(10),
        ebelp(6),
        menge(20),
        meins(3),
        batchno(10),
      end of i_po_gr.
data: begin of i_po occurs 0,
        ebeln(10) type c,
        flag(1) type c,
        message(100) type c,
      end of i_po.
data: v_charg like mchb-charg.
*Internal table for BAPI
data: goodsmvt_header  like bapi2017_gm_head_01,
      goodsmvt_code    like bapi2017_gm_code ,
      materialdocument like bapi2017_gm_head_ret-mat_doc,
      year             like bapi2017_gm_head_ret-doc_year.
*************Variable*********************************************
data :  v_error_filename like rlgrap-filename.
data: goodsmvt_item like bapi2017_gm_item_create occurs 0 with header line,
       return       like bapiret2 occurs 0 with header line.
******************SELECTION SCREEN*********************************
selection-screen begin of block b1 with frame title text-001.
parameter: p_file like ibipparms-path obligatory.
selection-screen skip.
selection-screen:end of block b1.
*******************END OF SELECTION SCREEN***************************
*Intialization
initialization.
  goodsmvt_code = '01'.
at selection-screen on value-request for p_file .
  perform get_filename.
START-OF-SELECTION
start-of-selection.
  perform upload_file.
  perform to_get_batch.
  perform get_unique_po.
  loop at i_po.
*append header details
    perform append_header.
    loop at i_po_gr where ebeln = i_po-ebeln.
*append items
      perform append_items.
    endloop.
   PERFORM check_material_lock.
*call bapi for creating grn
    perform call_bapi.
**display data
    write : / i_po-ebeln, i_po-flag, i_po-message.
  endloop.
end-of-selection
end-of-selection.
           FORMS AND SUB-ROUTINES
*&      Form  GET_FILENAME
form get_filename.
  call function 'F4_FILENAME'
      exporting
           program_name  = syst-repid
           dynpro_number = syst-dynnr
        FIELD_NAME    = ' '
      importing
           file_name     = p_file
       exceptions
            others        = 1.
  if sy-subrc ne 0  .
    write : / 'Enter File Name'.
  endif.
endform.                               " GET_FILENAME
*&      Form  UPLOAD_FILE
form upload_file .
  call function 'WS_UPLOAD'
      exporting
        CODEPAGE                = ' '
           filename                = p_file
           filetype                = 'DAT'
        HEADLEN                 = ' '
        LINE_EXIT               = ' '
        TRUNCLEN                = ' '
        USER_FORM               = ' '
        USER_PROG               = ' '
   IMPORTING
        FILELENGTH              =
       tables
            data_tab                = i_po_gr
       exceptions
            conversion_error        = 1
            file_open_error         = 2
             file_read_error         = 3
             invalid_table_width     = 4
             invalid_type            = 5
              no_batch                = 6
              unknown_error           = 7
              gui_refuse_filetransfer = 8
             others                  = 9.
  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.                    " UPLOAD_FILE
*&      Form  get_unique_po
form get_unique_po .
  loop at i_po_gr.
    i_po-ebeln = i_po_gr-ebeln.
    collect i_po.
  endloop.
endform.                    " get_unique_po
*&      Form  append_header
form append_header .
  read table i_po_gr with key ebeln = i_po-ebeln.
  clear goodsmvt_header.
  refresh goodsmvt_item.
  goodsmvt_header-header_txt = i_po_gr-ebeln.
  goodsmvt_header-pstng_date = i_po_gr-post_date.    "POSTING DATE
goodsmvt_header-doc_date   = i_po_gr-doc_date.    "DOC DATE
endform.                    " append_header
*&      Form  append_items
form append_items.
  clear goodsmvt_item.
PERFORM toget_batch_no.
    translate i_po_gr-matnr to upper case.  "MODIFIED BY B.SATHEESH(UNISOFT) 20-09-07
    translate i_po_gr-werks to upper case.  "MODIFIED BY B.SATHEESH(UNISOFT) 20-09-07
    translate i_po_gr-lgort to upper case.  "MODIFIED BY B.SATHEESH(UNISOFT) 20-09-07
  call function 'CONVERSION_EXIT_MATN1_INPUT'
    exporting
      input        = i_po_gr-matnr
    importing
      output       = i_po_gr-matnr
    exceptions
      length_error = 1
      others       = 2.
  if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  endif.
  goodsmvt_item-material   = i_po_gr-matnr.                "MATERIAL
  goodsmvt_item-move_type  = '101'.                        "GOODSMOVEMENT(GR)
  goodsmvt_item-entry_qnt  = i_po_gr-menge.                "QUANTITY
  goodsmvt_item-entry_uom  = i_po_gr-meins.                "UOM
  goodsmvt_item-plant      = i_po_gr-werks.                "PLANT
  goodsmvt_item-stge_loc   = i_po_gr-lgort.                "STORAGE LCATION
  goodsmvt_item-po_number  = i_po_gr-ebeln.                "PURCHASE ORDER NO DELIV_ITEM_TO_SEARCH
goodsmvt_item-deliv_numb_to_search  = i_po_gr-ebeln.
  goodsmvt_item-po_item    = i_po_gr-ebelp.                "PURCHASE ORDER ITEM
goodsmvt_item-deliv_item_to_search    = i_po_gr-ebelp.
  goodsmvt_item-batch      = i_po_gr-batchno.
  goodsmvt_item-mvt_ind    = 'B'.                          "GODS MVT INDICATOR
  append goodsmvt_item.
CLEAR: v_lifnr.
endform.                    " append_items
*&      Form  call_bapi
      text
-->  p1        text
<--  p2        text
form call_bapi .
  data: v_type(1).
  call function 'BAPI_GOODSMVT_CREATE'
     exporting
       goodsmvt_header             = goodsmvt_header
       goodsmvt_code               = goodsmvt_code
    TESTRUN                     = ' '
    importing
    GOODSMVT_HEADRET            =
       materialdocument            = materialdocument
       matdocumentyear             = year
     tables
       goodsmvt_item               = goodsmvt_item
    GOODSMVT_SERIALNUMBER       =
       return                      = return.
  if not return[] is initial.
    read table return with key type = 'E'.
    v_type = 'N'.
    if sy-subrc is initial.
      concatenate return-id return-number return-message
                  into i_po-message separated by space.
    endif.
  else.
    if materialdocument ne space or materialdocument ne 0.
      v_type = 'Y'.
      call function 'BAPI_TRANSACTION_COMMIT'
        exporting
          wait = '2'.
         IMPORTING
           RETURN        = I_RETURN1.
      concatenate 'Material Document Created No is' materialdocument year into i_po-message separated by space.
    endif.
  endif.
  clear: goodsmvt_header,
         materialdocument,
         year,
         goodsmvt_item,
         return.
  refresh: goodsmvt_item,
         return.
  move v_type to i_po-flag.
  modify i_po.
  clear v_type.
endform.                    " call_bapi
*&      Form  check_material_lock
form check_material_lock .
  data : i_seqg3 like seqg3 occurs 0 with header line.
  do 100 times.
    call function 'ENQUEUE_READ'
      exporting
        gclient                     = sy-mandt
        gname                       = 'MARC'
     GARG                        = ' '
     GUNAME                      = SY-UNAME
     LOCAL                       = ' '
   IMPORTING
     NUMBER                      =
     SUBRC                       =
      tables
        enq                         = i_seqg3
   EXCEPTIONS
     COMMUNICATION_FAILURE       = 1
     SYSTEM_FAILURE              = 2
     OTHERS                      = 3
    if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    if i_seqg3[] is initial.
     CLEAR : return,
             message.
      exit.
    else.
      loop at i_seqg3.
        loop at goodsmvt_item.
          if i_seqg3-garg cs goodsmvt_item-material.
            exit.
          endif.
        endloop.
      endloop.
    endif.
    wait up to 1 seconds.
  enddo.
endform.                    " check_material_lock
*&      Form  to_get_batch
      text
-->  p1        text
<--  p2        text
form to_get_batch .
  data : it_gi_tmp like i_po_gr occurs 0 with header line,
           l_clabs like mchb-clabs,
           l_xchpf like mara-xchpf.
  loop at i_po_gr.
    translate i_po_gr-matnr to upper case.  "MODIFIED BY B.SATHEESH(UNISOFT) 20-09-07
    translate i_po_gr-werks to upper case.  "MODIFIED BY B.SATHEESH(UNISOFT) 20-09-07
    translate i_po_gr-lgort to upper case.  "MODIFIED BY B.SATHEESH(UNISOFT) 20-09-07
    it_gi_tmp = i_po_gr.
    clear l_xchpf.
    call function 'CONVERSION_EXIT_MATN1_INPUT'
      exporting
        input        = i_po_gr-matnr
      importing
        output       = i_po_gr-matnr
      exceptions
        length_error = 1
        others       = 2.
    if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    select single xchpf from mara into l_xchpf where matnr = i_po_gr-matnr.
    IF l_xchpf = 'X'.
      select charg clabs from mchb into (v_charg, l_clabs) where matnr = i_po_gr-matnr and werks = i_po_gr-werks and lgort = i_po_gr-lgort.
        if sy-subrc <> 0.
          move : 'BEFORE SAP' to it_gi_tmp-batchno.
        endif.
        move : v_charg to it_gi_tmp-batchno.
        append it_gi_tmp.
      endselect.
    ELSE.
      APPEND it_gi_tmp.
    ENDIF.
  endloop.
  refresh i_po_gr.
  i_po_gr[] = it_gi_tmp[].
  refresh it_gi_tmp.
endform.                    " to_get_batch
regards,
satheesh.
Message was edited by:
        satheesh sath

Similar Messages

  • Doubt in BAPI_GOODSMVT_CREATE fm ?

    hi experts,
              i am Creating a GOODS RECEIPT using BAPI w.r.t PO.
    my problem is for an order 12 qun is there but iam passing all parameters to BAPI
    but i have created 4 times GOODS RECEIPT for each time 2 qun .Now when iam trying to create for remaining 4 qun at a time Now error is like this
    <b>6000004139 N M7 022 PL Stock in transit exceeded by 2 NO : 105720036000400 2011 F100 M</b>
    i check for other po also if i give quantity more then 2 it is showing like this error message
    regards,
    satheesh.

    Hello Sathesh,
    Try the same with the Tcode MIGO. It will show all the open quantity of the PO.
    Also check the table EKBE, which will give the history of the PO.
    Hope this will helps you.
    Cheers,
    Vasanth

  • Importing and Exporting in BAPI_GOODSMVT_CREATE

    Hi,
    I am using the BAPI_GOODSMVT_CREATE to have a goods issue, but I am doubtful why the GOODSMVT_HEADER and the GOODSMVT_CODE will be under exporting but GOODSMVT_HEADRET is under importing.
    Since when I test the BAPI in SE37, it is reverse, any reason?

    Hi !
    From your program's view (!!!) GOODSMVT_HEADER, GOODSMVT_CODE ... are beeing exported to the BAPI.
    From the BAPIs vies (!!!) they are bein imported.
    So in the SE37 you allways se the BAPIs view of the things and from this GOODSMVT_HEADER, GOODSMVT_CODE ... are being imported.
    It's a matter of the viewing point as you can see.
    Regards
    Rainer
    Some points would be fine if that helped a bit.

  • Need help for BAPI_GOODSMVT_CREATE

    Hello,
    I am using the BAPI, BAPI_GOODSMVT_CREATE to generate a material document for goods issue against a Stock Transfer Order(movement type 351). The GM_CODE passed to the BAPI for this is 04.
    My doubt is, when a material document is created using this BAPI with this GM_CODE, the transaction code shown in the MIGO display of the material document generated is MB1B. But when we do the goods issue manually against a STO, the transaction code shown in MIGO display is MIGO_GI.
    Why there is a change in transaction code when we do it using a BAPI and manually? Whether this change is acceptable and if not what should I do to change it?
    Regards,
    Abijith

    Transaction code of GM_CODE is picked from configuration table T158G (MMIM: Possible Codes for BAPI Goods Movement). See line number 53 of BAPI
    select single * from t158g where gmcode = goodsmvt_code.

  • Doubt in fbl1n transaction

    hi i have a doubt....
    in fbl1n transaction, there are open items and cleared items.
    in it the cleared items  for certain document types such as invoice etc is not present in the open item table (bsik)
    however the cleared items for document types such as general  voucher its present in the open items table (bsik)
    is this possible as all cleared item entries shld b present in the open item table with an indicator set for cleared or not...
    plz exlain!

    Hi
    There are 2 tables(open and Closed Items)  in FI for Account Payables and Account Receivables and GL accounts
    1.Account payables: BSIK is Open Items and BSAK is Closed items
    2.Account Receivables; BSID and BSAD for OPEN and closed items
    3/GL accounts :  BSIS and BSAS  for Open and Closed Items
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Error while posting a document using  the  BAPI_GOODSMVT_CREATE

    Hi,
    i was trying to post the Goods Receipt document ( Tcode MB1C) using the bapi  BAPI_GOODSMVT_CREATE
    i am passing the item details and Serial number details.
    the error triggered was Maintain Serial Numbers for Total Quantity
    but i am passing the quantity as 1 ( in item data) and passing one serial number.
    is this error because of data problem or am i missing to pass the value to  some dependent parameter..?
    Please help me out.
    Thanks in advance.
    Sriram

    Hi David,
    i was tring to pass the same.
    in item table we have we have four item details ( below)
    RES_ITEM - Item Number of Reservation/Dependent Requirement
    ORDER_ITNO - Order Item Number
    S_ORD_ITEM - Item Number in Sales Order ( length mismatch with serial  item number)
    PO_ITEM  - Item Number of Purchasing Document ( length mismatch with serial  item number)
    out 4 , 2 are ruled out because of length mismatch. and in the reaming two are
    RES_ITEM - Item Number of Reservation/Dependent Requirement
    ORDER_ITNO - Order Item Number
    this is a Goods receipt document, please let me know which field is required to map with item number in the above two.
    Regards,
    Sriram.

  • BAPI_GOODSMVT_CREATE - Error while posting a Material Document

    Hi Experts,
    We are  trying to do the material document posting using the transaction "MB1C" manually in SAP. The movement type which we are using for the same is "261".  While doing this is, it is asking for a work order number and the Recipient number. We gave the Recipient Number as "123". Material document is created successfully.
    Again using the same transaction  "MB1C" , we are trying to do the reversal of the material document which we posted previously against another work order number for the same material and the serial number if the material is serialised and as well as for the non serialised material.
    Both this case, in SAP the material document is created succesfully. This is done manually in SAP.
    When we are trying to create the material document using the BAPI 'BAPI_GOODSMVT_CREATE', for the above scenario, posting the material document '261' movement type for one work order and the reversal for another work order '262' movement type for the same material (whether it is a serialised or non serialised) we are getting the eror as "RE Qty. transferred exceeded 1 PC: 50,003,695 C001 USED 1200".
    We are passing the following at the item level. MATERIAL Number, Plant, STGE_LOC, ENTRY_QNT, MOVE_TYPE, BATCH, ORDERID, RESERV_NO,  RES_ITEM, ACTIVITY, XSTOB for reversal.
    We are passing the GM_CODE as '05'.
    Please let us know what needs to be changed inorder to create the material document properly without getting errors.
    Thanks in Advance,
    Mohan.

    Hi,
    We fixed this issue by removing the reservation number of the material when we are trying to post the material document with the movement type "262".
    The reason for removing the reservation number for the movement type "262"
    The reservation number is getting created against a work order when we trying to create the work order in IW32. This reservation number is used for validating the stock while we are trying to consume and doing the reversal.
    SAP is allowing us to reverse the consumed quantities only based on the reservartion number and hence we got this error.
    To fix this error, if we are trying to reverse a particular material against a different work order for which it has been consumed previiously, remove the reservation number and item number and try posting the material document.
    Hope this solution will solve your issue:)
    Thanks and Regards,
    Mohan.

  • Creation of Goods receipt - MB_CREATE_GOODS_MOVEMENT/BAPI_GOODSMVT_CREATE

    Hi Friends,
    I need to create a goods receipt for an inbound delivery.
    Iam planning to use either MB_CREATE_GOODS_MOVEMENT or BAPI_GOODSMVT_CREATE.
    But every time iam getting the error saying that the 101 movement type cant be used.
    In my case i need to use both the movement types 101 and 543.
    Basically i need to populate both the main item and component material information.
    If any one has done this, Can you please give me the sample code.
    Regards
    Sasi

    Hi,
    Iam usig the gm_code as 05.
    I am paasing the movement indicator ,in that particular field.
        lw_goodsmvt_item-material = lw_imseg-matnr.
        lw_goodsmvt_item-plant = lw_imseg-werks.
        lw_goodsmvt_item-batch = lw_imseg-charg.
      IF lw_imseg-sgtxt = 'F'.
        lw_goodsmvt_item-move_type = '101'.
        lw_goodsmvt_item-mvt_ind = 'B'.
        lw_goodsmvt_item-NO_MORE_GR = 1.
        lw_goodsmvt_item-stge_loc = lw_imseg-lgort.
        ELSEIF lw_imseg-sgtxt = 'C'.
        lw_goodsmvt_item-move_type = '543'.
        endif.
        lw_goodsmvt_item-entry_qnt = lw_imseg-erfmg.
        lw_goodsmvt_item-entry_uom = lw_imseg-erfme.
        lw_goodsmvt_item-expirydate = lw_imseg-mhdat.
        lw_goodsmvt_item-DELIV_NUMB =
        lw_goodsmvt_item-DELIV_ITEM =
    am i doing something wrong here.
    iam gettign the following error message
    Goods movement not possible with mvmt type 101
    Goods movement not possible with mvmt type 543

  • Error in Bapi_GoodsMvt_Create using Purchase order

    Hi Friends,
    I am using Bapi_goodsmvt_create for Goods Receipts against Purchase order.
    The below code i have given for Goods receipts
    It shows the error like
    ID : 8J
    Err No.:182
    Message : Entry 4500000344 00040 0000 not valid; correct entry
    Please help me to correct this error.
    Thanks
    Shankar
    ===================================
    Heading Structure
    st_gm_code-gm_code          = '01'.
    st_gm_header-pstng_date = '20070930'.
    st_gm_header-doc_date = '20070930'.
    st_gm_header-gr_gi_slip_no = '970015'.
    st_gm_header-bill_of_lading = '527213'.
    st_gm_header-header_txt = 'AIR'.
    st_gm_header-ref_doc_no = '4500000344'.
    Tables - ITEM CREATE.
    itab_afs_gm_itemx-plant = '2000'.
    itab_afs_gm_itemx-deliv_numb = '80100121'.
    itab_afs_gm_itemx-stge_loc = '2110'.
    itab_afs_gm_itemx-move_stloc = '2110'.
    itab_afs_gm_itemx-po_number = '4500000344'.
    itab_afs_gm_itemx-po_item = '00040'.
    itab_afs_gm_itemx-vendor = '0000650003'.
    itab_afs_gm_itemx-vendrbatch = 'ABC123'.
    itab_afs_gm_itemx-move_type = '101'.
    itab_afs_gm_itemx-mvt_ind = 'B'.
    itab_afs_gm_itemx-material = '000000000030000227'.
    itab_afs_gm_itemx-entry_qnt = 10.
    APPEND itab_afs_gm_itemx .
    ****&& Grid values
    gr_afs-matdoc_itm     = '0001'.
    gr_afs-grid_value = '205'.
    gr_afs-withdrawn_sku = 'X'. "Final issue at sku level
    gr_afs-stock_cat = '0000000001000366'.
    APPEND gr_afs.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
      EXPORTING
        goodsmvt_header           = st_gm_header
        goodsmvt_code             = st_gm_code
      TESTRUN                     = ' '
    IMPORTING
       goodsmvt_headret           = st_gm_headret
       materialdocument            = mat_doc
       matdocumentyear             =  doc_year
      TABLES
        goodsmvt_item             = itab_afs_gm_itemx
       afs_goodsmvt_sku           = gr_afs
        return                    = bapi_return.
    IF sy-subrc = 0.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait = 'X'.
    ENDIF.
    CLEAR itab_afs_gm_itemx.
    REFRESH itab_afs_gm_itemx.
    CLEAR gr_afs.
    REFRESH gr_afs.

    Hi,
    Here is some sample code from one of my programs, which does a 551 movement type. This should get you started. Just check the RETURN table for messages, they should tell you what you are missing.
    code
    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.
    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 '000000000040001234' to gm_item-material.
    move '1' to gm_item-entry_qnt.
    move 'EA' to gm_item-entry_uom.
    move '0004' to gm_item-plant.
    move '4000' to gm_item-stge_loc.
    move '201' to gm_item-move_reas.
    Determine cost center per plant
    case xresb-werks.
    when '0004'.
    move '0000041430' to gm_item-costcenter.
    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.
    call function 'BAPI_TRANSACTION_COMMIT'
    exporting
    wait = 'X'.
    [/code]
    Welcome to SDN! Please remember to award points for helpful answers and mark you post as solved when solved completely. Thanks.
    REgards,
    Raj.

  • Doubt in creation of a new object

    Hi All,
                 I have one doubt in creation of a new object.If a new object is to be created and it is not a subtype
    of any existing object, then what should we enter in the Program field for creating the object?
    I hope I am clear with my question.
    Thanks in Advance,
    Saket.

    Hi Saket,
    Following will be required for created a custom business object.
    1. Object Type - ZTEST (Internal Techincal Key)
    2. Object Name - ZTESTNAME (Technical Key Name)
    3. Name - TEST (Name of BO, it is used while selecting the object type)
    4. Description - (Short Description of BO)
    5. Program - ZTESTPROGRAM (ABAP program in which the methods of the object type are implemented)
    6. Application - A or B.. etc (Area to which your BO is related)
    Please remember that you can learn these basic things by giving F1 help on those fields and in HELP.SAP.COM.
    Regards,
    Gautham Paspala

  • Doubt in sender mail adapter

    Hi Everyone,
    Can we read and validate the attachment of the mail.If so how to do it.
    Thanks in advance,
    Sakthi

    Hi Sakthi,
       Please refere the below links:
      http://help.sap.com/saphelp_nw2004s/helpdata/en/ad/bf93409c663228e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/0d/52b240ac052817e10000000a1550b0/frameset.htm
    Let me know if you have any doubts regarding this.
    Thanks,
    sekhar.

  • Error in updating 311 movement using BAPI_GOODSMVT_CREATE

    Hi All,
    I need hlep to understand the problem in doing a transfer.
    SAP MII is doing a 311 type movement using BAPI_GOODSMVT_CREATE. BAPI is returning the response back to MII. Once the BAPI is commited it shall make transfer inside SAP. But it does not reflect the movement while checking under HUMO.
    under SM13 it say " SSFCOMPOSER 323"  error in address output (name not filled)
    MII is getting this reponse back as a result of BAPI execution.
    <?xml version="1.0" encoding="UTF-8"?>
    <BAPI_GOODSMVT_CREATE>
    <INPUT><GOODSMVT_CODE><GM_CODE>04</GM_CODE></GOODSMVT_CODE><GOODSMVT_HEADER><PSTNG_DATE>2010-07-03</PSTNG_DATE><DOC_DATE>2010-07-03</DOC_DATE><REF_DOC_NO/><BILL_OF_LADING/><GR_GI_SLIP_NO/><PR_UNAME/><HEADER_TXT/><VER_GR_GI_SLIP/><VER_GR_GI_SLIPX/><EXT_WMS/><REF_DOC_NO_LONG/><BILL_OF_LADING_LONG/><BAR_CODE/></GOODSMVT_HEADER><GOODSMVT_REF_EWM><REF_DOC_EWM/><LOGSYS/><GTS_SCRAP_NO/></GOODSMVT_REF_EWM><TESTRUN/></INPUT>
    <OUTPUT><GOODSMVT_HEADRET><MAT_DOC/><DOC_YEAR>0000</DOC_YEAR></GOODSMVT_HEADRET><MATDOCUMENTYEAR>0000</MATDOCUMENTYEAR><MATERIALDOCUMENT/></OUTPUT>
    <TABLES><EXTENSIONIN/><GOODSMVT_ITEM><item><MATERIAL>130116</MATERIAL><PLANT>2715</PLANT><STGE_LOC>LINE</STGE_LOC><BATCH>96</BATCH><MOVE_TYPE>311</MOVE_TYPE><STCK_TYPE/><SPEC_STOCK/><VENDOR/><CUSTOMER/><SALES_ORD/><S_ORD_ITEM>000000</S_ORD_ITEM><SCHED_LINE>0000</SCHED_LINE><VAL_TYPE/><ENTRY_QNT>96.000</ENTRY_QNT><ENTRY_UOM/><ENTRY_UOM_ISO/><PO_PR_QNT>0</PO_PR_QNT><ORDERPR_UN/><ORDERPR_UN_ISO/><PO_NUMBER/><PO_ITEM>00000</PO_ITEM><SHIPPING/><COMP_SHIP/><NO_MORE_GR/><ITEM_TEXT/><GR_RCPT/><UNLOAD_PT/><COSTCENTER/><ORDERID/><ORDER_ITNO>0000</ORDER_ITNO><CALC_MOTIVE/><ASSET_NO/><SUB_NUMBER/><RESERV_NO>0000000000</RESERV_NO><RES_ITEM>0000</RES_ITEM><RES_TYPE/><WITHDRAWN/><MOVE_MAT/><MOVE_PLANT>2715</MOVE_PLANT><MOVE_STLOC>J01</MOVE_STLOC><MOVE_BATCH>96</MOVE_BATCH><MOVE_VAL_TYPE/><MVT_IND/><MOVE_REAS>0000</MOVE_REAS><RL_EST_KEY/><REF_DATE>0000-00-00</REF_DATE><COST_OBJ/><PROFIT_SEGM_NO>0000000000</PROFIT_SEGM_NO><PROFIT_CTR/><WBS_ELEM/><NETWORK/><ACTIVITY/><PART_ACCT/><AMOUNT_LC>0</AMOUNT_LC><AMOUNT_SV>0</AMOUNT_SV><REF_DOC_YR>0000</REF_DOC_YR><REF_DOC/><REF_DOC_IT>0000</REF_DOC_IT><EXPIRYDATE>0000-00-00</EXPIRYDATE><PROD_DATE>0000-00-00</PROD_DATE><FUND/><FUNDS_CTR/><CMMT_ITEM/><VAL_SALES_ORD/><VAL_S_ORD_ITEM>000000</VAL_S_ORD_ITEM><VAL_WBS_ELEM/><GL_ACCOUNT/><IND_PROPOSE_QUANX/><XSTOB/><EAN_UPC/><DELIV_NUMB_TO_SEARCH/><DELIV_ITEM_TO_SEARCH>000000</DELIV_ITEM_TO_SEARCH><SERIALNO_AUTO_NUMBERASSIGNMENT/><VENDRBATCH/><STGE_TYPE/><STGE_BIN/><SU_PL_STCK_1>0</SU_PL_STCK_1><ST_UN_QTYY_1>0</ST_UN_QTYY_1><ST_UN_QTYY_1_ISO/><UNITTYPE_1/><SU_PL_STCK_2>0</SU_PL_STCK_2><ST_UN_QTYY_2>0</ST_UN_QTYY_2><ST_UN_QTYY_2_ISO/><UNITTYPE_2/><STGE_TYPE_PC/><STGE_BIN_PC/><NO_PST_CHGNT/><GR_NUMBER/><STGE_TYPE_ST/><STGE_BIN_ST/><MATDOC_TR_CANCEL/><MATITEM_TR_CANCEL>0000</MATITEM_TR_CANCEL><MATYEAR_TR_CANCEL>0000</MATYEAR_TR_CANCEL><NO_TRANSFER_REQ/><CO_BUSPROC/><ACTTYPE/><SUPPL_VEND/><MATERIAL_EXTERNAL/><MATERIAL_GUID/><MATERIAL_VERSION/><MOVE_MAT_EXTERNAL/><MOVE_MAT_GUID/><MOVE_MAT_VERSION/><FUNC_AREA/><TR_PART_BA/><PAR_COMPCO/><DELIV_NUMB/><DELIV_ITEM>000000</DELIV_ITEM><NB_SLIPS>000</NB_SLIPS><NB_SLIPSX/><GR_RCPTX/><UNLOAD_PTX/><SPEC_MVMT/><GRANT_NBR/><CMMT_ITEM_LONG/><FUNC_AREA_LONG/><LINE_ID>000000</LINE_ID><PARENT_ID>000000</PARENT_ID><LINE_DEPTH>00</LINE_DEPTH><QUANTITY>0</QUANTITY><BASE_UOM/><LONGNUM/></item></GOODSMVT_ITEM><GOODSMVT_SERIALNUMBER/><GOODSMVT_SERV_PART_DATA><item><LINE_ID>000000</LINE_ID><RET_AUTH_NUMBER/><DELIV_NUMBER/><DELIV_ITEM>000000</DELIV_ITEM><HU_NUMBER>115934300024</HU_NUMBER><INSPOUT_GUID/><EVENT/><DATE>0000-00-00</DATE><TIME>00:00:00</TIME><ZONLO/><TIMESTAMP>0</TIMESTAMP><SCRAP_INDICATOR/><KEEP_QUANTITY>0</KEEP_QUANTITY><GTS_STOCK_TYPE/><MOVE_GTS_STOCK_TYPE/></item></GOODSMVT_SERV_PART_DATA><RETURN><item><TYPE>S</TYPE><ID>L9</ID><NUMBER>514</NUMBER><MESSAGE>Delivery 80817129 created</MESSAGE><LOG_NO/><LOG_MSG_NO>000000</LOG_MSG_NO><MESSAGE_V1>80817129</MESSAGE_V1><MESSAGE_V2/><MESSAGE_V3/><MESSAGE_V4/><PARAMETER>GOODSMVT_HEADER</PARAMETER><ROW>0</ROW><FIELD/><SYSTEM>SP1330</SYSTEM></item></RETURN></TABLES>
    </BAPI_GOODSMVT_CREATE>

    PL Stock in transit exceeded by 200 UNT : 10000000125 3065 0005"
    the code does not matter, it is the process and the stock situation that does not allow the creation of the movement.
    you cannot receive e.g. 200 from in-transit stock  if you only have nothing in transit.
    First the goods issue has to be  performed in the shipping plant.

  • Goods Receipt Report With 101 movement type using bapi_goodsmvt_create

    Dear Abapers,
            i am getting some problem, i got requirement like Goods Receipt Report with 101 movement type using
    bapi_goodsmvt_create and data should upload through excel sheet.
    still facing problems, i have searched sdn forum n sdn code also, but relevant answer i could not find.
    What are all the inputs i need to take and please give some valuable inputs to me.
    please do help ..... thanks for advance..
    Thanks & regards,
    Vinay.
    Moderator message : Spec dumping is not allowed, show the work you have already done. Thead locked.
    Edited by: Vinod Kumar on Sep 27, 2011 10:58 AM

    Dear Abapers,
            i am getting some problem, i got requirement like Goods Receipt Report with 101 movement type using
    bapi_goodsmvt_create and data should upload through excel sheet.
    still facing problems, i have searched sdn forum n sdn code also, but relevant answer i could not find.
    What are all the inputs i need to take and please give some valuable inputs to me.
    please do help ..... thanks for advance..
    Thanks & regards,
    Vinay.
    Moderator message : Spec dumping is not allowed, show the work you have already done. Thead locked.
    Edited by: Vinod Kumar on Sep 27, 2011 10:58 AM

  • PI' RFC  Connection pool  doubt.

    Hi PI exports:
    i have a doubt about  pi' RFC  Connection pool ,pi RFC receive channel can set the conn pool size ,but when start the rfc receiver channel ,is there always only one Connection  pool ,or there is only one Connection  pool  instance?
      thinks
    Edited by: kevin liang on Oct 19, 2009 6:45 AM

    Hi,
      Connection poolins size means how many number of connection you want to make open to send data to ECC, We can define maximum number of connection in Receiver RFC Adapter,Go to additional parameters section and define Max Number of connection give the number there,thats it.Internally it works as Connection poolin mechanism.
    Regards,
    Raj

  • Small Doubt Regarding SY-MANDT

    Hi All,
         SELECT changenr FROM cdhdr CLIENT SPECIFIED INTO CORRESPONDING FIELDS OF TABLE it_cdhdr
                                             WHERE mandant = syst-mandt
                                             AND   objectclas = 'MATERIAL'
                                             AND   objectid   = wa_matl-matnr
                                             AND   tcode      = 'MM02'.
         I have written the select stament as shown above.
         In this i have a doubt like adding a field sy-mandt  in the where condition will increase the Efficiency of program or not.
    regards,
    raghu.

    Hi..
    No doubt the efficency would be affected but from business point of view there will many  things that need to be checked as in:
    If you are viewing data from CDHDR and CDPOS which is client specific then you are not viewing complete data.
    These tables give us and document changes made to a particular object in SAP but if anything is cross client like company code(lets assume) then changes to it wont be visible in all the clients..
    so there can be some key information you can miss out while working on some of the objects.
    else in this case its good to make query cross client.
    regards
    vishal

Maybe you are looking for

  • How do I stop multiple downloads of IOS 8 for each device

    Hi There - I live in Fiji and for each apple device I am asked to download IOS 8 each time I want to update iphone x 2 and ipad x 2. Data is very expensive here and at 1.7gb it takes a considerable amount of time. Is there a way to use the version al

  • [ANN] XINS 2.0 Web Services framework released

    XINS 2.0 has been released. XINS is an open-source Web Services development framework. XINS accepts the following protocols: REST, SOAP, XML-RPC, XML, Yahoo! JSON and JSON-RPC. From the specification of the API written in simple XML, XINS generates:

  • Chart series can't change color

    I create different type series in the series block only the columnserie can affect my specified color. The other two serie only use the default color. The color like this: <mx:ColumnChart id="myChart4" width="527" height="178"        showDataTips="tr

  • Error in delivery creation using VL10B

    Hi All, I have created the intercompany STO with shipping data determined in it. after executing the STO using VL10B system is giving following errors. Shipping for sales org. XXXX dist. chan. XX from plant XXXX is not possible Delivery from plant XX

  • Long running MGP process / Tuning?

    Our MGP compose process runs for 25 minutes. this seems like a long time for it to be running. I have read of consperf but it seems that you can only enable it by going into each user's publication item and enabling it. Is there any global setting th