Application Development 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: 

Number of lines in SO10 PC editor

Former Member
0 Kudos

Hi,

I have created a BDC program for creating and changing SO10 texts.

But the problem is when I run the code the number of lines coming in the PC editor of SO10 varies from system to system and also depends on the monitor resolution I guess.

So, is there any way to find the number of lines dynamically that will come so that we can modify the code accordingly before the BDC executes.

Thanks,

Vaibhav Goel.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

can you use function module READ_TEXT and check the number of lines in the returned internal table?

6 REPLIES 6

Former Member
0 Kudos

can you use function module READ_TEXT and check the number of lines in the returned internal table?

0 Kudos

Ya that can be done... but for that there should be a SO10 which has text of more than one page.

So, the program i have made any user can execute anywhere... so we wont be able to validate if the number of lines coming are correct.

And one more point, if execute the recording i.e. from SHDB, you will see less number of lines always in the SO10. But when you manually create some text in SO10, the lines will be more per page. Dont know why this weird thing happens with BDC.

So, i want some full proof solution for this so that we can make that program globally re-usable and can put it on SDN also for use.

Thanks,

Vaibhav Goel.

0 Kudos

Hi Prashant,

Thanks for that info. That was really helpful.

Only one doubt if I use that option, the screen resolution wont differ form system to system or according to monitor resolution right ?

Thanks,

Vaibhav Goel.

0 Kudos

Hi Vaibhav,

Yes thats correct. Irrespective of the screen size, a constant number of lines would be displayed.

Thanks,

Best regards,

Prashant

0 Kudos

Thanks Prashant!

I really didnt know that option is available.

former_member223537
Active Contributor
0 Kudos

Hi Vaibhav,

If BDC is essential in your case then use defsize = 'X' parameter which ensures constant screen size.

data lwa_ctuparams type ctu_params.

lwa_ctuparams-defsize = 'X'. " To freeze screen resolution


call transaction <TCODE> using it_bdcdata options from lwa_ctuparams.

Thanks,

Best regards,

Prashant