Вы находитесь на странице: 1из 23

Monitoring tool for

Argentina Web
Service
It is a standalone tool, which displays the status of documents. By using this tool documents can be
processed through AFIP or CONTINGENCY.

Below in document, you can find complete usage details.

Table of Contents
Various Features ..................................................................................................................................... 3
Objects Used ........................................................................................................................................... 3
Tool Flow................................................................................................................................................. 5
1.1:- Selection Screen .......................................................................................................................... 5
Detail of selection screen fields:- ..................................................................................................... 6
1.2:– Main Screen of Monitoring Tool .................................................................................................. 9
PART 1 ........................................................................................................................................... 10
PART 2 ........................................................................................................................................... 11
1.3:- Application toolbar of the monitoring tool ................................................................................. 11

2 Monitoring Tool for Argentina Web Service


Various Features
1. Display Records
2. Send documents to AFIP
3. Switch branch to Contingency
4. Reset Contingency for a branch
5. Process Documents in contingency mode
6. Status of Documents
7. Refresh the Data
8. View Logs
9. Test RFC connectivity
10. Link to documents
11. Fetch Last Approved ODN from AFIP
12. Display or Archive XML files for approved documents

Objects Used
1. Logs:
Log object is used to store all logs that are created while processing a particular document.
a. Log Object ‘AR_CAE’ (AR: Log Objects for Argentina Web Service)
b. Sub Object ‘MONITOR’ (AR: Sub Object for Monitoring Tool)
2. Tables:
a. J_1ACAE (Argentina electronic invoice CAE track table)
This existing table is enhanced to store the records that are applicable for Argentina
web service.
b. J_1ACON (AR: Contingency Maintained at Company and Branch Level)
This is a new table that stores the details whether a branch is in contingency or not. It
can be altered only by user having authorization object as in 3.a (below)
c. J_1ACONTINGENCY (AR: Argentina electronic invoice Contingency track table)
This is a new table which stores the details of all the documents that are processed in
contingency mode.

3 Monitoring Tool for Argentina Web Service


3. Authorization Object:
a. J_1ACONT (AR: Authorization object for Contingency)
This is a new object which is needed for the user to set and reset branch to
contingency mode.
b. J_1A_AFIP(Authorization object for Argentina web service(Send to AFIP))
This Authorization object is used to check whether a user is authorized to send any
documents to AFIP.
c. J_1A_ODN(Authorization Object for Argentina Web service(Get Last ODN))
This is a new object which is needed for the user to either get the last approved
ODN from AFIP or to synchronize the ODN between AFIP and J_1ACAE table.
d. J_1A_ARCH(Authorization object for AR WS Archiving)
This object is needed for the user to either Display or Archive XML files from AFIP for
all approved documents.

4 Monitoring Tool for Argentina Web Service


Tool Flow

1.1:- Selection Screen

5 Monitoring Tool for Argentina Web Service


Detail of selection screen fields:-

General Selection Criteria:

1. Company Code (mandatory) – Enter a company code. For Ex:AR01


Note: - Company Code must belongs to Argentina
2. Branch Number - Enter the branch (Branch is an organizational unit assigned to a
company code).
3. Posting Date - Enter the posting date.

Selection Criteria for Billing Document:

SD Documents Check Box – If valid Company code (For Ex: AR01) is given and if this field
is checked, then you will be able to give the input for Billing Document field.

If SD Documents is unchecked, then Billing Document field will be disabled.

Selection Criteria for Accounting Document:

FI Documents Check Box – If valid Company code (For Ex: AR01) is given and if this field
is checked, then you will be able to give the input for Accounting Document field.

6 Monitoring Tool for Argentina Web Service


If FI Documents is unchecked, then Accounting Document field will be disabled.

Additional Parameters:

1. Fiscal Year – Enter the Fiscal Year


