473,385 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

SAP ABAP question... Help abap pros ! ^^

jeffbroodwar
118 100+
Hi,

I'm tying to develop a program that uses a radio button wherein if this radio button is clicked, it'll do a loop at screen block to display the select option controls that i have. i used :
Expand|Select|Wrap|Line Numbers
  1. SELECT-OPTIONS: s_SO FOR vbak-vkorg MODIF ID ONE,
  2.                              s_DC FOR vbak-vtweg MODIF ID ONE.
  3.  
  4.  
now, when i execute this program. I'm encountering a problem with the output of the select-options. the two text boxes outputed have vertical lines inside them. I tried different ways to solve this issue but none of it worked...

well here's the code snippet for your reference (Just ignore the ALV declarations used...issue is on the declaration of text fields) :

Expand|Select|Wrap|Line Numbers
  1. REPORT PUPOYTEST.
  2.  
  3. *===================================================*
  4. * INITIAL CREATION: SC
  5. *===================================================*
  6. tables: T9DEL,
  7.         VBAK,
  8.         LIKP,
  9.         LIPS.
  10.  
  11. type-pools: slis.
  12.  
  13.  
  14.  
  15. *<STRUCTURE OF TABLES MARA AND  MAKT>
  16. types: begin of t_diffot,
  17.           delivery like t9del-delivery,
  18.           poddel like t9del-poddel,
  19.           deldte like t9del-deldte,
  20.        end of t_diffot.
  21.  
  22.  
  23.  
  24.  
  25. *<DATA DECLARATION OF INTERNALTABLES>
  26.  
  27. DATA: i_diffot type standard table of t_diffot,
  28.       wa_diffot type t_diffot.
  29.  
  30. DATA: test like t9del-delivery.
  31.  
  32.  
  33. *<DATA DECLARATION OF  ALV ATTRIBUTES>
  34.  
  35. DATA: i_fieldcat type slis_t_fieldcat_alv,
  36.       x_layout type slis_layout_alv,
  37.       v_repid like sy-repid,
  38.       x_fieldcat type slis_fieldcat_alv,
  39.       v_save type c value 'A'.
  40.  
  41.  
  42. *<DATA DECLARATION MISC>
  43. DATA: c_data LIKE t9del-delivery value '30000008'.   "for unpack
  44.  
  45. *CONSTANTS:
  46. CONSTANTS: c_Sign VALUE 'I',
  47.            c_Option(10) VALUE 'EQ'.
  48.  
  49.  
  50. *<INITIALIZE>
  51. INITIALIZATION.
  52.   refresh: i_fieldcat,i_diffot.
  53.   clear: v_repid,x_fieldcat,x_layout,wa_diffot.
  54.   v_repid = sy-repid.
  55.  
  56. *Selection screen filtering data to be retrieved
  57. selection-screen begin of block B1 WITH FRAME TITLE text-001.
  58.   PARAMETERS: rb_SOA RADIOBUTTON GROUP G1 USER-COMMAND uc,
  59.               rb_SDA RADIOBUTTON GROUP G1.
  60. selection-screen end of block B1.
  61.  
  62.  
  63.  
  64. selection-screen begin of block B2 WITH FRAME TITLE text-002.
  65. PARAMETERS: p_SO LIKE VBAK-VKORG MODIF ID ONE.
  66.              SELECT-OPTIONS: s_SO FOR vbak-vkorg MODIF ID ONE,
  67.                              s_DC FOR vbak-vtweg MODIF ID ONE.
  68.  
  69. *selection-screen end of block B2.
  70. *
  71. *
  72. *selection-screen begin of block B3 WITH FRAME TITLE text-003.
  73. *
  74. * PARAMETERS: p_SO2 LIKE VBAK-VKORG MODIF ID TWO.
  75. *             SELECT-OPTIONS: s_SO2 for likp-vkorg MODIF ID TWO,
  76. *                             s_DC2 for lips-vtweg MODIF ID TWO.
  77.  
  78.  
  79. selection-screen end of block B2.
  80.  
  81.  
  82.  
  83.  
  84. *<AT SELECTION SCREEN OUTPUT>
  85. AT SELECTION-SCREEN OUTPUT.
  86.  
  87. *IF rb_SOA NE 'X' OR rb_SDA NE 'X'.
  88. *
  89. *      LOOP AT SCREEN.
  90. *
  91. *          IF  screen-group1 = 'ONE' OR screen-group1 = 'TWO'.
  92. *              screen-input = 0.
  93. *              screen-invisible = 1.
  94. *              MODIFY SCREEN.
  95. *          ENDIF.
  96. *
  97. *      ENDLOOP.
  98. *
  99. *ENDIF.
  100.  
  101.  
  102. IF rb_SOA = 'X'.
  103.  
  104.       LOOP AT SCREEN.
  105.  
  106.           IF  screen-group1 = 'ONE'.
  107.               screen-input = 1.
  108.               screen-invisible = 0.
  109.               MODIFY SCREEN.
  110. *          ELSE.
  111. *              screen-input = 0.
  112. *              screen-invisible = 1.
  113. *              MODIFY SCREEN.
  114.           ENDIF.
  115.  
  116.       ENDLOOP.
  117.  
  118. ENDIF.
  119.  
  120.  
Thanks in advance !

Best Regards,
Pupoy
Jul 8 '08 #1
0 2654

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Rene Schneider | last post by:
Has anybody ever experimented with something like an ABAP to PHP or JSP translator? Can you think of any elements missing for this purpose from PHP/JSP compared to ABAP? Do you think such a...
0
by: David M. Wilson | last post by:
Hello! I maintain a small package for talking to the API of BulkSMS.co.uk. I have been adding support for some new features recently, and found myself slightly indecisive over how best to lay...
34
by: Michael Foord | last post by:
I'd like to formalise slightly the license I release my projects under. At the moment it's 'free to use, modify, distribute and relicense'. This is basically fine as I don't want t oprevent people...
112
by: Andy | last post by:
Hi All! We are doing new development for SQL Server 2000 and also moving from SQL 7.0 to SQL Server 2000. What are cons and pros for using IDENTITY property as PK in SQL SERVER 2000? Please,...
1
by: Michael D | last post by:
What are the pros and cons of the following two design methods ? (1) Using foreign keys to form a composite primary key of a child tables -- as in Example. POOR MAN'S ERD PROVIDED FOR SUMMARY...
44
by: lester | last post by:
a pre-beginner's question: what is the pros and cons of .net, compared to ++ I am wondering what can I get if I continue to learn C# after I have learned C --> C++ --> C# ?? I think there...
10
by: Steph. | last post by:
I have an Object " MyEmploye " : Class MyEmploye { private string Name;
35
by: Stan Sainte-Rose | last post by:
Hi, What is the better way to save image into a database ? Just save the path into a field or save the image itself ? I have 20 000 images (~ 10/12 Ko per image ) to save. Stan
0
by: softwareengineer2006 | last post by:
ABAP,SAP,SQL,Windows,Siebel,Peoplesoft,EJB,J2ME Interview questions and answers I have listed over 1000 ABAP,SAP,SQL,Windows,Siebel,Peoplesoft,EJB,J2ME interview questions and answers in my...
0
by: Scott Abel | last post by:
The Fall 2007 CM Pros Summit Team is pleased to announce a Call for Participation. This year's Fall Summit will take place at the Westin Copley Place, Monday, November 26, 2007 in conjunction with...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.