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

Sort functionality in SM30 giving dump

Former Member
0 Likes
1,102

Hi,

   

     Iam using the below code in PBO of the maintanence screen

    PROCESS BEFORE OUTPUT.

    MODULE LISTE_INITIALISIEREN.

    MODULE sort . ---------------------------------->custom module created by me

   In the above sort module iam using below code to sort

  MODULE SORT.

   DATA : IT_PVFTMAP LIKE ZHRPYT_PVFTMAP OCCURS 1 WITH HEADER LINE .

               IT_PVFTMAP[] = TOTAL[].

    SORT IT_PVFTMAP BY ZPERIOD+0(2) ZPERIOD+2(4)."F1 F2 F3.

    TOTAL[] = EXTRACT[].

    EXTRACT[] =     TOTAL[]. 

  ENDMODULE.

     Any one could you please help me in sorting the TOTAL[] or EXTRACT[] in table maintanence.

Hi,

   

     Iam using the below code in PBO of the maintanence screen

    PROCESS BEFORE OUTPUT.

    MODULE LISTE_INITIALISIEREN.

    MODULE sort . ---------------------------------->custom module created by me

   In the above sort module iam using below code to sort

  MODULE SORT.

   DATA : IT_PVFTMAP LIKE ZHRPYT_PVFTMAP OCCURS 1 WITH HEADER LINE .

               IT_PVFTMAP[] = TOTAL[].

    SORT IT_PVFTMAP BY ZPERIOD+0(2) ZPERIOD+2(4)."F1 F2 F3.

    TOTAL[] = EXTRACT[].

    EXTRACT[] =     TOTAL[]. 

  ENDMODULE.

     Any one could you please help me in sorting the TOTAL[] or EXTRACT[] in table maintanence.

5 REPLIES 5
Read only

Former Member
0 Likes
1,040

Hi Kranthi,

What`s the dump message?

regards,

Archer

Read only

0 Likes
1,040

Hi Archer,

        Iam getting dump sa "Two internal tables are neither compatible nor convertible".

Pleae suggest me it is urgent i priority...

thanks & regards,

kranthi

Read only

0 Likes
1,040

uh, what happened to your code, i using the same code you mentioned, it  works fine to me.

Your code wrote in a Include program like me?

regards,

Archer

Read only

0 Likes
1,040

Hi ,

   In the above code

          IT_PVFTMAP[ ] = TOTAL[  ] this statement gives the dump.becoz TOTAL is defined by sap we dont know the declaration of TOTAL[ ].but ours is IT_PVFTMAP[ ]  of type zmara.

                     we may not sure both these are same type declaration.

          Please suggest me this is urgetn in priority.

Read only

0 Likes
1,040

Hi Kranthi,

This thread will help you to resolve the issue.

FIELD-SYMBOLS: <fs_any> TYPE STANDARD TABLE.

  ASSIGN total[] TO <fs_any>.

  sort <fs_any> by ('LINE+64(12)') DESCENDING.

Thanks,

Dhina..