‎2006 Jun 08 9:49 AM
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.
‎2006 Jun 08 12:38 PM
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
‎2006 Jun 08 10:11 AM
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
‎2006 Jun 08 12:29 PM
‎2006 Jun 08 12:38 PM
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
‎2006 Jun 09 7:59 AM
I have passed all parameters as you suggest but its not created as i want.