on 11-21-2006 6:02 AM
Hello friend.
In our scenario, PR (Following doc) will be created in MM after approving the shopping cart.
We have two PR type such like Tooling PR and Normal PR with different number range.
As you know that, shopping cart can not separate document type with different number range.
But we need to map the shopping cart to PR type.
We added CUF as PR type in SRM. Therefore enduser can choose the PR type from possible entry when creating SC.
If user created SC with Tooling PR type, PR should be created with Tooling PR type.
How can I do that? Could you tell me the idea or BADI?
I will configure the following step.
1. Define the number range in SRM Define Number Ranges for Shopping Carts and Follow-on Documents.
-For R/3 Tooling PR, No key 02 2150000000 2159999999
- For R/3 Normal PR, No key 03 2160000000 2160000000
2. Define the number range in MM as External number range
-For R/3 Tooling PR, No key 02 2150000000 2159999999 (EXT)
- For R/3 Normal PR, No key 03 2160000000 2160000000 (EXT)
3. Define the document type in MM
Tooling PR (TATI)with No 02
Normal PR (NATK)with No 03
4. Maintain document type in Organization plan.
EC, TATI, NATK
If enduser choose the PR type Tooling PR in SRM Screen.
PR should be created with PR type Tooling PR and number range in MM.
Hi So Hee Lee,
Try to use BADI BBP_SC_TRANSFER_BE (Number Range Determination and Grouping in Backend Documents)
Regards,
Marcin Gajewski
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Marcin
We will use the BADI BBP_SC_TRANSFER_BE to determine the PR type and number range according to your recommend.
But Im not sure the following logic is correct.
Could you check this?
We have two PR type in R/3.
1) KGPR
2) KTR1
As you know that shopping cart has no type. So we add customer field to mapping to R/3 PR type and this field has two values.
1) PR01: mapping to KGPR
2) PR02: mapping to KTR1
We will use the method GROUP_RQ to determine the PR type.
If customer field is PR01, PR type is determined KGPR
If customer field is PR002, PR type is determined KTR1.
To determine the PR number range, we will use the method GET_NUMBER_OR_RANGE.
If PR type is KGPR, Choose the No key 12
If PR type is KTR1, Choose the No key 16.
Configuration step:
1. Maintain the PR number range in SRM.
No key: 12 (for KGPR) internal NR
No range: 2520000000 2529000000
No key: 16 (for KTR1) internal NR
No range: 2560000000 2569000000
2. Maintain the PR number range in R/3
No key: 12 (for KGPR) Ext NR
No range: 2520000000 2529000000
No key: 16 (for KTR1) Ext NR
No range: 2560000000 2569000000
3. Assign the PR number range to PR type in R/3
KGPR 12 (EXT)
KTR1 16 (EXT)
4. Maintain the attribute in SRM
Document type in R/3
Add KGPR and KTR1
Thank you
Best Regards
SH
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.