cancel
Showing results for 
Search instead for 
Did you mean: 

The predefined document date

Former Member
0 Kudos

Where it is possible to change the predefined document date end of the road?

Accepted Solutions (0)

Answers (1)

Answers (1)

Lukas_Weigelt
Active Contributor
0 Kudos

could you please elaborate on that?... Be more detailed what you want and provide screenshots please...

Former Member
0 Kudos

Hi Lukas

in the transaction PR05 I input some receipt for the trip. For this input the date of the receipt is predefined according to the beginning of the trip. But I need to predefine the date of the end of the trip. In which table I can change it?

thank you for you answer

Lukas_Weigelt
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Thank you for your help. We applied it in our system.

Best regards

Soňa

Lukas_Weigelt
Active Contributor
0 Kudos

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