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: 

Code working in sap ecc 6.0 and not working in sap 4.6 ...

Former Member
0 Kudos

Hi everyone,

I have copied one report from ecc 6.0 to 4.6.Code is working fine ,but in selection screen some buttons are missing.

Could you please help me in this ....I am attaching screenshots

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor
0 Kudos

If it's a real "selection screen" (statements PARAMETERS and so on), then maybe the buttons are achieved by the SELECTION-SCREEN FUNCTION KEY <number> (1 to 5) statement, and the buttons are displayed only if the structure components SSCRFIELDS-FUNCTXT_0<number> contains the icon + text. Could you verify that? It's possible that the program uses text symbols for filling these fields, and either you didn't copy them, or you just didn't activate the text elements (LIMU REPT <yourprogram>).

6 REPLIES 6

Sandra_Rossi
Active Contributor
0 Kudos

If it's a real "selection screen" (statements PARAMETERS and so on), then maybe the buttons are achieved by the SELECTION-SCREEN FUNCTION KEY <number> (1 to 5) statement, and the buttons are displayed only if the structure components SSCRFIELDS-FUNCTXT_0<number> contains the icon + text. Could you verify that? It's possible that the program uses text symbols for filling these fields, and either you didn't copy them, or you just didn't activate the text elements (LIMU REPT <yourprogram>).

former_member1716
Active Contributor
0 Kudos

Just check if you have activated all the components of this report like text symbol, selection text, headings etc...

Also Check the screen elements for the report.

Regards

Former Member
0 Kudos

Hi,

Thanks for the reply.

I have deleted the screens which I have used and created screens and GUI Status for those screens by adding function keys.

I have activated text elements,headings also.Thank you very much ,my code is working now and I can activate it.

But in execution some dump is getting like

Dump - Access using NULL object reference is not possible!!!

Could you please help me out in this....

0 Kudos

U must have either missed activating any component or there must code where an object accesses a null component.

In the Dump check out the line where the dump occurs exactly and investigate there.

Regards,

0 Kudos

CALL METHOD spreadsheet->set_ranges_data

          EXPORTING ranges    = ranges

                    contents  = excel_input

                    no_flush  = 'X'

          importing error = errors.

      append errors.

I am getting the same dump at this method.....could anyone help me out...

Thanks in advance.

Former Member
0 Kudos

CALL METHOD spreadsheet->set_ranges_data

          EXPORTING ranges    = ranges

                    contents  = excel_input

                    no_flush  = 'X'

          importing error = errors.

      append errors.

I am getting the same dump at this method.....could anyone help me out...

Thanks in advance.