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.

Similar Messages

  • Return order with reference to the billing document created via IDOC.

    Dear Colleagues,
    I’m struggling to understand and confirm whether standard functionality of ORDERS05 idoc allows creating a return order with reference to existing billing document?
    I have tried using standard segment E1EDK02 and E1EDP02 with qualifiers 009,010,011,087 but unfortunately idol is not creating a return order with reference and ignoring this segment.
    Have any one came across similar problem? If yes then will be grateful for sharing his experience.
    Best regards,
    AL

    Dear Friend
    Welcome to SDN
    Return order is itself a challenge to SAP standard settings
    There are some scenarios
    1. Return order qty should not be increasesd say Billed qty of material X is 20 units
    While returning Material X should be a maximum of 20 units
    If made 21 it should throw error T code OVAH message class V4 message no 299 convert from warning to error thro customization
    2.Return order should be created only once referencing billing doc
    To control that T code SE91 message class V1 message no 499 convert from warning to error thro ABAP help
    3 Your issue is same like case 1 but the material X is entered as second line item in the return order with some qty
    This case system is not throwing even a warning
    Yes correct
    This is to be handled with userexit
    Discuss the same with ABAPer
    Check these threads on return issues which is of different scenario than of yours
    Forum post in ERP - Sales and Distribution (SD) General: Order Qty.
    Order Qty.
    Forum post in ERP - Sales and Distribution (SD) General: Return order
    Return order
    Regards
    Raja

  • How to create invoice but accounting document is cleared already?

    Hi,
    I cannot able to create invoice for the return order, for this return order accounting document has been cleared
    but the invoice is not created.
    Here i need to create the invoice.
    Advice me to solve this issue.
    Thanks
    Raghu

    for this return order accounting document has been cleared
    For return order, accounting document will not be generated.  Not sure what do you mean by this.
    thanks
    G. Lakshmipathi

  • SC Status "follow on document created' but no PO has been generated.

    Hi All,
    We are in SRM 7 EhP2 extended classic scenario.. In the recent past we have noticed some Shopping carts which are approved fully. Workflow status is Finished. SC status is Approved in portal.But there is no PO created. In BBP_PD, we can see the status of the SC is in I1113: Follow on document created. Checked in RZ20, but no error. Tried to run FM BBP_PD_SC_TRANSFER and also BBP_REQREQ_TRANSFER but no luck. This is happening for a particular company code and only with few SC. Other SCs are working fine. Please suggest.

    You are right in saying that when a SC is approved the PO will be automatically created, but what about SC that does not have Supplier?
    Where does a SC goes if there is no assign supplier?
    You may also want to see if you have a PO number for the SC in BBP_PD.
    Mike

  • Backup Fail with Volume Shadow Copy Service error: Error calling a routine on the Shadow Copy Provider, Event ID 12293, error returned while creating the volume shadow copy 0x8004230f,

    We are using TINA backup solution and windows 2003 backup is failling with VSS error.
    For testing purpose we initiate a system state backup (or any file backup) with the help of windows 2003 ntbackup.exe and found it is failing with below error.
    Backup error report.
    Backup Status
    Operation: Backup
    Active backup destination: File
    Media name: "Backup.bkf created 28/05/2014 at 06:34"
    Volume shadow copy creation: Attempt 1.
    Error returned while creating the volume shadow copy:0x8004230f.
    Error returned while creating the volume shadow copy:8004230f
    Aborting Backup.
    The operation did not successfully complete.
    We check event viewer and found below error event.
    Event Type:       
    Error
    Event Source:   
    VSS
    Event Category:               
    None
    Event ID:             
    12293
    Date:                    
    28/05/2014
    Time:                    
    05:48:10
    User:                    
    N/A
    Computer:         
    CQ329TOS
    Description:
    Volume Shadow Copy Service error: Error calling a routine on the Shadow Copy Provider {b5946137-7b9f-4925-af80-51abd60b20d5}. Routine details Cannot ask provider {b5946137-7b9f-4925-af80-51abd60b20d5} if
    volume is supported. [0x8000ffff] [hr = 0x8000ffff].

    Resolution:
    After getting this error we check Shadow Copy provider and writer health and fond it is fine.
    To get shadow copy providers details use below command.
    Command: vssadmin list providers
    Command output
    C:\>vssadmin list providers
    vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool
    (C) Copyright 2001 Microsoft Corp.
    Provider name: 'Microsoft Software Shadow Copy provider 1.0'
       Provider type: System
       Provider Id: {b5946137-7b9f-4925-af80-51abd60b20d5}
       Version: 1.0.0.7
    To get shadow copy writers health
    Command: vssadmin list writers
    Command Output.
    C:\>vssadmin list writers
    vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool
    (C) Copyright 2001 Microsoft Corp.
    Writer name: 'System Writer'
       Writer Id: {e8132975-6f93-4464-a53e-1050253ae220}
       Writer Instance Id: {333e02cd-d9ec-43c8-9b45-39691ad1b351}
       State: [1] Stable
       Last error: No error
    Writer name: 'Registry Writer'
       Writer Id: {afbab4a2-367d-4d15-a586-71dbb18f8485}
       Writer Instance Id: {800877a5-e13d-47a3-8f99-ebd4d3b3fd12}
       State: [1] Stable
       Last error: No error
    Writer name: 'MSDEWriter'
       Writer Id: {f8544ac1-0611-4fa5-b04b-f7ee00b03277}
       Writer Instance Id: {63400aa0-a17f-4121-9483-1cd226f03238}
       State: [1] Stable
       Last error: No error
    Writer name: 'COM+ REGDB Writer'
       Writer Id: {542da469-d3e1-473c-9f4f-7847f01fc64f}
       Writer Instance Id: {e13cb72b-84fa-4c86-86d8-48f523aafc9a}
       State: [1] Stable
       Last error: No error
    Writer name: 'Event Log Writer'
       Writer Id: {eee8c692-67ed-4250-8d86-390603070d00}
       Writer Instance Id: {ce63b3a0-e038-4e56-9d07-929f256639de}
       State: [1] Stable
       Last error: No error
    Writer name: 'WMI Writer'
       Writer Id: {a6ad56c2-b509-4e6c-bb19-49d8f43532f0}
       Writer Instance Id: {008e8714-ed6d-4288-81ce-4b0b1ec41294}
       State: [1] Stable
       Last error: No error
    Writer name: 'BITS Writer'
       Writer Id: {4969d978-be47-48b0-b100-f328f07ac1e0}
       Writer Instance Id: {e22a8953-a52c-4a76-bec0-8773122cbff8}
       State: [1] Stable
       Last error: No error
    Next I check Shadow Copies details from volume properties (right click on C or other drive then select properties then click on Shadow Copies Tab) and found it is showing the same error code..
    From this error it is clear that the issue is inside the registry hive and due to junk hive shadow copies services not able to working properly.
    For me the server have two disk we check disk signature at MBR and found the disk signature was.
    Signature disk 0 : 9351912b
    Signature disk 0 : FDFBE035
    But at registry we found lot of nonexistance signature. Which indicate lot of junk valu inside registry.
    Now how can we resolve this issue?
    It is very simple just delete the registry key “volume” (registry key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\STORAGE\Volume”) and reboot the server it will “Volume” registry hive automatically.
    Note:
     When you remove registry key it is showing error unable to delete, then please right click on it select permission then take ownership and assign full permission to your login account.
    Please be careful when you delete registry key because system can fully crashed if you delete or modify wrong registry key.
    Your can take a backup of the registry key by exporting.

  • Create return but linked to original sales order where the material was delivered in the first instance

    Hi Everyone
    I want to create return but linked to original sales order where the material was delivered in the first instance, I don’t want to create other sales order (to return) with references to the original, and then other sales order to be delivered again (replacement).
    Example
    SALES
    1. Create a sales order number 33 with 10 Ton
    2. The delivery is linked to sales order 33 just with 8 Ton
    3. Invoice is created linked to the delivery with 8 Ton
    4. Sales order number 10 pending qty is 2 Ton
    RETURN
    5. We would like to link the return delivery to the sales order, 5 Tons will be retuned
    6. Credit memo is created
    7. Sales order number 10 pending qty update to 7 Ton

    The only way is to change the item categories in the delivery.
    Create the delivery wrt the original sales order.
    Change the item category(In the config make sure the return is checked)- But I think you need to do some changes in the user exit to enable the item category in the delivery)..
    The other option is to have a return order document(type RE) and then create the return delivery for this document. In the copy controls you can maintain the return item categories while creating the return order from sales order..
    Thanks

  • MDT 2013: ZTI ERROR - Unhandled error returned by ZTIWindowsUpdate: ActiveX component can't create object (429)

    Hi,
    I try to capture a custom image but at the end of the process, I get the following error (see attached image):
    ZTI ERROR - Unhandled error returned by ZTIWindowsUpdate: ActiveX component can't create object (429)
    Could someone help me to solve this please?

    Hi everybody,
    I'm getting this message time to time and I don't know why. I have the ZTIWindowsUpdate.log who says:
    <![LOG[Ready to Opt-In to Microsoft Update: WUA Version: 7.6.7601.18804]LOG]!><time="15:35:07.000+000" date="04-14-2015" component="ZTIWindowsUpdate" context="" type="1" thread="" file="ZTIWindowsUpdate">
    <![LOG[ZTI ERROR - Unhandled error returned by ZTIWindowsUpdate: ActiveX component can't create object (429)]LOG]!><time="15:35:37.000+000" date="04-14-2015" component="ZTIWindowsUpdate" context="" type="3"
    thread="" file="ZTIWindowsUpdate">
    <![LOG[Event 41002 sent: ZTI ERROR - Unhandled error returned by ZTIWindowsUpdate: ActiveX component can't create object (429)]LOG]!><time="15:35:38.000+000" date="04-14-2015" component="ZTIWindowsUpdate" context=""
    type="1" thread="" file="ZTIWindowsUpdate">
    Do we have an explanation for this issue? Or, do you know how to fix that?

  • Exchange Office Web Apps Preview Does not work in OWA. An error occurred while the document preview was being created

    Hi,
    I have managed to configure intergration between Office Web App server 2013 and Exchange 2013 OWA.
    I have created a test users Test1 and Test 2. I have given full access on Test2 mailbox to user test 1.
    When I login to owa for user test1 and preview the attachment it works fine.
    However when I use "Open another mailbox" in OWA and open test2 mailbox and try to preview the attachments in test2 inbox it errors as
    " An error occurred while the document preview was being created. Please try again later " as follows
    I am new to office web apps server 2013 and implemented it first time. Can anyone suggest resolutions or troubleshooting ?

    Hi,
    To narrow down the cause, I’d like to recommend the following troubleshooting:
    1. Does the error appear when you directly access test 2 mailbox through OWA?
    2. Check if there is 141 error in your event log.
    3. Check whether Office web app server connects with Exchange server when the issue happens.
    Access the URL: https://hostname/hosting/discovery
    4. Grant full access permission again and check the result.
    For more information about Office web app integration with Exchange, please refer to the following article:
    http://www.msexchange.org/articles-tutorials/exchange-server-2013/management-administration/exchange-2013-office-web-apps-server-integration.html
    If you have any question, please feel free to let me know.
    Thanks,
    Angela Shi
    TechNet Community Support

  • OS 10.6.8 on documents created by Pages 3 will not open They want a Version 4 while my iMac does not install because it needs 4 Pages 10.7. But I can not install 10.7 because my iMac is not Core2 duo ... Funny dilemma!!

    OS 10.6.8 on documents created by Pages 3 will not open
    They want a Version 4 while my iMac does not install because it needs 4 Pages 10.7. But I can not install 10.7 because my iMac is not Core2 duo ... Funny dilemma!!

    You should be able to Save as: iWork 08, but i don't know how it works on Mountain Lion. On my Snow Leopard the Save as window has a part looking like this
    Or you can send me the document if you are in a hurry and I save it as iwork 08 for you. Click on my blue name and you'll find my address.

  • 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

  • When I try to open a document created in Pages, I get an error message saying "[Document Name" can't be opened."  I don't want to lose hours of work; has anyone else encountered this?

    When I try to open a document created in Pages, I get an error message saying "[Document Name" can't be opened."  I don't want to lose hours of work; has anyone else encountered this?

    A few general trouble shooting tips that may apply here:
    1. If you used Software Update to do the OS update(s) to reach 10.6.7, go to http://support.apple.com/downloads/ and download and apply the Mac OS v10.6.7 Combo Updater. The Combo Updater contains some fixes that were not included in the incremental updaters used by Software Update.
    1a. Check that you have the current version of Pages (and of the other iWork applications) installed. All three applications' current version numbers end in .0.5
    2. A common cause of malfunctioning applications is a corrupted preferences file (.plist file). Your Pages '09's plist is at yourname > Library > Preferences > com.apple.iWork.pages.plist
    Quit Pages, locate the file and Drag it to the Desktop (or to the Trash).
    Restart Pages and attempt to open one of the files.
    If all is well, Trash the plist file and empty the Trash.
    If there's no change, AND you've made changes to the Preferences that you wish to keep, drag the file back to its previous location, replacing any new one that has been created.
    Regards,
    Barry

  • I'm getting an error message "There was an error when opening this document. Access denied" on some PDF's that I was able to open in past. Uninstalled XI and installed X but same problem. Any thoughts?

    I'm getting an error message "There was an error when opening this document. Access denied" on some PDF's that I was able to open in past. Uninstalled XI and installed X but same problem. How can I access these files?

    I have exactly the same problem. The interesting thing is that the file opens when I attach it to an email and open it out of the email. I already saw the advice you provided in  similar post from Aug last year and checked the security settings of the file and the folder. But according to that I have all rights.
    My OS is Windows 7 Enterprise.

  • !!!!!!!Error in FI Document Create!!!!!!!!

    Dear All,
    While creating Excise Invoice (J1IIN) with reference to the Billing Document, we are getting the error "Error in FI Document Create".
    Please let me know how to solve this error.
    Issue is very very critical.
    Regards,
    Mullairaja

    - Check the FI document type assinged to the respective Company Code in CIN- Basic settings - eg: in std its "SA"
    check the Number range assigned to this is maintained or not?
    - Then check the G/L account maintained against Excise Transaction Type:DLFC , & check field status group & mandatory fields.
    Can you able to replicate the same in Quality system?
    Regards,
    Reazuddin MD

  • Error in FI document create Message no. 8I031

    Hi,
    When Im trying to post excise invoice after MIGO, I'm getting the following error -> "Error in FI document create". I have maintained the following Company Code Settings in taxes. How to resolve this.
    Error in FI document create
    Message no. 8I031
    Company Code    4000
    CENVAT Doc. Type:    SA 
    Utl FI Doc Typ:     ZA
    Regards
    Ayyallas

    Hi Ayyallas,
    chek and apply the corrections in the note 1434628. This would help in pin pointing the reason for the error.                                                   
    Regards,
    Mauro
    Edited by: Mauro Bianchi on May 12, 2010 5:21 PM

  • "Error in fi document create" J1IEX  Post

    When I am posting excise invoice through TCode J1IEX, System gives error message "Error in FI document create". Kindly help me out to resolve this error.

    I found solution..Note 1434628 is the resolution for this issue.

Maybe you are looking for