Application Development and Automation 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: 
Read only

regardng BAPI

Former Member
0 Likes
438

HI EXPERTS,

cud u plz tell me is der any BAPI existing for production order confirmation in production planning ,if yes plz send me how to use it with the parameters.

i wud be grateful to you.....

2 REPLIES 2
Read only

Former Member
0 Likes
412

Hi,

Bapi is 'BAPI_PRODORDCONF_CREATE_ACT'.

Functionality:

You use this method to enter pure activity confirmations for operations in production orders.

Activity confirmations are special, since they do not generally afffect the confirmation status. Only if the very first confirmation for an operation is an activity confirmation, does the operation receive the status "partially confirmed".

Notes:

INCLUDE BAPI_PRODORDCONF_HINT_COMMIT OBJECT DOKU ID TX

Authorization check:

The authorization object C_AFRU_AWK is checked together with the activity 01 (create) as well as the order type and plant of the production order to be confirmed.

Parameter:

PostWrongEntries

You use the PostWrongEntries parameter to control whether in an exception (incorrect data/ locked objects) the confirmations are accepted by the SAP system and placed in the pool of incorrect confirmations.

Exceptions for confirmations are logged in the DetailReturn parameter table.

The following characteristic values of the PostWrongEntries parameter are possible:

" ": Confirmations, in which no exception occurred, are posted. All the confirmations are not processed, they are not placed in the pool for incorrect confirmations.

"1": Confirmations, in which no exception occurred, are posted. All confirmations with incorrect data are placed in the pool for incorrect confirmations. On the other hand, confirmations that are not posted due a lock situation are not processed, they are not placed in the pool.

"2": Confirmations, in which no exception occurred, are posted. All confirmations with exceptions are placed in the pool.

Return:

If confirmations could not be processed, due to a serious error, you receive information about the error in the Return parameter.

Activities:

The data from the activity confirmation is copied to the Activities table.

DetailReturn

The DetailReturn table informs you for each confirmation to be entered, whether a confirmation could not be entered due to a lock conflict or which error occurred.

If the confirmation could be enterd successfully, the key of the confirmation is logged in the fields DetailReturn-Conf_No and DetailReturn-Conf_Cnt.

In the case of a lock conflict, the DetailReturn-Flg_Locked indicator is set.

If the data is found to be incorrect, a corresponding error message is written in the relevant

Read only

Former Member
0 Likes
412

Hi,,

You can use

<b>"BAPI_PRODORDCONF_CREATE_HDR".</b>

rewards if useful,

regards,

nazeer