‎2007 May 29 3:59 AM
Hi Experts,
I need to add a new select-option in an already existing LDB. I was able to add the new select-option but I cannot add the selection text. I go to SE36 and select Selection Text then click Change. But it does not allow to add a new selection text.
Points will be rewarded ASAP!
Thanks
‎2007 May 29 4:42 AM
try this..
TABLES: pernr.
data: i_tab type standard table of RSSELTEXTS with header line.
initialization.
i_tab-name = 'PNPPERNR'.
i_tab-kind = 'S'.
i_tab-text = 'Employee ID'.
append i_tab.
CALL FUNCTION 'SELECTION_TEXTS_MODIFY'
EXPORTING
program = 'ZESO_TEST'
tables
seltexts = i_tab
* EXCEPTIONS
* PROGRAM_NOT_FOUND = 1
* PROGRAM_CANNOT_BE_GENERATED = 2
* OTHERS = 3
.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
‎2007 May 29 4:10 AM
why don't copy into Z logical database and use Z logical databse in report program,
if it is z logical database then you can add ur own text and own select-options.
do not modify sap standard Logical database and this LDB is applicable to so many sap standard programs.
‎2007 May 29 4:21 AM
‎2007 May 29 4:26 AM
I am not at system but i hope you could add in sldb transaction ,
goto sldb transaction and use ur ldb name and select selection text and come to change mode,
‎2007 May 29 4:40 AM
Its same as SE36.. but there still no luck.. i don't know whats the problem. I tried creating a LDB from scratch and i was able to add with no problem.
‎2007 May 29 4:42 AM
try this..
TABLES: pernr.
data: i_tab type standard table of RSSELTEXTS with header line.
initialization.
i_tab-name = 'PNPPERNR'.
i_tab-kind = 'S'.
i_tab-text = 'Employee ID'.
append i_tab.
CALL FUNCTION 'SELECTION_TEXTS_MODIFY'
EXPORTING
program = 'ZESO_TEST'
tables
seltexts = i_tab
* EXCEPTIONS
* PROGRAM_NOT_FOUND = 1
* PROGRAM_CANNOT_BE_GENERATED = 2
* OTHERS = 3
.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
‎2007 May 29 4:46 AM
That was a nice FM but that was not really what I wanted.. I solved the problem by regenerating the database program Thanks a lot
‎2007 May 29 4:48 AM
but i wonder how did u change the selection texts by regenerating the database program??????????????
‎2007 May 29 4:56 AM
Here what i did:
1. Added the additional select-option in Selection.
2. Regenerate the database program
3. Added texts to the new select-option.
and it worked!