on 10-25-2012 12:35 PM
Where it is possible to change the predefined document date end of the road?
could you please elaborate on that?... Be more detailed what you want and provide screenshots please...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Now I think I understand what you want. You want the receipt date to be the trip's enddate, so in your example, it should not be 14.10, but 15.10. , correct?
This cannot be manipulated via customizing, it's hardcoded. More specifically, in
SAPMP56T | / MP56TO30 |
MODULE (PBO) | / D1300O_INIT |
Line 550 or so:
CLEAR beleg.
DESCRIBE TABLE beleg LINES bele_dimen.
IF bele_dimen = 0.
beleg-bldat = ptp02-datv1.
ELSE.
READ TABLE beleg INDEX bele_dimen.
datum_hilf = beleg-bldat.
CLEAR beleg.
* Datumsvorschlag immer aus letztem Beleg (wie in TRIP) WKUK001727
* if ( datum_hilf < ptp02-datv1 ) "WKUK001727
* or ( datum_hilf > ptp02-datb1 ). "WKUK001727
* beleg-bldat = ptp02-datv1. "WKUK001727
* else. "WKUK001727
beleg-bldat = datum_hilf.
* endif. "WKUK001727
ENDIF.
You can see, beleg-bldat is retrieved from ptp02-datv1, so from the headerdata.
Since we are within a Dynpro, enhancements are not possible. You can achieve your requirement though, by modification.
Remove this line:
beleg-bldat = ptp02-datv1
and replace it with this line:
beleg-bldat = ptp02-datb1
Otherwise, if your client prohibits modifications, your requirement cannot be fulfilled.
Cheers, Lukas
Hi Sona,
if my suggestion worked, can you please set your question answered (should be possible somewhere at the top of your thread). This provides better documentation for people who have a similar requirement like you and search in the forum for answered questions in particular.
Cheers, Lukas
User | Count |
---|---|
89 | |
7 | |
7 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.