cancel
Showing results for 
Search instead for 
Did you mean: 

Document Types for PR created in R/3

Former Member
0 Kudos

WE are implementing SRM classic scenario and in version 4.0.

WE are creating the Purchase requisition in R/3 systems.

Now in R/3 we have 2 document types PR01 for Materials and PR02 for services.

There is a badi BBP_SC_TRansfer_BE with method Group_RQ which can be used to

segregate the document types PR01 for material and PR02 for services.

However how do I maintaion the number ranges as in SRM we have only one field where we can maintain the number ranges in cutomising for

Define Number Ranges per Backend System for Follow-on Documents Here it allows only one Attribute for Purchase Requistion.

How do I maintain the number ranges in R/3 as external number ranges for the 2 document types PR01 and Pr02.

Currently I have maintained RQ for Pr01 as external no ranges in R/3.

Is it that I have to maintain RQ for PR02 also or if separate number range than how do I assgin in SRM.

Can any one thorw light on this.

Regards,

Nimish Sheth

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Nimish,

Normally, the document type is determined in the R/3 system depending on the document number.

The method GET_NUMBER_OR_RANGE of BADI BBP_SC_TRansfer_BE allows you to make your own Number range determination: you should be abble to use one or another of your number range depending on the SC line type.

Regards.

Vadim

Former Member
0 Kudos

Dear Vadim

In Srm we have faclity of maintaining one no range only

In R/3 I have 2 no ranges for Document type PR01(Materials) and PR02(Services)

Is it that I have to keep a common number range with 2 document type in R/3.

IN SRM IN R/3

No range NO range

RQ - Internl Numbers PR01 RQ - External (PR01)

AB - External for PR02

Now how do I map AB in SRM .

or Keep RQ for PR01 and PR02 in R/3

Can you pls throw light on this.

Regards,

Nimish Sheth

Former Member
0 Kudos

Hi Nimish,

In SPRO define your second number range in <i>"Define Number Ranges for Shopping Carts and Follow-on Documents"</i>.

In BADI BADI BBP_SC_TRansfer_BE fill in the Number range code in parameter CV_NUMBER_RANGE.

Regards.

Vadim

Former Member
0 Kudos

Hi Vadim

Thanks for the quick reply this means that both the number ranges can maintained in the SRM RQ and AB.

as well as in R/3

But then how do I assgin bith number ranges in Define Number Ranges per Backend System for Follow-on Documents

Or i have to assign only one RQ as for PR there is only one field.

As the Logical system can be defined only once.

regards,

Nimish Sheth

Former Member
0 Kudos

Hi Nimish,

The BADI allows you to assign the Number range with your own business rule idependently of the <i>"Define Number Ranges per Backend System for Follow-on Documents"</i> customizing.

Just follow the instructions I gave you:

-Declare the number range

-implement your business rule in the BADI to assign the corect number range to the PR.

Regards.

Vadim

Answers (0)