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

Not able to delete text elements.

Former Member
0 Likes
3,421

Hello

I copied a z report from production server to development server by copying the code in se38.

now system is no allowing me to delete a text element for parameter.

*----------------------------------------------------------------------------------------------------------------------------

SELECTION-SCREEN BEGIN OF BLOCK b4 with frame title text-012.
PARAMETERS: P_YEAR  TYPE GJAHR OBLIGATORY DEFAULT 2014,       " Year
             P_MONTH TYPE FCMNR AS LISTBOX  VISIBLE LENGTH 20 ,      " Month
             P_COMP  TYPE BUKRS OBLIGATORY DEFAULT 1000.       " Company Code
SELECT-OPTIONS S_PLANT FOR  vbrp-werks." Plant
            """PARAMETERS: P_FKART  AS CHECKBOX .             " Billing Document
SELECTION-SCREEN END OF BLOCK b4.

*----------------------------------------------------------------------------------------------------------------------------


here my requirement is to disable PARAMETER : P_FKART and disable corresponding text element in system.

i tried:

1. deleting the text element row for p_fkart but it appears again when i save the text element.

2.commenting the complete selection block and writing new selection block with text-012.system is taking same text element when i double click.


thanks.

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,425

First delete/comment the parameter and activate the program, but first as the PARAMETERS or SELECT-OPTIONS statement are also declaring the field as a DATA statement, you MUST also delete every reference to the parameter in the program, use ICON_SEARCH icon and check box "in main program".

Then go to text selection tab, save it, you should get a popup asking for removing extraneius selection texts, accept, then activate.

Alt: add a NO-DISPLAY option to the parameter, and insure a default suitable value for your actual requirement.

Regards,

Raymond

14 REPLIES 14
Read only

Former Member
0 Likes
2,425

Hi Faizur,

Try to comments "PARAMETERS: P_FKART  AS CHECKBOX. this line, and activate this program.

Then go to delete text element.

regards,

Archer

Read only

0 Likes
2,425

hello Dengyong

i tried commenting every line,which contains p_fkart.But system is not allowing me to activate the program.

it is throwing an error at first commented line which contains

* if p_fkart is initial.

       .........

           .......

thanks

Read only

0 Likes
2,425

Hello,

If you want to hide that particular field try NO Display.

Thanks

sam

Read only

0 Likes
2,425

Hi Faizur,

               When you are commenting if statement make sure you have commented the corresponding endif statement for that as well.

Thnaks,

Read only

0 Likes
2,425

Hello Sam

short cut.

I already used this and programm is working . But i wanted to know the reason.i read many blogs,every one mentioned about this problem while copying a report but i am yet to get a solution.

thanks

Read only

Former Member
0 Likes
2,425

try this

PARAMETERS: P_FKART(1)  NO-DISPLAY.

Read only

Former Member
0 Likes
2,425

Hi,

maybe give this requirement to your development center?

1. every programm that you are running in production is already in development system.

2. why do you headline your post with "not able to delete text elements when you originally cant activate your programm due to syntax errors...

you have to solve this yourself... unless its something special...

regards

Stefan Seeburger

Read only

0 Likes
2,425

Hello Stefan

I dont think there is any syntax error.

1.programm in production has been changed many times and transported to quality .

2. A. programm get activated when i remove comment from ' parameter: p_fkart ' irrespective of if condition of ' IF p_fkart is initial '.

    B.as i mentioned in above problem statement, i am not able to remove any of the above five parameters text-element even when program get activated after commenting the same ' parameter' .while saving the text element it appears again.

thanks.

Read only

0 Likes
2,425

Hi faizur,

first of all: Programm changes are made in development system. not in produktion System. the transport oder is development system -> quality system -> production system.

in your first statement above, you wrote

"i tried commenting every line,which contains p_fkart.But system is not allowing me to activate the program."

why shouldn't you be able to activate a programm when it is not caused by a syntax error?

I mean deleting a selection-parameter from the selection-screen is basic stuff... as written above you normaly dont delete, you set it as "NO DISPLAY".

when you got your programm activated again (and got rid of all the syntax errors you caused with the deletion) . Dont forget to activate the Text-Elements as well and it should work...

regards

Stefan Seeburger

Read only

Former Member
0 Likes
2,425

Dear


goto uttlilities, adjust->selection text.. what are you getting there


Regards

Read only

0 Likes
2,425

it says  >>> no error in selection text<<<

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,426

First delete/comment the parameter and activate the program, but first as the PARAMETERS or SELECT-OPTIONS statement are also declaring the field as a DATA statement, you MUST also delete every reference to the parameter in the program, use ICON_SEARCH icon and check box "in main program".

Then go to text selection tab, save it, you should get a popup asking for removing extraneius selection texts, accept, then activate.

Alt: add a NO-DISPLAY option to the parameter, and insure a default suitable value for your actual requirement.

Regards,

Raymond

Read only

0 Likes
2,425

"

Then go to text selection tab, save it, you should get a popup asking for removing extraneius selection texts, accept, then activate.

"

worked for me .thanks

Read only

Former Member
0 Likes
2,425

Hi,

process Raymond's TODO list and additionally check for translations of the text elements.

Regards,

Klaus