Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8378

Re: REG : Providing an error message for the item price if it is zero

$
0
0

Hello Aakash,

Sorry for the typing mistake. Yes it is the interface /sapsrm/if_pdo_model_access.

 

Yes there is 'price' field in bbp_pds_item structure. So you can check that field too.

 

READ TABLE lt_item INTO ls_item WITH KEY price = 0.

IF sy-subrc IS INITIAL.

"error message

ENDIF.

 

Even if you check 'value' field there will be no problem as value = price/price_unit.

If price is 0 then value has to be 0. So if you check any of those 2 fields, your code will be correct.

 

Regards,

Yayati


Viewing all articles
Browse latest Browse all 8378

Trending Articles



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