BAPI_OUTB_DELIVERY_CHANGE/BAPI_OUTB_DELIVERY_SAVEREPLICA for batch split
Hi All,
I'm trying to make use of BAPI_OUTB_DELIVERY_CHANGE/BAPI_OUTB_DELIVERY_SAVEREPLICA
these BAPI's for splitting batch in existing deliveries. Could some one let me know
how to use these FM for splitting batches.
Regards
Vikram
You might want to try BAPI_OUTB_DELIVERY_SPLIT_DEC instead. There is a decent online documentation available for it.
Similar Messages
-
How to Use BAPI_OUTB_DELIVERY_CHANGE for Batch Split
Hi Experts, I have the follow delivery:
Item Material Deliv.Qty Un
10 739911 2 PQT
And I want to obtain this:
Item Material Deliv.Qty Un Batch
10 739911 0 PQT
900001 739911 1 PQT ZZ00060
900002 739911 1 PQT ZZ00061
But, after using the Bapi I obtained this:
Item Material Deliv.Qty Un Batch
10 739911 1,372 PQT
900001 739911 0,314 PQT ZZ00060
900002 739911 0,314 PQT ZZ00061
So as you can see the problem is with the "Deliv.Qty". I expected:
Item Deliv.Qty
10 0
900001 1
900002 1
But I obtained:
Item Deliv.Qty
10 1,372
900001 0,314
900002 0,314
The parameters that I am using in the Bapi are:
HEADER_DATA
DELIV_NUMB = 801174646
HEADER_CONTROL
DELIV_NUMB = 801174646
DELIVERY = 801174646
TECHN_CONTROL
UPD_IND = U
ITEM_DATA (three records):
DELIV_NUMB = 801174646
DELIV_ITEM = 000010
MATERIAL = 739911
FACT_UNIT_NOM = 1
FACT_UNIT_DENOM = 1
DELIV_NUMB = 801174646
DELIV_ITEM = 900001
MATERIAL = 739911
BATCH = ZZ00060
HIERARITEM = 000010
USEHIERITM = 1
DLV_QTY = 1
DLV_QTY_IMUNIT = 1
FACT_UNIT_NOM = 1
FACT_UNIT_DENOM = 1
DELIV_NUMB = 801174646
DELIV_ITEM = 900002
MATERIAL = 739911
BATCH = ZZ00061
HIERARITEM = 000010
USEHIERITM = 1
DLV_QTY = 1
DLV_QTY_IMUNIT = 1
FACT_UNIT_NOM = 1
FACT_UNIT_DENOM = 1
ITEM_CONTROL (three records):
DELIV_NUMB = 801174646
DELIV_ITEM = 000010
CHG_DELQTY = X
DELIV_NUMB = 801174646
DELIV_ITEM = 900001
CHG_DELQTY = X
DELIV_NUMB = 801174646
DELIV_ITEM = 900002
CHG_DELQTY = X
So I am missing something but I don't know what.
Can any one help me with this please?
PD: I have looked the following forums in order to use the Bapi:
How to Use BAPI_OUTB_DELIVERY_CHANGE for Batch Split
batch split using BAPI_OUTB_DELIVERY_CHANGE
Re: Help in BAPI_OUTB_DELIVERY_CHANGE(batch-split)
BAPI_OUTB_DELIVERY_CHANGE - Batch Splits don't work
Help for BAPI_OUTB_DELIVERY_CHANGEHey,
My code is for the inbound delivery but it should work the same.
Give this a try.
REPORT z_delivery_batch_split.
DATA:header_data LIKE bapiibdlvhdrchg,
header_control LIKE bapiibdlvhdrctrlchg,
delivery LIKE bapiibdlvhdrchg-deliv_numb,
ls_return LIKE bapiret2,
item_data TYPE TABLE OF bapiibdlvitemchg,
item_control TYPE TABLE OF bapiibdlvitemctrlchg,
ls_item_data LIKE bapiibdlvitemchg,
ls_item_control LIKE bapiibdlvitemctrlchg,
return TYPE TABLE OF bapiret2 WITH NON-UNIQUE KEY type.
header_data-deliv_numb = '1800005005'.
header_control-deliv_numb = '1800005005'.
delivery = '1800005005'.
ls_item_data-deliv_numb = '1800005005'.
ls_item_data-deliv_item = '900001'.
ls_item_data-material = '000000000020067722'.
PERFORM create_batch CHANGING ls_item_data-batch.
ls_item_data-hieraritem = '000010'.
ls_item_data-usehieritm = '1'.
ls_item_data-dlv_qty = 80.
ls_item_data-dlv_qty_imunit = 80.
ls_item_data-fact_unit_nom = '1'.
ls_item_data-fact_unit_denom = '1'.
ls_item_data-sales_unit = 'EA'.
ls_item_data-base_uom = 'EA'.
APPEND ls_item_data TO item_data.
ls_item_data-deliv_numb = '1800005005'.
ls_item_data-deliv_item = '900002'.
ls_item_data-material = '000000000020067722'.
PERFORM create_batch CHANGING ls_item_data-batch.
ls_item_data-hieraritem = '000010'.
ls_item_data-usehieritm = '1'.
ls_item_data-dlv_qty = 60.
ls_item_data-dlv_qty_imunit = 60.
ls_item_data-fact_unit_nom = '1'.
ls_item_data-fact_unit_denom = '1'.
ls_item_data-sales_unit = 'EA'.
ls_item_data-base_uom = 'EA'.
APPEND ls_item_data TO item_data.
ls_item_control-deliv_numb = '1800005005'.
ls_item_control-deliv_item = '900001'.
ls_item_control-chg_delqty = 'X'.
APPEND ls_item_control TO item_control.
ls_item_control-deliv_numb = '1800005005'.
ls_item_control-deliv_item = '900002'.
ls_item_control-chg_delqty = 'X'.
APPEND ls_item_control TO item_control.
break cgavin.
CALL FUNCTION 'BAPI_INB_DELIVERY_CHANGE'
EXPORTING
header_data = header_data
header_control = header_control
delivery = delivery
* TECHN_CONTROL = TECHN_CONTROL
TABLES
* HEADER_PARTNER = HEADER_PARTNER
* HEADER_PARTNER_ADDR = HEADER_PARTNER_ADDR
* HEADER_DEADLINES = HEADER_DEADLINES
item_data = item_data
item_control = item_control
* ITEM_SERIAL_NO = ITEM_SERIAL_NO
* EXTENSION1 = EXTENSION1
* EXTENSION2 = EXTENSION2
return = return
* TOKENREFERENCE = TOKENREFERENCE
* HANDLING_UNIT_HEADER = HANDLING_UNIT_HEADER
* HANDLING_UNIT_ITEM = HANDLING_UNIT_ITEM
* PARTIAL_GR_OBJECTS = PARTIAL_GR_OBJECTS
READ TABLE return
INTO ls_return
WITH TABLE KEY type = 'E'.
IF sy-subrc = 0.
MESSAGE ID ls_return-id TYPE ls_return-type NUMBER ls_return-number WITH ls_return-message_v1 ls_return-message_v2
ls_return-message_v3 ls_return-message_v4.
ENDIF.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
break cgavin.
*& Form CREATE_BATCH
* text
* <--P_LS_ITEM_DATA_BATCH text
FORM create_batch CHANGING p_ls_item_data_batch.
DATA: ls_bncom TYPE bncom.
ls_bncom-matnr = ls_item_data-material.
ls_bncom-werks = 'C333'.
ls_bncom-lgort = '3000'.
SELECT SINGLE mtart
FROM mara
INTO ls_bncom-mtart
WHERE matnr = ls_bncom-matnr.
CALL FUNCTION 'VB_NEXT_BATCH_NUMBER'
EXPORTING
matnr = ls_bncom-matnr
werks = ls_bncom-werks
check_batch = 'X'
check_material = ''
message_when_auto = ' '
x_bncom = ls_bncom
lock_batch = ' '
IMPORTING
new_charg = p_ls_item_data_batch
EXCEPTIONS
no_material = 1
no_plant = 2
material_not_found = 3
plant_not_found = 4
no_batch_handling = 5
batch_exist = 6
no_number = 7
illegal_batch_number = 8
interval_not_found = 9
object_not_found = 10
interval_overflow = 11
error_automatic_batch_number = 12
cancelled = 13
automatic_batch_num_not_active = 14
OTHERS = 15.
IF sy-subrc = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
ENDIF.
ENDFORM. " CREATE_BATCH -
Quality certficates for batch split items in delivery
Hi Masters
How to make the output determination for outgoing quality certificates to select the output type LQCB
for batch split items in Delivery.
What is the routine to be selected in the output determination to map this scenario?
Regards
MohanHi Masters
My problem is When i create a delivery for the items with batch split, the output type LQCB is not determined ie., not automatically get assigned in the delivery item.Hence the delivery items are not listed while executing T code QC20/
What am I missing?
-mohan -
Printing mataerial description for batch split material at delivery level
Hi all,
Here i am printing the material description which is maintained in the item level at sales order level.For each material they have maintained two material descripption.I am not able to display the second material description in my export invoice whenever the material is splited into batch ie batch split at delivery level. so please can anyone help me regarding this, I am not able to get it from long time.
Regards,
madhuHi,
You can create a two folders for printing the line items, one folder for the normal line-items and the other folder for printing the BAtch-Split Items. you can do this by putting condition as UEPOS NE 0 or UEPOS EQ 0. You can include the Item-Description of the Batch-Splitted item in the Corresponding folder, so when there will be a batchsplit it will get printed. -
BAPI/Function module for BATCH SPLIT
Hi,
is there a BAPI/Function module to enter BATCH SPLIT data in an outbound delivery. I used tcode VL02N to create an Outbound delivery(FOR an STO). I can use 'BAPI_DELIVERYPROCESSING_EXEC' to creat an Outbound delivery, but need to know what to use to add BATCH SPLIT data.
Thanks
RajHi Raj,
Check this thread..
Re: Inserting Batch Split Items in Delivery
Cheers
VJ -
Delivery Item Category for Batch Split
Dear All,
Referring to Stock Transfer Order
ME21N --> VL10I --> Vl02N --> PGI --> MIGO
During delivery we select multiple batches through Batch Split.
In my Development server the system determines Item Cat as NLN (NLNORMCHSP = NLN)
In my Quality server the system determines Item Cat as ULN (NLNORMCHSP = ULN)
The setting for Both Item cat is same Except NLN is marked for Error during over delivery.
Pls suggest me which one is appropriate.
Thanks & regards,
Shailendra PanhaleMr. Gauravijit
Pl try the following configuration
Go to logistic Eex->Shipping->Deliveries->define item category for deliveries
Delivery type - item category group - usage--item cat
LF NORM CHSP TAN
Pl try the above configuration and do the batch split in the delivery. -
FOR ALL ENTRIES IN - For Batch Split & multiple items
Hi,
My Report is to find Production Order from Sale Order.
Flow of tables -
(VBAK- VBAP- LIPS - SER01 - OBJK - SER05 - CAUFV)
Report is working accurate in normal scenario. But -
Here, In Batch split with multiple items -->
FOR ALL ENTRIES IN - is not taking values.
one case for Ex-->
sale order so item obdelivery obd item serial no
39782 10 1234 900001 12
39782 10 1234 900002 13
39782 20 3456 10 14
Here,
only one OBD 1234 (sr no 12 & 13 ) is get entered in ITAB and not 3456.
(i.e. in gi_objkso all 3 entries are there, but in gi_objkpo only two entries are transferred)
Where, Production order is there for all three Sr. No.
My code is -->
IF NOT gi_ser01 IS INITIAL.
SELECT obknr equnr sernr matnr
FROM objk
INTO TABLE gi_objkso
FOR ALL ENTRIES IN gi_ser01
WHERE obknr EQ gi_ser01-obknr
AND equnr IN so_equnr
AND sernr IN so_sernr
AND matnr IN so_matnr
AND taser EQ 'SER01'.
IF NOT gi_objkso IS INITIAL.
SELECT obknr equnr sernr matnr
FROM objk
INTO TABLE gi_objkpo
FOR ALL ENTRIES IN gi_objkso
WHERE sernr EQ gi_objkso-sernr
AND equnr EQ gi_objkso-equnr
AND matnr EQ gi_objkso-matnr
AND taser EQ 'SER05'.Hi,
Do you create more than one production order per sales order line? If not, you could change the match to look at table AFPO for fields KDAUF = sales order number) and KDPOS = salse item number.
If you are going down to serial number level, after this select (fields are indexed in index AFPO~3, by default I think), then you could use your additional serial number field match after getting the list of production order numbers for the sales order/item.
Regards, Andy -
VPRS condition currency for batch split items
Hi,
i did the config for billing main item only in my delievry. that is batch split items will not be billed separately in billing.
before doing the above change, the currency of VPRS was appearing as document currency but after doing the above config, the currency of VPRS is changed to material valuation currency.(i.e taken from material master)
what is to be done so that currency for vprs in case of billing of main items shud be equal to document currency.
if there is no batch split, there is no issue of currency. if there is batch split in delivery and i bill only main item, vprs currency gets changed to material master currency.
regards
sacNormally, it should work for both bath main item and batch split item.
Please check the batch split items:
- what's the item category. Is it relevant for picking?
- what's the plant / sto.loc. in batch splite items? Is it assigned to a WM?
- What's the value in LIPS-KOMKZ field for the batch split items? (EK00 is valid only when komkz = A). -
EK00 not triggered for batch split items
Hi experts,
I have configured output type EK00 for picking List, here's what I've done,
1)V/38: Verified O/P type EK00.
2) OVLT: assigned shipping point to o/p type.
3) VP01SHP: maintained print parameters for shipping point.
It works fine for non- batch managed materials, but when I have an item with Batch split, the Pick list is not being triggered, can anyone help me identify if I am missing something in the config related to the batch management & picking?
Thanks in advance for your time.
Kris TNormally, it should work for both bath main item and batch split item.
Please check the batch split items:
- what's the item category. Is it relevant for picking?
- what's the plant / sto.loc. in batch splite items? Is it assigned to a WM?
- What's the value in LIPS-KOMKZ field for the batch split items? (EK00 is valid only when komkz = A). -
Item Category for Batch Split Line
Where do I change how SAP determines the batch split item category? Currently it is defaulting to an different item category than I intend.
Thanks.Hi Mark,
In your delivery item category determination you should maintain as below
Document type : Document Type for which you are doing delivery
Item category Group : Item category Group for which you are trying to make batch split.
Usage : Should be CHSP
Higher Level Category : Determined item category for the combination of document type and item category group.
For the above combination define item category.
Rewards points if it helps.
Regards,
Sreekanth -
Using BAPI_OUTB_DELIVERY_CONFIRM_DEC for batch split?
Dear All,
I have an existing DO in SAP with one line item.
I would like to use BAPI_OUTB_DELIVERY_CONFIRM_DEC to update the this line item with Batch Split.
For example, the existing line item has a material M001 with quantity 5. I need to update the DO to split this line into two batchs - qty 3 from Batch A and qty 2 from Batch B.
In the BAPI's ITEM_DATA - I filled 3 lines:
Line 1 - DO Number 1014---, Item number 00001, Material Number M001, qty 0
Line 2 - DO Number 1014---, Item number 90001, Material Number M001, qty 3, HIERAR 00001, USEHIERITM 1, Batch Batch A
Line 3 - DO Number 1014---, Item number 90002, Material Number M001, qty 2, HIERAR 00001, USEHIERITM 1, Batch Batch B
I also updated the ITEM_CONTROL with Deliv_NUMB ---, DELIV_ITEM 00001, CHG_DELQTY X, GROSS_WT_FLG X.
I get no errors after calling this BAPI and the RETURN table is empty, yet, the document was not changed!
I did a bapi call via remote and there is a commit work after the bapi call.
Best Regards,
Junwen
Message was edited by: Junwen HuangHi Junwen,
Did you call the BAPI_TRANSACTION_COMMIT afterwards?
Before this the data is not saved. After that it is saved.
Regards,
Rob. -
Update picking quantity in delivery for batch split items
Hi,
I'm trying to use the function module WS_DELIVERY_UPDATE to update the existing deliveries. I'm able to do batch split for the items in delivery using the same FM. I have also requirement to delete these items (batch split items).
To delete these items first we have to make quantities to zero. So I'm able to make delivery quantity of these items to zero but not picking quantity.
If we do not make picking quantity also zero it will not allow to delete these items
and gives an error message saying "item is already made available for transfer order".
Could some one let me kow how to make picking quantity also zero for batch spit items using FM.
ThanksHi Vikram
To nullify the Picking Quantity, we can use FM: <b>SD_DELIVERY_UPDATE_PICKING</b>.
Parameters to be passed:
VBKOK_WA
-- VBELN_VL - Delivery Number
-- VBELN - Sales Document Number
SYNCHRON - 'X'
VBPOK_TAB
-- VBELN_VL - Delivery Number
-- POSNR_VL - Delivery Item Number
-- VBELN -- Sales Document Number
-- POSNN -- Sales Document Item Number
-- MATNR -- Material Number
-- LFIMG -- '0.000'.
Have tried this in both cases whereby we have partial picking done and full picking done and worked for both cases.
Please try on your end too...
Hope this helps.
Regards
Eswar -
Item condition repeating in Invoice for Batch split items-V Urgent
Hi Guys,
My Sales order has one line item
One Item condition is there in the pricing procedure, it brings the value as the relevant condition record is existing.
Batch split is happening in delivery and because of which the order item is splitting into two lines, the main item is showing the quantity as zero, and the batch split item is holding the entire quantity in the delivery document..
When this delivery is converting into billing, the invoice is showing two lines, and is bringing the condition both for the main item (zero quantity), and for the batch split item (with full quantity).
Now because of this the customer is being charged twice by way of this condition type which is repeating in both the line items.
Ideally, for the main item which has the quantity as zero, this condition should not come. It should rather appear for the item which holds the full quantity.
How can correct this, pls let me know.
Many Thanks,
Regards,
Viveksummarize the batch split into the main item: use Billing quantity flag = G in copy control tcode VTFL.
Roberto -
BAPI's for Batch Split and Update Picking Quantity
HI All,
I have the delivery details(along with batch number, MATNR etc), now i need to split the batch for picking.
and then i need to sum the batch quantity and update this total quantity to the picking quantity and then update the delivery.
I tried to use this BAPI function module BAPI_INB_DELIVERY_CHANGE.
But i am unable to find the picking quantity field in this BAPI.
Any idea about how to split the batches using BAPI's??
and how to update the picking quantity using BAPI's?
Thanks in advance.
VijayHi,
Can you share the solution for the above issue/
Regards -
Change Valuation Type for Batch (Split valuation)
We have a batch record created automatically during a goods receipt for PO. The Valuation type on the batch record is "New".
I'm trying to change the valuation type to "Trial" having retrieved the record (MSC2N) entering the material number, batch number, plant and storage location.
Having changed the valuation type theres a warning "Change of valuation type - check open process"
After entering through the warning then saving, I hit an error - "please enter stor. location". I already entered the storage location to retrieve the record so it's displayed, and can't see where else to enter it? Can anyone help please?
Thanks in advanceI managed to overcome this error aided by OSS note 215850, by entries i've made in table T156. However theres a new error
"Error 3 in posting for status change" M7 661. OSS note 958105 refers to it, but my settings mirror the note. So stumped as to a resolution
Help anyone?
Regards
Maybe you are looking for
-
Movies Storage displaying Incorrect amount of used storage
When I checked my storage ( Via About This Mac) on my macbook I was surprised to see that it is "using" 102 GB in Movies. However, when I went to my finder and clicked "get info" on the movies tab, I found that is has only used 9 GB. What surprises m
-
Itunes 10.6.3 network issues
hi guys Here's my problem. I am unable to access the itunes store after having downloaded the new itunes 10.6.3. In the previous version I had, 10.2.1, it was able to do so, but after downlaoding the new one. Nothing. I ran the itunes diagnostic test
-
Anyone having trouble with the proximity sensor using the otterbox defender case?
When I have the otterbox case on my proximity sensor is not working at all making it difficult talking on the phone I keep hitting mute etc with my cheek if I take the case off it works fine so its not the phone itself but I need the Case for protect
-
Help!!! I'm having a problems getting a site to work in IE7. It works fine in Firefox, but in IE7, not a chance. Here's the Link Once in the site, go to the Gallery. Click on any of the two thumbnails on the left. A window will open with a short blur
-
JBO-26022: Custom class ViewDefImpl cannot be found
hi am not able to start my application amgeting this error,am in jdeveloper 11.1.1.6.0 Caused by: java.lang.ClassNotFoundException: model.View.UamUserdetailsViewDefImpl at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClas