Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Entering condition using BAPI BAPI_PO_CREATE1

$
0
0

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

 


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>