Assign Serial numbers to handling Units in the Packing
Hi,
I'm using a Function module SERNR_ADD_TO_HU for to add Serial numbers into the handling units. Function module executed successfully and returns a commit value 'X', but table SER06 was not updated. Is there any thing i'm missing (or) is there any other function module for to add serial numbers to the handling uints.
Thanks in Advance.
Narasimha.
Hi Narasimha.
You can use FM WS_DELIVERY_UPDATE to update serial numbers in HU assigned to deliveries.
I've just finished the code (it took me about 4 days to get it right!!! it was driving me crazy, but it's working now!!!).
Please find a sample code below:
DATA FOR BAPI WS_DELIVERY_UPDATE
DATA:
wa_vbkok_wa TYPE vbkok,
wv_delivery TYPE likp-vbeln,
bt_vbpok_tab TYPE TABLE OF vbpok,
bt_it_sernr_update TYPE shp_sernr_update_t,
bt_verko_tab TYPE TABLE OF verko,
bt_verpo_tab TYPE TABLE OF verpo,
bt_it_verpo_sernr TYPE TABLE OF hum_verpo_sernr,
bt_it_packing_sernr TYPE TABLE OF hum_rep_sernr,
bt_et_created_hus TYPE TABLE OF vekpvb,
bt_prot TYPE TABLE OF prott,
wa_vbpok_tab TYPE vbpok,
wa_it_sernr_update TYPE shp_sernr_update_t WITH HEADER LINE,
wa_verko_tab TYPE verko,
wa_verpo_tab TYPE verpo,
wa_it_verpo_sernr TYPE hum_verpo_sernr,
wa_it_packing_sernr TYPE hum_rep_sernr,
wa_et_created_hus TYPE vekpvb,
wa_prot TYPE prott,
wa_ef_error_sernr_update TYPE xfeld.
UPDATE DELIVERY
[0]
... DELIVERY - HEADER ...................................
MOVE s_vbeln TO wv_delivery. "delivery number
MOVE s_vbeln TO wa_vbkok_wa-vbeln. "delivery number
MOVE s_vbeln TO wa_vbkok_wa-vbeln_vl. "delivery number
MOVE 'J' TO wa_vbkok_wa-vbtyp_vl.
[1]
... DELIVERY ITEM - CONFIRM PICKING .....................
MOVE s_vbeln TO wa_vbpok_tab-vbeln_vl.
MOVE '00010' TO wa_vbpok_tab-posnr_vl.
MOVE s_vbeln TO wa_vbpok_tab-vbeln.
MOVE '00010' TO wa_vbpok_tab-posnn.
MOVE '2' TO wa_vbpok_tab-pikmg.
APPEND wa_vbpok_tab TO bt_vbpok_tab.
[2]
... DELIVERY ITEM - UPDATE SERIAL NUMBERS ...............
MOVE s_vbeln TO wa_it_sernr_update-rfbel.
MOVE '00010' TO wa_it_sernr_update-rfpos.
MOVE i_sernr1 TO wa_it_sernr_update-sernr.
APPEND wa_it_sernr_update.
MOVE i_sernr2 TO wa_it_sernr_update-sernr.
APPEND wa_it_sernr_update.
APPEND LINES OF wa_it_sernr_update TO bt_it_sernr_update.
[3]
... CREATE HU ASSIGNED TO DELIVERY ......................
MOVE 'BP02' TO wa_verko_tab-vstel.
MOVE s_matnr TO wa_verko_tab-vhilm.
MOVE 'E' TO wa_verko_tab-exida.
MOVE 'BP01' TO wa_verko_tab-werks.
MOVE '0002' TO wa_verko_tab-lgort.
MOVE '01' TO wa_verko_tab-object.
MOVE s_vbeln TO wa_verko_tab-objkey.
APPEND wa_verko_tab TO bt_verko_tab.
... EXECUTE BAPI (PICKING & HU CREATION) ................
CALL FUNCTION 'WS_DELIVERY_UPDATE'
EXPORTING
vbkok_wa = wa_vbkok_wa
synchron = 'X'
NO_MESSAGES_UPDATE = ' '
commit = 'X'
delivery = wv_delivery
update_picking = 'X'
nicht_sperren = space
it_sernr_update = bt_it_sernr_update
IMPORTING
ef_error_sernr_update = wa_ef_error_sernr_update
TABLES
vbpok_tab = bt_vbpok_tab
verko_tab = bt_verko_tab
et_created_hus = bt_et_created_hus
prot = bt_prot.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
[4]
... PACK ITEMS ..........................................
LOOP AT bt_et_created_hus INTO wa_et_created_hus.
... ITEMS:
MOVE wa_et_created_hus-exidv TO wa_verpo_tab-exidv_ob.
MOVE wa_et_created_hus-exidv TO wa_verpo_tab-exidv.
MOVE '1' TO wa_verpo_tab-velin.
MOVE i_matnr1 TO wa_verpo_tab-matnr.
MOVE s_vbeln TO wa_verpo_tab-vbeln.
MOVE '00010' TO wa_verpo_tab-posnr.
MOVE '2' TO wa_verpo_tab-tmeng.
MOVE 'BP01' TO wa_verpo_tab-werks.
MOVE '0002' TO wa_verpo_tab-lgort.
MOVE '2' TO wa_verpo_tab-anzsn.
MOVE s_vbeln TO wa_verpo_tab-rfbel.
MOVE '00010' TO wa_verpo_tab-rfpos.
APPEND wa_verpo_tab TO bt_verpo_tab.
... SERIAL NUMBERS:
MOVE wa_et_created_hus-exidv TO wa_it_verpo_sernr-exidv_ob.
MOVE s_vbeln TO wa_it_verpo_sernr-belnr.
MOVE '00010' TO wa_it_verpo_sernr-posnr.
MOVE i_sernr1 TO wa_it_verpo_sernr-sernr.
APPEND wa_it_verpo_sernr TO bt_it_verpo_sernr.
MOVE i_sernr2 TO wa_it_verpo_sernr-sernr.
APPEND wa_it_verpo_sernr TO bt_it_verpo_sernr.
ENDLOOP.
MOVE '1' TO wa_it_packing_sernr-zeile.
MOVE i_sernr1 TO wa_it_packing_sernr-sernr.
APPEND wa_it_packing_sernr TO bt_it_packing_sernr.
MOVE i_sernr2 TO wa_it_packing_sernr-sernr.
APPEND wa_it_packing_sernr TO bt_it_packing_sernr.
... HU HEADER:
CLEAR bt_verko_tab. REFRESH bt_verko_tab.
MOVE wa_et_created_hus-exidv TO wa_verko_tab-exidv.
APPEND wa_verko_tab TO bt_verko_tab.
... EXECUTE BAPI (PACK ITEMS INTO HU) ...................
CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
EXPORTING
vbkok_wa = wa_vbkok_wa
synchron = 'X'
commit = 'X'
delivery = wv_delivery
TABLES
verko_tab = bt_verko_tab
verpo_tab = bt_verpo_tab
it_verpo_sernr = bt_it_verpo_sernr
it_packing_sernr = bt_it_packing_sernr
prot = bt_prot.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
Hope it helps!
This is my first post in this forum. Don't forget to vote if the solution suits you!
Thanks,
-ct-
Similar Messages
-
Serial numbers in handling unit
We generate handling units at the end of production line; the requirement is to capture and store the serial numbers into the handling unit (which works fine) and when the u201Csameu201D handling units are picked for outbound deliveries, the serial numbers are carried along with handling unit created during production which is not working, the system is currently requesting to key in all the serial numbers again during PGI. Can you please let me know how to resolve this issue? Thanks in advance
Hi,
In case of partial HU picking only system will ask serial numbers for HU.
Eg: HU qty - 10pc T.O qty :4pc then system asks which serial no's want to pick from HU.
If it is full HU no need to give serial numbers manually..
Rgds,
Kris. -
Assigning Serial no to Handling unit
Dear All ,
I am having problem in creating serial no for the handling unit which i have created in the transaction code HU02. I am only able to create serial no for the items within the handling unit but is unable to create a serial no for the handling unit.
Please anyone tell me is there any way to create serial no for Handling Unit by this transaction code or any other transaction code.
Help me in resolving this matter , i need to resolve this problem urgently.
ThanksHi,
You cannot create serial number for handling unit.
Serial number can be created for the item of handling unit.
http://help.sap.com/saphelp_47x200/helpdata/en/2d/584bcea70f11d2b44e006094b9b9dd/content.htm
Regards,
Vishal -
User-exit for delivery while assigning serial numbers(urgent)
hi all,
can u plz tell me the specific user exit for delivery (VL01n) while assigning serial numbers?
i am getting the serial numbers for material in database table OBJK .i am also getting these serial no.s in IQ01.
while doing delivery,i am going for extra-->serial number.at this time one screen for serial number is comming.those serial numbers which are stored in objk will transfer to this screen of delivery automatically.
for this , i want a specific user-exit for delivery so that i can transfer the serial nos from objk to that screen of delivery.plz suggest .(urgent )
any idea is highly appreaciated
Regards
pabitraYou can find from below list of user exists
V02V0001 Sales area determination for stock transport order
V02V0002 User exit for storage location determination
V02V0003 User exit for gate + matl staging area determination (headr)
V02V0004 User Exit for Staging Area Determination (Item)
V50PSTAT Delivery: Item Status Calculation
V50Q0001 Delivery Monitor: User Exits for Filling Display Fields
V50R0001 Collective processing for delivery creation
V50R0002 Collective processing for delivery creation
V50R0004 Calculation of Stock for POs for Shipping Due Date List
V50S0001 User Exits for Delivery Processing
V53C0001 Rough workload calculation in time per item
V53C0002 W&S: RWE enhancement - shipping material type/time slot
V53W0001 User exits for creating picking waves
VMDE0001 Shipping Interface: Error Handling - Inbound IDoc
VMDE0002 Shipping Interface: Message PICKSD (Picking, Outbound)
VMDE0003 Shipping Interface: Message SDPICK (Picking, Inbound)
VMDE0004 Shipping Interface: Message SDPACK (Packing, Inbound) -
Hello,
How do I find out which serial numbers have not been assigned to any material?
My company is planning to assign serial numbers while issuing goods to production.
Sincerely,
KetanHi,
I want to see serial numbers which have been created (through tcode IQ01 or IQ04) but have yet not been assigned to the materials.
In my company we have to assign serial numbers to materials when receiving goods into stock from vendors and issuing materials to production.
Sincerely,
Ketan -
BAPI or Function Module to create Handling Unit at the delivery level
Please send me the BAPI / FM details to create Handling Unit at the delivery level.
ThanksHi
you can try below BAPI's.
BAPI_HU_CREATE
BAPI_HU_PACK
Hope this helps you.
Rgds,
Kris. -
how do I get serial numbers for computers bought in the last seven years? They have been stolen but I am not in the country. Can I do it remotely?
Check here first, and use your AppleID:
https://supportprofile.apple.com/ -
Assigning Handling Unit to the Inbound Delivery
Could anyone please give me an example of code (using FM 'ws_delivery_update' and probably others) to assign a HU created by transaction HU02 (status PLND)to the inbound delivery (like VL32N).
After such assignment I want to create an appropriate Transfer Order to move the HU to the warehouse. In my case ws_delivery_update doesn't update the HU positions table VEPO-VBELN.
When tried to use FM 'L_TO_CREATE_DN' it just showed an error saying that 'No items or handling units to be placed in storage could be determined'.What parameters have I missed? Please, help!
-
Create and Pack Handling Units in the Sales Order Using HU_CREATE_ONE_HU
Hello Experts,
I am trying to use HU_CREATE_ONE_HU function module to create a handling unit and pack it with specific line items in the sales order program in the background. I am able to create the handling unit and pack it but it does not get associated to the sales order / line item. If you look at the sale order's packing proposal, it does not show it packed. If I look at VEKP / VEPO, I see where it was created but there is no value for vbeln or the posnr I proposed. Below is the code, I am using. Does anyone know what I am doing wrong or is there another function module I can use?
LOOP AT t_vbap.
CLEAR: is_header_proposal, it_items, es_header, et_items, et_messages, t_vbap2.
REFRESH: et_items, et_messages, t_vbap2.
is_header_proposal-exidv = '$1'.
is_header_proposal-exida = 'A'.
is_header_proposal-vhilm = 'UNIBOX'.
is_header_proposal-hu_status_init = 'A'. "planned
is_header_proposal-status = '0001'. "planned
"get the components that make up this subassembly including the parent.
SELECT * FROM vbap
INTO TABLE t_vbap2
WHERE vbeln = t_vbap-vbeln
AND posnr = t_vbap-posnr. "parent
SELECT * FROM vbap
APPENDING TABLE t_vbap2
WHERE vbeln = t_vbap-vbeln
AND uepos = t_vbap-posnr. "children
"now load the items to be packaged in the proposal
LOOP AT t_vbap2.
CLEAR: it_item.
it_item-velin = '1'. "material item
it_item-belnr = t_vbap2-vbeln.
it_item-posnr = t_vbap2-posnr.
it_item-quantity = t_vbap2-kwmeng.
it_item-meins = t_vbap2-meins.
it_item-matnr = t_vbap2-matnr.
it_item-werks = t_vbap2-werks.
it_item-lgort = t_vbap2-lgort.
APPEND it_item TO it_items.
ENDLOOP.
CALL FUNCTION 'HU_INITIALIZE_PACKING'.
CALL FUNCTION 'HU_CREATE_ONE_HU'
EXPORTING
if_create_hu = 'X'
is_header_proposal = is_header_proposal
it_items = it_items
IMPORTING
es_header = es_header
et_items = et_items
et_messages = et_messages
EXCEPTIONS
input_missing = 1 " Data that is Necessary for Creation is Missing
not_possible = 2 " HU Creation not Possible
header_error = 3 " HU Header Data Contains Incorrect Data
item_error = 4 " Items Cannot be Created
serial_nr_error = 5 " Serial Number Error
fatal_error = 6 " Internal Error
OTHERS = 7.
CALL FUNCTION 'HU_POST'
EXPORTING
if_synchron = space
if_commit = 'X'.
ENDLOOP.
Thanks for the help.
LauraThe abap statement does not make sense.
xlips_high_posnr = ( lips-posnr / tvlk-incpo ) * tvlk-incpo
posnr & incpo are both type numc length 6.
Here is my recommendation to catch the divide by zero error.
data: l_oref type REF to cx_root.
data: l_text type string.
TRY.
clear l_text.
xlips_high_posnr = lips-posnr / tvlk-incpo.
CATCH cx_sy_zerodivide INTO v_oref.
l_text = l_oref->get_text( ).
CLEANUP.
* Put your code to do further processing if it is divide by zero
ENDTRY. -
"Current assignment" field missing in Handling Unit status tab
Our scenario is as below:
1. STO created and outbound deliveries generated
2. Deliveries are assigned to shipment
3. Packing is done using RF transaction
In the normal scenario, the HU status tab would show the outbound delivery number in the current assignment tab. But for some Handling Units, the current assignment field shows blank. Also, the contents tab shows only the delivery line item number and not the delivery number. We have also noticed that the problem delivery line items have been packed in 2 different Handling Units, each containing the full delivery line item quantity. (not sure how this is possible). One of the HU is displayed correctly but the other one has the missing delivery number issue.
Has anyone encountered such a scenario? How is the system allowing to pack the same delivery item quantity in 2 different Handling Units? Any suggestions in this regard would be very helpful.Hi,
Thank you very much...
i have another doubt.....
i am unable to understand determination of packing instructions.
where it is linking i am confused.
we are assigning the determination procedure in the T.code
OVHU2.(Maintain Packing Transaction Profile in IMG).
my doubt is where we are assigning this Transaction Profile in Handling Units.
Please help me....
with regards -
How to get PIX serial numbers to include them at the RME inventory
Hi
we have a lot of pix firewall
Now I need the serial number fron primary and secondary pix firewalls
I can do a # sh version on each pix and notice the serial number to bring it manually to a RME UDF
Any way to sent the show version to a tftp server ?
Any way to read via snmp the serial number from the pix ?
what did you do to bring the serial numbers to RME ?
sincerley
AlfredHi hallawt,
I'm not exactly Probably the easiest way to accomplish this would be to use a serial naming scheme where these two tests would have a similar names, for example, the two tests' serials could be 000001-A and 000001-B. Another option would be to include both sets of tests within the same test, considering both boards as a single unit under test. Please provide a bit more detail, and we can look into other options.
Al B.
Staff Software Engineer - TestStand
CTA/CLD -
Creating a Storage Handling Unit With The Same # As A Storage Unit
Hello dear WM and MM experts,
I'm beginning to use Handling Units and Storage Units. From what I've been reading, it seems like you can have a HU enter the warehouse in the form of a SU with the same ID#. Is that correct? If that's the case, what transaction(s) is used to create the SU using the same ID# as the HU.]
Basically, I have a pallet with product on it and I'd like to know how to have a SU and a HU with the same ID# to be able to handle this pallet in both WM and MM.
Your input is greatly appreciated.Hi Oscar,
In the shared thread reply from Sushant wanjari talks about both the scenario when HU management is active and when HU management is not active
Basically i am summarizing the response provided by Sushant "In the case where HU management is active and you want to carry HU number as SU number. No need to define the SU number range in the system. SAP recommends only activating length conversion for storage unit numbers. Note, that this setting is made at client level, and is therefore valid for other warehouse numbers in the same client.
Inbound delivery for which Putaway TO needs to be created
HU in the inbound delivery
During TO creation system propose the same HU number as SU number
Hope this helps. Please let us know if you need any further input on this -
Handling Unit: unable to pack the delivery
Dear Experts,
In a HU managed storage location, there is sales order stock for material A.
I want to post the sales order stock from sales order 1 item 10 to sales order 2 item 10, using movement type 413 E.
Then I got an outbound delivery (delivery type HTP, item category HSTP). I think I am supposed to pack this material before I could PGI.
But in the delivery (edit->pack) packing screen, I found I could NOT select/highlight the material A under field 'Material to be pack' at 'Pack material' tab. So I could not pack this material into the handling unit to finish to packing step.
Please kindly help ! Thank you !
JackHi,
Please try using LQ02 for your posting, if its not posting directly then you can opt to move from Sales order stock to normal stock and then again moving it to the other sales order stock. I know for sure that using LQ02 you can post from sales order to normal stock but since I don't have my current system setup to test this so I cant confirm if It can be used to do transfer directly as well.
Regards
Chandra Shekhar -
Performance Issue while assigning serial numbers (serialized Items)
Hi,
Receiving serialized items currently in Oracle ERP is a time consuming process.
At reciept level when we are assigning serial number for a particular Item in the serial entry Form (serial_entry Block)
taking long time.
For large Quantity its taking time
Example
For 1lakh Quantity
we enter Start serial number as : ACP00001
End Serial Number is taking time to generate
Please let us know how the END serial number is generated (if we enter start serial number) thorugh any prog or valuset.
Pls suggest how to anlayze this .
Thanx,Thanx sandeep ,
I am looking for how exactly the END serail number is getting generated
For 1lakh Quantity
When we enter enter Start serial number as : ACP000001
End Serial Number should be : ACP100000
when checked the Serial_Entry Block :
it had two triggers Start serial number and End Serial Number,
they were calling below seeded PROC, in these proc there was no information
regarding how the End Serial Number is getting generated.
serial2_lib2.validate_fm_serial;
serial_lib.set_radio_state('WHEN-VALIDATE-ITEM');
serial_lib.desc_flex('WHEN-VALIDATE-ITEM');
serial2_lib2.validate_to_serial;
Can u help me out to undertand how exactly the END serial number is getting generated. -
I would love to know how to because everybody in my town is selling and trading ipods. If i could find someone who's got the same ipod serial number as mine than i could get my ipods back with no problem. Please Hellpp..!!
Hey felieca,
See this support document for other possible places you could locate the iPod's serial numbers. If no luck there, I'm afraid you're out of luck. Sorry.
http://support.apple.com/kb/ht1459
B-rock
Maybe you are looking for
-
Installing Microsoft Office on 2 user accounts
Hi I have 2 user accounts on a Mac Mini (both administrator) I have installed Microsoft Office 2011 with Outlook but it has only shown up on one of user accounts. There was no option to install on both accounts when I installed it. Is there anyway to
-
please please please help me !!!!!!! I need my ipod back as soon as i can !!!! xx
-
Problem while reconciling subcontracting challan
hi friends, issue: while reconciling a challan im getting a msg saying that some qty of the material is not assigned fully. but actually all the material was received.the only thing is in GR the mateerial was received in 2 batches so 2 line items. b
-
I cannot print in black on either of my printers. Why?
I cannot print in black on either of my printers. Why?
-
How do I make contact groups in contacts?