Application Development 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: 

Bapi_PO_Create1 not creating new condition - POCOND

Former Member
0 Kudos

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

3 REPLIES 3

former_member186078
Active Participant
0 Kudos

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

0 Kudos

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

Hello All,

well the problem was that i was filling in the POCOND and not the POCONDHEADER.

thanks scott