on 06-05-2011 3:48 AM
Hi,
Can any expert suggest me whether can we use single trip number range for multiple personal areas.
Thanks
Srinivas
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
91 | |
8 | |
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.