How to generate vouchers by document type in SAP system voucher interface

By establishing a voucher interface and a self-built table in the SAP system, and using the ABAP language development program to implement the voucher generation function, the real-time voucher generation problem between the SAP system and peripheral subsystems is solved, the error rate and operation difficulty are reduced, and the accuracy of voucher data is improved. Real time and consistency.

CN118570005BActive Publication Date: 2024-10-18YUNNAN TIN INDIUM LAB CO LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410918032.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-10-18
Estimated Expiration
2044-07-10

AI Technical Summary

Technical Problem

The existing SAP system cannot generate vouchers in real time with peripheral subsystems, and cannot automatically generate vouchers based on business types or manually intervene to generate vouchers, resulting in incomplete information transfer and high error rates.

Method used

By establishing a voucher interface in the SAP system, create a self-built table of document type and a self-built table of business type, use ABAP language to develop a program to realize the voucher generation function, automatically or manually generate vouchers according to the document type, and perform data display and reversal processing at the front desk. , ensuring real-time integration and accuracy of data.

Benefits of technology

Most document types realize automatic generation of vouchers, reducing manual workload and error rate, reducing user operation difficulty, achieving real-time generation and consistency of voucher data, and improving the real-time nature of business analysis data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570005B_ABST
    Figure CN118570005B_ABST
Patent Text Reader

Abstract

The method for generating vouchers by document type in the voucher interface of the SAP system belongs to the field of information management technology. Establish a voucher interface between SAP and a peripheral subsystem; create an interface field in SAP, and compare the interface field with the peripheral subsystem; create a self-built table of document type in SAP; create a self-built table of business type and business purpose in SAP; create a self-built table of interface log in SAP; use the ABAP language of the SAP system to develop a program for generating vouchers, call the information transmitted by the peripheral subsystem to call the voucher BAPI function of SAP according to the document type, configure the document type that automatically generates the voucher in the table, and on the premise that there is no error in the data transmitted by the interface, the SAP system generates the voucher in real time after receiving the data; for the document type that requires manual intervention, the voucher is automatically generated after the user manually intervenes based on the data transmitted by the interface. The present invention reduces the user's operating difficulty, reduces the error rate of vouchers, and reduces the problems such as data inconsistency caused by repeated data entry by users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of information management, and in particular relates to a method for a SAP system voucher interface to generate vouchers according to document types. Background Art

[0002] In the field of enterprise information management, the SAP system interface is of great significance. It serves as a bridge between the SAP system and other peripheral systems to prevent information islands in enterprise information management. With the continuous deepening of informatization, more and more peripheral business subsystems are involved, transmitting the main information to the SAP system. The SAP system is mainly responsible for the overall operation and management of the enterprise. In the field of financial informatization, different business functions are gradually managed by different business systems, and the SAP system interface becomes a bridge between various systems and the SAP system.

[0003] At present, SAP systems basically use interfaces that directly generate vouchers based on business sub-data. As business needs continue to change, the business data based on the financial subsystem cannot automatically generate vouchers or generate vouchers through manual intervention. A new method is needed to solve the problem of automatically generating vouchers through interface data and manually generating vouchers in SAP through the transmitted information when the interface data information is incomplete. Summary of the invention

[0004] The purpose of the present invention is to provide a method for generating vouchers according to document types through a SAP system voucher interface, so as to realize the voucher integration function of various peripheral business systems and the SAP system, so that some business functions are realized in professional subsystems, and SAP can integrate core operation management information, thereby solving the problems that the existing SAP system cannot realize real-time functions with the financial vouchers of various peripheral subsystems and cannot realize automatic generation of vouchers or manual intervention in generating vouchers according to business type needs.

[0005] To achieve the above object, the present invention provides the following technical solutions:

[0006] The SAP system voucher interface generates vouchers according to document type. The steps are as follows:

[0007] Step 1: Establish the credential interface between SAP and the external subsystem;

[0008] Step 2: Create interface fields in SAP and compare the interface fields with those of the peripheral subsystems;

[0009] Step 3: Create a self-built table of document types in SAP to determine whether the document type generates vouchers automatically or manually;

