How to use BAPI_INB_DELIVERY_CONFIRM_DEC do batch split
Hi, everyone:
I want to do batch split in inbound or outbound delivery by function.
I found BAPI_INB_DELIVERY_CONFIRM_DEC, but our system is not a Decentralized System and I wandered in so many parameters.
How to use this fuction?
Thanks.
Hi Junwen,
Did you call the BAPI_TRANSACTION_COMMIT afterwards?
Before this the data is not saved. After that it is saved.
Regards,
Rob.
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 -
How to update storage location & batch split on delivery items?
Any idea how to perform the following using a BAPI or function call with regards to updating a Delivery (VL02/VL02N)?
1) Enter or update a storage location on a delivery item?
2) Batch split a delivery item to give multiple batch numbers. For example if delivery item is '101' then after batch split additional delivery items with batch number assigned will appear as '900001', '900002', '900003', etc Entering a single batch number is straight forward and can be done using WS_DELIVERY_UPDATE/_2
Do not wish to use BDC or call transaction. Any help appreciated.hi sailatha..
im doing BDC for VL01N transaction.. how can i pass multiple storage locations for picking quantity.. my requirement is if the material is not there in the specified storage location it should search in the other storage locations for delivery.
how can i solve this issue bcoz in the VL01N screen i can pass only one storage location.
this is urgent requirement..
kindly revert me back if u can help.
thankx
helpful answer will be rewarded. -
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. -
How to use parallel sequence for split the operation qty. urgent or other o
PP guru
My scenario is as follows.
I ve one material suppose xyz.
For that material I' ve created bom, routing.
In routing I' ve mention only one operation. 0010.
Now I' ve the production order of 1000 kg.
I want to use two work centers to run this production order. ( e.g.work center a and b)
In routing I used work center a.
In short I want split that operation.
So what I ve to do or use parallel sequence and how???
or else is there any other option to split the order to two or more machines/work center?
Pls explain me in brief.
Regards,
RamHi,
If you want to carry the production with two different work centers , first you need to split the operation qty.
For this in the order type dependent parameters OPL8
in the controlling tab page enable the indicator Cost collector
and set the default rule as PP2.
Create a Product cost collector with KKF6N.
Now in the production order , select the operation and choose functions--->>> split.
Now enter the operation split quantity and execute.
Now in MD04 you can see two production order.
In the second production order change the work center in the operation overview as desired and save.
Regards,
nandha -
How to use applescript photoshop batch
Hello, good afternoon.
I'm trying to make an applescript that will run a batch procedure in photoshop and I don't know how to wirte its code. Let me show my script :
set pasta_evento to choose folder with prompt "Select folder of the event: "
set pasta_tratadas to (pasta_evento as string) & "Tratadas:" as alias
set arq_log to (pasta_evento as string) & "Log_Erros.txt"
tell application "Finder"
if not (exists file arq_log) then
make new file at pasta_evento with properties {name:"Log_Erros.txt"}
end if
end tell
set Fotos to files of pasta_evento as alias list
tell application "Adobe Photoshop CS6"
activate
set display dialogs to never
batch "13 x 19 + sharpen" from files Fotos from "My Actions" with options {destination:folder, destination folder:pasta_tratadas, error file:alias arq_log}
end tell
I think I have two problems. I realized that if I change the instruction as below, it works. So, there's something wrong with the variable Fotos and with the batch options (I tried to read the photoshop applescript ref, but I don't know what's wrong.
tell application "Adobe Photoshop CS6"
activate
set display dialogs to never
batch "13 x 19 + sharpen" from files {"Disk:Users:Me:Pictures:Macros:Tratadas:0002.JPG", "Disk:Users:Me:Pictures:Macros:Tratadas:0025.JPG"} from "My Actions"
Could anybody help me correct this code ? I'm not definetively an expert!
Tks !Hi Muppet, tks for the help !
I tried to feed it strings by many ways friend, but I as I told you I'm not an expert and couldn't make it work... So sad ...
When I run :
batch "13 x 19 + sharpen" from files Fotos from "My Actions"
In the results it comes :
batch "13 x 19 + sharpen" from files {alias "Disk:Users:Me:Pictures:Macros:Tratadas:0002.JPG", alias "Disk:Users:Me:Pictures:Macros:Tratadas:0025.JPG"} from "My Actions"
And it doesn't work, Photoshop opens a dialog informing : There were no source files that could be opened by Photoshop.
When I write the alias list manually it starts the batch command.
batch "13 x 19 + sharpen" from files {"Disk:Users:Me:Pictures:Macros:Tratadas:0002.JPG", "Disk:Users:Me:Pictures:Macros:Tratadas:0025.JPG"} from "My Actions"
In the Applescript Photoshop Ref:
batch v : run the batch automation routine
batch text : the name of the action to play (note that the case of letters in the Action name is important and must match the case of the name in the Actions palette)
from files list of alias : list of input files to operate on
from text : the name of the action set containing the action being played (note that the case of letters in the Action Set name is important and must match the case of the name in the Actions palette)
[with options batch options] : options for Batch
AND
batch options n : options for the Batch command
properties
destination (folder/none/save and close) : final destination of processed files ( default: none )
destination folder (alias) : folder location when using destination to a folder
error file (alias) : file to log errors encountered, leave this blank to stop for errors
file naming (list of ddmm/ddmmyy/document name 3/document name lower/document name mixed/extension lower/extension upper/mmdd/mmddyy/serial letter lower/serial letter upper/serial number four/serial number one/serial number three/serial number two/yyddmm/yymmdd/yyyymmdd) : list of file naming options 6 max.
macintosh compatible (boolean) : make final file name Macintosh compatible ( default: true )
override open (boolean) : override action open commands ( default: false )
override save (boolean) : override save as action steps with destination specified here ( default: false )
startingserial (integer) : starting serial number to use ( default: 1 )
suppress open (boolean) : suppress file open options dialogs ( default: false )
suppressprofile (boolean) : suppress color profile warnings ( default: false )
unix compatible (boolean) : make final file name Unix compatible ( default: true )
windows compatible (boolean) : make final file name Windows compatible ( default: true )
When I try to use the batch options Photoshop it says the batch command is invalid or not supported.
With these informations do you could help me ?
I'm loosing my hopes ...
Tks ! -
If you have answer, please provide specific and detailed steps.
Situation 1:
Start:
150+ files in .xls OR .xlsx format
data contains many characters EXCEPT "Tab"
Process:
Use Automator to:
Select Files from Finder window
Convert selected files from xls/xlsx to TAB-DELIMITED file format
End:
150+ files in .txt format
files have identical names to those from "Start:"
data is TAB-DELIMITED
Situation 2:
Start:
150+ files in .xls OR .xlsx format
data contains many characters EXCEPT | (pipe, vertical bar)
Process:
Use Automator to:
Select Files from Finder window
Convert selected files from xls/xlsx to |-delimited file format
End:
150+ files in .txt format
files have identical names to those from "Start:"
data is "|"-delimitedIf your post is addressed to my response then the answer is you have to write your own or search on-line to see if something exists to do what you want.
As you note there is no pre-built script for this.
regards
Message was edited by: Frank Caggiano - Are you certain there isn;t something in Excel to export as a tab delimited file?
This link Convert An Excel Spreadsheet To A Tab Delimited Text File seems to indicate that the function is in Excel already. -
Batch Split field in KNVV Table
Dear All,
While checking the table KNVV - Sales Area Data, I found the field Batch Split. In OBD2 I am not able to see this field? Could you please tell me why we are using the field Batch Split and where we are using that and how we can use that?
Waiting for positive reply
Regards
RahulHello Rahul
Please see OSS notes 423893 and 385048. They say "As of Release 4.6, flag 'Batch split allowed' is no longer used on the shipping screen of the customer master record."
Thatu2019s why it does not figure in the definition of account group- Field status screen. I guess it is a field maintained for compatibility reasons with older releases. -
Hi all,
I am using a smartform to print the Delivery order in VL03n. it is printing fine if there is no batch split.
The quantity, amount for the delivery items is appearing as zero in the print if BATCH SPLIT is there.
I have 2 items in delivery order like 10 & 20. After batch split, i find one new item 90010 is created under 10 &
another item 90020 is created under 20.
i checked LIPS table where i find all 4 items. But i want to print only 2 main like 10 & 20 . but the quantity, amount is present
in batch split items.
Please suggest how i need to handle batch split in my smartform printing .
Thanks
pabiPabhi,
In LIPS table, you'll find a field UECHA . For batch split item, it will point to parent item and for parent item it will be initial.
e.g. For item 90010 it will be 10 & for item 90020 it will be 20.
You can loop around the lips table using this relationship and sum the batch split quantities and then transfer that value to parent item. After loop processing you can delete the entries,which have UECHA not initial . -
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
VikramYou might want to try BAPI_OUTB_DELIVERY_SPLIT_DEC instead. There is a decent online documentation available for it.
-
Hi, all, I just want to know whether function GN_DELIVERY_CREATE can create Delivery for batch split. If yes, how to do that? Thanks.
I try many times, but unsuccess.Hi Rick,
Can You Please explain How You create delivery with batch split using GN_DELIVERY_CREATE ?
I have got a similar requirement.
~Atul -
Item categories are re-determining based on batch split during delivery
Hello All,
During delivery item categories of bill of materilas are changing based on batch split.
Scenerio: item level bill of materials configured.
Ex: COMPUTER is main item and item category group is LUMP and item category is TAP
but it is relevent for billing as per client requirement
key board, cpu and moniter are bills of materilas item category group is NORM and item category is ZZTA
These above items are relevent for delivery and not relevent for billing
Problem: During batchsplit in delivery item category determining as "TAN" for item category ZZTA
That can be shown when we click on batch split button for sub line item (moniter, cpu) category ZZTA
all batch split line items are copied to billing and getting account determination pricng error because of TAN is relevent for billing
Could you suggest me to prevent the TAN item category for batch split in delivery
Should TAE item category to be maintained for delivery item categories
currently delivery item categories are configured as shown below
del doc type=zlf , item cat. group=lumf, higher level item cat.=tap, No default item catgory
Thanks & RegardsHi
In the asign item cateogories use usage CHSP (Batch split) for norm and assign default item category as ZZTA. This will get determined your item category when you use batch split.
Spro --> Sales --> Sales document Item --> Assign item categories -
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 -
Anyone know how to use XDoclet/EJBDoclet in WL Workshop?
I am looking for information on how to use XDoclet/EJBDoclet in WL Workshop. When
I try to build my EJBs, WLW complains about missing EJBGEN tags, and I can't figure
out how to install/configure XDoclet as an external tool.
I have an Ant build script, but I can't figure out how to use it with the split
directory deployment structure.
Any suggestions would be appreciated! And, no, I can't convert from XDoclet to
EJBGEN...Page 76:
The User Guide is available at http://support.apple.com/manuals/ or downloadable from iTunes as an iBook. -
Create a Batch split for inbound delivery using IDOC
Hi,
I have an requirement to create Batch splits in the Inbound delivery.
These Inbound deliveries are created using IDOC.
So when the inbound deliveries are created through IDOC the Batch split is not happening.
How can i achieve this through Coding?
Any pointers on this will be highly appreciated.Hi ,
Try this link.
http://wiki.sdn.sap.com/wiki/display/ABAP/Toapplybatchsplitinanoutbound+delivery
Regards
HM
Maybe you are looking for
-
Apple Pro Training Series Question
I'm working through the apple pro series book, for those of you who are familiar with it... and have come across a questions that I cannot figure out in the book. In chapter 8 it discusses how when you add video to the timeline that includes audio th
-
I cancelled a pre-ordered book on my iTunes account, but in my iBooks it still says pre-ordered. The iTunes account is the same as the account on my phone. How do I get it to not be pre-ordered on my iPhone?
-
PO output print in vendor language
Hi, 1. I need to get the print of Purchase Order based on vendor language and not the message language. How to do this? 2. I am given a set of translated words to be used in the output in each language. Should I put some command in the form/
-
How do you change the main contact in contacts/icloud?
I've noticed in my contacts list I have one contact that is listed in blue and has a sillouete off to the right. Also in my icloud contacts that same contacts has "me" on the contact Picture. How do I change or delete this?
-
Copy value from first detail record to next detail record only one field is
Hi all i have a detail form with this table CREATE TABLE customer_detail ( cust_id NUMBER, aDDRESS_type VARCHAR2(20), contact_name VARCHAR2(100), mobile_no VARCHAR2(20), delivery_address VARCHAR2(300), off_contact_no VARCHAR2(20), email