cancel
Showing results for 
Search instead for 
Did you mean: 

PR type from shopping cart.

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi So Hee Lee,

Try to use BADI BBP_SC_TRANSFER_BE (Number Range Determination and Grouping in Backend Documents)

Regards,

Marcin Gajewski

Former Member
0 Kudos

Thank you for your answer.

Is it possible to determine the PR type, if we use this BADI?

Thank you

Best Regards

Former Member
0 Kudos

Hi,

Yes. In method implementation GROUP_RQ click on 'Signature' button.

You have IT_ITEM, VALUE(IV_OBJECT_TO_GENERATE). You may use this values to determine PR type.

Regards,

Marcin Gajewski

Former Member
0 Kudos

Hello Marcin Gajewski

Thank you for your help.

OK, I wll try to use this BADI.

Thank you

Best Regards

Former Member
0 Kudos

Hello Marcin

We will use the BADI BBP_SC_TRANSFER_BE to determine the PR type and number range according to your recommend.

But I’m 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

Answers (0)