2. Document class – Enter Document Class
3. Character to be Printed – Enter Printing character
4. Reference – Enter the Reference Document Number
5. Customer – Enter the Customer Number.
6. CAE Invoice status – Enter the invoice status
Permitted Values:-
I – Sent to AFIP
A – Approved
P – Approved with reservations
R – Rejected
N – New Document
C – Contingency
E – Validation Error
0 – Observations
7. CAE due date – Enter the CAE due date
8. Contingency Flag (Checkbox) – If this is clicked, it shows the documents those can be
processed through contingency.

7 Monitoring Tool for Argentina Web Service


Output Specification:

1. Layout – Enter the Layout Variant name.


2. Maximum No. of Hits (Default 500) – Enter the number of documents to be displayed in
the ALV.

Output Selection:

1. Presentation server – If this radio button is selected then the XML file will be stored in
the specified path of the presentation server(By default C:\temp)
2. Application server – If this radio button is selected then the file will be stored in
DIR_HOME directory of application server.

Type of View:

1. Display ALV– If this radio button is checked then it displays the ALV output.
2. Execute in background (AFIP) – This radio button is used to save a variant for
Background processing of set of documents through AFIP.
3. Execute in background (Conting) – This radio button is used to save a variant for
background processing of set of documents through Contingency.
4. Archive XML (Background) – This radio button is used to save a variant for archiving
multiple documents in background jobs.

8 Monitoring Tool for Argentina Web Service


1.2:– Main Screen of Monitoring Tool
Depend on the data entered in the selection screen the next screen will show the documents.
For Ex: Company Code – AR99 & Branch - 1789

Press the Execute Button

9 Monitoring Tool for Argentina Web Service


P

The above figure shows the main screen for the monitoring tool -

I. The first part (Part 1) shows all the documents as per the selection criteria.
II. The Second part (Part 2) Shows the LOG Details (logs for current date).

PART 1
It displays all the details from the J_1ACAE Table with additional information’s.

I. STATUS: - This field is used to show the status of the document. To present the status
graphical icons are used.
ICON INFO
Represents a Rejected document which requires user action (Document
with status R)
Represents a New Document which requires user action (Document with
status N)

10 Monitoring Tool for Argentina Web Service


Represents a Document with Contingency flag set (Can be processed
through contingency).
(Document with Status N and Contingency flag set to X)
Represents a Document Which is sent For AFIP Processing. (Document with
status I )
Represents a Approved Document or a document which is already processed
through contingency. (Document with status A or C)
Represents a document with validation errors. (Document with status E)

II. LOG: - This field shows whether a log is available for the document, if Log is available
then a user can see the log by clicking on the graphical icon.
ICON INFO
Represents LOG is available for the document

Represents No Error LOG is available

Please note, the ALV display is based on the default layout. It can be changed as per your need.

PART 2
The bottom part of the main screen shows the LOG details

 Initially it shows the running log for the current date and up to the current time.
 Once any action is performed on the screen, then it shows the information about that
particular action. For example, if ‘Set Contingency’ Action is performed on the screen,
then the LOG shows the documents that can be processed through contingency.

1.3:- Application toolbar of the monitoring tool

 REFRESH – It refreshes the main data and log that is currently being
displayed.

 CONTINGENCY – This button is used to set the contingency mode for the documents as
per company code and branch.

11 Monitoring Tool for Argentina Web Service


For Example, press the button. Selecting a document is not needed.

It shows a POP UP to confirm the action.

If YES, it shows a dialog box with unique combinations of company code and WS
applicable branches. Along with that it also shows the respective contingency branch.

If you want to set the contingency, select the combination and then press the
CONTINUE button, else press the CANCEL button to resume processing by without
setting the contingency.

IF CONTINUE, and then a POP UP will ask for the contingency reason.

12 Monitoring Tool for Argentina Web Service


After Entering the Contingency reason, press the continue button.

Then the documents corresponding to the company code and branch combination will be
set to contingency mode.

 It Updates Contingency Flag as ‘X’ and Contingency reason in the J_1ACAE table
 It inserts a record with the selected combination I.e. company code and branch in
J_1ACON table.

 RESET CONTINGENCY –

If you want to reset the contingency, then press button

For Example: Press the RESET CONTINGENCY MODE button

 First, it shows all the combinations (company code and branch), which are under
