Update Delivery date programatically for inbound delivery
Hi all,
I need to update the delivery date in the inbound delivery programatically...How cna i do that?any FM available?
The field to be updated is LIKP-LFDAT.
Thanks.
Check WS_DELIVERY_UPDATE , BAPI_INB_DELIVERY_SAVEREPLICA
ALso check how to change delivery date (LFDAT) in a inbound delivery
Similar Messages
-
PO delivery date changed according to delivery date on the inbound delivery
Hi!
Initial PO date is changed according to the inbound delivery date when I create inbound delivery.
For example, initial PO has order qty. 1000 and delivery date 8/10/07.
And then I created inbound delivery for that PO with qty. 500 and changed delivery date to 8/5/07 on the inbodund delivery. Then when I check PO again, PO line item delivery date was changed to 8/5/07 which is
inbound delivery date. I think remaining 500 should have the same
delivery date originally assigned unless we change manually.
If somebody have experience, please let me know.
Thank you!Dear Wan Lee,
I think you also need to check for your Configuration setting for confirmation:IMGMM> Purchasing-->Confirmation.
Regards,
w1n -
Function Module / BAPI for Inbound Delivery from Purchase Order
Hi,
I need to create an inbound delivery from Purchase Order items and am looking out for some Function Module or BAPI for the same.
The requirement is that i should be able to specify selected line items from PO for delivery.
I tried the BDC method for VL31N , but the particular item selection is problem, since by default it shows all the items of PO and i want only selected items.
Do reply.
Thanks in advance.check these and their documentations.
BAPI_INB_DELIVERY_CHANGE Change inbound delivery
BAPI_INB_DELIVERY_CONFIRM_DEC BAPI for inbound delivery verification from a decentralized system
BAPI_INB_DELIVERY_SAVEREPLICA BAPI Function Module for Replication of Inbound Deliveries
Regards
Prabhu -
Use WS_DELIVERY_UPDATE_2 for Inbound Delivery HU Update?
Hello all,
I have used WS_DELIVERY_UPDATE_2 to successfully update Handling units to Outbound delivery and also perform batch split.
Can the same FM be used to update Inbound delivery with Handling units. I will be uploading the HU's through excel file.
Please advice.
Thanks,
SubbaHi,
Below is code for Inbound Delivery With HU, it worked for me.
gs_head-DELIV_DATE = sy-datum.
gs_head-DELIV_TIME = sy-uzeit.
gs_item-DELIV_ITEM = p_item1.
gs_item-MATERIAL = p_matnr1.
gs_item-DELIV_QTY = p_quan.
gs_item-UNIT = 'EA'.
gs_item-PO_NUMBER = p_po.
gs_item-PO_ITEM = 10.
APPEND gs_item TO gt_item.
CLEAR:gs_item.
CALL FUNCTION 'BBP_INB_DELIVERY_CREATE'
EXPORTING
IS_INB_DELIVERY_HEADER = gs_head
IMPORTING
EF_DELIVERY = gv_vbeln
TABLES
IT_INB_DELIVERY_DETAIL = gt_item
RETURN = gt_ret1.
gs_refobj-OBJECT = 03.
gs_refobj-OBJKEY = gv_vbeln.
gs_humain-vhilm = p_matnr2.
GS_HUMAIN-HU_STATUS_INIT = 'A'.
gs_humain-STATUS = '0010'.
gs_itempr1-VELIN = 1.
gs_itempr1-QUANTITY = p_quan.
gs_itempr1-meins = 'EA'.
gs_itempr1-matnr = p_matnr1.
gs_itempr1-werks = p_plant.
CALL FUNCTION 'PROCESS_HU_INBOUND_DLVRY'
EXPORTING
I_HU_ID = gv_huid (Blank)
I_NEW_HU = 'X'
I_UPDATE_DB = 'X'
I_CREATE_HU = 'X'
I_REFERENCE_OBJECT = gs_refobj
I_HU_HEADER_MAIN = gs_humain
I_SAVE_STEP = 'ITEM'
I_PACK_ACTIVITY = 'MAT'
I_DELIVERY_TYPE = '7'
I_PACKING_ACTIVITY = 'PACK'
I_PACK_TYPE = 'MAT'
IS_ITEM_PROPOSAL = gs_itempr1
IMPORTING
O_HU_REF_ID = gs_erefid
O_HU_HEADER = gt_eheader
O_HU_ITEMS = gt_eitem
O_HU_MESSAGES = gt_emsg[]
TABLES
ET_CREATED_HUS = gt_ehus[]
EXCEPTIONS
INPUT_MISSING = 1
NOT_POSSIBLE = 2
HEADER_ERROR = 3
ITEM_ERROR = 4
SERIAL_NR_ERROR = 5
FATAL_ERROR = 6
OPERATION_FAILED = 7
DELIVERY_UPDATE_ERROR = 8
OTHERS = 9.
IF SY-SUBRC EQ 0.
CLEAR:gs_vekp.
SELECT SINGLE * FROM vekp INTO gs_vekp WHERE VPOBJKEY = GV_VBELN.
ls_vbkok_wa-vbeln_vl = gv_vbeln.
ls_vbkok_wa-vbeln = gv_vbeln.
ls_vbkok_wa-VBTYP_VL = 7.
ls_vbkok_wa-wabuc = 'X'.
ls_vbkok_wa-spe_auto_gr = 'X'.
ls_vbkok_wa-kzebu = 'X'.
lt_verko-exidv = gs_vekp-exidv.
lt_verko-exida = 'E'.
lt_verko-magrv = 'YB01'.
lt_verko-werks = p_plant.
lt_verko-STATUS = '0010'.
APPEND lt_verko.
lt_verpo-venum = gs_vekp-venum.
lt_verpo-exidv_ob = gs_vekp-exidv.
lt_verpo-exidv = gs_vekp-exidv.
lt_verpo-velin = '1'.
lt_verpo-vbeln = gv_vbeln.
lt_verpo-POSNR = p_item1 .
lt_verpo-TMENG = p_quan.
lt_verpo-VRKME = 'EA'.
lt_verpo-MATNR = p_matnr1.
lt_verpo-werks = p_plant.
APPEND lt_verpo.
lt_vbpok-vbeln_vl = gv_vbeln.
lt_vbpok-posnr_vl = p_item1.
lt_vbpok-vbeln = gv_vbeln.
lt_vbpok-posnn = p_item1.
lt_vbpok-pikmg = p_quan.
lt_vbpok-matnr = p_matnr1.
lt_vbpok-werks = p_plant.
lt_vbpok-pstyv = 'ELP'.
APPEND lt_vbpok.
lt_repack-SOURCEHU = gs_vekp-exidv.
lt_repack-DESTHU = gs_vekp-exidv.
lt_repack-PACK_QTY = p_quan.
lt_repack-BASE_UOM = 'EA'.
lt_repack-MATERIAL = p_matnr1.
lt_repack-PLANT = p_plant.
lt_repack-DELIV_NUMB = gv_vbeln.
lt_repack-DELIV_ITEM = p_item1.
APPEND lt_repack.
CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
EXPORTING
VBKOK_WA = ls_vbkok_wa
DELIVERY = gv_vbeln
update_picking = 'X'
no_messages_update_1 = 'X'
synchron = 'X'
commit = ' '
NICHT_SPERREN_1 = 'Y'
if_database_update_1 = '1'
if_error_messages_send = 'X'
TABLES
PROT = lt_prot
VERKO_TAB = lt_verko
VERPO_TAB = lt_verpo
IT_REPACK = lt_repack.
COMMIT WORK and WAIT.
Thanks,
Shankar Darbha -
How can delayed delivery update be configured for Inbound delivery ?
Hi All,
How can delayed delivery update be configured for Inbound delivery ?
There is setting for Outbound delivery delayed delivery update but how the same functionality be used for Inbound delivery?
Regards
JimmiHello Jimmi,
Unfortunately I must confirm that the Delayed delivery update is only available for outbound deliveries. Please see below note for further details
664316 Tips for the delayed delivery update for TO
I hope this information helps!
Martin -
Need Fm/BAPI to change Actual GR date(WADAT_IST_LA) in inbound delivery
Hi ,
Need a function module/BAPi to change the Actual Goods Receipt date for inbound delivery . Any suggestion would be appreciated . Have tried with WS_DELIVERY_UPDATE and BAPI_INB_DELIVERY_CHANGE . Am I missing something here ?
Regds,
SanjeevHello Sanjeev,
Need a function module/BAPi to change the Actual Goods Receipt
date for inbound delivery . Any suggestion would be appreciated .
Have tried with WS_DELIVERY_UPDATE and BAPI_INB_DELIVERY_CHANGE .
Am I missing something here ?
I am not a ABAP expert but may be upon calling BAPI_TRANSACTION_COMMIT, try using UPDATE command to insert the Actual GR date. Please explore around this pointer and post an update on this thread.
Regards,
Sarthak -
Copy control for inbound delivery
Hi All,
I need some help for copy control for inbound delivery. Can any one let me know where is the customization for this?
Is it t.code VTLA.
Path in IMG:Logistics Exectuion-->Shipping>copy control--
>specify copy control for delivery
But I am not sure if the above is the correct customization path.
The reason....
for target document type EL(Inbound delivery) the source document type is DL (order type schduling agreement). Ideally for inbound delivery the source document type should be purchase order. But I can't find the purchase order document types in F4 option.
All documents which are showing are sales order.
Awiting your reply.
Regards,
SushantaSpecify Copy Control for Deliveries
In this menu option, you define control data for the document flow of deliveries.
You can specify for a particular delivery type, which document type is to be assigned to copied reference documents, and which item categories are to be copied.
You must also make specifications for copying requirements and data transfer, as well as quantity and value updates in document flow. This must be done for each copying procedure at header and item level on a detail screen.
Note
If you define new sales document types, item categories or schedule line categories by copying existing ones, the SAP system automatically copies all specifications for the document flow. You may want to check the copy controls for newly created sales document types, item categories or schedule line categories.
Actions
1. Check the document flow defined in the standard SAP R/3 System.
2. Define to what extent you have to modify its specifications to meet your requirements.
3. Define the document flow for deliveries with reference to sales document types.
Note
Make sure to maintain copy control for the following areas:
Sales documents
Deliveries
Billing documents
If you cannot find an entry, check the copy controls in other chapters.
Complete overview of copy control:
In the chapter on sales, you can find copy controls for:
Sales documment by sales document
Billing document by sales document
In the chapter on deliveries, you can find copy controls for:
Sales document by delivery
In the chapter on billing, you can find copy controls for:
Sales document by billing document
Delivery by billing document
Billing document by billing document -
SAP System inconsistency for Inbound delivery / MIGO and a "sap note"
Hello Friends ,
After following SAP instruction on how to remove the inconsistency between posting GR through MIGO (Inv. mang.) and the reflection of the goods movement status in the inbound delivery document - done that using sap note 570991
the problem is that the system start behaving in a weird way throwing unjustified Error messages for any suggested goods receipt using MIGO with reference to inbound
for example after creating an inbound delivery document and trying to post it via migo , an error will pop up
- Inbound delivery storage location cannot be changed to here Message no. VLA316
the thing is i didn't even maintain any storage location entry up to that point and yet i cannot post any stock !!
also another error like
- Inbound delivery batch cannot be changed to *** here
which doesn't make any sense because there is not batches in the inbound document !!
i think this behavior is coming from the "Document Flow Update for Stock Postings" inbound indicator at the shipping parameter at client level customization
i need help on how to overcome this annoying SAP Bug/Problem specially i am in a post go live critical situationHi,
The messages you mentioned were introduced to avoid inconsistency between inbound delivery and IM, through the note: 1050944 - GR for inbound delivery using inventory mgmt as of ECC 6.00
If the messages are issued incorrectly, then you may check for SAP notes (I couldnt find anything relevant) or raise an OSS ticket to SAP.
Regards,
AKPT -
Trigger internal serial nos creation for inbound delivery using DELVRY03
Hi all,
I am working in ECC 6.0 I need to update serial nos in the inbound delivery. The internal serial nos. that will be generated by the system, I have to trap them for a given delivery and map it to a set of external serial nos.(length is 40 chars) and update in a Z table.
For changing the delivery, I am using idoc DELVRY03 (message SHPCON). Within the idoc I am not able to find any such field which will trigger the automatic creation of internal serial nos. In case of idoc MBGMCR03 (goods movement), there is a field E1BP2017_GM_ITEM_CREATE-SERIALNO_AUTO_NUMBERASSIGNMENT which when set to 'X', the internal serial nos are automatically generated and can be found in table SER03.
I want a similar thing for the DELVRY03 idoc. Can anyone help me on this?
If not possible through Idoc, then whats the other option?
My aim is to just get the internal serial nos created through delivery change activity.
Note - The serial no. profile cannot have the option of serial no. usage set to '04 - automatic' in SPRO as per the client's business process.
Thanks,
ShomaHi Shoma,
copy the FM which is assigned to your processcode and copy to ZFM and write your modifications on that ZFM.
It will resolves your problem.
Regards,
Venkat. -
Issue at the time of creation of transfer order for inbound delivery
Hello,
I am facing one issue at the time of creation of transfer order for inbound delivery.
If I create inbound delivery for purchase order with account assignment as 'M' (Ind. cust. w/o KD-CO), inbound delivery is not updated. Also document flow for inbounde delivery s not updated. I can create N number of transfer orders for on inbound delivery. Need help to resolve issue.
If I create inbound delivery for purchase order with account assignment other than 'M' (Ind. cust. w/o KD-CO), inbound delivery and document flow is updated.
Thanks and Regards,
NikhilHi
In OMS2 t-code
for your material type and plant ,you have to mark value based and qunaity based updation mark
Regards
kailas Ugale -
Goods Receipt for Inbound Delivery through MIGO
Hi All,
Can anyone pl. explain me in steps the process of GR for Inbound Delivery from MIGO transaction.
Also I need the process of reversing this goods receipt done.
For certain inbound deliveries a dump occurs in the program SAPLIE01 in 'EQUIPMENT_ADAPT_BUSVIEWS' fn module.
I need to analyse the reason for the dump. Here is the extract from the dump
<b>IF WA_EQUI IS INITIAL
keine Equidaten vorhanden => EXCEPTION
---> RAISE ERR_ADAPT_BUSVIEWS . ENDIF. </b>
Advance ThanksHi Sanjay and Srikanth,
Thank you for the correction. I was just wondering over this number.
Sanjay, regd the release level, it is 0017 for SAP_APPL.
In brief, when GR is done for an inbound delivery, a fn moudle equipment_adapt_busviews is called, in which if the equipment data of the material (wa_equi) is initial, it gives dump.
1. This fn module is called 3 or 4 times while the posting is done through MIGO
2. In the 4th call, the parameter wa_equi is initial - which gives the dump.
3. While debugging, when I reach this point,if I restart the debugging, I find that the posting is completed !!!! (so something happening after posting of GR gives the dump)
4. I have to reverse this GR for replicating the same again.
Any further clues !!
Regards
Aadarsh -
BAPI For Inbound Delivery using Purchase Order Number
Hi All,
Is there any BAPI for posting Inbound Delivery (VL31N) using Purchase Order as reference.
thanks
bobbyNot sure what it has to do with enhancements and modifications, but there is no such BAPI:
http://tech.groups.yahoo.com/group/ABAP/message/38307
http://sap.ittoolbox.com/groups/technical-functional/sap-log-mm/bapi-for-inbound-delivery-creation-and-update-vl31n-1201265
FYI all BAPIs may be viewed in BAPI transaction. -
LS System for Inbound delivery idoc
Hi,
I am able to define transfer the master data between ECC and EWM system, however i have an issue for transactional data e.g. inbound delivery.
When I create inbound delivery then system generates an IDOC but it picks up a different logical system as against the one defined for my system. When I generated my distribution model, i got a message that it is successfully created and I can see my message type and filter details(my warehouse etc) on the message type.
Can someone kindly suggest how EWM picks up LOgical system, my understanding is that it is based ont he configurtion(WM to EWM location definition and distribution model). But I am confused now and trying to understand why system is not finding my LS system?
Any link to supporting documentation would really help.
Thanks and regards,
BhaskarI found the root cause, there was another LS system model was there in my system, I regenerated partner profiles and that resolved the issue.
-
Transfer Order for Inbound delivery with multiple line items...
Hi All,
<The flow of my report pgm is >
PO creation using Transaction - me21n
My report pick the PO created as per date given in selection screen-
Creates outbound Deliveries using BAPI_OUTB_DELIVERY_CREATE_STO
Create Transfer order FM L_TO_CREATE_DN
Confirm Transfer order FM L_TO_CONFIRM
GI is done - Inbound delivery is created
Create Transfer order FM L_TO_CREATE_DN for Inbound delivery
Confirm Transfer order FM L_TO_CONFIRM
Goods receipt.
If PO is having one item - the entire flow is working perfectly.
if my PO is having multiple items,
While creating TO for inbound deliveeies - i am facing the error.
Before calling FM,
I am assigining these values like
wa_delit-nlpla = wa_ltap_vb-vlpla. "Source Storage Bin To Destination Bin
wa_delit-nltyp = wa_ltap_vb-vltyp. "Source Storage Type To Destination Storage type
wa_delit-anfme = wa_ltap_vb-nsolm. "Actual destination quantity
wa_delit-letyp = wa_ltap_vb-letyp. "Storage Unit Type
wa_delit-altme = wa_ltap_vb-meins. "Unit of measure
LOOP AT i_lips INTO wa_lips WHERE vbeln = WA_VBFA-IN_DELIV.
wa_delit-posnr = wa_lips-posnr.
APPEND wa_delit TO it_delit.
ENDLOOP.
As i am appending i am getting 2 line items in the tabke it_delit.
Function module :
CALL FUNCTION 'L_TO_CREATE_DN'
EXPORTING
i_lgnum = l_lgnum
i_vbeln = wa_vbfa-in_deliv
i_commit_work = 'X'
i_bname = sy-uname
it_delit = it_delit
IMPORTING
e_tanum = gv_tonum_1
TABLES
t_ltap_vb = i_ltap_vb_1
EXCEPTIONS
foreign_lock = 1
dn_completed = 2
partial_delivery_forbidden = 3
xfeld_wrong = 4
ldest_wrong = 5
drukz_wrong = 6
dn_wrong = 7
squit_forbidden = 8
no_to_created = 9
teilk_wrong = 10
update_without_commit = 11
no_authority = 12
no_picking_allowed = 13
dn_hu_not_choosable = 14
input_error = 15
error_message = 16
OTHERS = 32.
Here i am getting as input error, i need to create only one TO for multplie items
If i pass this i a loop - then it will create 2 Transfer order which is WRONG ...so please help me to over come this error.
Thanks
Senthil
Edited by: Senthil Kumar on Dec 7, 2009 3:29 PMHi,
Please check FM L_TO_CREATE_MULTIPLE.
Regards,
Ferry Lianto -
BDC program for inbound delivery VL31
Dear experts,
I have created BDC program for inbound delivery with old T_CODE VL31,but it's very inefficient.Now I must change the program for the efficiency improve.
Could you give any idea?
Thanks in advance,
collysun.I'm sorry, but it does not seem that there is a BAPI for this (looking at transaction BAPI and business object BUS2015).
Have you perhaps looked at the new transaction VL31N? Are there any differences that may improve the input (limit the number of BDC steps)?
Otherwise, take a look at the way you are entering data now. Make sure there are not too many dialog steps. i.e. Make sure you enter all the data you can on a single screen, only then process the next OKCODE. Also, look at the transaction again: Perhaps you can enter items in an overview screen instead of individual items. (I have no knowledge of your situation of course; these are just some general guidelines).
Cheers,
Martin
Maybe you are looking for
-
How can I transfer all my music even music not downloaded from iTunes to my computer
How can I transfer all my music even music not downloaded from iTunes to my computer from my iPhone
-
Redo data not applied on logical standby database 10g
after a network problem within the primary and the logical standby database. The redo data is not applied on the logical standby even if all the archived log are sent to it. The below is the output from v$archive_gap and DBA_LOGSTDBY_LOG SQL> select
-
SAP Tech e.g. ABAP for people with non IT Background
My current position: I am a BA graduate. Working in BPO for years though i never want. I know multimedia works in ADOBE softwares like motion picture editing, compositing & designing etc. That was a hobby but couldn't turn that into a career because
-
Quicktime has taken over Image Icons
For some reason Quicktime has taken control of my image file icons and I can't seem to make the change stick when I go to Quicktime's preferences, use the default settings, confirm that the files I don't want QT to open are not checked and press the
-
Set up HP bd340i Blu-ray Disc Writer to view a 3d disk
I have a bd340i read write blue ray disk drive. I am using windows 7 with an i7 CPU 870 processor. I want to be able to get a 3d monitor and watch 3d movies and play 3d games. When I load a 3d disk into the drive, it ejects the disk with a message s