[0010] Step 4: Create a self-built table of business type and business purpose in SAP to match business type with account, cash flow code, accounting code, special general ledger identifier, and tax code;

[0011] Step 5: Create a self-built table for interface logs in SAP. The document type data of automatically generated vouchers is stored in the self-built table for automatically generated vouchers, and the document type data of vouchers that require manual intervention are stored in the self-built table for manually generated vouchers.

[0012] Step 6: Use the SAP system ABAP language to develop a program for generating vouchers. Call the information transmitted by the peripheral subsystem to call the SAP voucher BAPI function according to the document type. Configure the document type that automatically generates vouchers in the table. On the premise that there are no errors in the data transmitted by the interface, the SAP system generates vouchers in real time after receiving the data. For document types that require manual intervention, the vouchers are automatically generated after the user manually intervenes based on the data transmitted by the interface.

[0013] Step 7: Use the SAP system ABAP language to develop a program to automatically return the voucher number, company code and annual information of the automatically generated voucher to the peripheral subsystem; if the voucher is generated manually, it will be automatically returned to the peripheral subsystem after manual intervention;

[0014] Step 8: Use the SAP system ABAP language to develop a program and display data in the foreground to query interface data problems. For automatic types of ungenerated vouchers, you can query problems, which is convenient for users to query data errors, so that data can be further transmitted after the peripheral subsystem modifies the data;

[0015] Step 9: Use the SAP system ABAP language to develop a program to develop the manual intervention voucher generation function. The finance staff will enter the unit's personalized auxiliary item information to generate vouchers based on the data transmitted by the interface in the developed interface, and the manual intervention vouchers will be automatically returned to the corresponding peripheral subsystem;

[0016] Step 10: Establish a bank statement interface between SAP and the capital system, and associate each bank statement with the document type;

[0017] Step 11: Use the SAP system ABAP language to develop a payment claim program, determine the document types that need to be claimed by business personnel, and for documents that need to be claimed by business personnel, generate a claim form by claiming the flow, and the financial personnel click posting to automatically generate a voucher, and the voucher information is returned to the peripheral subsystem.

[0018] Furthermore, for document types that automatically generate vouchers, if the interface data reports an error, the original document can continue to generate vouchers after the business subsystem reprocesses the data and sends it, thereby realizing automatic reprocessing of vouchers; for document types that manually generate vouchers, data can be transmitted repeatedly before the voucher is generated, and after the voucher is generated, only the reverse process mechanism of cancellation can be used.

[0019] Furthermore, documents are deduplicated based on the document number. If a voucher has been generated by the document number in the SAP system, an error will be reported when the business subsystem transmits it again. The same document will not generate a voucher repeatedly, thus achieving business document deduplication. For vouchers manually generated by bank statement claiming, data deduplication is performed based on the company code, bank statement, and local account number. Before the business claims the document number, the statement can be overwritten and transmitted. After the business claims it, an error will be reported if the same statement is transmitted, thus achieving deduplication based on the unique primary key of the statement.

[0020] Furthermore, when the original subsystem is used to offset the voucher, if an error has been generated in the voucher, the business subsystem is used to trigger the offset, and the SAP system's offset BAPI is called to offset the original voucher. After the original voucher is offset, the original data is deleted from the custom base table; after the original document is corrected, the data can be retransmitted from the business subsystem to SAP to generate an accounting voucher; for the method of claiming according to bank statements, there is an offset mechanism after the voucher is generated, and there is also a mechanism for canceling the claimed document, forming a smooth flow process in both the forward and reverse directions.

[0021] The present invention has the following beneficial effects:

[0022] 1. Most of the document types in the present invention adopt the method of automatically generating vouchers, and only a small number of them adopt the method of manually generating vouchers, which reduces a lot of manual voucher workload and reduces the error rate of voucher entry;

[0023] 2. Since a large number of voucher fields in the SAP system need to be memorized, errors are prone to occur when there are too many auxiliary accounting fields in the accounting voucher. The implementation of the present invention greatly reduces the user's operating difficulty and reduces the voucher error rate;

