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

Entering condition using BAPI BAPI_PO_CREATE1

Former Member
0 Likes
7,338

HI

I am creating a PO using BAPI BAPI_PO_CREATE1 and I need to add condition record for the material using the same BAPI. I am able to create PO as well as insert condition record for the material in PO. How ever I am facing an issue in condition record.

I am providing condition record value in POCOND table in field cond_val but the value is getting displayed in Amount column in PO not in Condition value column. I want the value to be in condition value column in PO.

    wa_pocond-ITM_NUMBER = lv_item.

    wa_pocond-COND_TYPE  = 'ZEXD'.

    wa_pocond-COND_VALUE = 25.

     wa_pocond-CHANGE_ID  = 'I'.

    APPEND wa_pocond TO it_pocond.



    wa_pocondx-ITM_NUMBER = c_x.

    wa_pocondx-COND_TYPE  = c_x.

    wa_pocondx-COND_VALUE = c_x.

    wa_pocondx-CHANGE_ID  = c_x.

    APPEND wa_pocondx TO it_pocondx.

I want the value 25 to come in Condition value column not in aAmount column as in the screen shot attched.

Kondly help.

Thanks

Sumit

1 ACCEPTED SOLUTION
Read only

Former Member
4,047

Hi Guys,

Thanks for the replies. I got it resolved. I just changed my condition type pricing and it worked..:):)

Thanks ,

Sumit K.

6 REPLIES 6
Read only

former_member491621
Contributor
0 Likes
4,047

Hi Sumit,

Maybe the value getting updated is correct.

Check the below links. You might get a clue

http://scn.sap.com/thread/2142286

http://scn.sap.com/thread/1377265

Read only

0 Likes
4,047

Hi Aniket,

Yeah the value is not getting updated in  KONV-KWERT field but it is coming in the Amount column not in the Condition column . I want it to come in Condition value column.  Kindly refer screen shot attached..

Thanks

Sumit K.

Read only

Abhijit74
Active Contributor
0 Likes
4,047

Hello,

Please change and check.

     wa_pocond-ITM_NUMBER = lv_item.

    wa_pocond-COND_TYPE  = 'ZEXD'.

    wa_pocond-COND_VALUE = 25.
 

     wa_pocond-CHANGE_ID  = 'I'.

     wa_pocond-CHANGE_ID  = 'U'.

    APPEND wa_pocond TO it_pocond.

Thanks,

Abhijit

Read only

Former Member
0 Likes
4,047

Abhijit,

above is also not working....:(

Thanks

Sumit K.

Read only

Former Member
4,048

Hi Guys,

Thanks for the replies. I got it resolved. I just changed my condition type pricing and it worked..:):)

Thanks ,

Sumit K.

Read only

0 Likes
4,047

Hi Sumit K.

I have the same problem. when you say: "I just changed my condition type pricing". what does it means? thanks a lot

Tito