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

table control with wizard scrolling incon

Former Member
0 Likes
2,884

hi all,

i have  developed module pool program with table control with wizard.

in that while creating itself i checked , the scroll check box.

but when i am  executing the program , if i click the next page or any of four icon its not working , instead of that it is saving the record.

for that icon , system it self will create coding right? or we have to right any code for enable that?

i checked tha sap scn thread also and tried but its not working.

help me to slove this issue.

regards,

s.kavitha

hi all,

i have  developed module pool program with table control with wizard.

in that while creating itself i checked , the scroll check box.

but when i am  executing the program , if i click the next page or any of four icon its not working , instead of that it is saving the record.

for that icon , system it self will create coding right? or we have to right any code for enable that?

i checked tha sap scn thread also and tried but its not working.

help me to slove this issue.

regards,

s.kavitha

8 REPLIES 8
Read only

Former Member
0 Likes
2,636

Hi Kavitha,

in TC_2000_USER_COMMAND you can write code like below.

Try to debug the code and do corresponding changes you required.

MODULE TC_2000_USER_COMMAND INPUT.

  OK_CODE = SY-UCOMM.

  PERFORM USER_OK_TC USING    'TC_2000'

                              'IT_EMP_DETAILS'

                              'SEL'

                     CHANGING OK_CODE.

  SY-UCOMM = OK_CODE.

ENDMODULE.

FORM USER_OK_TC USING    P_TC_NAME TYPE DYNFNAM

                         P_TABLE_NAME

                         P_MARK_NAME

                CHANGING P_OK      LIKE SY-UCOMM.

WHEN 'P--' OR                     "top of list

         'P-'  OR                     "previous page

         'P+'  OR                     "next page

         'P++'.                       "bottom of list

      PERFORM COMPUTE_SCROLLING_IN_TC USING P_TC_NAME

                                            L_OK.

      CLEAR P_OK.

ENDFORM.

FORM COMPUTE_SCROLLING_IN_TC USING    P_TC_NAME

                                      P_OK.

DATA L_TC_NEW_TOP_LINE     TYPE I.

  DATA L_TC_NAME             LIKE FELD-NAME.

  DATA L_TC_LINES_NAME       LIKE FELD-NAME.

  DATA L_TC_FIELD_NAME       LIKE FELD-NAME.

FIELD-SYMBOLS <TC>         TYPE CXTAB_CONTROL.

  FIELD-SYMBOLS <LINES>      TYPE I.

ASSIGN (P_TC_NAME) TO <TC>.

CONCATENATE 'G_' P_TC_NAME '_LINES' INTO L_TC_LINES_NAME.

  ASSIGN (L_TC_LINES_NAME) TO <LINES>.

  IF <TC>-LINES = 0.

  L_TC_NEW_TOP_LINE = 1.

  ELSE.

CALL FUNCTION 'SCROLLING_IN_TABLE'

         EXPORTING

              ENTRY_ACT             = <TC>-TOP_LINE

              ENTRY_FROM            = 1

              ENTRY_TO              = <TC>-LINES

              LAST_PAGE_FULL        = 'X'

              LOOPS                 = <LINES>

              OK_CODE               = P_OK

              OVERLAPPING           = 'X'

         IMPORTING

              ENTRY_NEW             = L_TC_NEW_TOP_LINE

         EXCEPTIONS

*              NO_ENTRY_OR_PAGE_ACT  = 01

*              NO_ENTRY_TO           = 02

*              NO_OK_CODE_OR_PAGE_GO = 03

              OTHERS                = 0.

  ENDIF.

GET CURSOR FIELD L_TC_FIELD_NAME

             AREA  L_TC_NAME.  IF SYST-SUBRC = 0.

    IF L_TC_NAME = P_TC_NAME.

    SET CURSOR FIELD L_TC_FIELD_NAME LINE 1.

    ENDIF.

  ENDIF.

<TC>-TOP_LINE = L_TC_NEW_TOP_LINE.

ENDFORM.

Thanks,

Marimuthu.K

Read only

0 Likes
2,636

hi sir ,

i checked my coding part , it will same as what u pasted here.

but it is not working.

regards,

S.kavitha

Read only

Former Member
0 Likes
2,636

Hi Kavitha,

Good day.

1. Have you check whether the Scroll option is checked in layout in SE41.

2. If possible delete the screen and create again by folowing the below URL.

3. Try to increase the TC-LINES before the below statement in PBO and check whether you can able to scroll or not.

Thanks & Regards,

Seshadri.

Read only

0 Likes
2,636

hi all,

i am getting conversion error in module pool program ,i have two table screen shot for your reference,

i checked the data type itis same only in both table.

error field is,

regards,

S.kavitha

Read only

0 Likes
2,636

Hi Kavitha,

Check whether the field "HFM_GL_AMT_LC_25" data type and length are the same in the layout and flow logic.

The Data type and size should be the same in the layout and in flow logic.

Goto Screen Text elements where you can find the field details in detail.

Thanks & Regards,

Seshadri.

Read only

0 Likes
2,636

Hi Sivakumar,

For the Dump, check are you passing any information, which contain the Sign ( -12454) information.

If yes then, check the property for the respective field in table control screen.

For the Scroll, add the below code to provide the Vertical Scroll bar in Table Control in PBO inside the

Loop at Internal_table into Work_are with table control...

     DESCRIBE TABLE internal_table LINES Table_control-lines.

endloop.

Regards.

Praveer.

Read only

0 Likes
2,636

hi all,

i checked what u mentioned , but it still showing same error.

regards,

S.Kavitha

Read only

0 Likes
2,636

HI Kavitha,

Could you debug your program in at line no 94. ( G_HFW_TABLE17_lines = SY-LOOPC ).

and provide or check the Internal Table content, is somewhere Minus sign exist for any any of the records.

Regards.

Praveer.