[0024] 3. The present invention adopts the method of integration with the business data source subsystem, which reduces the problems of data inconsistency caused by frequent data entry and repeated data entry by users;

[0025] 4. Most of the voucher fields of the present invention are implemented by using the configuration table reference relationship, and some fields are automatically defaulted, which reduces the error rate of manual entry;

[0026] 5. The present invention adopts a method of real-time integration of business subsystem data, and most of the data is generated in real time, so that SAP's business analysis data can be generated in real time. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 A flow chart for the development of the present invention;

[0028] Figure 2 It is the voucher document type configuration table of the present invention;

[0029] Figure 3 A table for comparing the business purpose and subject, cash flow code, tax code, special general ledger identifier, etc. of the custom business type of the present invention;

[0030] Figure 4 It is the log table of the custom voucher header interface of the present invention;

[0031] Figure 5 It is the custom voucher line item interface log table of the present invention;

[0032] Figure 6 It is the custom automatic voucher header log table of the present invention;

[0033] Figure 7 The customized automatic voucher line item log table of the present invention;

[0034] Figure 8 It is the custom manual voucher header log table of the present invention;

[0035] Fig. 9 The customized manual voucher line item log table of the present invention;

[0036] Fig.10 It is the front display entrance of the present invention;

[0037] Fig.11 It is the automatic voucher front-end display interface of the present invention;

[0038] Fig.12 For the present invention, a row of voucher detail data diagram can be double-clicked;

[0039] Fig.13 It is the manual voucher front-end display interface of the present invention;

[0040] Fig.14 It is the manual voucher front-end operation interface of the present invention;

[0041] Fig.15 This is the bank flow interface log table of the present invention;

[0042] Fig.16 It is the bank statement front desk display entrance of the present invention;

[0043] Fig.17 It is the bank statement front-end display interface of the present invention;

[0044] Fig.18It is a front-end display entrance for claiming payment based on bank flow business of the present invention;

[0045] Fig.19 It is a front-end display interface for claiming payment based on bank transaction business of the present invention;

[0046] Fig. 20 It is the bank transaction business collection and claiming operation interface of the present invention;

[0047] Fig.21 It is the financial posting interface of the claim form after the business claim of the present invention;

[0048] Fig. 22 It is the query interface after the financial posting based on the claim document of the present invention;

[0049] Fig.23 The credential interface field information of the present invention;

[0050] Fig.24 This is the flow interface field information of the present invention. DETAILED DESCRIPTION

[0051] In order to make the purpose and technical solution of the present invention clearly and completely described, and the advantages more clearly understood, the embodiments of the present invention are further described in detail with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are part of the embodiments of the present invention, rather than all of the embodiments, and are only used to explain the embodiments of the present invention, and are not used to limit the embodiments of the present invention. All other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0052] The SAP system voucher interface generates vouchers according to document type. The steps are as follows:

[0053] Step 1: Establish the credential interface between SAP and the external subsystem;

[0054] Step 2: Create interface fields in SAP and compare the interface fields with those of the peripheral subsystems;

[0055] Step 3: Create a self-built table of document types in SAP to determine whether the document type generates vouchers automatically or requires manual generation of vouchers (manual intervention);

[0056] Step 4: Create a self-built table of business type and business purpose in SAP to match business type with account, cash flow code, accounting code, special general ledger identifier, and tax code;

[0057] Step 5: Create a self-built table for interface log in SAP (divided into automatic and manual). The document type data of automatically generated vouchers is stored in the self-built table for automatically generated vouchers (divided into header and line item self-built tables). The document type data that requires manual intervention to generate vouchers is stored in the self-built table for manually generated vouchers (divided into header and line item self-built tables).

[0058] Step 6: Use the SAP system ABAP language to develop a program for generating vouchers. Call the information transmitted by the peripheral subsystem to call the SAP voucher BAPI function according to the document type. Configure the document type that automatically generates vouchers in the table. On the premise that there are no errors in the data transmitted by the interface, the SAP system generates vouchers in real time after receiving the data. For document types that require manual intervention, the vouchers are automatically generated after the user manually intervenes based on the data transmitted by the interface.

