Updating bill of lading on outbound delivery using IDoc/BAPI?
Hi,
We're looking to update our existing outbound deliveries with an entry in the bill of lading field. This is the only piece of data that needs changing in the delivery.
It seems that using IDocs message types like SHPCON/DESADV you cannot just update some header level fields. The BAPI_OUTB_DELIVERY_CHANGE unfortunately does not include bill of lading as one its changeable header fields.
Can anyone recommend a way how to still achieve this?
Thanks a lot,
Ronald
Hm, it looks like that segment should've worked...
WHEN 'E1EDT13'.
S_DT13 = IDOC_DATA-SDATA.
CASE S_DT13-QUALF.
WHEN '006'.
<...>
MV S_DT13-ISDD S_KOKO-WADAT_IST.
Did you put the date in the right field (ISDD) and did you try debugging this?
Similar Messages
-
Issue while creating Outbound Delivery using Standard BAPI
Hi all,
I am trying to create an outbound delivery for a Sales order using the Standard BAPI - BAPI_OUTB_DELIVERY_CREATE_SLS.
After giving the valid inputs for Sales order no and doc no, am getting an error as "No instance of object type OutboundDelivery has been created. External reference:" But when trying to create manually there is no problem. Please suggest what may be the issue and how to correct it?
Regards,
Vimala PHi Vimala,
I am trying to create outbound delivery using BAPI_OUTB_DELIVERY_CREATE_SLS & BAPI_DELIVERYPROCESSING_EXEC. But no success. Getting "No instance of object type outbound delivery has been created" in return.
1) Delivery Type
2) Delivery selection date
Needs to be passed in import parameters.
Could you please tell me what are all the parameters to be passed under tables tab in RV_DELIVERY_CREATE?
Thanks in Advance..
Regards,
Rajasekar .M -
Create Outbound Delivery Using IDOC
Hi,
Does anybody know of an IDOC that I can use to Create Outbound deliveries in SAP?
I know that I can use BAPI_DELIVERYPROCESSING_EXEC to create the delivery, but I am hoping to do so directly using a standard (or slightly customized) IDOC.
I will have multiple SAP Sales Order numbers to reference in creating the Delivery Note. Note that I will not already have a delivery number as this is a create, so I can't use DELVRY*.
Kind Regards,
RobinCreate your own and assign as processing the BAPI or a wrapper for it.
Enjoy -
Error while doing PGI for Outbound delivery using BAPI BAPI_GOODSMVT_CREATE
Hi All,
I am getting an below error while doing PGI for outbound delivery using the BAPI BAPI BAPI_GOODSMVT_CREATE:
Goods movement not possible with mvmt type 601
Can anyone suggest me what will be the solution for it?
Regards,
Raghuraman.kI tried with the above BAPI but it is not working.
In my case a delivery has one line item with batch split and other line item without batch split.
Below is my code :
DATA : gwa_header_data TYPE bapiobdlvhdrcon,
gwa_header_ctrl TYPE bapiobdlvhdrctrlcon,
lv_delivery TYPE bapiobdlvhdrcon-deliv_numb,
git_item_data TYPE STANDARD TABLE OF bapiobdlvitemcon,
gwa_item_data TYPE bapiobdlvitemcon,
git_item_ctrl TYPE STANDARD TABLE OF bapiobdlvitemctrlcon,
gwa_item_ctrl TYPE bapiobdlvitemctrlcon,
git_return TYPE STANDARD TABLE OF bapiret2,
gwa_return TYPE bapiret2.
*Header data
gwa_header_data-deliv_numb = '0808000002'.
*Header Control data
gwa_header_ctrl-deliv_numb = '0808000002'.
gwa_header_ctrl-post_gi_flg = 'X'.
*Delivery Number
lv_delivery = '0808000002'.
*Item data and its corresponding control data
gwa_item_data-deliv_numb = '0808000002'.
gwa_item_data-deliv_item = '900002'.
gwa_item_data-dlv_qty = 4.
gwa_item_data-dlv_qty_imunit = 4.
gwa_item_data-fact_unit_nom = 1.
gwa_item_data-fact_unit_denom = 1.
APPEND gwa_item_data TO git_item_data.
gwa_item_ctrl-deliv_numb = '0808000002'.
gwa_item_ctrl-deliv_item = '900002'.
gwa_item_ctrl-chg_delqty = 'X'.
APPEND gwa_item_ctrl TO git_item_ctrl.
gwa_item_data-deliv_numb = '0808000002'.
gwa_item_data-deliv_item = '900003'.
gwa_item_data-dlv_qty = 6.
gwa_item_data-dlv_qty_imunit = 6.
gwa_item_data-fact_unit_nom = 1.
gwa_item_data-fact_unit_denom = 1.
APPEND gwa_item_data TO git_item_data.
gwa_item_ctrl-deliv_numb = '0808000002'.
gwa_item_ctrl-deliv_item = '900003'.
gwa_item_ctrl-chg_delqty = 'X'.
APPEND gwa_item_ctrl TO git_item_ctrl.
gwa_item_data-deliv_numb = '0808000002'.
gwa_item_data-deliv_item = '000020'.
gwa_item_data-dlv_qty = 10.
gwa_item_data-dlv_qty_imunit = 10.
gwa_item_data-fact_unit_nom = 1.
gwa_item_data-fact_unit_denom = 1.
APPEND gwa_item_data TO git_item_data.
gwa_item_ctrl-deliv_numb = '0808000002'.
gwa_item_ctrl-deliv_item = '000020'.
gwa_item_ctrl-chg_delqty = 'X'.
APPEND gwa_item_ctrl TO git_item_ctrl.
BREAK-POINT.
CALL FUNCTION 'BAPI_OUTB_DELIVERY_CONFIRM_DEC'
EXPORTING
header_data = gwa_header_data
header_control = gwa_header_ctrl
delivery = lv_delivery
TABLES
item_data = git_item_data
item_control = git_item_ctrl
return = git_return.
BREAK-POINT.
IF git_return IS INITIAL.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDIF. -
Create outbound delivery from IDOC
i want to create outboud delivery from incomming idoc..is DELVRY02 idoc type and shpcom message type will do this ..after crating the delivery i aslo need to do PGI..
please tell me this idopc type and message type will do this or not?
Thanks,Hi,
I also have the same issue - I would like to be able to create an outbound delivery via IDOC/BAPI although cannot find the means to accomplish this. Is there a standard process available to generate an outbound delivery without reference (VL01NO)? I would like to avoid writing custom code if possible.
Thanks! -
Change Bill-of-lading&package no in Outbound Delivery using BAPI or any FM
Dear ABAP Gurus,
How to change Bill of Lading(BOLNR) and Number of Packages(ANZPK) in Outbound Delivery using BAPI or some other Function MOdule.( BDC is not required for this).
Regards,
RajeshMOVE 'BAPE_VBAP' TO lwa_extension-structure.
lwa_bape_vbap-vbeln = lwa_final-vbeln.
lwa_bape_vbap-posnr = lv_posnr.
MOVE lwa_final-yyslotid TO lwa_bape_vbap-yy_slotid.
MOVE lwa_bape_vbap TO lwa_extension-valuepart1.
APPEND lwa_extension TO lt_extension.
CLEAR lwa_extension. -
Function Module to update Bill of Lading & No. of packages in a Delivery
Hi,
Can any one suggest me a function module to update Bill of Lading & No. of packages in a Delivery ?
Thanks in Advance.Hi:
I am also trying to update components of PM. I used the function CO2M_COMPONENT_CHANGE_WITH_REF, but I am not sure if I am passing the correct parameters. If possible can you please send a sample code Or you can take a look at my code and tell me where I am doing wrong.. Thanks.
Here is what I am passing into the the function:
DATA: in_resbd_new LIKE resbd,
in_rsnum_source LIKE resb-rsnum,
in_rspos_source LIKE resb-rspos,
in_rsart_source LIKE resb-rsart,
out_INDEX_BT LIKE SY-TABIX.
When I created the component, Requirement quantity of the component
was set to initial. I am trying to change that to 1.
in_resbd_new-MANDT = '200'.
in_resbd_new-RSNUM = '0000000708'. " from RESB-RSNUM
in_resbd_new-RSPOS = '0001'. " from RESB-RSPOS
in_resbd_new-MATNR = '000000000000000072'. " RESB-MATNR
in_resbd_new-WERKS = '0010'. " from RESB-WERKS
in_resbd_new-LGORT = '0010'. "" from RESB-lgort
in_resbd_new-MENGE = '1'.
in_rsnum_source = '0000000708'.
in_rspos_source = '0001'.
CALL FUNCTION 'CO2M_COMPONENT_CHANGE_WITH_REF'
EXPORTING
i_resbd_new = in_resbd_new
i_rsnum_source = in_rsnum_source
i_rspos_source = in_rspos_source
i_rsart_source = in_rsart_source
IMPORTING
E_INDEX_BT = out_INDEX_BT
EXCEPTIONS
ERROR_OCCURED = 1
OTHERS = 2
The return value in out_index_bt is '1'.
Thanks for your help. -
Updating condition records in an outbound delivery
Hi,
I'm trying to update condition records in an outbound delivery but couldn't find any suitable BAPI for the same so I just implemented the BADI 'le_shp_delivery_proc' and called a FM inside the method SAVE_DOCUMENT_PREPARE' which does a call transaction to VL02N to update the condition records. But the problem now is that, when I try to save this delivery, again the same BADI is triggered and goes through the same process of call transaction and thus gives me an error message that the delivery is locked as it indeed is.
Can somebody suggest a way out of this problem. ??
Thanks
AshishHi,
@praveen: I tried the solution provided by you and it worked for me in this context. But it seems this BADI gets triggered every time the delivery is getting saved. So for my test purposes, I'm triggering this BADI in a program, but in actual scenario, the BADI would be called on every sy-ucomm = 'SICH_T' i.e. SAVE. hence, I can't separate my piece of code using this condition.
I'm trying to call my FM(update module in collective run mode) inside this BADI in backgrnd task as a separate unit but this doesn't seem to work.
Any more suggestions?
Thanks
Ashish -
Create outbound delivery using VL10B for Stock Tranfer order
Hi ALL gurus,
I had created STO stock transfer order (UB order type ) and release the STO using ME21N and ME29N
When try create a outbound delivery using VL10B, the STO not show, i remove all check and blank in all seclection. The STO still not show.
Anyone can help ?? where going wrong ???
RejoiceHi
There are two processes for STO , that is with shipping & without shipping.
For Without Shipping there is no config required.
For STO with shipping You need to configure in
SPRO-> IMG-> Materials Management-> Purchasing-> Purchase Order-> Set up Stock Transport Order
Please go through the link on all types fo STO's
http://help.sap.com/saphelp_erp2004/helpdata/EN/4d/2b90dc43ad11d189410000e829fbbd/content.htm
Thanks & Regards
Kishore
Edited by: Kishore Kumar Chiluka on Jul 2, 2008 8:25 AM -
Issue In Posting Proof Of Delivery Using Idoc using Message Type STPPOD
Hi ,
(The details I have attached in the below file.)
We are trying to perform proof of delivery with respect to a outbound delivery via IDOC using idoc inbound function module IDOC_INPUT_STPPOD.
Everything is working fine except when it is creating a new stock movement document on confirmation of proof of delivery, the newly created stock movement document is not reflecting the actual received quantity instead it is showing the the Actual Delivery quantity.
For clicking on the button - "Proof of Delivery Confirmation " (green wright symbol) and change the overall POD status as completed ( depending on this status C the stock movement document gets created) we did a custom coding in the customer exit of IDOC_INPUT_STPPOD.
The details I have attached in the below file.
I am not able to understand where I am making mistake due to which, the quantity on the stock movement document after proof of delivery confirmation is not reflecting the actual received quantity.
Can you please suggest what necessary coding changes I need to perform to make it work properly.
Regards
Saifur RahamanHi Thripura,
In DELVRY03 Idoc type,there is a segment E1EDL37 containing Shipment Header Information.As a header segment,there are 6 segments under this,which contains other details.Please see the below details.
E1EDL37 Shipping unit header
E1EDL39 Control segment for shipping units
E1EDL38 Shipping unit header descriptions
E1EDL49 Express Delivery Company's Tracking Connection Data
E1EDL50 Express Delivery Company - Additional Data
E1EDL44 IDoc: Shipping unit item (delivery)
E1EDL46 Serial Numbers HU
Regards,
VSN -
Creation of Delivery Using IDOC without reference to order
Pls suggest is there is any way to create delivery using idoc without reference to order. This is very urgent.
Hi
Design the inbound idoc in such a way that it carries all the essential data needed to create a delivery document namely the material number, no of units to be deilvery, delivering plant, storage location, shipping point, warehouse number(if applicable) etc.
Pass all these details to the function module RV_DELIVERY_CREATE while creating delivery in VL01N and pass the document type as LO which is delivery document without reference to order.
But it is advised to have atleast a pseudo order with which we have to create the delivery document.
Pls reward points. -
Auto Packing in outbound delivery via IDOC
Hello All,
I got a requirement for Auto-packing in outbound delivery via IDOC process.
Can anybody through some light on the above requirement in finding Message type, process code and so on...
your every suggestion or hint will help me to fulfill the requirement.
Thanks in advance.
Best Regards
Suresh.Hi,
Auto Packing message type: SDPACK
Process code: SDPA
Basic type: SDPAID01
Regards
Suresh. -
Unable to update Qty for outbound Delivery using BAPI_OUTB_DELIVERY_CHANGE
Hi Experts,
I am unable to update the Outbound Delivery quantity using FM BAPI_OUTB_DELIVERY_CHANGE. I am getting error in BAPI Return "Error in document &1 item &2 (quantity consistency check)".
Here is my sample program to update Quantity
*& Report ZTEST_BAPI *
REPORT ZTEST_BAPI .
tables : lips.
parameters : v_vbeln like likp-vbeln,
v_posnr like lips-posnr.
data : it_item type BAPIOBDLVITEMCHG occurs 0,
wa_item type BAPIOBDLVITEMCHG,
it_return type BAPIRET2 occurs 0,
i_head type BAPIOBDLVHDRCTRLCHG,
i_hdata type BAPIOBDLVHDRCHG,
wa_conf type BAPIOBDLVITEMCTRLCHG,
it_conf type BAPIOBDLVITEMCTRLCHG occurs 0.
start-of-selection.
select single * from lips into lips where
vbeln = v_vbeln
and posnr = v_posnr.
if sy-subrc eq 0.
move lips-vbeln to I_hdata-DELIV_NUMB.
*append wa_hdata to i_hdata.
move lips-vbeln to wa_item-DELIV_NUMB.
move lips-posnr to wa_item-DELIV_ITEM.
move lips-matnr to wa_item-MATERIAL.
move lips-charg to wa_item-BATCH.
lips-LFIMG = lips-LFIMG + 20.
move lips-LFIMG to wa_item-DLV_QTY.
move lips-LGMNG to wa_item-DLV_QTY_IMUNIT.
move lips-VRKME TO wa_item-SALES_UNIT.
MOVE 'KGM' TO WA_ITEM-SALES_UNIT_ISO.
MOVE LIPS-MEINS TO WA_ITEM-BASE_UOM.
MOVE 'KGM' TO WA_ITEM-BASE_UOM_ISO.
append wa_item to it_item.
move lips-vbeln to wa_conf-DELIV_NUMB.
move lips-posnr to wa_conf-DELIV_ITEM.
move 'X' to wa_conf-CHG_DELQTY.
append wa_conf to it_conf.
endif.
CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'
EXPORTING
HEADER_DATA = i_hdata
HEADER_CONTROL = i_head
DELIVERY = v_vbeln
TECHN_CONTROL =
TABLES
HEADER_PARTNER =
HEADER_PARTNER_ADDR =
HEADER_DEADLINES =
ITEM_DATA = it_item
ITEM_CONTROL = it_conf
ITEM_SERIAL_NO =
SUPPLIER_CONS_DATA =
EXTENSION1 =
EXTENSION2 =
RETURN = it_return
TOKENREFERENCE =
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
I need to update Qty to the outbound delivery for an given item.
Thanks for your quick response.
With Regards,
Bala Sankar
9900433488Hi Bala,
make sure you are setting...
itemdata-dlv_qty
itemdata-dlv_qty_imunit
itemdata-fact_unit_nom e.g = 1.
itemdata-fact_unit_denom e.g = 1.
Rgds
Glenn -
Automatic update of HU data in Outbound delivery
Hello all,
I would like to create an ABAP program to automatically update the HU data in an outbound delivery. The purpose is to have an excel spreadsheet with the HUs per delivery and download them into the outbound delivery without the need to use manual actions.
Does anybody know of a FUNCTION, BAPI, IDOC or anything else that may assist me in this task ?
Thanks,
IsaacGo To transaction BAPI, look at Logistics General -> Handling Unit Management -> Handling Unit
If you want to create a delivery and know the materials and HUs just populate the delivery IDoc and process it.
If you want to pack material by uploading this spreadsheet then look at LM* transactions as that is quickest way to find what you want.
Mike -
Print HU label from Outbound delivery using output determination
Hi,
We have a business requirement to print HU labels from outbound delivery. The steps followed are
1) User executes VL02N
2) User clicks on packing
3) Material is entered to pack. HU is automatically generated.
4) After saving the delivery, output message is triggered.
Output determination is as follows
1) An Z output type is created.
2) Form entry and smartform name is assigned to this output type
Issue:
The issue is when the output message is triggered and the code in the form entry is executed, the handling unit (from nast) is not yet committed in the database. Since it is not updated in the database table, we cannot get any handling unit data to be printed.
Any inputs on how to print HU labels using output determination from outbound delivery is appreciated.
Thanks,
SandeepHi Surya,
Thanks for the reply. But, my question was how to print labels from VL02N when i pack a material on this delivery.
Regards,
Sandeep
Maybe you are looking for
-
DescriptorEvents-What am I doing wrong?
I am running 9.0.3.4 of Oracle Toplink. I am registering a DescriptorEvent, but it does not appear to be working, it never get's called Perhaps someone could point out what I am doing wrong. This is the code for monitoring the event: public class Aud
-
What's with the poor quality when exporting a presentation to iDVD
When I exported I choose high resolution preference. The presentation ran perfectly in Keynote, but when I exported it to iDVD it looked horrible- like low res- the same when I burned it onto a DVD just as a test. Also, when I tried another route- ex
-
Hi, Iam trying to print a crystal report, but it is not prompting me to pass the parameter values. i want user to pass parameter values. Iam using VB.Net code to generate the reports. Could plz help me Thanks Ravi
-
Hi, all I wanted to know if there is a way, or a script, to make an interactive frame by frame animation program in Adobe flash cs6. Basically a REALLY condensed version of flash, with just simple capabilities, like drawing, saving, onion skin,
-
Hola buen dia, Tenemos la siguiente situacion, un cliente maneja un modelo de access point de la gama Small Business (wap2000) con 2 antenas omnidireccionales de 3DBis cada AP, sin embargo la cobertura no es la que ellos necesitan, les estamos cotiza