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

Problem with SELECTION_TEXTS_MODIFY

Former Member
0 Likes
1,021

Hi,

i am using 'SELECTION_TEXTS_MODIFY' to assign selection text ,the sy-subrc is coming 0 as well ,but strangely the selection text are not getting displayed on the screen.

i_rsseltexts1 ---> Values

p_new1 | P | X type

p_date1 | P | DD/MM/YYYY

LOOP AT SCREEN .

IF screen-group1 CP 'SD*'

AND screen-group3 = 'PAR'.

wa_para-name = screen-name.

g_tabix = g_tabix + 1.

READ TABLE i_zuprgmvar INTO wa_zuprgmvar INDEX g_tabix .

IF sy-subrc = 0.

wa_para-text = wa_zuprgmvar-low .

ENDIF.

APPEND wa_para TO i_para.

CLEAR wa_para.

ENDIF.

IF screen-group1 CP 'DD*'AND screen-group3 = 'PAR'.

wa_para-name = screen-name.

wa_para-text = 'Date (MM/DD/YYYY)'.

APPEND wa_para TO i_para.

CLEAR wa_para.

ENDIF.

ENDLOOP.

CLEAR g_tabix.

ENDIF.

LOOP AT i_para INTO wa_para WHERE text IS NOT INITIAL.

wa_rsseltexts1-name = wa_para-name.

wa_rsseltexts1-kind = 'P'.

IF wa_para-name CP 'P_Date*'.

wa_rsseltexts1-text = wa_para-text.

ELSE.

CONCATENATE wa_para-text 'Type' INTO wa_rsseltexts1-text SEPARATED BY space.

ENDIF.

APPEND wa_rsseltexts1 TO i_rsseltexts1.

CLEAR wa_rsseltexts1.

ENDLOOP.

CALL FUNCTION 'SELECTION_TEXTS_MODIFY'

EXPORTING

program = sy-repid

TABLES

seltexts = i_rsseltexts1

EXCEPTIONS

program_not_found = 1

program_cannot_be_generated = 2

OTHERS = 3.

Regards

Renu Gusain

3 REPLIES 3
Read only

Former Member
0 Likes
629

No Reply

Selection screen code.

  • R Rate

SELECTION-SCREEN begin of line.

PARAMETER: p_rtype as checkbox user-command zcr MODIF ID dr3.

SELECTION-SCREEN comment 3(8) text-s05 MODIF ID d3.

SELECTION-SCREEN comment 13(18) text-s04 MODIF ID d3.

PARAMETER p_rdate like sy-datum MODIF ID dr1.

SELECTION-SCREEN PUSHBUTTON 50(20) adhoc_r USER-COMMAND ADHOC_r MODIF ID D3.

SELECTION-SCREEN end of line.

Selection-screen skip .

  • Dynamic Rate types.**************8

SELECTION-SCREEN begin of line.

PARAMETERS p_new1 AS CHECKBOX USER-COMMAND zcr MODIF ID sd1.

SELECTION-SCREEN comment 13(18) text-s04 MODIF ID cd1.

PARAMETER p_date1 like sy-datum MODIF ID dd1.

SELECTION-SCREEN end of line.

Selection-screen skip .

SELECTION-SCREEN begin of line.

PARAMETERS p_new2 AS CHECKBOX USER-COMMAND zcr MODIF ID sd2.

SELECTION-SCREEN comment 13(18) text-s04 MODIF ID cd2.

PARAMETER p_date2 like sy-datum MODIF ID dd2.

SELECTION-SCREEN end of line.

Selection-screen skip .

                                      • Few more++

I feel the problem is because of "Begin of line Statement"

Regards

Renu Gusain

Read only

0 Likes
629

Hi,

You are correct. The problem is with the SELECTION-SCREEN begin of line statement.

Regards,

Srini.

Read only

0 Likes
629

Hi Srini ,

can u think of any solution to my problem

Renu