[0059] Step 7: Use the SAP system ABAP language to develop a program to automatically return the voucher number, company code and annual information of the automatically generated voucher to the peripheral subsystem; if the voucher is generated manually, it will be automatically returned to the peripheral subsystem after manual intervention;

[0060] Step 8: Use the SAP system ABAP language to develop a program and display data in the foreground to query interface data problems. For automatic types of ungenerated vouchers, you can query problems, which is convenient for users to query data errors, so that data can be further transmitted after the peripheral subsystem modifies the data;

[0061] Step 9: Use the SAP system ABAP language to develop a program to develop the manual intervention voucher generation function. The finance staff will enter the unit's personalized auxiliary item information to generate vouchers based on the data transmitted by the interface in the developed interface, and the manual intervention vouchers will be automatically returned to the corresponding peripheral subsystem;

[0062] Step 10: Establish a bank statement interface between SAP and the capital system, and associate each bank statement with the document type;

[0063] Step 11: Use the SAP system ABAP language to develop a payment claim program, determine the document types that need to be claimed by business personnel, and for documents that need to be claimed by business personnel, generate a claim form by claiming the flow, and the financial personnel click posting to automatically generate a voucher, and the voucher information is returned to the peripheral subsystem.

[0064] The present invention utilizes SAP's ABAP and BAPI technologies to realize the functions of automatic and manual voucher generation through the voucher interface (at present, the capital system and expense reimbursement system integrate vouchers with strong versatility. In the future, this function can be directly called in non-ferrous metal enterprises, and the group can directly call new business subsystems). Documents are deduplicated based on the document number. If a voucher has been generated by the document number in the SAP system, an error will be reported when the business subsystem transmits it again. The same document will not be generated repeatedly, thus achieving business document deduplication. For document types that automatically generate vouchers, if the interface data reports an error, the original document can continue to generate vouchers after the business subsystem reprocesses the data and sends it, thus achieving automatic voucher reprocessing. For document types that manually generate vouchers, data can be transmitted repeatedly before the voucher is generated. Users can fill in some auxiliary fields and then automatically generate vouchers, which are automatically returned to the business subsystem. For vouchers manually generated by bank statement claiming, data deduplication is performed based on company code, bank statement, and local account number. Before the business claims the document number, the statement can be overwritten and transmitted. After the business claims it, an error will be reported if the same statement is transmitted, thus achieving deduplication based on the unique primary key of the statement.

[0065] When the present invention uses the original subsystem to offset the voucher, if the generated voucher is wrong, the business subsystem is used to trigger the offset, and the offset BAPI of the SAP system is called to offset the original voucher. After the original voucher is offset, the original data is deleted in the custom base table; after the original document is corrected, the data can be retransmitted from the business subsystem to SAP to generate an accounting voucher; for the method of claiming according to the bank flow, there is an offset mechanism after the voucher is generated, and there is also a mechanism for canceling the claimed document, forming a process that can flow smoothly in both the forward and reverse directions.

[0066] The present invention automatically matches subjects and cash flow codes according to business types, automatically matches accounting codes according to transmitted debit and credit identifiers, automatically matches bank subjects according to transmitted bank accounts, automatically matches tax codes according to tax subjects, and automatically matches special general ledger identifiers; since there are too many auxiliary items in the voucher, it is unrealistic for the business subsystem to transmit all auxiliary fields. According to the voucher document type with fewer auxiliary items, the voucher is automatically generated, and the voucher is manually generated according to the voucher document type with more auxiliary items. It is automatically confirmed whether the voucher is automatically generated or manually generated according to the document type; in order to form a closed loop of forward and reverse vouchers, if the data transmitted by the original system is wrong, the function of voucher cancellation is triggered from the original business system.

[0067] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any minor modifications, equivalent substitutions and improvements made to the above embodiments based on the technical essence of the present invention should be included in the protection scope of the technical solution of the present invention.

Claims

