04-27-2006 2:18 PM
Hello All,
well the bapi create1 is working but i am having a problem now creating a new condition type (FBR1). I am passing the following values but it is not creating the condition on the PO.
fs_pocond-change_id = 'U'.
fs_pocond-cond_type = 'FRB1'.
fs_pocond-cond_value = it_po-zfreight.
fs_pocond-currency = it_po-waers.
fs_pocond-itm_number = '000010'.
fs_pocondx-itm_number = '10'.
fs_pocondx-cond_type = 'X'.
fs_pocondx-cond_value = 'X'.
fs_pocondx-currency = 'X'.
fs_pocondx-change_id = 'X'.
any ideas.. thanks Scott
04-27-2006 2:36 PM
Hi Scott,
Can I know what exactly is your problem? In the sense, what are the messages are you getting in the Return tab. I think these would be sufficient for adding a new condition type.
If you are not getting any errors, then after the code where you have called the function module, you need to call function module 'BAPI_TRANSACTION_COMMIT'. This is mandatory for the BAPI_PO_CREATE1 function module.
Please check it once and let us know the update.
Thanks & Regards,
Adithya
04-27-2006 2:49 PM
Hello Adithya,
The PO is being created but the condition type is not. There is no error message in the return, except a warning for a date.
The commit is being done immediataley after the Bapi call.
thanks scott
04-27-2006 6:12 PM
Hello All,
well the problem was that i was filling in the POCOND and not the POCONDHEADER.
thanks scott