Mb1b for transfer posting

Hi all,
  In MB1B, I am using USEREXIT(MBCF0002) for checklogs .Here , i want to update data like po number, quantity, .....and goods receipt number.
For Goods receipt number updation iam using bapi called BAPI_GOODSMVT_CREATE
Here iam getting error in this bapi '  NO ITEMS ARE TRANSFERED'.
iam passing these :
Setup BAPI header data.
      gm_header-pstng_date = sy-datum.
      gm_header-doc_date   = sy-datum.
      gm_code-gm_code      = '04'.
     gm_item-po_number.
      gm_item-move_type.
     gm_item-material.
     gm_item-entry_qnt.
      gm_item-entry_uom.
       gm_item-plant.
       gm_item-stge_loc.
      gm_item-vendor.
      gm_item-par_compco.
       gm_item-nb_slips.
       gm_item-parent_id.
       GM_ITEM-MVT_IND.
       GM_ITEM-STCK_TYPE.
pl help regarding this.
  Regards,
Murthy

Refer below link
http://sap4.com/wiki/index.php?title=BAPI_GOODSMVT_CREATE

Similar Messages

  • How to use the BAPI_GOODSMVT_CREATE for Transfer posting Sales order

    Hi Friends,
    How to use the Bapi BAPI_GOODSMVT_CREATE for transfer posting sales order to sales order.
    pls, send the list of parameteres to pass to the bapi, if program avail please send it to me.
    Thanks in advance
    Shankar

    You have to pass Header and GM code as the INput parameters for uing this BAPI....GM code would be structure.
    Also you have to pass the INternal table Item for the goods mvt cxreate which will contains
          BATCH.
          MOVE_TYPE.
          ENTRY_QNT.
          MOVE_PLANT.
          MOVE_STLOC.
          MOVE_BATCH.
          MOVE_REAS
    these parameters.
    Regards,
    Sushil.

  • PO no is not updateing in MSEG table for transfer posting wrt PO

    Hi All ,
    PO number not updateing  in MSEG table field EBELN for transfer posting with reference to PO . What should be the reason . This is for subcontracting process .

    Hi Raghavendra Balegar
    If u r doing through scheduling agreement then it will not sit in MSEG. only if u doing through standard PO i.e. NB then only u can view the data of PO in MSEG.
    Regards
    Ram

  • Goods delivery error for transfer posting

    I have created a P.O for transfer posting for a material from Plant 2000 to plant 3000.where in my account assignment I have mentioed the WBS element.
    created the delivery document---VL10B and outbound delivery VL01N.
    during PGI, system gives error that no WBS element has been assigned.I went to item level and in financial posting TAB page I could not locate the same WBS number in the filed, which is not editable too.the movement type is 641.
    Please advcie what other things to check.
    Zinni

    Check your delivery type which  copy control and  how this value is passing.I think through some routine it is populated.Check the routine in VOFM transaction.

  • Bapi for Transfer posting with clearing

    Hello,
    please let me know the bapi for Transfer posting with clearing for transcation F-04 or FB05.
    quick reply wil be helpfull.
    Thanks,
    ram

    Hi
    I don't know in release greater than 4.7, but there isn't that BAPI.
    There's a BAPI to post a document, but the clearing is an internal transaction so I don't believe there's a BAPI for it.
    Anyway you can try to create one using the std BDC RFBIBL00: it suppoerts that transaction.
    Max

  • Mov Type for Transfer Posting ?

    Hi,
    What is the movt type for transfer posting
    a) Quality Insp Stock to Block Stock ?
    b) Block Stock to Unrestricted use stock ?
    Regrds,

    Hi
    350 movement is used for stock trasfer from QI to Block
    350          Transfer posting blocked stock to QI stock - reversal
    Vishal...

  • Bapi for transfer posting

    Estimated,
    I have to make a move between storage location of material that is blocked with status (movement 325). For that I'm trying on the Bapi MB_CREATE_GOODS_MOVEMENT and run with the same parameters as when I review the transaction MIGO_TR, but the structure EMSEG gives me the message number M7096 "Goods movement not possible with mvmt type 325". What could be wrong? and tried doing the Bapi commit, but still gives me error. It also showed the Bapi BAPI_GOODSMVT_CREATE and throws me the same message. Please I am desperate.
    Thanks.

    Hi,
    You can't use function module MB_CREATE_GOODS_MOVEMENT for movement 325, since that function module is used for Goods Issue for delivery.
    You should use bapi "BAPI_GOODSMVT_CREATE" for this movement 325 instead.
    Passing GOODSMVT_CODE = 04 (for Transfer Posting)
    The following thread has a sample code of above BAPI, then do adjustment accordingly as per your requirement.
    Re: i want to Stock upload with movement 561 and t code is mb1c
    Cheers,

  • Authorization Control for Transfer Posting's Storage Location

    Dear Gurus,
    Hi ! May I know is that SAP has any Authorization Object to control Transfer Posting (SAP R3 4.0B) ?
    Let say in MB1B I only allow certain user to do transfer posting with P230 storage location, how should I control it ? With Authorization Profile?
    I had tried remove all storage location P230 authorization M_MSEG_LGO from those user who are not allow to use, but sad to say that most of the user who allow to use transaction MB1B also able to do good receipt or transfer posting with storage location P230.
    I had check those user's profile, actually in their authorization, there could not get P230 in their M_MSEG_LGO authorization  object.
    Thank you!
    Warm regards

    Hi,
    I did not tried OLMB before, but I couldn't get  the option you ask me to click.
    Please refer to the screen, is it the Basis Administration is what you mention lately?
    [http://www.pikipimp.com/pp/pimped_photo/s/image/40/552/543/OLMB-compiled.JPG?ts=1232093107390]
    I had assign the storage location P230 to the authorize users, but the problem now was those unauthorized users also can use the storage location P230 to do Transfer Posting (MB1B) although I did not assign to them in PFCG.
    Thank you.
    Warm regards.

  • BAPI_GOODSMVT_CREATE: move 309 for transfer posting - change of sales order

    Hello Experts,
    I'm trying to use BAPI_GOODSMVT_CREATE to transfer the material from one sales order to another.
    But that doesn't seem to work.
    ls_goodsmvt_header-pstng_date = sy-datum.
          ls_goodsmvt_header-doc_date   = sy-datum.
          ls_goodsmvt_code-gm_code      = '04'.
          ls_goodsmvt_item-material    = ls_outtab_l-matnr.
          ls_goodsmvt_item-plant       = ls_outtab_l-werks.
          ls_goodsmvt_item-stge_loc    = ls_outtab_l-lgort.
          ls_goodsmvt_item-move_mat    = ls_outtab_l-matnr.
          ls_goodsmvt_item-move_plant  = ls_outtab_l-werks.
          ls_goodsmvt_item-move_stloc  = ls_outtab_l-lgort.
          ls_goodsmvt_item-move_type   = '309'.
          ls_goodsmvt_item-mvt_ind     = ''.
          ls_goodsmvt_item-entry_qnt   = ls_outtab_l-kalab.
          ls_goodsmvt_item-entry_uom   = 'EA'.
          ls_goodsmvt_item-spec_stock  = 'E'.
          ls_goodsmvt_item-val_sales_ord  = ls_outtab_l-vbeln.
          ls_goodsmvt_item-val_s_ord_item = ls_outtab_l-posnr.
          ls_goodsmvt_item-sales_ord   = ls_outtab_r-vbeln.
          ls_goodsmvt_item-s_ord_item  = ls_outtab_r-posnr.
    "      ls_goodsmvt_item-sched_line  = '000'.
          APPEND ls_goodsmvt_item TO lt_goodsmvt_item.
          CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
            EXPORTING
              goodsmvt_header  = ls_goodsmvt_header
              goodsmvt_code    = ls_goodsmvt_code
              testrun          = ''
            IMPORTING
              goodsmvt_headret = ls_goodsmvt_headret
              materialdocument = lv_materialdocument
              matdocumentyear  = lv_matdocumentyear
            TABLES
              goodsmvt_item    = lt_goodsmvt_item
              return           = lt_return.
    Right now i supply val_sales_ord with destination order number, and sales_ord with source. But I'm not really sure about that, which is the destination, and which is source sales order number parameter in itemline, val_sales_ord or sales_ord? Or maybe it doesnt work like that?
    Thanks for any help,

    So after some time i found out where the flow of bapi and migo differ, this is also, where the field KDAUF gets reseted, and the cause of not posting material document correctly:
    Starts in line 59 of MM07MFU0_UMLAGERUNG_PRUEFEN:
    * The old fieldselection (T156B) is not valid for a transfer posting
    * from MIGO
      IF NOT vm07m-xstor = zwei AND xmigo <> x.
        IF dm07m-fausw+55(1) = minus.
          CLEAR mseg-ummat.
        ENDIF.
        IF dm07m-fausw+56(1) = minus.
          CLEAR mseg-umwrk.
        ENDIF.
        IF dm07m-fausw+57(1) = minus.
          CLEAR mseg-umlgo.
        ENDIF.
        IF dm07m-fausw+64(1) = minus.
          CLEAR mseg-umcha.
        ENDIF.
        IF NOT vm07m-kzbwa = kzbwa-01 AND
           NOT vm07m-kzbwa = kzbwa-05 AND
           NOT vm07m-kzbwa = kzbwa-07.
          CLEAR: mseg-umbar.
        ENDIF.
    " the condition below is the source of my problems
        IF dm07m-fausw+60(1) = minus.
          CLEAR: mseg-kdauf, mseg-kdpos.
        ENDIF.
        IF dm07m-fausw+62(1) = minus.
          CLEAR mseg-ps_psp_pnr.
        ENDIF.
      ENDIF.
    I changed the value minus '-' of dm07m-fausw+60(1) to a dot '.', and the bapi worked like a charm. I am just not sure if I can change the records of T156B just like that, I guess not a good idea.
    Still i have no solution...

  • Inspection lot shouldn't create for Transfer posting(311) sloc specific

    Dear Expert,
    i need expert advice on this issue.
    here specific to one plant when user is doing transfer posting through movement type 311, user doesn't want inspection lot (specific to storage locations ).
    Here specific to that Material quality is active. and business want quality active for other all plants.
    i tried the T code OMJJ, if i deactive the quality here than this will applicable to all plants.
    here v can deactive the quality at plant level through Material Master but here business wants to restrict at sloc level only.
    b'coz if v deactive at plant level than quality will skip at the time of GR.
    so how we can control the inspection lot creation for movement type ( 311 ) and storage location combination.?
    pl. guide me on this
    Thanks
    h shah

    Thanks a lot

  • Movement type for transfer posting  wbs to normal stock

    which movement type used for asset trasferred from wbs(special stock) to normal stock

    Dear,
    i hope u have created asset as a material,
    trasferred material from wbs(special stock) to normal stock--310 Q(Transfer posting project material to material - reversal)
    312 Q(Transfer posting stor. loc. (one-step) - project - reversal).
    Regards,
    Gopala.S

  • Default storage location for transfer posting

    Hi Gurus,
    In transfer posting using mvt type 311,i want to make the storage location defaulted by a particular storage location. In other words system should not allow transfer posting if i use other storage location. Is this possible?
    Regards,
    Kumar

    [Restrict user to post to a particular storage location|Restrict user to post 313 to a particular storage location.]

  • Function Module for Transfer Posting(MB1B)

    Hi All,
          Is there any Function Module to post the transfered stock?
    Thanks,
    Digamber

    Hi,
    Check this function module ME_CHECK_RESWK_STOCK_TRANSFER
    Regards
    Sudheer

  • Idoc error for transfer posting

    hi i am working on idoc type WMMBID02.when i am doing stock transfer i.e. transaction MB1B trough idoc i am getting as
    Deficit of BA Unrestr. prev. 1,096 EA : 100536 PRDC RG01 9ANNA19002
    Message no. M7021
    but when i check the stock for the material in MMBE it has a lot of stock quantity.
    i.e. in MMBE the unrestricted stock is 200,000 and when i am transfering 1,096 stock it is giving me the error and i am able to the mb1b manually in the system.
    anyone please suggest.

    The error is saying Deficit of BA Unrestr. prev. 1,096 EA : 100536 PRDC RG01 9ANNA19002
    BA stands for batch
    Unrestr for stock status unrestricted
    prev  for previous period.
    In other words you do not have 1096 EA  in previous period for your material 100536 in plant PRDC with batch number 9ANNA19002
    maybe your posting date is wrong and it should be a date of the current period.
    maybe your batch number is wrong.
    maybe the quantity is too high.
    In MCHB table you should see the previous period stock in field CVMLA

  • MB1B: Transfer posting from material to material

    hello,
    I would like to add material validation mechanism in MB1B for transfer posting from material to material, that is we can define only particular materials can be transfer to receiving material and validate in MB1B with specified movement type, how to do this?
    Is there any thing available in standard?
    we can do this using user exit but I couldn't find any exit relevant for this scenario?
    I appreciate your earliest responses.
    regards,
    Jawed Ali

    well I have checked all these exits but none was called during the process:
                                                                                    MBCF0002            Customer function exit: Segment text in material doc. item               
    MBCF0005            Material document item for goods receipt/issue slip                      
    MBCF0006            Customer function for WBS element                                        
    MBCF0007            Customer function exit: Updating a reservation                           
    MBCF0009            Filling the storage location field                                       
    MBCF0010            Customer exit: Create reservation BAPI_RESERVATION_CREATE1               
    MBCF0011            Read From RESB and RKPF For Print List in  MB26                          
    MBCFC003            Maintenance of batch master data for goods movements                     
    MBCFC004            Maintenance of batch specifications for goods movements                  
    regards,
    Jawed Ali

Maybe you are looking for

  • How can I fill part of a shape?

    The logo I'm working on requires part of some "complex" shape (The 'Celtic knot' shape, wolf head) and I can't figure it out. When I use the Knife tool (with the shape selected), it doesn't split: *Note: the line down the middle is just a guideline*

  • Distributing HRMD_A to multiple destinations via ALE

    our scenario: using change pointers, our HR system creates IDocs and sends HR master data to our logistics system as well as to our XI system. However, different infotypes are required. EG: In logistics system, 0000/0001/00006 are needed and in XI, 0

  • Text_io

    Hello World, In My application I need to write flat text files as from a PL/SQL script procedure. The application is third tier architecture, with a SGBDR server, a application server, and a Web server. The PL/SQL script procedure is running on the a

  • HT201317 Slow Wifi Photo Uploading

    Does anyone share this same problem with the uploading of photos that its slow and takes what feels like forever for all of my photos to appear in iPhoto. Even if there are only 6 , 3 will upload, then minutes later, in what feels like hours they app

  • Problem with License Renewal

    Hi, I've applied for the renewal of License for my Sneak preview system 1 week back.. I'm not getting any replies from them. And now its just 2 days to go for the expiry date. Please guide me through this.. I've applied for license through this site: