Skip to main content

Set a blank value in a ComboBox

Answered

Comments

6 comments

  • Official comment
    Thomas

    Hi Ernie,

    You can use Blank(); functionality here.

    Thanks,

    Thomas

  • Ernie Hartnett

    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)

  • Ernie Hartnett

    Thank you Thomas.  The Blank() did work.

  • Jones

    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

     

     

  • Nadav Caridi

    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 ?

  • Jones

    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.