09-23-2010 2:33 PM
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.
09-23-2010 2:40 PM
can you use function module READ_TEXT and check the number of lines in the returned internal table?
09-23-2010 2:40 PM
can you use function module READ_TEXT and check the number of lines in the returned internal table?
09-23-2010 2:49 PM
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.
09-23-2010 2:57 PM
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.
09-23-2010 2:58 PM
Hi Vaibhav,
Yes thats correct. Irrespective of the screen size, a constant number of lines would be displayed.
Thanks,
Best regards,
Prashant
09-23-2010 3:01 PM
09-23-2010 2:47 PM
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