No material document created with BAPI_GOODSMVT_CREATE

Hi all,
I try to perform an IM transfer with 323 movement from BAPI_GOODSMVT_CREATE.
It works with IM to IM storage location.
It doesn't work when IM target storage location is connected to WM warehouse number and schould create an inbound delivery :
the return code from the bapi is 0, there is no message in return table and no document number generated.
(same data in MB1B works witout any problem)
can you help me please ?

thanks for your answers !
I already try to find an OSS note (213 notes about this BAPI)...
the call to the bapi is not performed directly, i use an intermediate storage in a table "ZGOODSMVT" which i use for other movements without any problem (same fields than BAPI parameters).
(the 323 works when IM destination storage location is not connected to WM warehouse number).
here is the code from first prog :
form mvt_323.
clear zgoodsmvt.
zgoodsmvt-ref_doc_yr = mkpf-budat(4).
zgoodsmvt-ref_doc = mkpf-mblnr.
zgoodsmvt-ref_doc_it = mseg-zeile.
zgoodsmvt-nseq = 0.
zgoodsmvt-pstng_date = mkpf-budat.
zgoodsmvt-doc_date = mkpf-budat.
zgoodsmvt-ref_doc_no = mkpf-mblnr.
zgoodsmvt-header_txt = 'Transfert automatique'.
zgoodsmvt-gm_code = '04'. " Transfert
zgoodsmvt-material = mseg-matnr.
zgoodsmvt-plant = mseg-werks.
zgoodsmvt-stge_loc = mseg-lgort.
zgoodsmvt-batch = mseg-charg.
zgoodsmvt-move_type = '323'.
zgoodsmvt-entry_qnt = mseg-erfmg.
zgoodsmvt-entry_uom = mseg-erfme.
zgoodsmvt-item_text = 'Transfert automatique'.
zgoodsmvt-move_plant = mseg-werks.
zgoodsmvt-move_stloc = 'BVSG'.
zgoodsmvt-batch = mseg-charg.
zgoodsmvt-udate = sy-datum.
zgoodsmvt-uname = sy-uname.
zgoodsmvt-utime = sy-uzeit.
INSERT zgoodsmvt.
IF sy-subrc ne 0.
retco = sy-subrc.
EXIT.
ENDIF.
endform.
here is the code from second prog :
  SELECT * FROM zgoodsmvt APPENDING CORRESPONDING FIELDS OF TABLE t
                          WHERE type NE 'S'.
  LOOP AT t.
    CLEAR  : ti, tr, ir.
    REFRESH: ti, tr.
    FREE   : ti, tr.
    MOVE-CORRESPONDING: t TO w_goodsmvt_header, t TO w_goodsmvt_code.
    MOVE-CORRESPONDING: t TO ti, t TO ir.
    APPEND ti. " item
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
      EXPORTING
        goodsmvt_header             = w_goodsmvt_header
        goodsmvt_code               = w_goodsmvt_code
        testrun                     = ptestrun
    IMPORTING
        GOODSMVT_HEADRET            =
        materialdocument            = w_materialdocument
        matdocumentyear             = w_matdocumentyear
      TABLES
        goodsmvt_item               = ti
        GOODSMVT_SERIALNUMBER       =
        return                      = tr.
    IF sy-subrc NE 0. " tjr à 0, les erreurs sont ds TR
      WRITE:/ text-250, sy-subrc.
    ENDIF.
Thank you for your help,
regards
Eric

