cancel
Showing results for 
Search instead for 
Did you mean: 

copying delivery time from 1st (unconfirmed) schedule line to confirmed SL

Former Member
0 Kudos

Hi Friends

Long time since I visited our forum.

During order creation or change, by selecting all items and using 'Edit- fast change of- Delivery date' menu option one can set a delivery date and time for all the items. This info moves to schedule line 1 (for the requested delivery date) Shipping tab to Arrival time field. However if an item (s) is not confirmed for the requested date, then a second schedule line is created for the confirmed date based on user's choice in the ATP dialog window. Now the issue is that delivery time is not copied to the new SLs. And it will be cumbersome to enter it by going into the SL-Sales tab for multiple items via their confirmed SLs. Is there a config way ( I doubt it) to get the delivery time (only time) copied to the confirmed SLs from the first SL. Or user exit is the only route? if so is it FORM USEREXIT_MOVE_FIELD_TO_VBEP in MV45AFZZ? Does this info stay once it comes via this user exit or do we need to do anything extra during Sales document save or prepare? Oh, by the way, we are set up for complete delivery and fixed date/qty checked.

Let me know ASAP. Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

If I understand you, the problem is that EZEIT is initial, ie; VBEP-EZEIT = 0 (ie: it has the value on dynpro'00:00:00' depending of the format of your country). The problem for this userexit is that it's called in the end of subroutine VBEP_FUELLEN in the include FV45EFEP_VBEP_FUELLEN. If you read the ABAP coding you have the call to a subroutine before:


* Anlieferzeit ermitteln
      perform vbep-ezeit_ermitteln.

If you read it in include FV45EF0V_VBEP-EZEIT_ERMITTELN, you can read this coding:


  if vbep-ezeit = 0.
    if vbep-edatu ne *vbep-edatu or vbep-prgrs ne *vbep-prgrs or
       ( svbep-tabix = 0 and ( vbep-wmeng ne 0 or vbep-bmeng ne 0 ) ).
      perform anliefertermin_pruefen using vbep-prgrs
                                           vbep-edatu
                                           vbep-ezeit
                                           vbep-cmeng
                                           vbep-bmeng
                                           da_dialog
                                           da_edatu
                                           da_ezeit
                                           sy-subrc.
      if sy-subrc = 2.
        vbep-ezeit = da_ezeit.
      endif.
    endif.
  endif.

* Sekunden sind bei Lieferplänen für Zulieferer nicht relevant
  check not vbak-abdis is initial and
        not vbep-ezeit+4(2) is initial.
  clear vbep-ezeit+4(2).

I think that you are looking for this, am I right? Surely, you knew it before to post this subject.

Alghough the purpose of userexit is populate fields from an append (fields ZZ) but it's possible to change others. I suggest to think about this, because I think that it's the same and you can know the checks to avoid inconsistencies. If you need something else, please let us know.

This is only a suggestion. I hope this helps you

Regards

Eduardo

Edited by: E_Hinojosa on Apr 1, 2011 10:38 AM

Edited by: E_Hinojosa on Apr 1, 2011 10:38 AM

Former Member
0 Kudos

Thanks Eduardo for your patient and detailed answer. However my ABAP code knowledge is non-existent so I will pass on this to the developer when we get there.

My requirement is simple, User changes the requested delivery date and time using fast change for all items, If the items get confirmed for that date, there is only on SL and hence no problem, This time will go all the way to shipping. But if the items are not confirmed, multiple SLs may result and with new dates, my customer wants to keep the delivery time same and deliver it by that time. So if the item is requested for April 1, 2011 and for 10:15:00 hours and it gets confirmed for April 08,201, the customer wants to maintain the time (VBEP-EZEIT) for the proposed SLs with the same time- 10.15.00. I other wods I want to copy VBEP-EZEIT from the first SL to all the SLs for all the items.

Let me know which config or user exit/s will do this? Just names. Thanks again.

Shiva_Ram
Active Contributor
0 Kudos

Hope you must have verified the settings at the path SPRO->Sales and distribution ->basic funtion->delivery scheduling and transportation scheduling. Check whether adding the times and calendar at the shipping point levels can make the difference. This is just to make sure you left no stone unturned.

Regards,

Former Member
0 Kudos

Good suggestion, I thought about this but dropped it because the working times for the Shipping point only are useful to work out the dates/times for the dependent fields like GI date, material availability date. But if the starting point, i.e., the delivery date and time field has wrong time any way and working times help in calculating backwards, so this issue may not get resolved with this. . But will still give it a try. Thanks.

Former Member
0 Kudos

Shivaram

I tried maintaining Working Hours for the Shipping Points, even then the delivery time is not going over to the confirmed sched line. In stead of 00:00:00 hours as was the case before, it is picking up the beginning of shift time for material availability and using it as a base to compute other Goods Receipt hours in Customer master.

I am ready to go the user exit route only wondering if will stay or get overwritten.

rajiv_trivedi
Participant
0 Kudos

Sorry guys for delays but I had tried & got timing solution.

Just maintaine>XD02 customer master>General Data>Unloading Point>Goods Receiving hours-->Assigned Goods Receiving hours.

Hours were maintained in IMG->Sales & Dist->Master Data->Business Partner->Customer->Shipping->Goods Receiving Hours.

Hope this is simple solution.

Only receiving time will show at customer level in Delivery as same time when you create delivery. If you want to have fixed time e.g. 3PM you can just have User Exits.

Answers (3)

Answers (3)

ravi_rajput
Participant
0 Kudos

This message was moderated.

Lakshmipathi
Active Contributor
0 Kudos

In order to keep the forum in a healthy manner, knowledgeable members like you should spare sometime to this forum

Coming to the question, honestly, I have also not experienced a similar requirement. However, with the user exit you mentioned, try changing the delivery date at schedule line tab itself so that I feel it should work. You may also have a look at this thread where the same topic was discussed.

[Change VBEP in Va02 in user exit prepare_save_document|;

thanks

G. Lakshmipathi

Former Member
0 Kudos

Thanks Lakshmipathi.

I will try the user exits you mentioned.

I searched a lot in our forum but did not find this thread, anyway it went over my head with all the code.

My simple question and nagging doubt is- why would SAP not provide this facility? why is the delivery time updated only to the first SL and not the others? Does SAP want users to go into every line and change it? What if there are 50 items and 50 second SlLs? That leads me to think may be SAP has it and I don't know that!! Entire shipping process is based on confirmed SL as you can create delivery for the Confirmed line only. Client wants to see the delivery time in VL0g and print it on all forms- Order confirmation, Pick List, Bill Of Lading and so on. You can manipulate VL10g and Order form to get it from first SL, but in delivery item you see the delivery date and time from the confirmed SL only. That's the issue I have.

Shiva_Ram
Active Contributor
0 Kudos

Long time since I visited our forum.

No doubt, many of the members missed your wonderful contributions. When you plan to jump in?

Regarding your query, I have not worked on this type of requirement in the past, hence just tried in the online help. Check whether OSS Note 1459840 - Arrival time 00:00:00 is not checked provides any hint on this issue.

Regards,

Former Member
0 Kudos

Thanks for the nice words, Shiva Ram. My current engagement is leaving no free time to do something I cherish a lot, but I will visit more often now.

I saw this and several other OSS notes for keyword VBEP-EZEIT ( there are 230 of them) and none of them covered what I needed. The note you mentioned is talking about check for initial value (00:00:))) or against Goods Receiving hours of customer. But the Include LV45E002 and the phrase ' all these requests can be converted' is giving me some hopes.

Any more ideas? Thanks.