On our training system I reproduced a supplier create that cleared every approval and then stopped. The change request still showed a temporary id. BUT000 had no business partner, and LFA1 had no vendor.

A value that remains on the request after a successful activation, and is missing on the vendor, is a different fault. I wrote that up earlier. This request never activated. There was no vendor yet.

The id on the request was temporary

The request was a create. Type SUPPL1P1, Create Supplier, on data model BP. The main entity type is BP_HEADER, and the business activity is SUP1. The workflow delivered with that type is WS54300005. Step 01, Approval, was complete.

The status was 07, Activation Failed, in field USMD_CREQ_STATUS of table USMD120C. It was not 05, Final Check Approved. For status 07 the permitted processing is No Processing. The request could not be corrected in place.

The id was a temporary one. In Customizing for Master Data Governance, under General Settings, Data Modeling, Define Prefixes for Internal Key Assignment, data model BP and entity type BP_HEADER carry a prefix. SAP's example for that prefix is $. That is the prefix on the training system. A temporary id is the prefix plus an internal sequence. USMD1213 still had BP_HEADER under that id.

The prefix is how the change request holds a new partner before a real number exists. The number in BUT000 is taken from the grouping's interval when the partner is created. On a change request, that creation is activation.

The grouping had an external interval

The grouping decides the number. After the partner exists, the grouping is stored in BUT000-BU_GROUP, and the assignment cannot be changed. Groupings are maintained under Cross-Application Components, SAP Business Partner, Business Partner, Basic Settings, Number Ranges and Groupings, Define Groupings and Assign Number Ranges. Transaction BUC2 opens that activity. Table TB001 holds the grouping. TB001-NRRNG is the number range. The maintenance view is V_TB001.

The intervals are in Define Number Ranges, transaction BUCF. BUCF maintains intervals for number range object BU_PARTNER. An interval is internal or external. The system draws the next number from an internal interval. For an external interval, the user has to supply a number inside that interval. Intervals of BU_PARTNER must not overlap one another.

On the training system the grouping's interval was external. Nobody had entered a business partner number. The only id was the temporary one from the prefix on BP_HEADER. That prefix is for internal key assignment: the request holds a temporary id until activation, and the partner number is not typed on the request. An external grouping is the opposite case in the business-partner dialog — the user has to supply a number in the interval. Because this create never asked for one, and because activation in WS54300005 is not a dialog step assigned to a processor, there was no screen on which to enter the final number.

The business partner application raised message R1 091. The text says the grouping has external number assignment, and a number has to be entered. The diagnosis is that the partner needs a key, and the key was not specified. The procedure says to enter the key in the dialog. Where the process is a background process, the same procedure says to contact the administrator. Activation gave me no dialog to type a number into.

An internal interval is drawn when the partner is created. I read the current number on the internal intervals in BUCF as well. An interval that has already reached its last number has nothing left to give out. That was not this request. The external indicator was.

Status 07 accepts no processing, so I left the failed request as it was. In BUC2 I pointed the grouping at an internal interval of BU_PARTNER. A partner that already exists keeps the number it has. The interval on the grouping is what the next create uses, and this create had never written BUT000.

The vendor has to accept that number

A supplier create also has to number the vendor. Customer/vendor integration writes the vendor while the business partner is processed, into LFA1. The two numbers are independent. BUT000 uses object BU_PARTNER. The vendor uses object KREDITOR. A customer uses object DEBITOR, and the customer master is KNA1.

For the vendor, the activity is Define Number Assignment for Direction BP to Vendor. The path is Cross-Application Components, Master Data Synchronization, Customer/Vendor Integration, Business Partner Settings, Settings for Vendor Integration, Field Assignment for Vendor Integration, Assign Keys. It is view V_TBC001, table TBC001, transaction S_ALN_01002326. Each row assigns a vendor account group to a business partner grouping. The Same Numbers indicator means the vendor is created with the business partner number currently being processed.

Same Numbers has two prerequisites. The number ranges cover the same area, and the vendor interval must sit inside the business partner interval. The Financial Accounting account group uses external number assignment. That is a prerequisite for Same Numbers; an internal FI interval cannot take a number the business partner has already been given. The account group is T077K-KTOKK. The number range assigned to that group is T077K-NUMKR. Vendor intervals are maintained under Financial Accounting, Accounts Receivable and Accounts Payable, Vendor Accounts, Master Data, Preparations for Creating Vendor Master Data, Create Number Ranges for Vendor Accounts. Transaction XKN1 maintains those intervals for object KREDITOR. The account group is assigned its range under the same node, Assign Number Ranges to Vendor Account Groups, transaction OBAS.

The pattern that keeps one number is specific. The business partner interval stays internal, so activation can draw the partner number. The vendor interval is external, and it covers that same area, so integration can store the partner number on LFA1. If Same Numbers is off, the vendor takes its own number from the account group. LFA1 and BUT000 then differ. That is a valid choice. It is not the choice this row was making.

On the training system Same Numbers was set. The vendor interval did not cover the numbers the internal partner interval would issue. I left the partner interval internal. I assigned the vendor account group an external KREDITOR interval over the same area.

I read the customer direction the same way. Define Number Assignment for Direction BP to Customer uses the same indicator. The account group is on T077D, and the number range object is DEBITOR. This create was a supplier, so it writes LFA1. A later customer create on a grouping with the same gap would fail in KNA1 for the same reason.

The test is a create that activates

I created a new SUPPL1P1 request, chose that grouping, and left the partner number blank. I submitted it and let the workflow run through approval to activation.

The status was 05, Final Check Approved. BUT000 had the partner. BUT000-BU_GROUP was the grouping. The partner number sat inside the internal interval. LFA1 had the vendor, under that same number. The temporary id was not on the active partner.

Approval shows that the workflow found its agents. It does not show that a number can be assigned. The grouping, the BU_PARTNER interval, and the vendor or customer interval are read when the partner is created. I check those three before I call a create process ready, and I run one request through activation. A test that stops at approval leaves this failure for the first request that actually activates.

If you want to practise this on our training servers, the next MDG batch is at https://saberia.in/training. For help on a live landscape, write to admin@saberia.in or see https://saberia.in/consulting.

Join next MDG batch or admin@saberia.in

All posts · RSS