Application Development and Automation 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: 
Read only

Set SAP fields to zero or space

Former Member
0 Likes
814

If I want to set the value of a field to zero or space, what value do I put in the input external variant?

For instance, suppose I want to remove "Apt A" from Address Line 2 of an employee's home address. What value would I put on the input file to remove it?

What if I want to change a numeric back to zero?

What if I want to uncheck a checkbox?

If I want to set the value of a field to zero or space, what value do I put in the input external variant?

For instance, suppose I want to remove "Apt A" from Address Line 2 of an employee's home address. What value would I put on the input file to remove it?

What if I want to change a numeric back to zero?

What if I want to uncheck a checkbox?

3 REPLIES 3
Read only

Former Member
0 Likes
659

Hi Cliff,

To remove an address as line, you should give the input as space, since it will be a character type field.

To change a numeric value to zero, you should provide zero as input and to deselect a check box, space

should be provided as input.

Best Regards,

Sharmila

Read only

uwe_schieferstein
Active Contributor
0 Likes
659

Hello Cliff

The value '@CLEAR' is used to initialize a field which may be preset by SET/GET parameters.

For more details please refer to: [Special Variables|http://help.sap.com/saphelp_nw04/helpdata/en/3d/72cd3bb961766de10000000a11402f/frameset.htm]

Regards

Uwe

Read only

Former Member
0 Likes
659

Hello,

This can be done either by clearing the value or by passing space if its a text field.

suppose you want to set the value for the variable I_VALUE.

I_VALUE = &CLEAR..

or

I_VALUE = ' '.

suppose you want to set the value for the variable I_VALUE if its a checkbox

I_VALUE = '_'.

Hope this will help you out.

Thanks & Best regards,

Ajay