1. The method for generating vouchers by document type in the SAP system voucher interface is characterized in that: Here are the steps: Step 1: Establish the credential interface between SAP and the external subsystem; Step 2: Create interface fields in SAP and compare the interface fields with those of the peripheral subsystems; Step 3: Create a self-built table of document types in SAP to determine whether the document type generates vouchers automatically or manually; Step 4: Create a self-built table of business type and business purpose in SAP to match business type with account, cash flow code, accounting code, special general ledger identifier, and tax code; Step 5: Create a self-built table for interface logs in SAP. The document type data of automatically generated vouchers is stored in the self-built table for automatically generated vouchers, and the document type data of vouchers that require manual intervention are stored in the self-built table for manually generated vouchers. Step 6: Use the SAP system ABAP language to develop a program for generating vouchers. Call the information transmitted by the peripheral subsystem to call the SAP voucher BAPI function according to the document type. Configure the document type that automatically generates vouchers in the table. On the premise that there are no errors in the data transmitted by the interface, the SAP system generates vouchers in real time after receiving the data. For document types that require manual intervention, the vouchers are automatically generated after the user manually intervenes based on the data transmitted by the interface. Step 7: Use the SAP system ABAP language to develop a program to automatically return the voucher number, company code and annual information of the automatically generated voucher to the peripheral subsystem; if the voucher is generated manually, it will be automatically returned to the peripheral subsystem after manual intervention; Step 8: Use the SAP system ABAP language to develop a program and display data in the foreground to query interface data problems and query the problem of automatic type vouchers not being generated, so that users can query data errors and further transfer data after the data is modified in the peripheral subsystem; Step 9: Use the SAP system ABAP language to develop a program and develop the manual intervention voucher generation function. The finance staff will generate vouchers by entering the unit's personalized auxiliary item information based on the data transmitted by the interface in the developed interface. The manually intervened vouchers will be automatically returned to the corresponding peripheral subsystem. Step 10: Establish a bank statement interface between SAP and the capital system, and associate each bank statement with the document type; Step 11: Use the SAP system ABAP language to develop a payment claim program, determine the document types that need to be claimed by business personnel, and for documents that need to be claimed by business personnel, generate a claim form by claiming the flow, and the financial personnel click posting to automatically generate a voucher, and the voucher information is returned to the peripheral subsystem.

2. The method for generating vouchers by document type using a SAP system voucher interface according to claim 1, characterized in that: In step 6, for document types that automatically generate vouchers, if the interface data reports an error, the original document can continue to generate vouchers after the business subsystem reprocesses the data and sends it, thereby realizing automatic reprocessing of vouchers; for document types that manually generate vouchers, before the voucher is generated, the data is transmitted repeatedly, and the voucher is automatically generated after the user fills in some auxiliary fields, and the voucher is automatically returned to the business subsystem.

3. The method for generating vouchers by document type using a SAP system voucher interface according to claim 2, characterized in that: In step 6, documents are deduplicated based on the document number. If the document number has been generated as a voucher in the SAP system, an error will be reported when the business subsystem transmits it again. The same document will not generate a voucher repeatedly, thus achieving business document deduplication. For vouchers manually generated by bank statement claiming, data deduplication is performed based on the company code, bank statement, and local account number. Before the business claims the document number, the statement is overwritten and transmitted. After the business claims it, an error will be reported if the same statement is transmitted, thus achieving deduplication based on the unique primary key of the statement.

4. The method for generating vouchers by document type using a SAP system voucher interface according to claim 1, 2 or 3, characterized in that: In step 7, when the original subsystem is used to offset the voucher, if the generated voucher is wrong, the offset is triggered from the business subsystem, and the offset BAPI of the SAP system is called to offset the original voucher. After the original voucher is offset, the original data is deleted from the custom base table; after the original document is corrected, the data can be retransmitted from the business subsystem to SAP to generate an accounting voucher; for the method of claiming according to bank statements, there is an offset mechanism after the voucher is generated, and there is also a mechanism for canceling the claimed document, forming a smooth flow process in both the forward and reverse directions.

Citation Information

Patent Citations

  • Method for realizing data transmission between system applications and products in data processing (SAP) system and business to business (B2B) system

    CN102098287A

  • SAP platform based data display method and system

    CN105404499A

  • Method for automatically generating accounting document by SAP system interface without accounting code

    CN111381984A

  • Certificate generation method and device for business data and storage medium

    CN115409012A