Hierarchy

⤷

⤷

IMG Activity
ID | J_1BNF_CHECK_PERIOD | BAdI: Check Period of Notas Fiscais |
Transaction Code | S_EB5_05000672 | (empty) |
Created on | 20100316 | |
Customizing Attributes | J_1BNF_CHECK_PERIOD | BAdI: Check Period of Notas Fiscais |
Customizing Activity | J_1BNF_CHECK_PERIOD | BAdI: Check Period of Notas Fiscais |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | J_1BNF_CHECK_PERIOD |
Use
This Business Add-In (BAdI) is used in the Financials (FI) component for Brazil.
When you want to change the posting date of an electronic nota fiscal (NF-e), the system calls the Nota Fiscal System - Check posting period in case of cancel (J_1B_NF_CANCEL_CHECK_PERIOD) function module to check the posting period. If the period is closed, the system will not allow you to change the posting date in the NF-e.
You can then use the Set Flag to Check the Period method of this BAdI to change the behavior of the function module and manually change the posting date in the Change Nota Fiscal transaction.
Requirements
Standard settings
In the standard system, the Business Add-In is activated. The default code is executed automatically.
The BAdI is not filter-dependent and is not reusable.
Activities
After you call the IMG activity, the system displays a dialog box where you enter a name for the implementation.
If implementations of this Business Add-In have already been created, the system displays them in a dialog box. You then choose one of them by choosing Create, and continue as follows:
- In the dialog box, enter a name for the implementation of the Add-In and choose Create.
The system displays the initial screen for creating Business Add-In implementations. - On this screen, enter a short description for your implementation in the Implementation Short Text field.
- If you choose the Interface tab, you will notice that the system has populated the Name of the Implementing Class field automatically, by assigning a class name based on the name of your implementation.
- Save your entries and assign the Add-In to a package.
- To edit a method, double-click its name.
- Enter your implementation code between the
method <Interface Name>~<Name of Method>.
andendmethod.
statements. - Save and activate your code. Navigate back to the Change Implementation screen.
Note: You can also create an implementation for an Add-In and not activate it until later. If you want to do this, do not perform the following step: - Choose Activate.
When the application program is executed, the code you created is run through.
Example
Your company, located in Mato Grosso, buys equipment from Germany. The equipment arrives in the Port of Santos in São Paulo, and needs to be transported by land to your company.
You then create a manual incoming NF-e to accompany the equipment during the transporting. However, since you cannot know for certain when the equipment will arrive at your company, you estimate the arriving date and post the NF-e.
When the equipment arrives at your company, if the date is different from the estimate, you need to manually change the posting date of the NF-e.
Coding Example
IF LT_J1BNFDOC-NFE = 'X' AND
LT_J1BNFDOC-DIRECT = 1 AND
LT_J1BNFDOC-MANUAL = 'X'.
LV_FLAG = ' '.
ENDIF.
See Also
BAdI method documentation:
Business Attributes
ASAP Roadmap ID | 257 | Create User Exits |
Mandatory / Optional | 2 | Optional activity |
Critical / Non-Critical | 2 | Non-critical |
Country-Dependency | I | Valid for countries specified |
Customizing Attributes | Country Key | Country Name |
---|---|---|
J_1BNF_CHECK_PERIOD | BR | Brazil |
Assigned Application Components
Documentation Object Class | Documentation Object Name | Current line number | Application Component | Application Component Name |
---|---|---|---|---|
SIMG | J_1BNF_CHECK_PERIOD | 0 | HLB0006310 | General Application Functions |
Maintenance Objects
Maintenance object type | E | Business Add-In - Definition |
History
Last changed by/on | SAP | 20100317 |
SAP Release Created in | 605 |