09-01-2009 11:56 AM
Hi All,
My requirement to automatically change the schedule line dates (ETDAT) in a sales order when the requested delivery date (KETDAT) of the document is changed.
The schedule line dates should automatically change to the date that is changed in the requested delivery date.
Is there any user exit or enhancement point to achieve this.
Thanks in advance.
Regards,
Darpana.A
09-01-2009 12:16 PM
Hi,
Make use of exit USEREXIT_MOVE_FIELD_TO_VBEP in program MV45AFZZ
regards,
Ankur Parab
09-01-2009 12:49 PM
Hi Ankur,
This user Exit is not helping me for this requirement.
The field that should change automatically is RV45A-ETDAT based on RV45A-KETDAT.
Could you suggest any other user exit.
Regards,
Darpana.A
09-02-2009 9:21 AM
HI
Check these Enhancements...
Exit Name Description
SDAPO001 Activating Sourcing Subitem Quantity Propagation
SDTRM001 Reschedule schedule lines without a new ATP check
V45A0001 Determine alternative materials for product selection
V45A0002 Predefine sold-to party in sales document
V45A0003 Collector for customer function modulpool MV45A
V45A0004 Copy packing proposal
V45E0001 Update the purchase order from the sales order
V45E0002 Data transfer in procurement elements (PRreq., assembly)
V45L0001 SD component supplier processing (customer enhancements)
V45P0001 SD customer function for cross-company code sales
V45S0001 Update sales document from configuration
V45S0003 MRP-relevance for incomplete configuration
V45S0004 Effectivity type in sales order
V45W0001 SD Service Management: Forward Contract Data to Item
V46H0001 SD Customer functions for resource-related billing
V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
Regards
Raghu
Edited by: Raghavendra Rao G on Sep 2, 2009 1:52 PM
09-01-2009 12:21 PM
Hi,
BIngo Ankur you hit the spot for the answer. Darpana i think you got it , pls mark the question answered
TC
Sajimon Chandran
09-11-2009 12:11 PM
I have solved this by using Enhancement points in Includes
FV45KF0V_VBAK-VDATU_PRUEFEN &
FV45EFEP_VBEP_UNTERLEGEN.
Thanks for your replies.
09-17-2009 9:15 AM
Hello Darpana
I have the same requirment as of u.I cannt find any user exit even after 7 day R&D.When i saw ur method it got struck in my mind.Dear can u tell me how u used these two in solving the requirment.
FV45KF0V_VBAK-VDATU_PRUEFEN &
FV45EFEP_VBEP_UNTERLEGEN.
09-17-2009 10:34 AM
HI,
In Include FV45KF0V_VBAK-VDATU_PRUEFEN I have implemented an enhancement point, just before the data declaration of the include
*---This logic does not display the warning that Date is not copied to the schedule line items
data: v_vdatu like vbak-vdatu,
v_vprgr like vbak-vprgr.
if sy-tcode = 'VA02'.
call function 'PERIOD_AND_DATE_CONVERT_INPUT'
exporting
dialog_date_is_in_the_past = space
external_date = us_ketdat
external_period = us_kprgbz
importing
internal_date = v_vdatu
internal_period = v_vprgr.
if *vbak-vdatu <> v_vdatu.
*vbak-vdatu = v_vdatu. "Initialising the Changed date
endif.
endif.
In Include FV45EFEP_VBEP_UNTERLEGEN I have implemented an enhancement point, just before the data declaration of the include
DATA: v_vdatu TYPE EDATU_VBAK.
if sy-tcode = 'VA02'.
*---Selecting the required delivery date
SELECT single vdatu
from vbak
into v_vdatu
where vbeln = vbak-vbeln.
*---Checks if the Required delivery date is changed then changes the schedule line items first date
if vbak-vdatu <> v_vdatu.
loop at xvbep.
xvbep-edatu = vbak-vdatu.
modify xvbep TRANSPORTING edatu.
endloop.
endif.
*---Checks on click of Save button
if sy-ucomm = 'SICH'.
*---Checks if the Required delivery date is changed or not
if vbak-vdatu <> v_vdatu.
loop at xvbep.
xvbep-edatu = vbak-vdatu.
modify xvbep TRANSPORTING edatu.
endloop.
*---Modifys the database table VBEP accordingly
modify vbep from table xvbep.
endif.
endif.
endif.
Hope your problem gets solved by this logic.
Regards,
Darpana.Ahire
09-17-2009 11:11 AM
Thank u very much Darpana for ur so quick reply.
I jus coluld not understand how u inserted ur commands inside that include.Should i need some privilages to do that or ur wrote those commands with any customization.
09-17-2009 11:53 AM
Hi,
Find out what BADI is.
Read up on that, you will know how to create your own Enhancement point.
No special access is needed to write your code in an Enhancement Point.
Regards,
Darpana.A
09-17-2009 2:15 PM
Thnx a lot Darpana..Let me try out that hope 2 get help from u if required.
09-18-2009 3:07 PM
>
> HI,
>
> In Include FV45KF0V_VBAK-VDATU_PRUEFEN I have implemented an enhancement point, just before the data declaration of the include
>
> *---This logic does not display the warning that Date is not copied to the schedule line items
> data: v_vdatu like vbak-vdatu,
> v_vprgr like vbak-vprgr.
>
> if sy-tcode = 'VA02'.
> call function 'PERIOD_AND_DATE_CONVERT_INPUT'
> exporting
> dialog_date_is_in_the_past = space
> external_date = us_ketdat
> external_period = us_kprgbz
> importing
> internal_date = v_vdatu
> internal_period = v_vprgr.
>
> if *vbak-vdatu <> v_vdatu.
> *vbak-vdatu = v_vdatu. "Initialising the Changed date
> endif.
> endif.
>
>
>
> In Include FV45EFEP_VBEP_UNTERLEGEN I have implemented an enhancement point, just before the data declaration of the include
>
>
> DATA: v_vdatu TYPE EDATU_VBAK.
>
> if sy-tcode = 'VA02'.
>
> *---Selecting the required delivery date
> SELECT single vdatu
> from vbak
> into v_vdatu
> where vbeln = vbak-vbeln.
>
> *---Checks if the Required delivery date is changed then changes the schedule line items first date
> if vbak-vdatu <> v_vdatu.
> loop at xvbep.
> xvbep-edatu = vbak-vdatu.
> modify xvbep TRANSPORTING edatu.
> endloop.
> endif.
>
>
> *---Checks on click of Save button
> if sy-ucomm = 'SICH'.
> *---Checks if the Required delivery date is changed or not
> if vbak-vdatu <> v_vdatu.
> loop at xvbep.
> xvbep-edatu = vbak-vdatu.
> modify xvbep TRANSPORTING edatu.
> endloop.
> *---Modifys the database table VBEP accordingly
> modify vbep from table xvbep.
> endif.
> endif.
>
> endif.
>
>
> Hope your problem gets solved by this logic.
>
> Regards,
> Darpana.Ahire
Hi Darpana,
I have a requirement to automate the requested delivery date while creating the sales order through VA01.
I have to add some lead time to the defaultly proposed requested delivery date.
I am able to change the requested delivery date VBAK-VDATU and schedule line date VBEP-EDATU.
I have done it through form 'SAVE_DOCUMENT_PREPARE' in SAPMAV45A.
Now my client requires this date date has to be reflected in all places like in goods issue date, loading date, material availability date, invoice date etc.,
As my user exit triggers only at the time of saving the document, changing the requested deliery date is not affecting all these dates.
Any solution for this.
Highly appreciate your help.
Thanks
Sreenivasa Reddy Vallem
09-12-2009 8:00 AM
Hi ,
You can use this exit EXIT_SAPVSTRM_NO_ATPCHK_001
regards
Sekhar
03-06-2013 10:02 AM
Hi Folks,
I have a below mentioned requirement,
The requested delivery date (field RV45A-KETDAT) should be checked while
creating an SD order.
In case that the date equals to a weekend (Sat/Sun) or a public holiday,
a warning message should be shown to be confirmed by the user.
Kindly help me in finding the user exit or in which place i need to add my customization.
Note: Validation should happen as and when user enters the requested delivery date while creating sales order.
Thanks & Regards,
Prashantha Tadakanahalli
Mobile: +91-8105267119
07-16-2014 1:22 PM
Hi Prashantha,
Could you please share the solution to this. I have an exact same requirement and am stuck with finding the exit for this. Your help would be appreciated.
Regards,
BGaurav