Application Development 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: 

How to remove hardcoded values in smartforms

Former Member
0 Kudos

Hi Team,

In our project migration is going on first, step they are changing the sales
organization names.

My work is need to find the hardcodes used in smart forms. Please suggest me
there are any reports or function modules to do this.

Following are the things I need to find out,

1. Hard coded used in the code lines of smart form.

2. Hard coded values maintained in conditions of each node.

3. Need to find out include names used in forms.

Please suggest me.Thanks in advance for all your inputs.

Regards,

Ravi Shankar.L

1 ACCEPTED SOLUTION

Florian
Active Contributor
0 Kudos

Hi Ravi,

all smartforms end in generated functions and so you just can use your normal ABAP-Tools to identify the stuff.

You just need to create a small report which does give you all the generated names back. -->

Pass all the names

LOOP <TABLE_WITH_NAMES>

Function SSF_FUNCTION_MODULE_NAME

--> Save the name given by this stone

ENDLOOP.

I think it is about 15 minutes to have it done

~Florian

19 REPLIES 19

Former Member
0 Kudos

Hi have searching some blogs all are saying that we need to go node by node manually if any other options there please kindly let me know.Because we are having 300 forms.It is little to difficult to do this.

Regards,

Ravi

0 Kudos

Hi Ravi,

As i know there is no option to find it. We need to get one after another.

Regards,

Madhu.

rosenberg_eitan
Active Contributor
0 Kudos

Hi,

I think you can modify

to your need.

Regards.

0 Kudos

Hi,

Thanks for your quick reply.

I will try it now and let you know the feedback about this.

Regards,

Ravi Shankar.L

0 Kudos

Hi,

Try to analyze the XML and see how the constants are held.

I am at home now so I cannot test.

Regards and good luck.

0 Kudos

Hi ,

I executed this report it gives different styles used in the smartforms.

Now I need to create a report for finding include texts and hardcoded values.

When I get success in it I will update that in form.

Anyway thanks for your valuable idea to proceed further.

Regards,

Ravi Shanakr.L

0 Kudos

Hi,

The update of the forms is a manual job.

Automated update will be nice but it needs a research.

Regards.

0 Kudos

Haaaa......

Very well said.... Soon we will find it.

Regards,

Ravi Shankar.L

0 Kudos

Hi,

In smartforms, in the menu there is an option to display the form info.

This basically gives the complete smartform details including all the coding etc in new window.

That is the most convenient way to find out the hard coding built in within the SMARTFORMS.

Regards,

Ankur Parab

Florian
Active Contributor
0 Kudos

Hi Ravi,

all smartforms end in generated functions and so you just can use your normal ABAP-Tools to identify the stuff.

You just need to create a small report which does give you all the generated names back. -->

Pass all the names

LOOP <TABLE_WITH_NAMES>

Function SSF_FUNCTION_MODULE_NAME

--> Save the name given by this stone

ENDLOOP.

I think it is about 15 minutes to have it done

~Florian

0 Kudos

Hi,

Have you tried to do the same task in this thread ?

It all depends where SAP is keeping the hard coded values .

It is a multilingual system .

Regards.

Former Member
0 Kudos

Hi ,

LOOP <TABLE_WITH_NAMES>


I am not able to get from you that what table need to be looped here.

Kindly me help me further please.Thanks in advance.


Regards,

Ravi Shankar.L

Former Member
0 Kudos

Hi,

I don't know how to use the classes  efficiently.

Just help me out how to start the loop for that overall XML file we are getting it.

1.I want to write full details in the ALV that what is the child node name parent node depth of that node like that.So that I would like to loop the overall XML document.

If possible can you please share your ideas in this point.

Regards,

Ravi Shankar.L

Florian
Active Contributor
0 Kudos

Hi Ravi,

in that table there are the smartform-names itself you can pick from TA SMARTFORMS.

You get back names like BEV/00000027 or something like that and this is a function-stone name you can use for further processing.

Perhaps I can find my report and share it with you. But today I do not have access to the correct system.

~Florian

Former Member
0 Kudos

Hi,

Once you got that code.

Kindly share me that here.

Thanks in advance for your support.

Regards,

Ravishankar.L

0 Kudos

Hi,

Please see

Regards.

Former Member
0 Kudos

Hi,

Thanks for your great help.

Even this part you have shared I have finished.

I am adding some more points to the program.

Once it is fully completed I will share that here.

Again Big Thanks because of your idea only I am doing this .

I have marked your answer is correct.

Regards,

Ravi Shankar.L

Former Member
0 Kudos

Had time to look into the report you have suggested me.

Please share that thing in the form.

Thanks in advance for your help.

Regards,

Ravi Shankar.L

0 Kudos

Hi,

You get complete form information by clicking on the form info option in utilities.

This opens a pop up and you get the complete form information including the code in different sections.

Regards,

Ankur Parab