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

problem in BAPI_PO_CREATE1

Former Member
0 Likes
968

Dear Frnds,

I am used BAPI_PO_CREATE1 to create PO, In that I am passing tables POCOND and POHEADERCOND.

For one item in PO its works fine for header and Item conditions and PO is created succesfully.

But when i am checking for more than 1 item in PO then its gives me error message like:

<b>

Error during reprocessing of conditions </b>

Pls. suggest me for solve above error.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
816

Hi,

Make sure u populate the corresponding X structures.

IT_PO_COND-ITM_NUMBER = L_ITEM_NO. " Item No.

IT_PO_COND-COND_TYPE = C_PBXX. " Condition type

IT_PO_COND-CALCTYPCON = C_B. " Calculation type

IT_PO_COND-COND_VALUE = W_DUMMY_ZBGAIKAK. " Condition value

IT_PO_COND-CHANGE_ID = C_U.

APPEND IT_PO_COND.

CLEAR IT_PO_COND.

IT_PO_CONDX-ITM_NUMBER = L_ITEM_NO.

IT_PO_CONDX-ITM_NUMBERX = C_X.

IT_PO_CONDX-COND_TYPE = C_X.

IT_PO_CONDX-CALCTYPCON = C_X.

IT_PO_CONDX-COND_VALUE = C_X.

IT_PO_CONDX-CHANGE_ID = C_X.

APPEND IT_PO_CONDX.

CLEAR IT_PO_CONDX.

Sreedhar

4 REPLIES 4
Read only

Former Member
0 Likes
816

1.when ever you using particular table updation the other table assign shoul be in block state .

2.u populate the item in every loop.

use <b>at new</b> logic in code to populate the

BAPI table

Read only

0 Likes
816

I am passing item in every table except header table..

Read only

Former Member
0 Likes
817

Hi,

Make sure u populate the corresponding X structures.

IT_PO_COND-ITM_NUMBER = L_ITEM_NO. " Item No.

IT_PO_COND-COND_TYPE = C_PBXX. " Condition type

IT_PO_COND-CALCTYPCON = C_B. " Calculation type

IT_PO_COND-COND_VALUE = W_DUMMY_ZBGAIKAK. " Condition value

IT_PO_COND-CHANGE_ID = C_U.

APPEND IT_PO_COND.

CLEAR IT_PO_COND.

IT_PO_CONDX-ITM_NUMBER = L_ITEM_NO.

IT_PO_CONDX-ITM_NUMBERX = C_X.

IT_PO_CONDX-COND_TYPE = C_X.

IT_PO_CONDX-CALCTYPCON = C_X.

IT_PO_CONDX-COND_VALUE = C_X.

IT_PO_CONDX-CHANGE_ID = C_X.

APPEND IT_PO_CONDX.

CLEAR IT_PO_CONDX.

Sreedhar

Read only

816

I have passed all parameters as you suggest but its not created as i want.