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

How to clear Global Parameter ID.

Former Member
0 Likes
839

Hello Friends.

How can I get clear Parameter ID value, which was set in the program. suppose, if value is set to 'X', How can I make it to ' '.

Sathish Kumar

Hello Friends.

How can I get clear Parameter ID value, which was set in the program. suppose, if value is set to 'X', How can I make it to ' '.

Sathish Kumar

3 REPLIES 3
Read only

Former Member
0 Likes
661

SET PARAMETER ID 'XXXX'

VALUE ' '.

Hope this helps you.

Read only

Former Member
0 Likes
661

Hi,

You can again set the value with ' '.

Ex..

SET PARAMETER ID 'MAT' FIELD space.

Thanks,

Naren

Read only

Former Member
0 Likes
661

hi

good

use like this

ABAP programs can access the parameters using the SET PARAMETER and GET PARAMETER statements.

To fill one, use:

SET PARAMETER ID <pid> FIELD <f>.

This statement saves the contents of field <f> under the ID <pid> in the SAP memory. The code <pid> can be up to 20 characters long. If there was already a value stored under <pid>, this statement overwrites it. If the ID <pid> does not exist, double-click <pid> in the ABAP Editor to create a new parameter object.

To read an SPA/GPA parameter, use:

GET PARAMETER ID <pid> FIELD <f>.

This statement fills the value stored under the ID <pid> into the variable <f>. If the system does not find a value for <pid> in the SAP memory, it sets SY-SUBRC to 4, otherwise to 0.

thanks

mrutyun^