Monday, March 31, 2014

SAP : The reference has already been completely copied or rejected

The above error message in my case occurred when trying to create a Contract with reference to a Quotation or Order from a Quote with a production order, meaning the Primary document is a Quotation

Even though if there is no completion rule specified in the item category of the quotation, the system sets it to A because it checks for the order type and Assembly type combination in the Program SAPFV45P.

IF vbak-vbtyp CA vbtyp_agan AND
NOT t459k-mntga IS INITIAL.
vbap-erlre = chara.
ENDIF.

The first check is for order document type, my case it’s B (Quote). Second check t459k-mntga, is to see if there is Production/Planned order.

Satisfying these conditions the VBAP-ERLRE (Completion rule) is set the CHARA (A) and the VBAP table is updated with completion rule A by default.

Regards,
[V]

Friday, March 28, 2014

SAP Requirement Type and Requirement Class determination

Generally speaking we are aware that SAP Make-to-order production is controlled by the requirements type, but what’s mystical in how the requirement type is determined during the sales order processing. I did a little research to understand this process, which seems tricky compared to the some other SD area determination process like item category or schedule line and below are my findings.

Until Release 3.0, the requirements type was determined on the basis of the item category. For this reason, special item categories weree used unti Release 3.0 for controlling make-to-order production. After Release 3.0 the requirements type is determined on the below sequence primarily in the configuration for Production-MRP and Sales and Distribution in secondary.

1. The Strategy group (MRP3 View) in the Material Master,
    a. A Strategy is assigned to the Strategy group, (Tcode OPPT)
    b. The requirement type is assigned to the Strategy, (Tcode OPPS) and if this fails.

2. MRP group (MRP1 View) in the material master record.
    a. If the Strategy group is not maintained in the MRP3 view, the Strategy group
        is determined based on the Plant + MRP group combination (Tcode: OPPR)
    b. Uses step 1 after step 2.b and this if this fails

3. Based on Material type (Tcode: OMIG)

4. Item category and the MRP type
    a. Determination Of Requirement Types Using Transaction (TCode OVZI)

5. Item category only.
    a. Determination Of Requirement Types Using Transaction (TCode OVZI)


Regards,
[V]