Similar Messages

  • Pages 5.5.1: When opening a document created with Pages '09 (Version 4.0) with Pages 5.5.1 the page header and the page footer are deleted. How can this be prevented? Or is this a bug in Pages 5.5.1?

    Pages 5.5.1: When opening a document created with Pages '09 (Version 4.0) with Pages 5.5.1 the page header and the page footer are deleted. How can this be prevented? Or is this a bug in Pages 5.5.1?

    Same problem here (no graphics in header or footer) and the problem has been reported months ago. It is another bug/feature lost when Apple moves from 09 to the iCloud-compatible versions.  Complain to Apple, you may have better chance than me and they may finally listen to their users....

  • How can I expand the gutters in a document created with a Pages brochure template?

    How can  I expand the gutters/ space between panels on a document created with a Pages brochure template?

    You haven't said which.
    Each panel is usually just a locked object, unlock them and resize the boxes.
    Peter

  • My MacBook has Leopard Printer has asked me to 'embed fonts' in pdf text. I have used Web but mostly out of date or Windows focused. Can you advise me how best to embed fonts on pdf documents created with TextEdit ?  Thank you.

    My MacBook has Leopard. A printer has asked me to 'embed fonts' in pdf text. I have looked csrefully on Web but mostly out of date or Windows related.
    Can you advise me how best to embed fonts on pdf documents created with TextEdit ?  Thank you.  PippinD

    Hi
    Level 2 posters and Above can report various posts.
    When they do so they have various options that they can attribute as the issue.
    I have reported your post.
    I found the one block of text very difficult to read.
    9:36 PM      Monday; January 28, 2013
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Issue with document created with a tax code related to a different Company Code

    Hello,
    we need to clear a document created with the tax code "YY" which is associated to the Company Code Espana even if the vendor of this document belongs to the Country Portugal.
    When we try to clear this documents we get the follow error:
    Tax code YY for Country Portugal has been deleted or incorrectly changed
    The problem is the tax code exists but it is associated to Company Code Espana and not to the Portugal one
    In order to cleare this document should we activate the tax code for Portugal, as well?
    Thank You

    Hello, Are you trying to post entry having Plant in Portugal? Thanks, Deepanshu

  • HT204394 how to rename a document created with iwork pages

    how do one rename a document created with iwork pages?

    So the "Rename" command is not supposed to work?  It is a dead link and crashes Pages.
    Where did Pages save the file that I wanted to put into the folder of related documents.  Please bring back "save as" or ask where we want the file saved.  How else can I find it later?

  • "This document was created with an unsupported version of Excel. Only documents created with Excel '97 or later can be opened.

    I keep getting this message when I try to open an Excel file "This document was created with an unsupported version of Excel. Only documents created with Excel ’97 or later can be opened.

    You could try opening the Excel document with LibreOffice and then resaving it in a compatible version before opening in Numbers.
    Jerry

  • Client wanted  to delete the document created with the wrong GL with the WB

    Dear All,
    The user had by mistake posted the the document in a wrong GL with with WBS element under the Project.
    We have tried to reverse it through a reversal posting. But it could not be done.
    Client wanted  to delete the document created with the wrong GL with the WBS element.
    How this can be set right?
    Please advice.
    Regards
    Bijudas

    document cannot be deleted in SAP
    reverse the document and then report

  • Client wanted to delete the document created with the wrong GL with the WBS

    Dear All,
    The user had by mistake posted the the document in a wrong GL with with WBS element under the Project.
    We have tried to reverse it through a reversal posting. But it could not be done.
    Client wanted to delete the document created with the wrong GL with the WBS element.
    How this can be set right?
    Please advice.
    Regards

    document cannot be deleted in SAP
    reverse the document and then report

  • Why iCloud only allows store documents created by Pages, Numbers or Key Note ? How can I "iCloud" documents created with Word Mac or Excel mac??

    Why iCloud only allows store documents created by Pages, Numbers or Key Note ? How can I "iCloud" documents created with Word Mac or Excel mac??

    Oscar66 wrote:
    Why iCloud only allows store documents created by Pages, Numbers or Key Note ? How can I "iCloud" documents created with Word Mac or Excel mac??
    iwork for ios accepts for upload and also happily opens all your Microsoft office files, from Office97 standard doc/xls/ppt to the 2011 versions of docx,xlsx,pptx and various other of these format extensions.
    Notice : the upload feature in www.icloud.com is only active if you in fact own these apps on your iPhone/Pad/pod. it is not a feature of iWork for the Mac ( iwork09 ) which itself is not icloud capable at all.

  • Want to reduce the number of material documents created during Confirmation

    When confirming each phase on the process order, backflush of components happens and a material document is created .So if we have multiple phases, multiple material documents are created. This way we are having large number of material documents created for each process order .
    We do not want a material document to created for each phase but rather create one document while confirming the last phase of the process order. How can we achieve this? Is there a configuration or a user exit that can be used?
    Our goal is to reduce the number of material documents created.

    IF you assigned all the component  to final phase then You can get only one  material document for all the component
    or
    Remove  all the backflush setting   and do the Picking in COIK, The system will Post all the  261 movement component in one document

  • HT2477 Are documentS created with Microsoft office for windows and Microsoft office for mac are compatible with each other

    Are documents created with Microsoft office for windows and Microsoft office for mac are compatible with each other?

    As with a lot of software, it depends on the version of Word, and what features the author used.
    Technically, Office 2010 for Windows and 2011 for Mac are supposed to be feature compatible. As are Office 2007 for Windows, and 2008 for Mac.
    However, if a person using Office 2010 / 2011 used a feature that only exists in that version and sends the file to someone using Office 2007 / 2008, they would very likely have trouble opening the file, or having it display as intended.

  • Capture Excise Invoice for material document created against a PGR

    Hi SD Gurus,
    We have a scenario of reverse subcontracting where we have to receive raw material from vendor, process it and then dispatch the finished goods to the vendor or the vendor's customer.
    For receiving the raw materials, i have created a document type which is copied from standard RE type. Against this order, a returns delivery is created which is then PGR-ed. With reference to the previous document, a service order is created in SD, which is then billed.
    But i am facing a problem when i tried to capture the incoming excise invoice for the raw materials. When i tried to capture the excise against the material document generated for PGR, the system is throwing a error, that it cannot capture the excise for this materia document type.
    I would be greatly obliged if anyone can throw some light on this. Do i need to maintain any special configuration for this? Why is SAP not allowing it? How this can be done?
    With Regards,
    Arindam Datta.

    Dear Arun R,
    You Kindly go to the following path and maintain your movement type over their and do the MIGO.I am very sure at the time ot migo excise tab will come for part-1 updation and subsequently you capture part-2 on J1IEX.
    SPRO->LG->Tax on Goods Movemet->India->Business Transactions->Incoming Excise Invoice->Specify which movement type involve excise Invoices.
    Hope this will help you out.
    Regards
    AKS

  • How To Cancel the Material Document Created in VL09

    Dear All,
               I have a crictical issue,please guide me to solve this.
    User has created the order and delivered on 31-03-2011,again he has reversed in VL09 on 07-04-2011.but the actual goods issue should happen only on 31-03-2011.Now when i try to deliver the same order on 31-03-2011 it's throwing error like defict of SL stock.I can't even cancel the material document that got created in VL09.I have to deliver only on 31-03-2011.
    Kindy guide me to solve this.
    Regards,
    Venugopal

    It is a mess! when the delivery is reversed, the user should have used correct reversal date. Now you can't cancel the material document. Consult MM specialist to add the quantity in the past period and off-set the same in the current period.
    On a second thought, check with your accounting if you PGI in the current period as the reversal and new PGI happened in the current period, which off-sets the entry in accounting.If they are OK, then you need not bother about this.
    Regards,
    Edited by: Shiva Ram on Apr 7, 2011 11:56 AM

  • Material document getting with mvt 552 during ticketing

    Hi,
    I am creating ticketing activities  for STO using movement scenario 16, with reference to the nomination i have posted two ticket documents, it had created the STO delivery in the back ground and material document also got created with movement type 641, When i create the final ticket , the final delivery is also created with corresponding material document. At this point of time , system is creating another material document with movement type 552. In the stock overview for the plant all the stock is reverted back.
    Any ide
    Issue is resolved.
    Message was edited by: Srinivas Josyula

    Hi Srinivas,
    Can you please elaborate the cause and resolution of the issue so that others benefit from your experience.
    Regards,

Maybe you are looking for

  • How to duplicate (finished) iMovie Project?

    Hello, I went on vacation with my wife and we shot some video all around town. I've put together all of the footage and trimmed the video, tweaked the audio, etc. for OUR video archive. The project comes in at just under an hour. Our friends want to

  • Can't find this song:

    I can't seem to find the song: Witches brew by David Casper. Is their any way that this song can be placed on itunes?The name of the album is "Through the fire"

  • Where is the User manual for X61s

    This may be a dumb question but I just bought this as a used machine and nowwhere can I find a user manual. Doesn't seem to be one going thru the Thinkvantage menu. Going thru the Lenovo site I do the auto dectect and that reports what I already know

  • Nested ArrayCollection

    I have an ArrayCollection of 3 arrays: level0, level1, and level2. The level0 array item a set of x,y coordinates. The level1 x,y coordinates are used to position ten objects relative to the position of the level0 object. Similarly, the level2 x,y co

  • Poor quality from quicktime imports

    Hello out there, I have recently began transferring several files to an effects editing program, (using full quality quicktime compression) and then exporting them as filetype: QuickTime None. mov. The problem I am having is that while the clip looks