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

Regarding SAP Script Layout set Debugging

Former Member
0 Likes
1,823

Hi All,

I have a clarification regaring <b>SAP Script Layout set</b> <b>Debugging</b>.

In SAP Script Debugging mode can we change the values of certain fields (or) variables in layout set [Not in Print program].

I want to change the values of fields in layout set itself not in print program.

Can anybody tell me how can we achieve this as fields & variable values in layout set while debugging are showing as disabled.

If any one has solution please post it.

Thanks in advance.

Thanks & Regards,

Rayeez.

16 REPLIES 16
Read only

Former Member
0 Likes
1,611

hi,

go to se71 , enter your script name and go to utilites->active debugger.now run your print program.

regards,

srini

Read only

0 Likes
1,611

Boss,

Please read my quetion once more.

I am not talking about how to go for debugging but when you go into DEbug mode in layout set how can we change the values of internal table field (or) variables which we tend to display.

Thank,

Rayeez.

Read only

0 Likes
1,611

Hi Shaik

in the normal debug how you can change , here also you can change in the editor by writing the variable or field name and say enter.

don't use <b>&var&</b> use <b>var</b> to the content of var and change.

regards

vijay

Read only

0 Likes
1,611

Hi Rayeez,

When you are debugging,If you want to change the internal table values , in the debug screen select tables,

and then give your required intenal table name then it will display the populated values for that table , select the required values what you want to change then at the bottom you will find change push button with pencil syboml, when you press then on this push button the record which you selected will come into edit mode, give your values and then just press enter , the old value will updated with your new value.The same will apply to the fields also , but in the debug screen you need to select fields which is the default screen.

Hope this will helps you.

<i>Reward Points If It Helps You.</i>

Regards,

Raghav

Read only

Former Member
0 Likes
1,611

Hi Shaik,

In debuggin you want to see, you just click on the fields or variables of layout.

or there you can enter the variable and press enter

you will get values..

&VAR& is not required, just use VAR you can see values inside it.

in normal debugging how you can see, here also do same thing.

there is editor you can find in debug, write the variables and check.

regards

vijay

Read only

0 Likes
1,611

Hi Vijay,

It's not question of getting values, what i want to know is can we change those values in Layout set[SE71] itself as we can do in print program[SE38] - changing values in debug mode.

I hope u got my question now.

Thanks & Regards,

Rayeez.

Read only

0 Likes
1,611

yes you can do changes in debug mode.

regards

vijay

Read only

0 Likes
1,611

You can change in Layout debugging the values which are printing.

regards

vijay

Read only

0 Likes
1,611

Hi Vijay,

I am in debug mode then i had given internal table field as <b>I_TAB1-LIFNR</b> in screen and pressed enter and i got value as <b>39854</b> before it but it is in disabled mode i will not be able to edit it.

can you tell me how can i edit the value <b>39854</b> here.

Thanks & Regards,

Rayeez.

Read only

0 Likes
1,611

Hi All,

Anybody has solution for above issue!

Thanks & Regards,

Rayeez.

Read only

0 Likes
1,611

Hi Shaik ,

Sorry ,I try to find some other solution but it is the same as normal abap debugging, if you Debug the script

In EDIT you have ABAP Debugging Option.

That will take you to the ABAP program..

From there you can modify, that is nothing But our normal debugging..

regards

vijay

Read only

0 Likes
1,611

Hi Vijay,

So it's not possible in layout[SE71] itself, we have to go back to SE38 only.

Ok thanks anyway for your effort.

In future if you come to know solution where we can directly change values in SE71[Layout set] itself please post it.

(Or) you can mail at <b>asrk78@yahoo.com</b>

Thanks & Regards,

Rayeez.

Read only

0 Likes
1,611

Hi Man I got a solution for You , if you want to change the values in script layout then what you need to do is...

1.Activate Script Debugger

2.Once Debugging Starts Go to <b>EDIT</b> menu You Have <b>BreakPoint</b> Option, select the row where you need to change the value set the Break point.

Now Press F8,it will stop at line where you kept break point.

3.Now go to <b>EDIT</b> again Now click on ABAP debugging.

after that it will call the Below FM

call function 'GET_TEXTSYMBOL'                       
       exporting  line            = <sc_line>          
                  start_offset    = 0                  
                  language        = tx_catalog-tdspras 
       importing  value           = ft_string          
                  value_length    = ft_string_len      
                  <b>value_raw       = value_raw</b>          
                  sum             = sum                
   <b>               name            = name</b>               
                  continue_offset = pos.               
                                                

<b>Value_RAW</b> will HOLD the value of the variable

<b>Name</b> is the variable name.

Hope it is clear

please reward for helpful answeers.

regards

vijay

Read only

0 Likes
1,611

Hi Vijay,

It is ok. But i think still it is going to SE38.

So, still we cannot change in layout itself.

Anyway thanks for you effort on this.

I will award some points to you for your efforts.

<b>One Question:</b> Can we do calculations in Layout set[SE71] not going to SE38. like adding one internal table field to other field in layout itself not going to print program calculate and come back & print, not this way direct calculation in layout set itself.

Thank you.

Thanks & Regards,

Rayeez.

Read only

0 Likes
1,611
 <b>ft_string          
 value_raw                        
 name</b>  

function module will give these values ,

after the function call change the values. that will reflect in script output.

ft_string will hold value of variable

vlaue also will hold the value of variable

name is the variable name.

regards

vijay

Read only

0 Likes
1,611

Hi Shaik,

<b>Changing values will not appear in Debugger,But they will appear in Output</b>. But this is not abap Program Debugging,This is Script Layout Program debugging..
There is no way linked to Driver Program in this debugging, nd more over SUMMING can be Done,But this will be used for getting Total Price, Total weight...
if that is the case then..
/E   E1                                             
/:   SUMMING &ITAB-NETWR& INTO &V_TOTAL&            
/E   E2                                             
*    &ITAB-VBELN& ,, &ITAB-POSNR& ,, &ITAB-NETWR&   
/E   E3                                             
*                                V_TOTAL &V_TOTAL&  
/:   BOX FRAME 10 TW                                
/:   NEW-PAGE PAGE2                                 
*    This is page 2 ...                                                                                
But I don't think there is another possibility.
But you can Use Performs and calculate values....
That is the solution you can use....
and let me tell you clearly that above debugging hint will not show you the changed values in debugging, But the changes will be visible in the Output definitely test it and let me know..

regards

vijay