2007 Jan 04 3:45 AM
Hi all,
I have a problem in the bapi for kb31n , I made a program used the bapi "API_ACC_STAT_KEY_FIG_POST" . But Same times , the program didn't work succeed. When I debug this program , Everything is succeed.
How to do this?
thanks in advance.
bob
2007 Jan 04 1:25 PM
Hi Smith,
Please, Go thru the Documentation of the BAPI and check all fields are correctly filled or not once again. It will helps you to fix problem.
<b>FU BAPI_ACC_STAT_KEY_FIG_POST</b>
____________________________________________________
Short Text
Accounting: Post Statistical Key Figures
<b>Functionality</b>
This method posts a document with statistical key figures.
The DOC_HEADER structure contains the document header data. The CO_AREA field must contain the controlling area in which you are to post. For an external number range, the DOC_NO field is specified for the document number.
The fields DOCDATE (document date) and POSTGDATE (posting date) are optional. For empty fields, the system enters the current date. The OBJ_KEY enables you to specify the number and organization of a reference document (each with 10 characters ). The OBJ_TYPE type field is defined for the object type of the reference document of the sending system.
<b>You should only fill the LOGSYSTEM field if this document belongs to an external system. You can enter a document header text in the DOC_HDR_TX field. If a suitable screen variant exists, you can archive it in the VARIANT field. It only makes sense to fill the VERSION field if you are posting to a business process</b>. This is because if Activity-Based Costing is active as a parallel accounting system, you must specify a delta version. Otherwise you may only post in version 0, which is also set as the default.
The USERNAME field is a required field.
The document item data is transferred to the DOC_ITEMS table. This consists of:
Field name Description Optional
-
STATKEYFIG Statistical key figure
STAT_QTY Statistical quantity
PERS_NO Personnel number X
SEG_TEXT Segment text X
REC_CCTR Receiver cost center
ACTVTYTYPE Activity type
RECEIV_ORD Receiver order
REC_WBS_EL Work breakdown structure element (WBS element)
RECSALEORD Receiver sales order
RECITEM Item number in the receiver sales order
RECCOSTOBJ Receiver cost object
RECBUSPROC Receiver business process
REC_NETWRK Receiver network
RECOPERATN Receiver network activity
RRE_COMP_CODE Company code of the receiving real estate object
RRE_BUS_ENT Receiver business entity - Real Estate
RRE_PROPERTY Receiver property - Real Estate
RRE_BUILDING Receiver building - Real Estate
RRE_RENT_UNIT Receiver rental unit - Real Estate
RRE_LEAS Receiver lease - Real Estate
RRE_MGMT_CON Receiver management contract
RRE_INC_EXP Receiver service charge key - Real Estate
RRE_SETT_UNIT Receiver settlement unit - Real Estate
RRE_REF_DATE Receiver reference date for settlement - Real Estate
RRE_CON_NO Receiver contract - Real Estate
REC_FUND Receiver fund
REC_FUNCTION Receiver functional area
REC_GRANT Receiver grant
The SRE_* fields are for sender real estate objects are obsolete and are not used.
The system displays the collected messages in the MESSAGES structure. With a successful posting, the system archives the document number in the DOC_NO parameter.
Parameters
DOC_HEADER
IGNORE_WARNINGS
DOC_NO
DOC_ITEMS
RETURN
CUSTOMER_FIELDS
Regards,
Arjun
Reward point if it helps
Hi all,
I have a problem in the bapi for kb31n , I made a program used the bapi "API_ACC_STAT_KEY_FIG_POST" . But Same times , the program didn't work succeed. When I debug this program , Everything is succeed.
How to do this?
thanks in advance.
bob
2007 Jan 04 1:25 PM
Hi Smith,
Please, Go thru the Documentation of the BAPI and check all fields are correctly filled or not once again. It will helps you to fix problem.
<b>FU BAPI_ACC_STAT_KEY_FIG_POST</b>
____________________________________________________
Short Text
Accounting: Post Statistical Key Figures
<b>Functionality</b>
This method posts a document with statistical key figures.
The DOC_HEADER structure contains the document header data. The CO_AREA field must contain the controlling area in which you are to post. For an external number range, the DOC_NO field is specified for the document number.
The fields DOCDATE (document date) and POSTGDATE (posting date) are optional. For empty fields, the system enters the current date. The OBJ_KEY enables you to specify the number and organization of a reference document (each with 10 characters ). The OBJ_TYPE type field is defined for the object type of the reference document of the sending system.
<b>You should only fill the LOGSYSTEM field if this document belongs to an external system. You can enter a document header text in the DOC_HDR_TX field. If a suitable screen variant exists, you can archive it in the VARIANT field. It only makes sense to fill the VERSION field if you are posting to a business process</b>. This is because if Activity-Based Costing is active as a parallel accounting system, you must specify a delta version. Otherwise you may only post in version 0, which is also set as the default.
The USERNAME field is a required field.
The document item data is transferred to the DOC_ITEMS table. This consists of:
Field name Description Optional
-
STATKEYFIG Statistical key figure
STAT_QTY Statistical quantity
PERS_NO Personnel number X
SEG_TEXT Segment text X
REC_CCTR Receiver cost center
ACTVTYTYPE Activity type
RECEIV_ORD Receiver order
REC_WBS_EL Work breakdown structure element (WBS element)
RECSALEORD Receiver sales order
RECITEM Item number in the receiver sales order
RECCOSTOBJ Receiver cost object
RECBUSPROC Receiver business process
REC_NETWRK Receiver network
RECOPERATN Receiver network activity
RRE_COMP_CODE Company code of the receiving real estate object
RRE_BUS_ENT Receiver business entity - Real Estate
RRE_PROPERTY Receiver property - Real Estate
RRE_BUILDING Receiver building - Real Estate
RRE_RENT_UNIT Receiver rental unit - Real Estate
RRE_LEAS Receiver lease - Real Estate
RRE_MGMT_CON Receiver management contract
RRE_INC_EXP Receiver service charge key - Real Estate
RRE_SETT_UNIT Receiver settlement unit - Real Estate
RRE_REF_DATE Receiver reference date for settlement - Real Estate
RRE_CON_NO Receiver contract - Real Estate
REC_FUND Receiver fund
REC_FUNCTION Receiver functional area
REC_GRANT Receiver grant
The SRE_* fields are for sender real estate objects are obsolete and are not used.
The system displays the collected messages in the MESSAGES structure. With a successful posting, the system archives the document number in the DOC_NO parameter.
Parameters
DOC_HEADER
IGNORE_WARNINGS
DOC_NO
DOC_ITEMS
RETURN
CUSTOMER_FIELDS
Regards,
Arjun
Reward point if it helps
2007 Jan 05 5:38 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |