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: 

How to hide Unit price in PO layout when Print Price is unchecked in condition control tab

former_member427675
Participant
0 Kudos

Hello All ,

I have requirement where I need to hide Unit Price in PO layout(Custom in my case) in case for given line item if Print price field is unchecked under condition control tab.

I tried few things below :

1. I cleared unitprice field if EKPO-PRSDR is initial. output is coming as 0.00.

2.I tried unitprice = space but output is coming as 0.00.

3. Used HIDE keyword throwing error.

My requirement is for given line item it should come as space.

Kindly suggest me in case you have any solution.

Thanks In Adavance.

6 REPLIES 6

raymond_giuseppi
Active Contributor
0 Kudos

Fields like unit price (EKPO-NETPR) are currency fields, they arein your case associated to a currency code (EKKO-WAERS) so SAP will display 0,00 as long as the currency code is not initial (and that's not advisable...) You have to deactivate display of the field (put a condition as in standard layouts)

NB: Moving 'space' to a numeric field trigger an implicit conversion of space into 'zero', same result than clear.

0 Kudos

Hello Raymond

Thanks for help , but in my case ME23N for require output type directly configured ZFORM(smartform) so how I set setting for custom.

Can you please help

Look at the node (column) containing the price field (should be in a TABLE/LOOP node of the MAIN window) and put a Condition, on the price field node like EKPO-PRSDR NE space.

Hint: Look also for a form like Y640_MMPO_A in your system.

0 Kudos

Thanks for help ,issue resolved 🙂

Jelena
Active Contributor
0 Kudos

Where exactly is this "PO layout" you are speaking of? It's not clear what is the context of the question. Are you talking about a standard transaction? A report? A form?

former_member241258
Active Participant
0 Kudos

hi

can you please tell where that field is displaying either in smartform or report?

if that is smartform, for that declare one string type field.

use that string field to display and that string field is filled up when EKPO-PRSDR is not initial or EKPO-PRSDR is not equal '0.00'.

put the above condition in program code or initilization of smartform.