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 can we update values in SET (GS02) using ABAP Code ( FM or BAPI)?

bhumika_patel
Discoverer
0 Likes
4,439

Generally, We update values in GS02 manually, but what if there are more than 1k values? It is not possible to sit and update each and every single value..I tried to find BAPI to upload the data..and I found some FM such as G_SET_GENERATE G_SET_MAINTENANCE.I don't find it to be helpful..I would be grateful if anyone could help me.

1 ACCEPTED SOLUTION
Read only

NTeunckens
Active Contributor
0 Likes
3,152

See this Blog : link that offers Samplecode.

As a fallback, you could use LSMW. See this link

Generally, We update values in GS02 manually, but what if there are more than 1k values? It is not possible to sit and update each and every single value..I tried to find BAPI to upload the data..and I found some FM such as G_SET_GENERATE G_SET_MAINTENANCE.I don't find it to be helpful..I would be grateful if anyone could help me.

4 REPLIES 4
Read only

NTeunckens
Active Contributor
0 Likes
3,153

See this Blog : link that offers Samplecode.

As a fallback, you could use LSMW. See this link

Read only

0 Likes
3,152

Hi Nic,

I did not understand the use of FM G_SET_MAINTENANCE but I have implemented BDC for the same.

Thank you for your response.

I would like if you let me know the exact use of G_SET_MAINTENANCE.


Read only

0 Likes
3,152

Hi Nic,

I got the purpose of the FM. Thank you 🙂

Read only

0 Likes
3,152

Hi Patel,

i am looking for FM to update multiple values in various sets.

i used G_SET_MAINTENANCE but not much useful, it is calling GS02.

Can you help me how you sorted out this issue.