Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

what is the use of the following BAPI ?

Former Member
0 Kudos

Please tell me the functionality of the following BAPI : BAPI_CTRACDOCUMENT_CHANGE

Regards,

Sai

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Short Text

BAPI: FI-CA Change Document

Functionality

You can change docuements with this method. Only changes to business partner items are permitted. See the interfaces for the changeable fields. You can create or delete locks on the items.

Parameters

DOCUMENTNUMBER

DOCUMENTHEADER

DOCUMENTHEADERX

RETURN

PARTNERPOSITIONS

PARTNERPOSITIONSX

REPETITIONPOSITIONS

REPETITIONPOSITIONSX

POSITIONLOCKS

EXTENSIONIN

Document Number

Number of the document that is to be changed.

BAPI: Change Structure for Document Header

Document header - modifiable fields

BAPI: Change Structure for Document Header

Select the fields changed in the parameter DocumentHeader.

Retunr : Confirmations

A method return code. The method was successful if the parameters do not contain a message code.

Value range

The most important messages are as follows:

A B1 500 Error during ISO conversion

E >BAPI 005 006 Formal error in document data

E >BAPI 009 Formal error in lock data

E >0 >4 Incorrect data for document

Partner Positions : Line items (open items)

Items of a document - modifiable fields.

Partner Positionsx : Changes to open items

Mark the fields that were changed in the "PartnerPositions" parameter. The link is realized by the 'LINE_NUMBER' field.

Repitition Positions : Line items (repetition specifications)

Repetition specifications for statistical line items for contract accounts - changeable fields.

Repitition Positionsx : Changes to repetition specfications

Here you must mark all the fields that were changed in parameter 'RepetitionsPositios'. The link is realized by the 'LINE_NUMBER' field.

Position Locks : Locks on open items

Process blocks for contract account items.

Existing blocks cannot be changed. You can only create new blocks, (PROCESSING_MODE '01') or delete existing ones (PROCESSING_MODE '04'). If you delete blocks, all blocks for the selected line items, (REP_ITEM, ITEM, SUB_ITEM) and the process IDs (PROCESS_ID) corresponding to the fields LOCKR (Blockin Reason), FDATE (From Date) and TDATE (To Date) are deleted. If, for example, only the field LOCKR had an entry, all blocks that have this blocking reason are deleted.

Extensionin : Customer Enhancements

Parameters for transferring customer-defined data. This data is automatically transferred to the customer-defined enhancements to SAP tables as part of the 'BAPI Table Extensions'.

Value range

The following BAPI table extensions exist:

BAPI_TE_DFKKOPCH for structure DFKKOP

Parameter PARTNERPOSITIONS must contain one line that displays the same LINE_NUMBER and identifies the open item.

BAPI_TE_DFKKOPCHX - Checklist for BAPI_TE_DFKKOPCH

This extension must contain the fields with the same name (type C(1)). The fields that were changed in the structure BAPI_TE_DFKKOPCH must be highlighted.

For more information, see the documentation for structure BAPIPAREX.

Regards,

Padmam.

3 REPLIES 3

Former Member
0 Kudos

Hi,

Which version r u using? If u r using ECC 6 then i can't help u. But in previous version, this BAPI does not exist.

Regards

Srimanta

Former Member
0 Kudos

hi Sai,

useing BAPI_CTRACDOCUMENT_CHANGE is used for change docuements with this method. Only changes to business partner items are permitted. See the interfaces for the changeable fields. You can create or delete locks on the items.

reward is usefull.

thanks.

patil

Former Member
0 Kudos

Hi,

Short Text

BAPI: FI-CA Change Document

Functionality

You can change docuements with this method. Only changes to business partner items are permitted. See the interfaces for the changeable fields. You can create or delete locks on the items.

Parameters

DOCUMENTNUMBER

DOCUMENTHEADER

DOCUMENTHEADERX

RETURN

PARTNERPOSITIONS

PARTNERPOSITIONSX

REPETITIONPOSITIONS

REPETITIONPOSITIONSX

POSITIONLOCKS

EXTENSIONIN

Document Number

Number of the document that is to be changed.

BAPI: Change Structure for Document Header

Document header - modifiable fields

BAPI: Change Structure for Document Header

Select the fields changed in the parameter DocumentHeader.

Retunr : Confirmations

A method return code. The method was successful if the parameters do not contain a message code.

Value range

The most important messages are as follows:

A B1 500 Error during ISO conversion

E >BAPI 005 006 Formal error in document data

E >BAPI 009 Formal error in lock data

E >0 >4 Incorrect data for document

Partner Positions : Line items (open items)

Items of a document - modifiable fields.

Partner Positionsx : Changes to open items

Mark the fields that were changed in the "PartnerPositions" parameter. The link is realized by the 'LINE_NUMBER' field.

Repitition Positions : Line items (repetition specifications)

Repetition specifications for statistical line items for contract accounts - changeable fields.

Repitition Positionsx : Changes to repetition specfications

Here you must mark all the fields that were changed in parameter 'RepetitionsPositios'. The link is realized by the 'LINE_NUMBER' field.

Position Locks : Locks on open items

Process blocks for contract account items.

Existing blocks cannot be changed. You can only create new blocks, (PROCESSING_MODE '01') or delete existing ones (PROCESSING_MODE '04'). If you delete blocks, all blocks for the selected line items, (REP_ITEM, ITEM, SUB_ITEM) and the process IDs (PROCESS_ID) corresponding to the fields LOCKR (Blockin Reason), FDATE (From Date) and TDATE (To Date) are deleted. If, for example, only the field LOCKR had an entry, all blocks that have this blocking reason are deleted.

Extensionin : Customer Enhancements

Parameters for transferring customer-defined data. This data is automatically transferred to the customer-defined enhancements to SAP tables as part of the 'BAPI Table Extensions'.

Value range

The following BAPI table extensions exist:

BAPI_TE_DFKKOPCH for structure DFKKOP

Parameter PARTNERPOSITIONS must contain one line that displays the same LINE_NUMBER and identifies the open item.

BAPI_TE_DFKKOPCHX - Checklist for BAPI_TE_DFKKOPCH

This extension must contain the fields with the same name (type C(1)). The fields that were changed in the structure BAPI_TE_DFKKOPCH must be highlighted.

For more information, see the documentation for structure BAPIPAREX.

Regards,

Padmam.