cancel
Showing results for 
Search instead for 
Did you mean: 

Issues in BAPI_PROCORDCONF_CREATE_TT

Former Member
0 Kudos

Hi Experts,

I am facing few problems during executing BAPI_PROCORDCONF_CREATE_TT    

My Scenario is I had set Auto GI and Auto Gr for Process Order Confirmation,

While confirming through COR6,while entering yield , activity Quantities are calculated automatically which I don't want to Change and while Saving , material doc No gets updated in AUFNR as WABLNR and activities are also shown

But While running BAPI,  I am entering Order No, Yield qty, Phase No and Posting date ( I enter only these fields in COR6)  and executing the same, Order gets Saved and GR has been done.

Problem is when I go to AFRU,  for the respective confirmation , Activities field and WABLNR is not updated, Please guide me where am I missing...

Regards

Rajasekar.S

Accepted Solutions (1)

Accepted Solutions (1)

dejoy
Active Contributor
0 Kudos

Hello,

Have you used COMMIT WORK after this BAPI  execution?

Regards,

Former Member
0 Kudos

HI,

yes I did COMMIT,

after that only Goods movement was done , but AFRU_WABLNR not updated for that confirmation and activity fields not updated.

Regards

Rajasekar.S

Former Member
0 Kudos

Hi Rajasekar,

Use below two BAPI to confirmation

BAPI_PRODORDCONF_GET_TT_PROP   - It will be used to propose the quantity

BAPI_PRODORDCONF_CREATE_TT - It will be used to confirm order

First you have to use BAPI_PRODORDCONF_GET_TT_PROP to get activity values and then pass the values in BAPI_PRODORDCONF_CREATE_TT to confirm the order.

Note: If you want to do partial confirmation then in BAPI (BAPI_PRODORDCONF_GET_TT_PROP ) dont select the quantity (X).

Regards / US

Former Member
0 Kudos

Hi Uma Shankar,

I am trying BAPI for the first time... Hence my doubt may look silly...

To get activity values in BAPI_PRODORDCONF_GET_TT_PROP , I need to input in Time tickets  manually for activity .

Rather i can enter activity values in BAPI_PRODORDCONF_CREATE_TT directly and execute....

whether system will consider activity values based on yield qty directly , bcos I am not entering Plant, Location and Other details in BAPI_PRODORDCONF_CREATE_TT , but it picks up and showing in CORT except for activity quantities.

When I confirm directly in COR6, when I enter yield, activity qtys get adjusted based on yield qty.

Correct if I am wrong.

Former Member
0 Kudos

Hi Rajasekar,

The advantage of entering data in BAPI_PRODORDCONF_GET_TT_PROP is by entering

order no,

yield qty,

operation no ,

Based on yield quantity activity will be calculated automatically and same data can be passed to

BAPI_PRODORDCONF_CREATE_TT with abap program.

If you are entering data in BAPI_PRODORDCONF_CREATE_TT every time we need to caluclate.

Activity time .

Regards

Anand

Former Member
0 Kudos

Hi Anand,

Thanks a lot for the input, this is working and it solved my Problem No 1.

But still my 2nd Problem, which is WABLNR not getting updated in AFRU table after

executing BAPI_PRODORDCONF_CREATE_TT .

But Material doc no updated in MSEG table, but not in AFRU.

Please help me.

Regards

Rajasekar.S

Former Member
0 Kudos

Hi experts,

Please help me to solve this issue.

Regards

Rajasekar

Former Member
0 Kudos

Hi Rajeshekar,

We also try same bapi and WABLNR was found not updating .Now we have used bdc for confirmation .

Regards

Anand

Former Member
0 Kudos

Hi anand,

Thanks for reply.... But I have a doubt in BDC. while recording , still we  need to enter activity quantities manually. It is not Proposing quantities automatically based on yield qty...

Is there any other way or my understanding is wrong.

Regards

Rajasekar.

Former Member
0 Kudos

Hi Rajasekar,

In configuration against the order type select the check box 'Propose'

Path:

SPRO - PROD - SFC - OPERATION - CONFIRMATION - DEFINE CONFIRMATION PARAMETER

Former Member
0 Kudos

Hi Uma Shankar,

This is already done and it is proposing automatically for COR6N, but not for BDC recording

regards

Rajasekar.S

But still I am happy if BAPI_PROCORDCONF_CREATE_TT updates WABLNR in AFRU table.

Please suggest me if you have a solution for this.

regards

Rajasekar.

Former Member

Hi Experts,

I am closing this thread as I got answer from SAP Global support.

Please find the answer given by them

For your issue, please see the reply to question 11 in Note 540392 as

attached.

11.

Question:

Despite successful goods movements, the material document is not

updated in the field AFRU-WABLNR.

Where do I find the document number?

Answer:

As of Release 3.1H, the system provides the reference from

confirmation to material document via table AFWI.

The system still uses AFRU-WABLNR only for header confirmations or

confirmations for an individual operation.

With milestone confirmations or with separate goods movements, that

is, goods movements that are posted in the update program or via

requests (BAPIs, collective entry, mas processing, BDC/PDC), table

AFWI is always provided due to technical reasons


Regards


Rajasekar.S

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Rajasekar,

Please enter below details in Time ticket in bapi

Order no

operation no

posting date

plant

yield

Regards

Anand

Former Member
0 Kudos

Hi Anand,

I entered the same but issue not solved.

regards

Rajasekar.S