on 11-10-2011 7:21 AM
Hi All,
We need to assign different Trip Numbers for different Trip Schemas we have.
How can we achieve that? Please Suggest,
I also looked at BADI TRIP_WEB_NUMBER , Interface IF_EX_TRIP_WEB_NUMBER
but not implemented.
Currently we have only one range for trip number based on company code
Nr From To
01 1000000000 to 1999999999
I also look at exit MP56TFEX, FORM ex_get_number but not sure...
Please help thanksz
Hi,
for User-Exit MP56TFEX, Form ex_get_number, you could implement coding like this:
IF PTP02-SCHEM = '<schema_you_want_to_check>'.
nr_range_nr = '<nr_range_accordingly>'.
ELSEIF.
.... etc.
ENDIF.
For BAdI TRIP_WEB_NUMBER make an implementation and implement method IF_EX_TRIP_WEB_NUMBER~USER_EXIT_NUMBER_INTERNAL. The problem here is, the system does not provide the schema this time, because usually nr_ranges are only dependent on the personal area... I guess you would have to create additional coding to get the information you need to make a check for the schema.
Hope it helps a bit,
regards, Lukas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lukas,
Thank You so much for clear understanding of my problem.
Yes i do exactly got what you say,
In form ex_get_number, I can code like...
CASE : 'SCHEMA'.
WHEN 'SCHEMA1'.
NR_NUMBER_NR = '01'.
...
,....
But in BADI also i have export parameter NR_NUMBER, i can do that if i have schema there. You are right,
But we are using only EP to create a claim/Trip, so there is no way i can use the USER_EXIT..
I should only use BADI..
My question again is Can we somehow get schema in BADI or any other better way..
Thank you so much for ur help
I'm afraid this will scarcely be possible. The BadI-Framework does not import the entire head-data of the request form. The one thing I personally find irritating, is that DATE gets populated from HEAD_DATA, but only from the date field. Whereas the structure HEAD_DATA itself contains the entire information of the head data but isn't available in runtime ... I Don't understand why SAP developed it this way...
So in my opinion this is not or only very tediously possible to realize (if it is possible, I don't know how).
Sorry I don't have better news. Maybe Sally has an idea.
Cheers, Lukas
Hi Lukas,
Finally i got the way to read the SCHEMA inside the BADI,
I got help through Forum, Please refer the link below ,
[Implementing BADI TRIP_WEB_NUMBER, problem reading a field |;
I also share my code which might useful for others,
DATA lv_name_head(30) VALUE '(SAPLPTRA_DB)WA_HEAD'.
FIELD-SYMBOLS: <e_head> TYPE ANY.
ASSIGN (lv_name_head) TO <e_head>.
IF sy-subrc NE 0.
EXIT.
ENDIF.
Then we can get schema in <e_head>-schme
Thanks & Regards,
SUJI
My Question has been answered well. And i posted my solution for further helps to others regarding this issues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can use create internally a new functional module to default the trip number ranges.
Regards,
LNB
Edited by: Lakshminarasimhan Bhattacharya on Nov 10, 2011 12:43 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
9 | |
8 | |
5 | |
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.