contingency.

13 Monitoring Tool for Argentina Web Service


 Select the Combinations for which you want to reset the contingency. Press the
Continue button. It resets the contingency mode of all the documents that belongs to
the selected company code and branch combination.
 It updates the contingency flag with space in j_1ACAE table.
 It deletes the entry from J_1ACON table.
 Details of the documents will be displayed in the LOG (bottom part of the main screen).

 PROCESS CONTINGENCY

This is used to Process the documents which are under contingency.

For Example: Here you have to select the documents with contingency flag set to X
Select the proper documents and press PROCESS CONTINGENCY Button

14 Monitoring Tool for Argentina Web Service


 Once it will be processed, the document will get updated with the reference
number in J_1ACAE table.
 Inserts the records into J_1A CONTINGENCY table.
 LOG will also be displayed.

 SEND TO AFIP

This button is used to process the document through AFIP.


Choose the documents that you want to process through AFIP and then press the ‘SEND
TO AFIP’ button.

15 Monitoring Tool for Argentina Web Service


Once the document will start processing, the LOG table will show the details of that
processing. To view further status, click on the respective button to view details.

 CHECK RFC CONNECTION

 This button is used to check current WS working status.

16 Monitoring Tool for Argentina Web Service


 Check the documents for which you want to test the WS status and press ‘Check RFC Connection
Button’.

If connection is not proper, the log will be filled with the respective error message

If connection is proper, the log will show a success message

 GET LAST ODN

 This button is used to get the last approved ODN for the combination of company code,
branch, and document class and print character from AFIP. After fetching the last
approved ODN from AFIP, it checks for the last updated ODN for the same combination
in J_1ACAE table.
If the Last Approved ODN from AFIP is same as the last ODN updated in J_1ACAE
for the same combination, then it just updates the LOG with the Last Approved
ODN.
 Once you click on Get last ODN button, a pop up box will be displayed as
below

17 Monitoring Tool for Argentina Web Service


 Enter the inputs for which you want to retrieve the last approved ODN
from AFIP and press continue.

 If all the inputs are proper, the LOG will be updated with the Last
approved ODN number.

If any inconsistency found then it updates the ODN Number in J_1ACAE table.
 Click on Get Last ODN button and Enter the selection combination for
which you want to retrieve the Last Approved ODN
 For Ex: - This type of scenarios occurs when there is a system failure or PI
Failure or there is a table updating problem. So in these types of cases

18 Monitoring Tool for Argentina Web Service


you can use this functionality to make sure that the ODN is consistent
between AFIP and ERP.

Click on continue. If there is any inconsistency in ODN, then it displays a


pop up box with the information’s as below

Press YES. Then it displays the document for which the ODN is missing.

19 Monitoring Tool for Argentina Web Service


Click on CONTINUE.

Now the document is updated with the ODN Number (Reference


number).

Note: - If there is any RFC lock or a document which is in process for a long time due to
downtime of AFIP or PI then GET LAST ODN functionality can be used to unlock the documents,
so that processing can continue with other documents of the same combination.

20 Monitoring Tool for Argentina Web Service


 Display/Archive

 This button is used to either display or archive XML file from AFIP.
 To display XML file for an approved document, select the document and then press
on Display/Archive button.

 If you want to save the XML file in Application server or Presentation server the click

on SAVE button.
21 Monitoring Tool for Argentina Web Service
 Make sure that in selection screen you have selected the path where you want to
save this XML file. If not, then it shows an information message as below.

 IF yes, then it saves the file in the particular file location.

 To save multiple files, select the documents and press on Display/Archive button.

 Press on YES.

22 Monitoring Tool for Argentina Web Service


 Link to Documents
On the monitoring tool, we have this feature which will traverse you to the invoice
details. To use this feature, just CLICK on the document number in ‘CAE ref’ column.

If it is a billing document, then it will take you to VF03 screen.


If it is FI document, then it will show you FB03 screen.

23 Monitoring Tool for Argentina Web Service

Вам также может понравиться