Programme SAP J_7L_CREATE_DEC_KEY - Generate Declaration Key for Article

Purpose
This report corrects the declaration keys in table J_7LM11.
For recycling partners who use declaration keys, these are createdautomatically on the REA article screen when you assign the recyclingpartner. If the recycling partner is created using the general interfaceor collective maintenance, declaration keys are not generated. You canuse this program to correct this for both REA articles and REA referencearticles.
Version-based declaration keys CANNOT be created by this program. Thesecan be generated only by an operational run in the declaration system.
This program allows the same changes to be made in mass change mode asonline.

Prerequisites
You have authorization for the authorization objectJ_7L_INFC. It is important that the articles to bechanged have a consistent status.

Selection
The recycling partner and country are required entryfields and define the recycling partner for which the declaration keysare to be corrected.
By selecting the material number, company code, andsales unit you can restrict the data to individual masterrecords.
Log Detail 1 displays a summary only. A log level greater than 1displays the various processing steps as well.
IF &[SWITCH]J_7L_SFWS_UI_SUSTAINABILITY& = 'X'.
The Trigger Workflow Event indicator is only visible ifREA Customizing has been set up accordingly. If theindicator is set, a workflow event for the business object REA_ARTICLEis triggered following each change.
ENDIF.
The system does not make any changes in test mode.

Output
The result is displayed as a transient SAP application log in a modaldialog box. Possible errors may be the result of errors in functionmodule J_7L_READ_ARTICLE or J_7L_MAINTAIN_ARTICLE.