'Maintain serial numbers for total quantity error in bapi_goodsmvt_create
HI Experts,
I am doing a goods movement programatically by using BAPI_GOODSMVT_CREATE.
Though I am passing the serial no. for the document item still I am getting an error: 'Maintain serial numbers for total quantity'.
My code goes like this:
*-- Read all the items for the item category belonging to the plant
loop at lt_lips into lw_lips where pstyv is not initial.
*-- Process the goods movement - Fill the data
lw_gmvt-material = lw_lips-matnr.
lw_gmvt-plant = lw_cat-werks.
lw_gmvt-stge_loc = lw_cat-lgort.
lw_gmvt-batch = lw_lips-charg.
lw_gmvt-move_type = lw_cat-bwlvs.
lw_gmvt-customer = <st_xvbpa>-kunnr.
lw_gmvt-s_ord_item = lw_lips-posnr.
lw_gmvt-entry_qnt = lw_lips-lfimg.
lw_gmvt-entry_uom = lw_lips-meins.
lw_gmvt-entry_uom_iso = lw_lips-meins.
lw_gmvt-ref_doc = xlikp-vbeln.
lw_gmvt-quantity = lw_lips-lfimg.
lw_gmvt-base_uom = lw_lips-meins.
append lw_gmvt to lt_gmvt.
clear: lw_gmvt.
BOC for serial numbers
if lt_ser02 is not initial and lt_objk is not initial.
clear: lw_ser02,
lw_objk.
read table lt_ser02 into lw_ser02 with key sdaufnr = cvbak-vbeln
posnr = lw_lips-posnr
sd_postyp = lw_lips-pstyv binary search.
if sy-subrc = 0.
read table lt_objk into lw_objk with key obknr = lw_ser02-obknr binary search.
if sy-subrc = 0.
*-- Check if serial number is populated
if lw_objk-sernr is not initial.
*-- Fill the serial number table for BAPI movement
clear: lw_sno.
lw_sno-matdoc_itm = lw_lips-posnr.
lw_sno-serialno = lw_objk-sernr.
append lw_sno to lt_sno.
endif. "Serial number not initial
endif. "OBJK read
endif. "SER02 read
endif. "SER02 and OBJK is not initial
EOC for serial numbers
endif. "Category table read
clear: lw_cat, lw_lips.
endloop.
*-- Execute the BAPI only if item table is filled on the above condition
if lt_gmvt is not initial.
*-- Fill the header details
lw_header-pstng_date = xlikp-erdat.
lw_code-gm_code = lc_03.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
GOODSMVT_HEADER = lw_header
GOODSMVT_CODE = lw_code
IMPORTING
MATERIALDOCUMENT = lv_mblnr
MATDOCUMENTYEAR = lv_mjahr
TABLES
GOODSMVT_ITEM = lt_gmvt
GOODSMVT_SERIALNUMBER = lt_sno
RETURN = lt_return.
Please suggest.
Regards,
Sangeeta.
Hi Banerjee,
Actually we are trying to use the same bapi from se37, we are passing all the details which is required to process the bapi_goodmvt_create. But still the bapi returning the same error what sangeeta got in the above. Can you please guide me how to achieve this.
how the values has to pass to the Serial Number?
What exactly meant by Counter Values ?
Regards,
Siva
Similar Messages
-
Maintain serial number for total quantity" error in BAPI_GOODSMVT_CREATE
Hi!
I also encountered the error "Maintain serial number for total quantity" in using BAPI_GOODSMVT_CREATE .
In retrieving the serial number, I use this code:
Select all
READ TABLE l_it_ser03 ASSIGNING <ser03> WITH KEY mblnr = <gm_items>-mat_doc
mjahr = <gm_items>-doc_year
zeile = <gm_items>-matdoc_itm.
IF sy-subrc is INITIAL.
MOVE:
<gm_items>-matdoc_itm TO l_wa_goodsmvt_sernum-matdoc_itm,
<ser03>-sernr TO l_wa_goodsmvt_sernum-serialno.
APPEND l_wa_goodsmvt_sernum TO l_it_goodsmvt_sernum.
ENDIF.
And then i pass the l_it_goodsnvt_sernum to BAPI_GOODSMVT_CREATE.
The error shows up whenever i tried to execute a PO having the serialised parts from the Goods Issue, but if the GI has no serialized part, the program works well.
Please, please help.
Thank you.may i know how you solve the issue ?
-
Help!
I am using bapi_goodsmvmt_create.
But it always return the error message : Maintain serial numbers for total quantity.
I passed all the required parameters as specified in the forums that i had browsed.
Pls advise what is the cause of the error?
Thanks and God bless.Hi Sridhar!
Thank you for the very helpful link.
That link ended solve my problem.
Sorry for this late reply.
navi -
In Purchase Order Line item Maintaining Serial Numbers for Material Codes
Dear Gurus,
We have a business process in legacy system for Purchase Order like in PO line item, Material code with description, Quantity, unit of Measurement, Serial Number Start and Serial Number End is maintained, for example for Material code when we enter the data AXMLN00001 in Serial Number Start column, if the Qty 500 is maintained, by default system will calculate AXMLN00500 in Serial Number End column.
We understand that in standard SAP we donu2019t have this option of maintaining Serial Number Start and End in Purchase order Line item. Please let us know how this can be mapped and is it advisable to create two Z fields in EKPO table or else can we make any development.
Suppose if this is not possible in SAP for PO then in Banks if we want to place a order for Cheque books how we can maintain Start and End Serial Numbers to print in cheque books.
Also client is not agreeing to maintain manually Serial numbers in item text.
regards,
DhanuAamir,
When the PO Item was created say for example Material had Valuation category "Y" and latter you wanted to change the category to "Y". Now system would have check for all open PO's etc...based on this you must have set Deletion Indicator to this Line Item to allow valuation category change in material master. Now when this Item got created in the table level (EKPO), system updates the valuation category "Y". Currently this valuation category is not active so it would not allow you to perform removal of deletion indicator as program cannot automatically nor you have an option to manually update the valuation category to this Item.
Regards,
Prasobh -
Serial Numbers for Sales Orders
We have a business Process where we do not maintain any serial numbers for the products. How ever one of our customer maintains serial numbers for the products that come to their warehouse.
This customer will send in the serial numbers for each material and quantity in the inbound 850 Idoc and he wants those serial numbers to be printed on top of the boxes. so that he can scan them while receiving the GR and do automatic posting at thier system.
we have to store this serial numbers against this sales order and print them in the shipping tags for the finished products that are to be sent to this customer.
Now
1) we do not want to use serial number profiles because it effects every sales order / delivery created for that material. the serial numbers should be assigned only to the orders from this specific customer. Is there any way to acheive this?
2) in the sap idoc 850 ( message type ORDERS05) how do we store the serial numbers. what segment and fields are available for this purpose.
3) how to save this serial numbers in the sap system against the sales order created for this customer.
Your answers will be highy appreciated.
Thanks,Thanks for all those wonderful replies..
I am looking more at a standard solution. with minor changes..
Storing the serial numers in text items is possible but not practical, the more the quantity the more difficult and time consuming is this process for ex if this customer orders 10,000 qty. then it would be tough.. and again to solve that problem we have to break the qty into multiple line items and this is only a alternatve but not a good solution i guess.
I thought this scenario should be more in practice because, customers can request us to put their serial numbers on the packing boxes that we send them.
So just wondering if any our colleagues have already worked in this scenario.. While doing a search I saw a couple of questions regarding the same situations back in 2005 and 2007 but the questions were marked as answered without mentioning the solution they approached to solve this problem.
Can any of you suggest me whether is this scneario a standard one ? -
DI-Error: You cannot select batch or serial numbers for a closed row
Hello Experts,
I have several B1-Systems connected to R/3-Systems via B1iSN.
In B1 for example I have 2 rows in Purchase Order. One row was closed by a goods receipt - 1 row is still open.
From our R/3-System we send Order-Acknowledgements to B1. Because line 1 is already closed we want to ignore row 1 and update only information in row 2. By using KeyExpansion I could solve that requirement (check in B1-System if row is already closed -> insert row in IDoc only with LineNum). For example:
<Document_Lines>
*<row>* <!-- ignore -->
*<LineNum>0</LineNum>*
*</row>*
<row> <!-- update -->
<LineNum>1</LineNum>
<ItemCode>ABCDEFGHIJK</ItemCode>
</row>
</Document_Lines>
Unfortunately DI-API does not allow to update each row separated. I always have to send all rows in IDoc even if one row is closed.
For one B1-Company batchnumbers on every transaction is required. When creating Goods Receipt we have to define a batchnumber for item. But now if I want to update a open row (as described above) I get an B1iSN-Error:
DI Error: (-10) You cannot select batch or serial numbers for a closed row
Any ideas to solve that Error? Thanks.
Regards,
GBHi Bastian,
I have still one open question. How to tread Document Lines Additional Expenses?
If I use the logic of visual order I still get the error "You cannot select batch or serial numbers for a closed row".
Example:
<Document_LinesAdditionalExpenses>
- <row>
<LineNumber>4</LineNumber>*no expenses*
</row>
- <row>
<LineNumber>0</LineNumber>*no expenses*
</row>
- <row>
<LineNumber>1</LineNumber>*no expenses*
</row>
- <row>
<LineNumber>2</LineNumber>*no expenses*
</row>
- <row>
<LineNumber>3</LineNumber>*expenses correct*
<ExpenseCode>3</ExpenseCode>
<LineTotal>10.00</LineTotal>
</row>
</Document_LinesAdditionalExpenses>
How can I solve that?
Thanks and regards,
GB -
WHERE I SHOULD MAINTAIN SERIAL NUMBER FOR F.GOODS PRODUCT
HI
PLEASE TELL ME WHERE I CAN MAINTAIN SERIAL NUMBERS
HOW WE CAN DO AUTOMATIC CREATION OF SERIAL NUMBER
PLZ GIVE SETTING I SHOULD DO.
DON'T GIVE ME LIKE WHICH NEED USER ID AND PASSWORD, I DON'T HAVE.
PRASADDear PRASAD
If you want to manage an item by serial number, you should define it in Item master Data -> General tab -> Serial and Batch Numbers->Manage Item by. You could choose 'Serial Numbers' or 'Batch'. After that, another field 'Management Methodwill' be available. You could choose 'On release only' or 'On every transaction'.
If you choose 'On every transaction', on every transaction which will receive goods (for example, GRPO) before adding, the 'Serial Number - setup' window will pop up. Or you can open this window by putting cursor on Quantity field and use Ctrl + Tab key. Under this window, you could create Serial Numbers.
And there is a button named 'Automatic Creation'. Using it, you could create serial numbers automaticlly.
Before adding documents which will issue goods, the serial number selection window will pop up.
If you choose 'On release only', when you receive goods, the serial number setup window will not pop up. After receive them, you can finish the creation of serian number.
Inventory -> Item Management -> Serial Number -> Serial Number Management.
If you want to create Serial number for new received goods, choose 'Complete' in Operation. In this function, you also could automaticlly create Serial Numbers.
If you want to update Update existing serial numbers, please choose 'Update' in Operation. -
How to maintain serial no for sales order created by BAPI
Hi all,
We are using BAPI for creating sales order "BAP_SALESORDERDAT2" but we are not able to assign Serial number while using this BAPI. Is there any function modul, BAPI, or workarround available to solve this problem. Or how to maintain Serial number.
Regards
Shambhu SarkarHi
It is not possible to to maintain serial numbers with the normal SD
BAPIS. This functionality is not scope of the BAPIS.
regards,
Ramana -
Movements of a material which maintains serial numbers
Hi experts,
Need to track the movements of a material which maintains serial numbers. Need to get data such as PO number, PO line item, Material code, GR number, GRN date, serial number of the item, Goods Issue note, issue date and the text feild.
pls note that the requirement is need to fulfill in a single report,
eg: For the material XYZ we have raised a po namely ABC123
the most important thing in this report is to get the GRN, Serial number and the goods issue note
with the use of ITOB table i can get the serial number and with the use of MSEG can get the GRN
problem is with the issue note
ichecked with IQ 09 T code and using the history tab i can get the movement of that serial number
but when you check the table which maintain data for the movement of serial number, they are maintained in structure and not in a table,
therefore how can i get the required information
pls assist to solve this, thanks in advance
SasikaCheck IQ09 Tcode.
-
I have the Photoshop Photography Program and now every time I try open Photoshop CC it asks me for a Serial Number. It keeps saying my trial period has ended. How can I get this working since Adobe doesn't issue Serial Numbers for CC.
Jodie84,
I have just checked your account and found that you indeed have bought a Creative Cloud for Teams subscription but you have assigned the single seat to another user hence you ( If you are using your own Adobe ID ) are getting the trial error message.
Two options : Either reassign the seat to your self or add an additional seat and invite your self in the same Team.
Cheers,
Kartikay Sharma -
R12 - API to Create Serial Numbers for Ordered Item in Receipt
Hello All,
I got a requirement to create PO Receipt using PL/SQL code. For that i have created PL/SQL code to insert data in following Interface tables,
a) rcv_headers_interface
b) rcv_transactions_interface
After inserting data in Interface table executed Concurrent Program "Receiving Transaction Processor" to process data from Interface table to Base Table. This process is working perfectly fine for "Non-Catalog" requests. But if i try to process any PO having Inventory Item whose Serial Control is set to "At Receipt" then i got following error at Interface table,
"Fail to validate serials".
To resolve this issue i need to create and process serial number for Ordered Item selected to Receive. Can anyone guide me regarding how can I generate Serial Numbers using API for PO Receipts.
Regards,
PriyankaHi,
Just populate mtl_serial_numbers_temp table correctly (by specifying transaction_temp_id = RTI.interface_transaction_id)
and serial number range in fm_serial_number - to_serial_number respectively.
You may entermultiple MSNT records with same transaction_temp_id.
You may need to populate PRODUCT_TRANSACTION_ID = RTI.interface_transaction_id and PRODUCT_CODE = 'RCV'.
Oracle will create all the serial numbers for you when the records get processed.
Thanks,
Hrishi -
Need help in query to display lot and serial numbers for a Wip Job Component
Hi ALL,
I have a requirement as below.
I need to display lot and serial numbers for a Wip Job Component, i have a xml report in that for each wip job component i need to check whether it is a lot control item or serial control item based on that i need to display some data. so can you please help me to get the query to indentify the lot and serial number for a wip job component.
ThanksThank you for replying Gordon. I did not remember I had asked this before. I no longer have access to the other account.
What I need on the query is that I want a list of items with the on order quantity and when we are expecting this order to be received. The receiving date is based on the PO delivery date. The trick here is that I need to Master sku to show the delivery date of the component sku. In my scenario all components have the same delivery date for the Master sku. If there are mulitple delivery dates because each warehouse is getting them on a different date then I want to get the delivery date for that warehouse.
Let me know if this is possible and if yes please guide towards a query for it.
Thank you. -
Unable to allocate the Serial Numbers for PO receipts?
Hi,
I want to allocate the serial numbers for the PO receipts for this i have done the following steps. (we are using the 11.5.10.2 version)
Serial Control at Organization Parameter Level is
Uniqueness With in Inventory items
Generation At Item level
Case 1: Items > Inventory Tab
Serial
Generation at Receipt
Prefix xxx
Serial 001
Now, i have created the PO While performing the receipts the Lot/Serial tab is not enabled
Note: I have generated the serial numbers from the On-Hand quantity > Generate Serial Numbers. then raised the PO and then performed the PO receipt.
Important: Under Items >Inventory Tab here the Material status for Serials is disabled and Material Status is not found under Setup > Transactions, is this feature is new in R12, please clarify this dount also.
Pleae advice.
Regards,
Kevin.Hi Kevin,
I'm not sure whether you already got the answer for your issue.
If you are still looking for answer then, can you check the following:
- The INV org in which you have entered the serial number generation details (Prefix, starting serial no etc) for the item is same as the receiving org for PO receipt
- While doing PO receipt the "Destination Type" is Inventory
Material status control functionality for Lot and Serial is not new in R12. It is also available in 11.5.10. However your issue is not linked to Material Status for Serial.
The default Serial status is 'Active' To define additional material statuses to be used in INV you need to use WMS responsibility even if you are not using WMS.
Thanks
-Supro -
Purchased Photoshop Elements 13 (upgraded from Photoshop Elements 10), downloaded, entered serial numbers, then got the error message: "OS Requirement not met, Windows Vista not supported" now what?
Sweetie Bug wrote:
now what?
System requirements | Adobe Photoshop Elements
The last version of PSE which supported Vista was version 12.
You'll either have to upgrade your operating system to Windows 7 or Windows 8 or return PSE 13 for a refund. -
hello,
I have done a setup for serial numbers and when I do the GR I get a blank serial number list.
I earlier used transaction IQ04 and maintained for one article the various serial numbers.
When I do the GR I must be able to autmaticlaly see all the serial numbers related to the article. The system shows blank serial numbers although I have maintained them.
Can you help to identify what I have missed that the serial number based on aarticle doesnt get coped over to the GR document?
Another point is when I do the GI I also dont see the serial numbers for which I have done the GR for the article. What am I missing here?
Thankshi
how the serial no profile has been configured ,ie if the exist required is marked in the serial no profile then while making the GR you have to select the serial no alredy created,but if you doesn't select the same you have to mark the serial no automatically while making the goods receipt
kindly check
regards
thyagarajan
Maybe you are looking for
-
OS X and Windows home directory
Greetings, I have a small network that I would like to consolidate running Panter server 10.3 and a mix of OSX 10.4 and XP machines. All of the machines authenticate to my server. However, the PC users store their data in the /Users/Profiles/ are tha
-
IPhone 6 rotating issue.
My iPhone 6 does not rotate on occasion. Only fix is a hard restart. Apple is really losing their edge. Maybe it's time for a change.
-
How to create SAP transaction iView
Hello, Can any body tell me indetail how to crate SAP transaction iView for "SE38" transaction. Regards, Amey Potale
-
Using mysqli in PHP 5.3.10
I am using OS X Lion 10.7.4. I want to use mysqli API in my PHP script, but the manual says I have to install it. Plaese tell me how to install it
-
I don't want to apps stored on my PC.
App take up too much space on my PC. With iCloud, I no longer want or need to sync apps on my pc. But if I uncheck sync apps, it says my device apps will be wiped. Apple, why won't you let me do this. I thought your motto was, "it just works". W