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

Editing Logical Database

Former Member
0 Likes
1,622

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,430
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.
8 REPLIES 8
Read only

Former Member
0 Likes
1,430

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.

Read only

0 Likes
1,430

that is what i did, but i can't still add a selection text

Read only

0 Likes
1,430

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,

Read only

0 Likes
1,430

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.

Read only

Former Member
0 Likes
1,431
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.
Read only

0 Likes
1,430

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

Read only

0 Likes
1,430

but i wonder how did u change the selection texts by regenerating the database program??????????????

Read only

0 Likes
1,430

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!