Material document problem and stock not appearing
Hi All,
I am doing goods receipt for production order through MB31.. after completion of goods receipt system is generating material document.. but when I go to MB03 to see the material document ,system throwing following error and stock is also not visible in MMBE....
can any body help me out why it is happening and how to resolve this...
Thanks
Kumar
I can see it is an SQL error about inserting duplicate record.
this just means that you have already a record with the same key in your data base.
I dont really think it is the material document number, otherwise you would not get the error in transaction MB03, you would get a material document just from an older process instead.
you have to analyze it in more detail. I hope you have an ABAPer or a basis guy or any other collegue that could help you to navigate through SM13 to find the right information. Or help you reading the dump.
if you can read some ABAP then click the icon for ABAP Editor (F5) and it will take into the program to the statement where it failed.
From this statement you can probably know which table is to be updated.
if you find the failed update module then you can check via the icon for VB-Data what the values are and you may find already a record in that table with the same values.
Then you have to analyze why it can have the same keys.
Similar Messages
-
Material document ,quantity and stock location for a given material
hello all,
i have a requirement like this.
in the selection screen i have,
material.....
plant....
posting document date.....
i need to get material document number,quantity,units and stock location for the above mentioned selection criteria...
what tables do i need to use..
do i need to use any BAPI or Function module..
thanks in advance...Hi Vinay ,
Look into table MKPF & MSEG for material document
anf for quantity in MARD
Regards
Yogendra Bhaskar -
Status 51 material document data and po data do not match(vendor)
i am using we19 to try an inbound idoc mbgmcr(receipt for po)
i put in gm_code 01
movement indicator B(goods receipt for po)
vendor 3815
PO 4500015241
PO Order Item 00030
Movement type 101
qty in unit of entry 1
iso code unit of measurement pc
on the po screen i see the po item and qty to be delivered is 75
when i run the inbound idoc i get
status 51 material document data and po data do not match(vendor) but as i say on the po inquiry screen i see the po vendor item with 75 to be delivered
what am i missing????????????????thank you
i put in the leading zeros and got rid of that problem
now i am getting status 51
posting only possible in 2004/07 and 2004/06
but in the posting date i use 07/02/2004 i have tried several dates in the period but get the same error
any ideas?
thanks you -
Regarding : Material document data and PO data do not match (Plant)
Hi Gurus,
Please go through this BAPI program.
While uploading it is giving an error ' Material document data and PO data do not match (Plant) '.
Please help regarding this issue.For all Other moment types it is working fine except this 351 moment type.
dATA: i_excel TYPE truxs_t_text_data. "work table for excel upload
DATA: BEGIN OF it_itab OCCURS 100,
docdate(10),
postdate(10),
mvt_type(3), "Movement Type
plant(4), "Plant
lgort(4),
pur_doc(10), "Purchase Document No
po_item(3), "Purchase Document Item No
material(18), "Material Number
delnote(16),
erfmg(13),
uom(3),
lfmng(13), "Quantity
batch(10) TYPE c,
vfdat TYPE vfdat,
END OF it_itab.
DATA: it_goodsmvt_head TYPE TABLE OF bapi2017_gm_head_01 INITIAL SIZE 100,
it_goodsmvt_code TYPE TABLE OF bapi2017_gm_code INITIAL SIZE 100,
it_goodsmvt_item TYPE TABLE OF bapi2017_gm_item_create INITIAL SIZE 100.
DATA: wa_goodsmvt_head LIKE LINE OF it_goodsmvt_head,
wa_goodsmvt_code LIKE LINE OF it_goodsmvt_code,
wa_goodsmvt_item LIKE LINE OF it_goodsmvt_item.
DATA: w_mat_doc TYPE bapi2017_gm_head_ret-mat_doc,
w_year TYPE bapi2017_gm_head_ret-doc_year.
DATA: BEGIN OF it_errmsg_goodsmvt OCCURS 10.
INCLUDE STRUCTURE bapiret2.
DATA: END OF it_errmsg_goodsmvt.
DATA : obj_type LIKE bapiache09-obj_type,
obj_key LIKE bapiache09-obj_key,
obj_sys LIKE bapiache09-obj_sys.
DATA: v_date1 TYPE sy-datum.
DATA: v_date2 TYPE sy-datum.
DATA: w_lines TYPE i.
DATA: errflag.
SELECTION-SCREEN BEGIN OF BLOCK bk1 WITH FRAME TITLE text-100.
PARAMETERS: p_file TYPE rlgrap-filename.
SELECTION-SCREEN END OF BLOCK bk1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
field_name = 'P_FILE'
IMPORTING
file_name = p_file.
Start-of-selection processing
START-OF-SELECTION.
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
i_line_header = 'X'
i_tab_raw_data = i_excel
i_filename = p_file
TABLES
i_tab_converted_data = it_itab[]
EXCEPTIONS
conversion_failed = 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.
LOOP AT it_itab.
REFRESH it_goodsmvt_head.
REFRESH it_goodsmvt_item.
CONCATENATE it_itab-docdate6(4) it_itab-docdate3(2) it_itab-docdate+0(2) INTO v_date1.
CONCATENATE it_itab-postdate6(4) it_itab-postdate3(2) it_itab-postdate+0(2) INTO v_date2.
wa_goodsmvt_head-pstng_date = v_date2.
wa_goodsmvt_head-doc_date = v_date1.
wa_goodsmvt_head-ref_doc_no = it_itab-delnote.
wa_goodsmvt_head-pr_uname = sy-uname.
APPEND wa_goodsmvt_head TO it_goodsmvt_head.
Maintain it_goodsmvt_code
wa_goodsmvt_code-gm_code = '04'.
Maintain it_goodsmvt_item
*LOOP AT it_itab.
IF wa_goodsmvt_item-po_number IS INITIAL.
wa_goodsmvt_item-po_number = it_itab-pur_doc.
wa_goodsmvt_item-move_type = it_itab-mvt_type.
wa_goodsmvt_item-MOVE_PLANT = it_itab-plant.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = it_itab-material
IMPORTING
output = it_itab-material.
wa_goodsmvt_item-material = it_itab-material.
wa_goodsmvt_item-stge_loc = it_itab-lgort.
wa_goodsmvt_item-po_item = it_itab-po_item.
wa_goodsmvt_item-entry_qnt = it_itab-erfmg.
wa_goodsmvt_item-ENTRY_UOM_ISO = it_itab-uom.
wa_goodsmvt_item-po_pr_qnt = it_itab-lfmng.
wa_goodsmvt_item-batch = it_itab-batch.
wa_goodsmvt_item-expirydate = it_itab-vfdat.
wa_goodsmvt_item-NO_MORE_GR = 'X'.
wa_goodsmvt_item-mvt_ind = 'B'.
APPEND wa_goodsmvt_item TO it_goodsmvt_item.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = wa_goodsmvt_head
goodsmvt_code = wa_goodsmvt_code
IMPORTING
materialdocument = w_mat_doc
TABLES
goodsmvt_item = it_goodsmvt_item
return = it_errmsg_goodsmvt.
Process of commit work
IF it_goodsmvt_head[] IS NOT INITIAL.
DESCRIBE TABLE it_goodsmvt_head LINES w_lines.
ENDIF.
IF it_goodsmvt_item[] IS NOT INITIAL.
DESCRIBE TABLE it_goodsmvt_item LINES w_lines.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
IMPORTING
RETURN =
CLEAR errflag.
READ TABLE it_errmsg_goodsmvt INDEX 1.
IF it_errmsg_goodsmvt-type EQ 'E'.
WRITE:/'Error in function', it_errmsg_goodsmvt-message.
errflag = 'X'.
ELSE.
WRITE:/ it_errmsg_goodsmvt-message.
ENDIF.
IF errflag IS INITIAL.
COMMIT WORK AND WAIT.
IF sy-subrc NE 0.
WRITE:/ 'Error in updating'.
EXIT.
ELSE.
WRITE:/ 'Material Document created successfully and the Document Number for the Material',
wa_goodsmvt_item-material,'is:', w_mat_doc, w_year.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.Hey,
Just wanted to post that in my case this was the error of MVT_IND field in item table. When I made it from 'B' to blank then it worked.
Mine is solved....
Thanks -
Referance material document of 103 is not updating in 105 material document
Dear All,
I have created a Good Receipt through MIGO using 103 movement. Later I have created 105 movement with respect to 103 movement reference through release blocked stock.
After creation of documents, when checked the document created through 105 movement there is no reference number of 103 document number found in the document number of 105 movement.
In the table MSEG field LFBNR is supposed to get updated with the reference number of the document created through 103 movement.
In this case, this reference number is not updated in the table MSEG-LFBNR.
What is the reason for Referance material document of 103 is not updating in 105 material document at item level in Purchase order Tab.
Regards,
VinayHi,
I was faced this issue yesterday and finally find it caused by the check box ' Based-GR IV' in the PO.
Twig Chan -
How to see the material document for Blocked stock
Hello Experts
I having some blocked stock in plant X , How to see the material document for this stock.
Thanks in Advance
Prashanth.v
Edited by: prashanth.venkategowda on Aug 11, 2010 7:38 PMwhich material documents do you want to see?
Material documents can be found and displayed in MB51 transaction.
in MMBE you can put the cursor onto your stock line and then choose from menu Environment > material documents and SAP will list all relevant material documents.
block stock status is not a selection criteria, material number, plant storage location, batch number are selection criterias.
if you want only documents to block stock, then you need to select by movement type, e.g. 343 and 344 are movements that change status from unrestricted to blocked or vica versa. -
Billing Document and Material Document number and Date (Goods Issue)
Dear Experts,
Is there a way I can find the relationship between a billing document and a material document number and Goods issue date?
ThanksHi Abid
Is there a way I can find the relationship between a billing document and a material document number and Goods issue date?
You have to follow the flow from the billing document to the material document. This will only work if the billing document comes from a delivery note.
Billing document => Delivery
LIPS-VBELN = VBRP-VGBEL
and LIPS-POSNR-VBRP-VGPOS
So you have LIPS + LIKP with the LIKP-WADAT_IST as the goods issue date.
Delivery => Material Document Number
You can use the table VBFA with the delivery item as the preceding document number (VBFA-VBELV) and item (VBFA-POSNV) ; you will also have to define the preceding document type as J (delivery) and the document category of subsequent document as R (material document).
Because in SAP nothing is simple, there might more than one material document, because the goods issue (601) movement might have been canceled and issue again. So you will have to decide what to do in that case.
Best Regards,
Franck -
SOMETHING IS WRONG, I SEND A FILE TO TRASH AND DOES NOT APPEAR IN TRASH, THE TRASH IS EMPTY
I had the same problem. It was solved see the discussion at https://discussions.apple.com/message/19433909#19433909
-
Disk wont eject and does not appear on dtop or in finder.
Put in a music (bought) cd and does not appear on desktop or in finder. Also cannot eject. Tried just about all I know apart from emergency eject. Would do that too but can' figure where the emergency eject hole is (if any) on the iMac G5 (power pc) 2005.
Anyone help pls.
iMac G5 Mac OS X (10.4.6) LemonHey there, couple of things here.
After checking out the forum I contacted Apple Care where they insisted that the optical drive needed to be replaced.
Apple store tells me that the "disk spit" prob has been recognised for a long time and they were repairing/replacing the optical drive. To no avail. They say it is usually due to the felt wearing and so not hanging onto the disks properly.
Have had the felt replaced (not covered by APP - handy for them).
As for the CD issue, I have also had the same problems.
Although last time I had these probs with disks not mounting, not ejecting and generally going into the twilight zone, it WAS a software issue.
The machine needed to be seriously repaired.
Zeroed infact.
Major drag.
Still, this iMac may look pretty, but will go for a power mac next time round.
Have had to buy an external HD coz this one keeps going belly up.
iMac G5 Mac OS X (10.4.3) Lemon -
My ipad has a software problem and does not work, request that it is loaded the software and there is no way that the operating system loads, is not restored. WHAT SHOULD I DO?
This is an iPad user to user forum, so you are not addressing Apple. Depending on how many user helpers are on-line, it may take several hours, or longer, to get a response.
Try this - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased.
Frozen or unresponsive iPad
Resolve these most common issues:
• Display remains black or blank
• Touch screen not responding
• Application unexpectedly closes or freezes
http://www.apple.com/support/ipad/assistant/ipad/
iPad Frozen, not responding, how to fix
http://appletoolbox.com/2012/07/ipad-frozen-not-responding-how-to-fix/
iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
Black or Blank Screen on iPad or iPhone
http://appletoolbox.com/2012/10/black-or-blank-screen-on-ipad-or-iphone/
What to Do When Your iPad Won't Turn On
http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
iOS: Not responding or does not turn on
http://support.apple.com/kb/TS3281
Home button not working or unresponsive, fix
http://appletoolbox.com/2013/04/home-button-not-working-or-unresponsive-fix/
Fixing an iPad Home Button
http://tinyurl.com/om6rd6u
iPad: Basic troubleshooting
http://support.apple.com/kb/TS3274
Cheers, Tom -
How to get a question in the course placed anywhere in the course and does not appear in the quiz result or total number of questions. Pretest would work except it can't go anywhere in the course (at least for me it can't)
Use a normal question, and do not add the score to the total score. That will give you a correct score at the end. But the total number of questions, that system variable will still take into account all questions. You'll need a user variable, and calculate its value by subtracting 1 from the system variable cpQuizInfoTotalQuestionsPerProject. Same for the progress indicator if you want to show it?
Customized Progress Indicator - Captivate blog
If you want to allow Review, you'll have to tweak as well. You didn't specify the version, and all those questions I now mentioned.
And my approach, since you talk about only one question: create a custom question, because you'll have total control then. -
PAD Mini Locked after iOS upgrade, tried reset on iPAD did not work, plugged in and device not appearing in iTUNEs for reset/restore. Just get an Apple Logo then a flashing blue screen as if it is caught booting up. This has happened twice before and iTunes restore fixed it. But this time device not appearing in iTunes.
Running iTunes for PC. But as stated restore has worked before! Any help greatly appreciated!!Place the device in DFU mode and let iTunes restore the device to factory condition.
-
Windows 8.1 PC, using reader, when searching a folder containing approx 100 doc's. If i search for a word, no results are returned. only the doc names can be found but nothing from within the doc.
This is a new problem and was not the case before.Works perfectly fine for me with the latest Reader version (11.0.09).
You write that it worked "before"; before what? An update? Update from what version to what version? -
I have Adobe Reader XI and I tried to open a document download and a box appeared stating it was a password protected document ant requested a password. Were and how do I one?
Hi noswam123,
If a PDF file is password protected, the only way to open that document is with the password. You will have to get that password from the person who created the PDF.
Best,
Sara -
iMac OS X 10.9.4
3.06 GHz Intel Core 2 Duo
4 GB 1067 MHz DDR3
I updated the system to OS X Mavericks and now I cannot open iPhoto with all my pics in.
I trying to update iPhoto 9.5.1 and this note appears:Make sure you're logged in to the App Store with the same Apple ID that you used to download and install Mavericks. If necessary, log out of the App Store and log back in.
If that fails contact the App Store support personnel via the link circled in this screenshot:
Maybe you are looking for
-
Passing portal username and password as parameters in URL iview.
Hi Gurus, i Have Created URL iView. i want to send the Username and password of portal to this url , how can i access the portal username and password. Note: tried with j_user and j_password Regards K Naveen Kishore
-
My iMac OSX keep shutting down
My iMac OSX keep shutting down randomly. It goes to a black screen to a blue screen and then shuts off. I have to unplug and replug it in to get it going again. It's happening everyday... has anyone had this problem and if so what did you do to fix i
-
Database adapter causes deadlock
We use database adapter on 3 standalone tables with no FK. At the beginning of the process, we do a read <jca:operation ActivationSpec="oracle.tip.adapter.db.DBActivationSpec" ...> At the end we do an update with <jca:binding /> <operation name="merg
-
Good arvo, I was wondering if there was a way how to link the line items to a macro activity, same as the Work Breakdown Structure. I am trying to expand macro activities totalled by the sum of their related line items or sub-activities, e.g., Activi
-
Do iPhoto journals created on iOS now sync on iPhoto 9.5 for mac?
hi all, ive spent a lot of time on my iPad touching up travel photos and creating journals. I've just upgraded to Mavericks, and am thinking about getting the new iPhoto 9.5 for iMac. Will the journals i have suddenly appear if i make this upgrade on