Set a blank value in a ComboBox
AnsweredOn a Sales Quote/Order both the Ship-To and Bill-to Address gets populated if there is a default address value on the BP. I'm trying to set the both the Ship-To and Bill-to value to the empty/blank value of their drop down lists with no luck.
Any suggestion or help?
I've tried first to FOCUS() on the item ($[$40.0.0], but I'm now sure what the SET() command should be. NULL give me an error.
-
Official comment
Hi Ernie,
You can use Blank(); functionality here.
Thanks,
Thomas
-
Yes, I tried that but since it a Combo Box the command will not work. It always seem to go to the default address.
Blanks the field indicated (Blank = a textfield receives an empty value).
NB: You cannot blank a field if it is not allowed by the SAP Business Logic (Example: it is not possible to blank the quantity on a document line since it is not allowed to have no value). Also it is not possible to blank a combobox or checkbox since these are considered always to have a value (Use the SET command instead)
-
Thank you Thomas. The Blank() did work.
-
Thanks Thomas and Ernie for the insight. I have similar issue; but the field with combo box is UDF with Valid Values enabled.
I am unable to set the blank or empty the field using Boyum macro. I also tried setvalue and clearvalues. Both of them throw error.
Is it a limitation that we can't set the field with Valid values enabled ?
Please advise
-
Jones -> can you set any other valid value properly ?
Did you give the udf an alias / move to main screen so you can "SET" it properly ?
-
Thanks Nadav for looking into this issue. I have resolved this by using Transfer.
It UDF is defined with valid value property and used in combo, Boyum (set function) don't allow this to assign. but transfer works!
Please sign in to leave a comment.
Comments
6 comments