SAP Program RQCAAP02 - Quality Certificate for Batch

Description
This program creates a quality certificate for a batch.
The following parameters are available:

  • P_MATNR for the entry of a material (logical required field)

  • P_CHARG for the entry of a batch (logical required field)

  • P_WERKS for the entry of a plant (logical required field, if the
  • batches are maintained at the plant level)
    • P_PTYPE (background) for the entry of a certificate recipient type

    • This parameter can be filled, if the program is automatically calledup, for example, by "submit and return."
      • P_PARNR for the entry of a certificate recipient

      • This parameter is ready for input, provided you selected one ofthe recipient types "Customer number," "Customer contact person," or"Vendor number," via the pushbutton Choose recipient.
        If you select the address type "User-definable address", a dialog boxappears, in which you can enter an address of your choice. When youtransfer the data, the first few characters of the name are copied intothe field P_PARNR. The field can no longer be changed.
        Note
        If you previously selected a master record as recipient, the masterrecord data is copied into the free address as default values.
        In addition, the invisible parameter, P_FREEAD, is filled for thisrecipient type. This is done so that the data can be saved as avariant.
        If you select recipient type "No recipient", the field P_PARNR is leftblank.
        • P_SPRAS for the entry of the language used for the certificate

        • This parameter is displayed, provided you selected a recipienttype via the pushbutton Choose recipient.
          The field is ready for input with the following recipient types:"Customer number," "Customer contact person," and "Vendor number."
          Note
          If you do not enter anything in this field, and you already selected acustomer, for example, the language defined for the customer isproposed from the customer master record. You can change the language.
          For recipient type "User-definable address," only this field isdisplayed. In this case, there is a required field for entering thelanguage in the dialog box for entering the address.
          For recipient type "No recipient," parameter P_SPRAS becomes a requiredfield.
          • P_MEDIUM for entering the transmission medium.

          • You can print a certificate or send it by fax.
            If you select "Fax," a further parameter appears, P_TELFX, for entry ofthe fax number. As in parameter P_SPRAS, you can have the fax numberproposed from the appropriate master record (the customer masterrecord, for example).
            • P_DIALOG for controlling foreground/background processing

            • If you mark this parameter, program messages or the processing log aredisplayed on the screen. In addition, before the certificate isprinted, a dialog box containing the print parameters is displayed.
              • By clicking the pushbutton Other profile, you can assign a
              • certificate profile. When you do so, the parameter P_FREEPR is set inthe background.
                Remember that only released certificate profiles may beassigned. You enter the certificate profile key in the following threeparameters:
                P_QCVNR: certificate profile number
                P_QCVKT: certificate type
                P_QCVKV: version number
                The text on the pushbutton changes to Automatic profile. Thismeans that you can cancel the selection of the other profile and havethe system search for the certificate profile automatically. In thiscase, a valid certificate profile assignment must exist.
                • Parameter P_SNDWRK is ready for input (logical required field),
                • provided the batches are not maintained at the plant level.In this case, the plant you enter here is added to the sender text.
                  • P_SUBMIT is a background parameter, intended for external calls. If you
                  • set this parameter, the inspection lot field, P_LOT, becomes a displayfield; in addition, the pushbuttons for the inspection lot are hidden.
                    The standard texts for the sender details are determined asfollows:
                    From the plant for the batch, the appropriate company code is found.The sender texts are then taken from program RQCAAP02, variant QM, fromthe company-code dependent table T001G. The texts are maintained there,from view V_T001G_QM.

                    Precondition
                    The following requirements must be met:

                    • An inspection lot must exist, for which a usage decision was already
                    • made.
                      • A released certificate profile must exist. If the system is to find the
                      • profile automatically, a valid assignment (for example, to theinspection lot material) must exist.
                        The selection criteria for the program, and the data in the certificateprofile, control the certificate output.
                        Note that characteristics from an inspection lot or partial lot canalso be printed, provided this is specified in the certificate profile.The inspection lot or partial lot is automatically selected on thebasis of the criteria in the certificate profile.
                        The characteristics for the batch are only considered, if they arespecified in the certificate profile.

                        Output
                        A quality certificate is output. The output takes place:

                        • on the screen, if the following two conditions are fulfilled:

                        • you set the indicator for foreground processing
                          in the dialog box for the print parameters, the print preview functionhas been activated
                          • in the spool or from a printer or fax machine, if one of the
                          • following two conditions is fulfilled:
                            you did not set the indicator for foreground processing
                            you set the indicator for foreground processing and activated the printfunction
                            When processing takes place in the foreground, system messages aredisplayed on the screen.

                            Example
                            You want to send a certificate for a batch to a certain recipient.Proceed as follows:
                            Select material, plant and batch. You can specify the recipient typevia the pushbutton "Choose recipient." You can select the actualrecipient (for example, a customer) from the possible entries help.
                            If you would like to see the result on the screen before sending it,select the indicator for processing in the foreground.
                            You would like to add on another profile. Click on the pushbutton"Other profile." From the possible entries help for versions, you canget a list of released certificate profiles, from which you can selectone.
                            The certificate should be created in the recipient's language andprinted. Make the required entries and run the program.