cancel
Showing results for 
Search instead for 
Did you mean: 

Single Trip number range for multiple personal areas

Former Member
0 Kudos

Hi,

Can any expert suggest me whether can we use single trip number range for multiple personal areas.

Thanks

Srinivas

Accepted Solutions (0)

Answers (1)

Answers (1)

kannan_rajagopalan
Contributor
0 Kudos

Dear Srinivas,

This can be done. Please follow the below logic.

Create a new implementation (enhancement) in BADI =TRIP_WEB_NUMBER

Method = USER_EXIT_NUMBER_INTERNAL

with the below codes.


 DATA:        LV_ZZTRIPTYPE TYPE PTRV_HEAD-ZZTRIPTYPE,
                     LV_CCLAND TYPE BUKRS,
                     LV_LAND TYPE T001-LAND1.

Fetch the company code from the data inputed.

      SELECT SINGLE LAND1
       FROM     T001
       INTO     LV_CCLAND
       WHERE    BUKRS = ORGANIZATIONAL_ASSIGNMENT-BUKRS.

IMPORT TRIP_HEADER-ZZTRIPTYPE  TO  LV_ZZTRIPTYPE FROM MEMORY ID 'ABC'.

  CASE ORGANIZATIONAL_ASSIGNMENT-BUKRS+0(2).
         CONCATENATE ORGANIZATIONAL_ASSIGNMENT-BUKRS+0(2) '01' INTO NUMBER_SUBOBJECT .
  ENDCASE.

NUMBER_RANGE = 'Pass the number range'.

This is an example on how this will work. Please modify accordingly for your company.

Edited by: Rajagopalan Kannan on Jun 6, 2011 3:08 PM

Edited by: Rajagopalan Kannan on Jun 6, 2011 3:11 PM

Former Member
0 Kudos

Hi Rajagopal,

Thanks very much for your reply. my question has been answered. I have the following issue with number ranges. I have used single number range for more than one personal area without using the BADI that you have suggested. I could able to create some trips for the test employees, but after some time, it has started throwing the following error Key 0000000087

Already in PTRV_DOC_HD: Program had to be terminated. I am not able to post any trips into FI. Is this the issue of duplicate trip numbers, if yes what could be the solution for this. This is in dev environment.

Thanks

Srinivas

Former Member
0 Kudos

Hi srinivas

Did u solved this issue??? If yes, kindly let us know how did u solve?

Cheers

Pradyp

Former Member
0 Kudos

Hi Pradyp,

Have you got the solution..? I am also facing the same issue now. Can you explain me the procedure to resolve the issue.

Regards,

Narayana

Lukas_Weigelt
Active Contributor
0 Kudos

The only way to get out of this mess is deleting the duplicates and changing the trip number concept to a reasonable approach. I've already given my advise in another discussion over here:

You might want to take a look into it.

EDIT: I wrote a blog about the whole issue over here:

Cheers, Lukas

Message was edited by: Lukas Weigelt